Parašė nwk· 2010 Sau. 13 14:01:03
#5
Aciu, perkeliau viska i viena puse, bet vistiek yra problema, stai:
IMG:
http://www.nwk.lt/images/temablo...
headeris per viduri i visa kita i sona nueina, ir dar ten kur naujausios forumo temos, ten jos nenaujausios ir kaip ju skaiciu galima sumazint kad tilptu ?
Stai themes.php
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#313234";
$theme_width = "880";
$theme_width_l = "210";
$theme_width_r = "210";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo "<body background=\"".THEME."images/bg.jpg\" text=\"white\">
<script type='text/javascript' src='".INFUSIONS."info_panel/javascript/gpe.js'></script>
<script type='text/javascript' src='".THEME."grade.js'></script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>
<taašr><td>
<center>
<table id='Tabela_01' border='0' cellpadding='0' cellspacing='0' width='880' >
<tr>
<td colspan='10'>
<img id='lay1_01' src='".THEME."images/lay1_01.gif' width='880' height='20' alt='' /></td>
</tr>
<tr>
<center><td colspan='10' background='".THEME."images/lay1_02.gif' width='880' height='39' style=\"border: 0; padding-top: 10; padding-left: 70; padding-right: 0; padding-bottom: 10;\">
</center>
</td>
</tr>
<tr>
<td colspan='20'>
<center><img src='".THEME."images/lay1_03.gif' width='880' height='178' alt='' style=\"border: 1; padding-top: 0; padding-left: 7; padding-right: 0; padding-bottom: 0;\"></td></center>
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_04.gif' width='427' height='170' style=\"border: 0; padding-top: 20; padding-left: 70; padding-right: 0; padding-bottom: 10;\" >";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img padding-left: 70; src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' hight='100' alt='".$data['user_name']."'></td>";
echo "</table></center>";
} else {
echo"<taašr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' >Redaguoti prifilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='userinfo'>Žinutės [naujų: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='userinfo'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' >Narių sarašas</a><br><br>\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td></td></tr></table>";
echo "\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<b><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' >Administracija</a></b><br>\n";
}{echo "\n";
echo"<center><div style=\"text-align: left\"><br><input type='button' class='button' value='Atsijungti' onClick=\"window.self.open('".BASEDIR."setuser.php?logout=yes','_self')\"></div></center>\n";
if ($msg_count) echo "<center><b><a href='".BASEDIR."user/pw.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='pass' value='vardas' onBlur=\"if(this.value=='') this.value='vardas';\" onFocus=\"if(this.value=='vardas') this.value='';\" style=\"padding-top: 4px; border: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
<input type='password' name='user_pass' class='pass' value='slaptažodis' onBlur=\"if(this.value=='') this.value='slaptažodis';\" onFocus=\"if(this.value=='slaptažodis') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='' class='inne'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "Dar ne narys ? <a href='".BASEDIR."register.php' >Užsiragistruok</a><br>\n";
}
echo "Užmiršai slaptažodi ? <a href='".BASEDIR."lostpassword.php' >Prisimink!</a>
</div>\n";
}
closesidel();
echo "</center></td>
<td colspan='3' background='".THEME."images/lay1_05.gif' width='248' height='170' style=\"border: 0; padding-top: 30; padding-left: 10; padding-right: 10; padding-bottom: 10;\">";
$result=dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,8");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<font color='#CCCCCC'><b>Prisijungęs</b></font>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>Atsijungęs</b></font>";
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="$iW $Text";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="$iD $Text";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>";
echo "<span style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span></b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}
echo"<table align=\"down\" ><tr><td>";
echo "</td></tr></table></td>
<td background='".THEME."images/lay1_06.gif' width='340' height='170' style=\"border: 0; padding-top: 30; padding-left: 10; padding-right: 60; padding-bottom: 10;\">";
$result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE thread_sticky='0' ORDER by thread_views DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_id'], 23);
$itemdescription = trimlink($data['thread_subject'], 23);
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tbody><tr><td class=\"small\" align=\"left\" width=\"75%\"><img src=\"".THEME."forum/folder.gif\" height=\"11\"> <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."'>".$data['thread_subject']."
</a></td>
<td align=\"right\" width=\"25%\">[ ".$data['thread_views']." ]</td></tr></tbody></table>\n";
}
}
echo"</td></tr>
<tr>
<td colspan='10'>
<img id='lay1_07' src='".THEME."images/lay1_07.gif' width='1000' height='32' alt='' /></td>
</tr>
<tr>
<td>
<img src='".THEME."images/odstep.gif' width='103' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='95' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='106' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='46' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='49' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='28' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='61' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='54' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='133' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='325' height='1' alt='' /></td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0' align='center'>
<tr><td>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo"
</td></tr>
</table>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >
<tr>
<td colspan='10'>
<img id='lay1_22' src='".THEME."images/lay1_22.gif' width='1000' height='24' alt='' /></td>
</tr>
<tr>
<td>
<img id='lay1_23' src='".THEME."images/lay1_23.gif' width='103' height='17' alt='' /></td>
<td>
<a href='http://extreme-fusion.pl'><img id='lay1_24' border=\"0\" src='".THEME."images/lay1_24.gif' width='95' height='17' alt='' /></a></td>
<td>
<img id='lay1_25' border=\"0\" src='".THEME."images/lay1_25.gif' width='106' height='17' alt='' /></td>
<td colspan='2'>
<a href='http://egrafix.yoyo.pl/'><img id='lay1_26' border=\"0\" src='".THEME."images/lay1_26.gif' width='95' height='17' alt='' /></a></td>
<td colspan='2'>
<img id='lay1_27' src='".THEME."images/lay1_27.gif' width='89' height='17' alt='' /></td>
<td>
<img id='lay1_28' src='".THEME."images/lay1_28.gif' width='54' height='17' alt='' /></td>
<td colspan='2'>
<img id='lay1_29' src='".THEME."images/lay1_29.gif' width='458' height='17' alt='' /></td>
</tr>
<tr>
<td colspan='10'>
<img id='lay1_30' src='".THEME."images/lay1_30.gif' width='1000' height='17' alt='' /></td>
</tr>
<tr>
<td>
<img src='".THEME."images/odstep.gif' width='103' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='95' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='106' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='46' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='49' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='28' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='61' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='54' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='133' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstep.gif' width='325' height='1' alt='' /></td>
</tr>
</table>
</td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo " <table border=\"0\" width='650' cellspacing=\"0\" cellpadding=\"0\" >
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_16.gif' width='650' height='39' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">:: $subject</td>
</tr>
<tr>
<td background='".THEME."images/lay1_11.gif' width='650' height='9' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">$news</td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_11.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_20a.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_11.gif' style=\"border: 0; padding-top: 0; padding-left: 60; padding-right: 95; padding-bottom: 10;\" align='right' >
<font color='#949494'><center>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'><span style='color:#".$info['user_color']."'>".$info['user_prefix'].$info['user_name']."</span></a><br>
".$locale['041'].showdate("longdate", $info['news_date'])." <br>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."</font>
</td>
</td>
</tr>
<tr>
<td colspan='6'>
<img id='lay1_14' src='".THEME."images/lay1_14.gif' width='650' height='7' alt='' /></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr>
<td colspan='6' background='".THEME."images/lay1_16.gif' width='650' height='39' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">:: $subject</td>
</tr>
<tr>
<td background='".THEME."images/lay1_11.gif' width='650' height='9' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">$article</td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_11.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_20a.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_11.gif' style=\"border: 0; padding-top: 0; padding-left: 60; padding-right: 95; padding-bottom: 10;\" align='right' >
<font color='#949494'><center>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br>
".$locale['041'].showdate("longdate", $info['article_date'])."<br>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<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>
</td>
</tr>
<tr>
<td><img src='".THEME."images/lay1_14.gif' border=\"0\" width='650' height='7' /></td>
</tr>
</table>
\n";
}
function opentable($title) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width='650' >
<tr>
<td background='".THEME."images/lay1_16.gif' width='650' height='39' colspan='6' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">$title</td>
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_11.gif' width='650' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">\n";
}
function closetable() {
echo "</tr>
<tr>
<td><img src='".THEME."images/lay1_14.gif' border=\"0\" width='650' height='7' /></td>
</td>
</tr>
<tr>
</table>\n";
}
function openside($title) {
echo " <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"350\">
<tr>
<tr>
<td background='".THEME."images/lay1_08.gif' width=\"350\" height='39' colspan='4' style=\"border: 0; padding-top:9; padding-left: 90; padding-right: 10; padding-bottom: 10;\" > :: $title</td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_10.gif' width=\"350\" style=\"border: 0; padding-top: 10; padding-left: 75; padding-right: 15; padding-bottom: 10;\">
";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td><img src='".THEME."images/lay1_13.gif' border=\"0\" height=\"7\" width=\"350\" /></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?>
Redagavo nwk· 2010 Sau. 13 14:01:34