Wiesz, bo ja zmieniałem dużo w międzyczasie i teraz zrobiłem ze tak jest:
<?
$body_text = "#777777";
$body_bg = "#202734";
$theme_width = "1024";
$theme_width_l = "190";
$theme_width_r = "190";
function render_header($header_content) {
global $theme_width,$settings;
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<img src='".THEME."images/1.gif' WIDTH='100%' align='center' HEIGHT=3><table width='$theme_width' cellspacing='0' cellpadding='0' align='center' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table background='".THEME."images/new3.gif' width='100%' height='300' border='0' cellspacing='0' cellpadding='0'><tr>";
// Ëîãî - images/banner.gif è áàíåð (êîä áàíåðà â ôàéëå /themes/Black_Tomato/banners.php)
echo "<td width='1' align='center' height='1'>
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH='100%'><TD><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'></TD>
<iframe src='".THEME."banners.php' marginwidth=0 marginheight=0 vspace=0 hspace=0 width=0 height=0 scrolling=no frameborder=0></iframe></TD></TABLE>";
echo "<td align='right' class='nav-header'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>
<table width='100%'>
<tr><td width='100%'>
<img src='images/e.gif' align='left' width='148'/>
<script type='text/javascript'><!--
google_ad_client = 'pub-5419588972333727';
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = '728x90_as';
google_ad_type = 'text';
//2007-09-26: djravenplphp1
google_ad_channel = '9584820503';
google_color_border = '000000';
google_color_bg = '000000';
google_color_link = 'CC0000';
google_color_text = '000000';
google_color_url = '000000';
//-->
</script>
<img src='images/e.gif' align='right' width='148'/>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
</tr>
</table>";
echo "<table width='1034' border='0' cellspacing='0' align='center' cellpadding='0'><tr>";
echo "<td><table width='1034' height='28' border='0' align='center' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> "; } 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='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<table width='1034 cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='1034' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='1034' cellpadding='4' bgcolor='#222222' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
echo "<tr><td class='footer' valign='middle' width='41%'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>php-Fusion</a> v".$settings['version']." © 2003-2007";
}
echo "</td>";
echo "<td class='footer' width='31%'>";
echo "Design by: <a target='_blank' href='http://netck.ru'>cK </a> speciall for Dj R@VeN - Official Website</td>";
echo "<td class='footer' width='15%'>";
echo "Wszelkie prawa zastrzeżone</td>";
echo "<td class='footer' align='right' width='35%'><b>".$settings['counter']."</b> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></center></table></table></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='index.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='index.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #404050'>";
echo "<tr><td background='".THEME."images/cellpic2.gif' align='center' bgcolor='#202734' height='24'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' align='center' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img border='0' src='".THEME."images/small_arrow.gif' align='center' hspace='3'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#404050' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#404050' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='2'></td></tr></table>\n";
}
?>
Edytowane przez pawelx1988 dnia 06.10.2007 13:28:38
|