Oto mój plik theme.php
<?php
$body_text = "#000000";
$body_bg = "#EFEFEF";
$theme_width = "100%";
$theme_width_l = "180";
$theme_width_r = "180";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width=\"98%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"170\" height=\"247\" background=\"".THEME."images/hl.jpg\"></td>
<td class='back_repeat'><img src='".THEME."images/mm.gif' width='1' height='247' alt=''></td>
<td width=\"486\" height=\"247\" valign=\"middle\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"486\" height=\"247\">
<param name=\"movie\" value=\"".THEME."images/logo.jpg\">
<param name=\"quality\" value=\"high\">
<embed src=\"".THEME."images/logo.jpg\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"486\" height=\"247\"></embed>
</object></td>
<td class='back_repeat'><img src='".THEME."images/mm.jpg' width='1' height='247' alt=''></td>
<td width=\"170\" height=\"247\" background=\"".THEME."images/hr.jpg\"></td>
</tr>
</table>\n";
echo " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"19\" height=\"2\" background=\"".THEME."images/left.jpg\" class='cb_left'></td>
<td align='center'>";
$result = dbquery("SELECT * FROM ".DB_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 " <img src='".THEME."images/bullet.gif'>\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 class='white' href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo "</td>
<td width=\"19\" height=\"2\" background=\"".THEME."images/right.jpg\" class='cb_right'></td>
</tr>
</table>\n";
echo " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"20\" background=\"".THEME."images/left.jpg\"> </td>
<td bgcolor=\"#18222E\">\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "<td width=\"20\" background=\"".THEME."images/right.jpg\"></td>
</tr>
</table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"322\" height=\"193\" background=\"".THEME."images/fl.jpg\"><br><br><div align='center'>";
if ($license == false) {
}
echo "</div></td>
<td background=\"".THEME."images/fm.jpg\"><div align='center'><br><br><br>".stripslashes($settings['footer'])."<br>Powered by: PHP-Fusion v".$settings['version']."<br>Theme DX-Cortex by: <a href='http://daemonx.byethost14.com' target='_blank'>Daemon-X</a><br>Theme Graphics from <a href='http://phpnuke.org'>PHP-Nuke</a> Cortex Theme<br><br>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']." " : $locale['141'])."</div></td>
<td width=\"321\" height=\"193\" background='".THEME."images/fr.jpg'><br><br><div align='center'>";
if ($license == false) {
echo "<a target=_top href=\"http://stat.4u.pl/?megamuza17\"><img src=\"http://adstat.4u.pl/s4u.gif\" border=\"0\"></a>
<script language=\"javascript\">
<!--
function s4upl() { return \"&r=er\";}
//-->
</script>
<script type=\"text/javascript\" src=\"http://adstat.4u.pl/s.js?megamuza17\"></script>
<script type=\"text/javascript\">
<!--
s4uext=s4upl();
document.write('<img src=\"http://stat.4u.pl/cgi-bin/s.cgi?i=megamuza17'+s4uext+'\" width=1 height1>')
//-->
</script>
<noscript><img src=\"http://stat.4u.pl/cgi-bin/s.cgi?i=megamuza17&r=ns\" width=\"1\" height=\"1\"></noscript>";
}
echo "</div></td>
</tr>
</table><br>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td width=\"28\" height=\"28\" background=\"".THEME."images/ttl.jpg\"></td>";
echo "<td background=\"".THEME."images/tt.jpg\"></td>";
echo "<td width=\"28\" height=\"28\" background=\"".THEME."images/ttr.jpg\"></td> ";
echo "</tr><tr>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tl.jpg\" class='cb_left'></td>
<td>$subject<hr></td>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\" class='cb_right'></td>
</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td width=\"19\" height=\"2\" background=\"".THEME."images/tl.jpg\" class='cb_left'></td>";
echo "<td class='infobar'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<hr><div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>";
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 align='right'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
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 width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\" class='cb_right'>";
echo "</td></tr><tr>";
echo "<td width=\"27\" height=\"28\" background=\"".THEME."images/tbl.jpg\"></td>";
echo "<td class='p_back_repeat'><img src='".THEME."images/tb.jpg' width='1' height='28' alt=''></td>";
echo "<td width=\"27\" height=\"28\" background=\"".THEME."images/tbr.jpg\"></td>";
echo "</tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td width=\"28\" height=\"28\" background=\"".THEME."images/ttl.jpg\"></td>";
echo "<td background=\"".THEME."images/tt.jpg\"></td>";
echo "<td width=\"28\" height=\"28\" background=\"".THEME."images/ttr.jpg\"></td> ";
echo "</tr><tr>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tl.jpg\" class='cb_left'></td>
<td>$subject<hr></td>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\" class='cb_right'></td>
</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td width=\"19\" height=\"2\" background=\"".THEME."images/tl.jpg\" class='cb_left'></td>";
echo "<td class='infobar'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
echo "<hr><div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>";
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 align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b> ";
echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
echo "<a href='print.php?type=A&item_id=".$info['article_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 width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\" class='cb_right'></td>";
echo "</tr><tr>";
echo "<td width=\"27\" height=\"28\" background=\"".THEME."images/tbl.jpg\"></td>";
echo "<td class='p_back_repeat'><img src='".THEME."images/tb.jpg' width='1' height='28' alt=''></td>";
echo "<td width=\"27\" height=\"28\" background=\"".THEME."images/tbr.jpg\"></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"28\" height=\"28\" background=\"".THEME."images/ttl.jpg\"></td>
<td background=\"".THEME."images/tt.jpg\"></td>
<td width=\"28\" height=\"28\" background=\"".THEME."images/ttr.jpg\"></td>
</tr>
<tr>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tl.jpg\" class='cb_left'></td>
<td align='center' style='text-transform: uppercase'>$title</td>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\" class='cb_right'></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"19\" background=\"".THEME."images/tl.jpg\"></td>
<td><br>\n";
}
function closetable() {
echo "</td>
<td width=\"19\" height=\"2\" background=\"".THEME."images/tr.jpg\"></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"27\" height=\"28\" background=\"".THEME."images/tbl.jpg\"></td>
<td class='p_back_repeat'><img src='".THEME."images/tb.jpg' width='1' height='28' alt=''></td>
<td width=\"27\" height=\"28\" background=\"".THEME."images/tbr.jpg\"></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"40\" height=\"65\" background=\"".THEME."images/stl.jpg\"></td>
<td background=\"".THEME."images/st.jpg\" valign='top' align='center' class='panel_header'>$title</td>
<td width=\"40\" height=\"65\" background=\"".THEME."images/str.jpg\"></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"21\" height=\"2\" background=\"".THEME."images/sl.jpg\"></td>
<td>\n";
}
function closeside() {
echo "</td>
<td width=\"21\" height=\"2\" background=\"".THEME."images/sr.jpg\"></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"30\" height=\"32\" background=\"".THEME."images/sbl.jpg\"></td>
<td class='t_back_repeat'><img src='".THEME."images/sb.jpg' width='2' height='32' alt=''></td>
<td width=\"30\" height=\"32\" background=\"".THEME."images/sbr.jpg\" class=''></td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"40\" height=\"65\" background=\"".THEME."images/stl.jpg\"></td>
<td background=\"".THEME."images/st.jpg\" valign='top' align='center' class='panel_header'>$title</td>
<td background=\"".THEME."images/st.jpg\"></td>
<td width=\"40\" height=\"65\" background=\"".THEME."images/str.jpg\" valign='top' align='left' style='padding-top: 18px'><img src='".THEME."images/ball_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"21\" height=\"2\" background=\"".THEME."images/sl.jpg\"></td>
<td class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">";
}
function closesidex() {
echo "</div>";
echo "</td>
<td width=\"21\" height=\"2\" background=\"".THEME."images/sr.jpg\"></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"30\" height=\"32\" background=\"".THEME."images/sbl.jpg\"></td>
<td class='t_back_repeat'><img src='".THEME."images/sb.jpg' width='2' height='32' alt=''></td>
<td width=\"30\" height=\"32\" background=\"".THEME."images/sbr.jpg\" class=''></td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='3'>";
echo "</td></tr></table>\n";
}
?>
Dla kodow uzywasz code, a nie quote (quote, to cytowanie)/Pieka
Powiedzcie mi jak to zrobić, będe bardzo wdzięczny.
Edytowane przez sebam dnia 06.04.2007 10:44:14
|