A szerokość ?? Nie da się wyśrodkować czegoś, co jest na 100% !
Powiedzmy że.. 1000 pikseli:
?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
//Header
echo "<table cellpadding='0' cellspacing='0' style='width:1000px;margin:auto;'>\n<tr>\n";
echo "<td align='left' class='full-header'><img src='".THEME."images/logo2.png' width='300' height='150'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:1000px;margin:auto;'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.gif'></td>\n";
echo "<td class='sub-header' align='left' width='50%' height='35'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
echo "<td align='right' class='sub-header' width='50%'>".showsubdate()."</td>\n";
echo "<td align='right'><img src='".THEME."/images/subheader-right.gif'></td>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' style='width:1000px;margin:auto;' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:1000px;margin:auto;'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.gif'></td>\n";
echo "<td align='left' class='sub-header' width='50%'>Powered by <a href='http://php-fusion.co.uk'>PHP-Fusion</a>";
echo "<td align='right' class='sub-header'width='50%'>Fusion7Evo by <a href='http://art4fusion.com'>Art4Fusion.com";
echo "<td align='right'><img src='".THEME."/images/subheader-right.gif'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:1000px;margin:auto;'>\n<tr>\n";
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/cap-left.gif'></td>\n";
echo "<td class='capmain' width='100%'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/cap-right.gif'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td><img src='".THEME."/images/side-left.gif' align='left'></td>\n";
echo "<td class='scapmain' align='center' width='100%'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td><img src='".THEME."/images/side-right.gif' align='right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Edytowane przez eldiablo dnia 20.08.2010 00:28:39
|