Omg same tabele.
Zobacz to:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."/images/bullet.gif'></span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
//Header
echo "<div style='margin: 0px auto; width: 950px;'><table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/banner-left.png'></td>
<td align='center' class='banner' width='898px'><img src='".THEME."images/logo.png'></td>
<td align='right'><img src='".THEME."/images/banner-right.png'></td>
</tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='950px'>\n<tr>\n";
echo "<td class='sub-header-left'></td>\n";
echo "<td class='sub-header'>".showsublinks(" ", "white")."</td>\n";
echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
echo "<td class='sub-header-right'></td>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='950px' 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' width='950px'>\n<tr>\n";
echo "<td class='footer-left'></td>\n";
echo "<td align='left' class='footer'>Design and Coded by <a href='mailto:'>eWe</a><br />Theme by <a href='http://gfxpixel.info'>GFXpixel.info</a><br />".showcounter()."";
echo "<td align='right' class='footer'> ".stripslashes($settings['footer']);
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "<td class='footer-right'></td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\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'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</tr><tr>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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%'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</td>\n";
echo "</tr><tr>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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 class='scapmain-left'></td>\n";
echo "<td align='center' class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
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 class='border-right'><img src='".THEME."images/blank.gif' width='4' height='1' alt='' style='display:block'></td>";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></table></div>\n";
}
?>
PW od moderatora:
- Przeniesienie posta - Pieka 06.02.2013 19:54
Edytowane przez Pieka dnia 06.02.2013 19:53:30
|