Witam !
Stworzyłem layout oskryptowałem i mam mały problem, a mianowicie panele wyświetlają sie mi tylko z lewej strony.
W PA panele mam ustawione z obu stron.
Mój theme.php:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fu... |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Fusion 6 Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Design For You - Force © 2006 |
| web: http://d4u.hut2.ru/ |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#FFFFFF";
$body_bg = "#454545";
$theme_width = "974";
$theme_width_l = "236";
$theme_width_r = "236";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table border='0' cellpadding= '0' cellspacing= '0' width= '974'>
<tr>
<td width= '974' height= '45'><img src='".THEME."images/gorale_03.jpg' alt='' width='403' height='45'><a href='index.php'><img src='".THEME."images/gorale_07.jpg' alt='' width='188' height='44' border='0'></a><a href='search.php'><img src='".THEME."images/gorale_08.jpg' alt='' width='170' height='44' border='0'></a><a href='contact.php'><img src='".THEME."images/gorale_05.jpg' alt='' height='45' border='0' /></a><a href='index.php'></td>
</tr>
</table>
<tr>
<td>
<table border='0' cellpadding= '0' cellspacing= '0'>
<tr>
<td>
<table border='0' cellpadding= '0' cellspacing= '0'>
<tr>
<td><img src='".THEME."images/gorale_09.jpg' alt='' width='403' height='41' /></td>
</tr>
<tr>
<td background= '".THEME."images/gorale_12.jpg' height= '226' width= '403' cellpadding='0' cellspacing='0'>
Panel Logowania <br>
Panel Logowania <br>
Panel Logowania <br>
</td>
</tr>
</table>
<td><img src='".THEME."images/gorale_10.jpg' alt='' width='550' height='267' /></td>
</tr>
</td>
</tr>
</table>\n";
echo "<table width='974' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "
<table width='982' border='0' cellpadding='0' cellspacing='0' align='center'>
<a href='mailto:'><tr>
<td width='201' height='41' background='".THEME."images/stopka__42.jpg'></td>
<td width='782' height='106' rowspan='3' background='".THEME."images/stopeczka.jpg'></td>
</tr>
<a href='http://www.php-fusion.co.uk/' target='_blank'><tr>
<td width='201' height='24' background='".THEME."images/stopaa.jpg'></td></tr></a>
</a>
<tr>
<td width='201' height='41' background='".THEME."images/stopka_45.jpg'></td>
</tr>
</table>
\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table width='504' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='504' height='55' style= 'background-image: url('".THEME."images/gorale_27.jpg'); padding-left: 10px; font-weight: bold;'>$subject</td>
</tr>
<tr>
<td width='504' height='7' style= 'background-image: url('".THEME."images/gorale_news.jpg'); background-position: top; background-repeat: no-repeat;'></td>
</tr>
<td width='504' border='0' style= 'padding-right: 10px; padding-left: 10px; font-weight: normal;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<br>
<img src='images/gorale_19.jpg' width='100%' height='13' border='0'><br>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
echo "<td align='right' class='infobar2'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <br>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <br> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "</td>
</table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "
<table width='504' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='504' height='55' class='newsheader'>$subject</td>
</tr>
<tr>
<td width='504' height='7' class= 'przedzial'></td>
</tr>
<td width='504' border='0' style='news'>$news<br>
<tr>
<td width='504' height='13' class= 'przedzialdol'></td>
</tr><br>";
echo "<table width='504' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
echo "<td align='right' class='infobar2'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <br>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <br> ";
echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "</td>
</table>\n";
}
function opentable($title) {
echo "<table width='504' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='504' height='55' class='newsheader'>$title</td>
</tr>
<tr>
<td width='504' height='7' class= 'przedzial'></td>
</tr>
<td width='504' border='0' style= 'padding-right: 10px; padding-left: 10px; font-weight: normal;'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='236'>
<tr>
<td width='236' height='58' class= 'panelheader'>$title</td>
</tr>
<tr>
<td width='236' class= 'paneltekst'>\n";
}
function closeside() {
echo "</tr>
<tr>
<td class= 'panelkoniec'>.</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick='javascript:flipBox('$boxname')'></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='4'>";
echo "</td></tr></table>\n";
}
?>
|