Parašė kLx· 2007 Gru. 24 19:12:50
#1
Sveiki
Kaip man panaikint tą tarpą?
Theme.php:
<?php
/************************/
/* Settings/Nustatymai */
/************************/
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "988";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<tr><td><table align='center' width='988' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='988' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='888'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo"
<table width='1000' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td> </td>
<td width='1550'>";
echo'<table id="Table_01" width="988" height="301" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="8">
<img src="/nav/images/index_01.gif" width="988" height="54" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="/nav/images/index_02.gif" width="75" height="52" alt=""></td>
<td>
<img src="/nav/images/index_03.gif" width="89" height="20" alt=""></td>
<td colspan="4" rowspan="2">
<img src="/nav/images/index_04.gif" width="824" height="52" alt=""></td>
</tr>
<tr>
<td>
<img src="/nav/images/index_05.gif" width="89" height="32" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="4">
<img src="/nav/images/index_06.gif" width="71" height="97" alt=""></td>
<td colspan="3">
<img src="/nav/images/index_07.gif" width="99" height="21" alt=""></td>
<td colspan="3" rowspan="2">
<img src="/nav/images/index_08.gif" width="818" height="51" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="/nav/images/index_09.gif" width="99" height="30" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="/nav/images/index_10.gif" width="111" height="20" alt=""></td>
<td colspan="2" rowspan="2">
<img src="/nav/images/index_11.gif" width="806" height="46" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="/nav/images/index_12.gif" width="111" height="26" alt=""></td>
</tr>
<tr>
<td rowspan="4">
<img src="/nav/images/index_13.gif" width="68" height="97" alt=""></td>
<td colspan="6">
<img src="/nav/images/index_14.gif" width="116" height="26" alt=""></td>
<td rowspan="4">
<img src="/nav/images/index_15.gif" width="804" height="97" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="/nav/images/index_16.gif" width="116" height="29" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="/nav/images/index_17.png" width="116" height="21" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="/nav/images/index_18.gif" width="116" height="21" alt=""></td>
</tr>
<tr>
<td>
<img src="/nav/images/spacer.gif" width="68" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="3" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="4" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="89" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="12" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="/nav/images/spacer.gif" width="804" height="1" alt=""></td>
</tr>
</table>';
echo "</td>
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>
</td>";
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
echo "<td>\n";
echo " <a href='".BASEDIR."members.php'><span class='white'>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
echo ($i == 0 ? " " : "")."</td>";
echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "</td></tr></table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.jpg' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<td width='20%' height='218' class='white' align='left'>";
if ($license == false) {
echo "<b>Varikliukas <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b>Dizainas <a href='mailto:SimaXsX@gmail.com'>Badboy</a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='35' class='table-cellpic'><center>$subject</center></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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='35' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</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']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='35' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' 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']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='35' class='table-cellpic' align='left'>$title</td></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='35' class='panel-cellpic' align='center'>$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='35' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></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";
}
?>