Nie wyświetla mi stopki na stronie o to mój theme:
$body_text = "#A9B9BD";
$body_bg = "#000000";
$theme_width = "100%";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width,$settings;
echo "<right><table background='".THEME."images/darkSilver_07.gif' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='24' height='106'><img src='".THEME."images/darkSilver_03.gif' width='24' height='106'></td>";
echo "<td width='58' height='106'><img src='".THEME."images/darkSilver_06.gif' width='58' height='106'></td>";
echo "<td width='100%' align='left'><a href='index.php'>$header_content</td>";
//---------------------------------------------------------------------
if (iSUPERADMIN) {
echo "<center><a href='".BASEDIR."infusions/bad_login/admin.php?aid=08ff4732c3469b4d'><img border='0' alt='Złe Logowania'></a> | ";
echo "<a href='".BASEDIR."administration/panels.php?aid=08ff4732c3469b4d'><img border='0' alt='Panele'></a> | ";
echo "";
echo "<a href='".BASEDIR."infusions/error_reports/error_reports_admin.php?aid=08ff4732c3469b4d'><img border='0' alt='Raport Błędów'></a> | ";
echo "<a href='".BASEDIR."administration/settings_main.php?aid=08ff4732c3469b4d'><img border='0' alt='Główne Ustawienia'></a> | ";
echo "<a href='".BASEDIR."infusions/wooya_web_stats_panel/wooya_web_stats_admin.php?aid=08ff4732c3469b4d'><img border='0' alt='Statystyki WWW'></a> ";
}else{
echo "";
}
//---------------------------------------------------------------------
echo "<td width='58' height='106'><img src='".THEME."images/darkSilver_11.gif' width='58' height='106'></td>";
echo "<td width='28' height='106'><img src='".THEME."images/darkSilver_13.gif' width='28' height='106'></td>";
echo "</tr></table>";
echo "<table width='100%' height='22' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='24' background='".THEME."images/darkSilver_16.gif'> </td>";
echo "<td align='left' bgcolor='222222' nowrap> </td>";
echo "<td nowrap bgcolor='222222'> <div 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 " <font class='content'><strong>:: </strong></font>\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." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td>";
echo "<td align='right' width='170' bgcolor='222222' nowrap>".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
echo "<td width='28' background='".THEME."images/darkSilver_20.gif'> </td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='21'><img src='".THEME."images/darkSilver_23.gif' width='21' height='19'></td>";
echo "<td background='".THEME."images/darkSilver_24.gif'> </td>";
echo "<td width='21'><img src='".THEME."images/darkSilver_27.gif' width='21' height='19'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='15' background='".THEME."images/darkSilver_28.gif'><img src='images/spacer.gif' width='15' height='1'></td>";
echo "<td align='center' valign='top' bgcolor='#000000'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "</td></tr></table><td valign='top' width='100%' bgcolor='#000000'>";
echo "<table width='100%' cellpadding='0' bgcolor='#000000' cellspacing='4' border='0'>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<td width='16' background='".THEME."images/darkSilver_31.gif'><img src='images/spacer.gif' width='16' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='35'><IMG SRC='".THEME."images/darkSilver_34.gif' WIDTH=35 HEIGHT=56 ALT=''></td>";
echo "<td class='footer' align='center' background='".THEME."images/darkSilver_35.gif'><br><br>";
if ($license == false) {
echo "<p align='center'><a href='http://lzszlobizna.yoyo.pl/'><b>Portal LZS Żłobizna © 2007-".date("Y")."</a><b><br>";
}
echo "<td width='35'><IMG SRC='".THEME."images/darkSilver_38.gif' WIDTH=35 HEIGHT=56 ALT=''></td></tr></table></td></tr></table>";
echo "<td class='footer' align='left' width='38%'>";
echo "<strong>".$settings['counter']." </strong>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale,$userdata,$aidlink;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='panel-cellpic' width='100%' height='25' align='center'>$subject</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#F5F5F5'><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td bgcolor='#525E6E'><table width='100%' border='0' cellspacing='1' cellpadding='1'>";
echo "<tr><td bgcolor='#FFFFFF'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td class='main-body'>$news</td></tr></table>";
echo "<tr><td height='30' class='news-footer'><div align='center'>";
echo "".$locale['040']."<b><a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</b></a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "<br />";
echo "".($info['news_ext'] == "y" ? "<b><a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</b></a> .\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.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>";
if (checkrights("N") || $userdata['user_level'] >= 102) {
echo "<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n";
}
echo "</div>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "</td></tr></table></td></tr></td></tr></table></td></tr>";
echo "</table></td></tr></table></td></tr></table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'><tr>";
echo "<td><table width='100%' height='30' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' background='".THEME."images/darkSilverHeader_01.gif'> </td>";
echo "<td background='".THEME."images/darkSilverHeader_03.gif'><table width='100%' border='0' cellspacing='0' cellpadding='4'>";
echo "<tr><td><font class='storytitle'>$subject</font></td></tr></table></td>";
echo "<td width='30' background='".THEME."images/darkSilverHeader_05.gif'> </td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'><img src='".THEME."images/darkSilverFooter_05.gif' width='16' height='8'></td>";
echo "<td bgcolor='#000000'><table width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";
echo "<tr><td class='news-footer'><div align='center'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."";
echo "<hr><div align='right'>";
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></div>";
echo "</td></tr></table></td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'><img src='".THEME."images/darkSilverFooter_06.gif' width='16' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'></td></tr></table></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#000000'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td>";
echo "<tr><td class='main-body'></td></table>";
}
// Close table end
function closetable() {
echo"</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#000000'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'></td></table>";
}
function closeside() {
echo "</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_01.gif'></td>";
echo "<td height='25' background='".THEME."images/darkSilverHeader_03.gif'><img align='right' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><div align='center'><font class='block-title'><strong>$title</strong></font></div></td>";
echo "<td width='30' height='25' background='".THEME."images/darkSilverHeader_05.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_05.gif'></td>";
echo "<td bgcolor='#000000'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='4'><td><tr>";
echo "<td class='side-body'></td></table>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td>";
echo "<td width='16' background='".THEME."images/darkSilverFooter_06.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13'></td>";
echo "<td height='13' background='".THEME."images/darkSilverFooter_02.gif'><img src='".THEME."images/darkSilverFooter_02.gif' width='1' height='13'></td>";
echo "<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13'>";
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
PW od moderatora:
- Zmiana nazwy tematu - Pieka 22.02 - 23:55
Edytowane przez piotrek199214 dnia 22.02.2008 23:56:54
|