Wiem że temat szerokości portalu był juz poruszany wielokrotnie ale może mi ktos powiedziec które Liczby mam zmienic do ustawienia szerokości?Prosze was Bardzo ,Bardzo mocno Abyście mi zrobili z tego stronke o szerokości całkowitej (z panelami) około 900 px(albo jak uważacie)
PROSZĘ !!
<?
// theme settings
$body_text = "#C3BFB5";
$body_bg = "#000000";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='border-tleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td colspan='2' class='border-tmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-tright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td colspan='2' class='header'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='sub-cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sub-cap-main'>\n";
$result = dbquery("SELECT * FROM ".FUSION_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " ::\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
} else {
echo "<a href='".FUSION_BASE.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n<td align='right' class='sub-cap-main'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
<td class='sub-cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='border-tleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-tmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-tright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='header'><table width=100%><tr><td width=300 align=left><a href='http://www.php-fusion.co.uk' class='foot' target='_blank'>PHP-Fusion</a> v".sprintf("%.2f", $settings['version']/100)." © 2003-2005</td>
<td align=center> ".stripslashes($settings['footer'])."</td> <td width= 350 align=right>Dark Echelon made by <a href='http://extreme-fusion.pl'>eXtreme-fusion</a></td></tr></table></td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td width='100%' class='cap-main'>$subject</td>
<td class='cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>$news</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".FUSION_THEME."images/bullet.gif'>
".LAN_40."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".LAN_41.showdate("longdate", $info['news_date'])."
</td>
<td align='right' class='infobar'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".LAN_42."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].LAN_43."</a> ·
".$info['news_reads'].LAN_44."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</div>
</td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td width='100%' class='cap-main'>$subject</td>
<td class='cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>
<div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><img src='".FUSION_THEME."images/bullet.gif'>
".LAN_40."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".LAN_41.showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='infobar'>
<a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].LAN_43."</a> ·
".$info['article_reads'].LAN_44."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</div>
</td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td width='100%' class='cap-main'>$title</td>
<td class='cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td width='100%' class='cap-main'>$title</td>
<td class='cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='cap-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='cap-main'>$title</td>
<td align='right' class='cap-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".FUSION_THEME."images/panel_$box_img.gif'></td>
<td class='cap-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='border-right'><img src='".FUSION_THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".FUSION_THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".FUSION_THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";
}
?>
Dziekuje!
|