Bet man taip yra ant visu temu .
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$db_prefix;
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0;
while ($data = dbarray($result)) {
$guests++;
}
echo "
<table bgcolor='#1a1a1a' align='center' width='965' cellspacing='0' cellpadding='0'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0'><tr><td width='100%'>
<table width='965' height='54' border='0' cellpadding='0' cellspacing='0'>
<tr><td>
<table align='center' width='100%' cellspacing='0' cellpadding='0' ><tr><td width='100%'>
<table width='966' height='54' border='0' cellpadding='0' cellspacing='0' >
<tr>
<td rowspan='5'><img src='".THEME."images/sub_01.png' width='101' height='54' alt=''></td>
<td rowspan='5'><img src='".THEME."images/sub_02.png' width='57' height='54' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_03.png' width='14' height='18' alt=''></td>
<td rowspan='5'><img src='".THEME."images/sub_04.png' width='48' height='54' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_05.png' width='16' height='18' alt=''></td>
<td rowspan='5'><img src='".THEME."images/sub_06.png' width='44' height='54' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_07.png' width='22' height='18' alt=''></td>
<td rowspan='5'><img src='".THEME."images/sub_08.png' width='79' height='54' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_09.png' width='13' height='18' alt=''></td>
<td rowspan='5'><img src='".THEME."images/sub_10.png' width='292' height='54' alt=''></td>";
if(!iMEMBER){ echo "
<form name='loginform' method='post' action='".FUSION_SELF."'>
<td rowspan='5' background='".THEME."images/sub_11.png' width='221' height='54' valign='middle'><input type='text' name='user_name' class='textboxas' style='width:108px;height: 19px;' value=''> <input type='password' name='user_pass' class='textboxas' style='width:108px;height: 19px;' value=''><br><a href='register.php' class='head'>registracija</a> <a href='lostpassword.php' class='head'>slaptažodis</a></td>
<td>
<img src='".THEME."images/sub_12.png' width='38' height='8' alt=''></td>
<td rowspan='5'>
<img src='".THEME."images/sub_13.png' width='20' height='54' alt=''></td>
<td><img src='".THEME."images/spacer.gif' width='1' height='8' alt=''></td>
</tr><tr><td rowspan='3'>
<input name='login' value='Prisijungti' type='image' src='".THEME."images/sub_14.png' width='38' height='29' border='0'></td></form>"; }
else {
echo"
<td rowspan='5' background='".THEME."images/sub_11.png' width='221' height='54' valign='middle'><img src='".THEME."images/bullet.gif' alt=''> <a href='edit_profile.php' class='head'>Aprašymas</a>
<img src='".THEME."images/bullet.gif' alt=''> <a href='messages.php' class='head'>Žinutės</a>
<img src='".THEME."images/bullet.gif' alt=''> <a href='members.php' class='head'>Nariai</a></td>
<td>
<img src='".THEME."images/sub_12.png' width='38' height='8' alt=''></td>
<td rowspan='5'>
<img src='".THEME."images/sub_13.png' width='20' height='54' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='8' alt=''></td>
</tr>
<tr>
<td rowspan='3'><a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/me.png' width='38' height='29' alt='' border='0' value='Atsijungti'></a></td>";
}
echo"<td><img src='".THEME."images/spacer.gif' width='1' height='10' alt=''></td>
</tr><tr>
<td background='".THEME."images/sub_15.png' width='14' height='10' valign='middle' style='font-size:8px; font-family:Arial; color:#9eaebe;'>".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."</td>
<td background='".THEME."images/sub_16.png' width='16' height='10' valign='middle' style='font-size:8px; font-family:Arial; color:#9eaebe;'>".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."</td>
<td background='".THEME."images/sub_17.png' width='22' height='10' valign='middle' style='font-size:8px; font-family:Arial; color:#9eaebe;'>".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</td>
<td background='".THEME."images/sub_18.png' width='13' height='10' valign='middle' style='font-size:8px; font-family:Arial; color:#9eaebe;'>".$guests."</td>
<td><img src='".THEME."images/spacer.gif' width='1' height='10' alt=''></td>
</tr> <tr>
<td rowspan='2'><img src='".THEME."images/sub_19.png' width='14' height='26' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_20.png' width='16' height='26' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_21.png' width='22' height='26' alt=''></td>
<td rowspan='2'><img src='".THEME."images/sub_22.png' width='13' height='26' alt=''></td>
<td><img src='".THEME."images/spacer.gif' width='1' height='9' alt=''></td></tr>
<tr><td><img src='".THEME."images/sub_23.png' width='38' height='17' alt=''></td>
<td><img src='".THEME."images/spacer.gif' width='1' height='17' alt=''></td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='120' background='".THEME."images/header.png' align='right' valign='middle'>
<table width='515' border='0' cellspacing='0' cellpadding='0'>
<tr><td><a href='".BASEDIR."viewpage.php?page_id=5' target='_blank'><img src='".THEME."images/banner.png' alt='' border='0'></a></td></tr>
</table>
</td></tr>
</table>
<table width='965' height='30' border='0' cellpadding='0' cellspacing='0' border='1'>
<tr><td><a href='index.php'><img src='".THEME."images/subh_01.png' width='86' height='30' alt='' border='0'></a></td>
<td><a href='pramogos.php'><img src='".THEME."images/subh_02.png' width='96' height='30' alt='' border='0'></a></td>
<td><a href='downloads.php'><img src='".THEME."images/subh_03.png' width='81' height='30' alt='' border='0'></a></td>
<td><a href='articles.php'><img src='".THEME."images/subh_04.png' width='95' height='30' alt='' border='0'></a></td>
<td><a href='search.php'><img src='".THEME."images/subh_05.png' width='71' height='30' alt='' border='0'></a></td>
<td><a href='forum/index.php'><img src='".THEME."images/subh_06.png' width='73' height='30' alt='' border='0'></a></td>
<td><a href='gfx.php'><img src='".THEME."images/subh_07.png' width='47' height='30' alt='' border='0'></a></td>
<td><a href='articles.php?cat_id=4'><img src='".THEME."images/subh_08.png' width='77' height='30' alt='' border='0'></a></td>
<td><a href='video.php'><img src='".THEME."images/subh_09.png' width='60' height='30' alt='' border='0'></a></td>
<td><a href='serveriai/'><img src='".THEME."images/subh_10.png' width='84' height='30' alt='' border='0'></a></td>
<td><a href='http://kvk.xz.lt/forum/viewthread.php?forum_id=3&thread_id=46'><img src='".THEME."images/subh_11.png' width='80' height='30' alt='' border='0'></a></td>
<td><a href='kita.php'><img src='".THEME."images/subh_12.png' width='44' height='30' alt='' border='0'></a></td>
<td><a href='klanas.php'><img src='".THEME."images/subh_13.png' width='71' height='30' alt='' border='0'></a></td>
</tr>
</table>
</td></tr><table>
</td></tr><tr><tr>
<table width='100%'><tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr></table>
</td>
</tr>
<tr>
<td>
<table cellSpacing='0' cellPadding='0' height='29' width='100%' border='0' background='".THEME."images/footer.png'><tr><td height='29' align='left' style='font-family:Arial;
font-size: 11px;
color: #ffffff;
padding:0px 0px 0px 27px;'>© 2008 - Web dizainas: <a href='http://kvk.xz.lt.lt/'>kvk.xz.lt</a></td></tr></table>
<table cellSpacing='0' cellPadding='0' height='32' width='100%' border='0' background='".THEME."images/atspindys.png'><tr><td></td></tr></table>
</td></tr></table>
</td></tr></table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='563' height='50' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td colspan='4'>
<img src='".THEME."images/panelen_01.png' width='562' height='11' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='11' alt=''></td>
</tr>
<tr>
<td rowspan='4'>
<img src='".THEME."images/panelen_02.png' width='11' height='39' alt=''></td>
<td rowspan='2' background='".THEME."images/panelen_03.png' width='424' height='16'><span style='font-family:Arial;
font-weight: bold;
font-size: 12px;
color: #ffffff;'><a name='news_10' id='news_10'></a>$subject</span> <a href='news.php?readmore=".$info['news_id']."' class='new'>skaityti daugiau</a></td>
<td>
<img src='".THEME."images/panelen_04.png' width='101' height='3' alt=''></td>
<td rowspan='3'>
<img src='".THEME."images/panelen_05.png' width='26' height='31' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='3' alt=''></td>
</tr>
<tr>
<td rowspan='2' background='".THEME."images/panelen_06.png' width='101' height='28'><span style='font-family:Arial;
font-size: 11px;
color: #545454;'>Parašė:</span> <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br><span style='font-family:Arial;
font-size: 11px;
color: #545454;'>Data:</span> <a>".showdate("%y.%m.%d",$info['news_date'])."</a></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='13' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/panelen_07.png' width='424' height='23' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='15' alt=''></td>
</tr>
<tr>
<td colspan='2'>
<img src='".THEME."images/panelen_08.png' width='127' height='8' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='8' alt=''></td>
</tr>
</taašable align='center' width='563' cellpadding='0' cellspacing='0'><tr><td class='main-body'>$news</td></tr></taašable width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>
";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table border='0' width='562' cellpadding='0' cellspacing='0' align='center'><tr><td width='562' align='center'>
<table height='38' width='562' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td background='".THEME."images/panel_01.png' width='553' height='38' valign='middle' style='font-family:Arial;
font-weight: bold;
font-size: 11px;
color: #ffffff;
padding:0px 0px 0px 9px;'>$title</td>
<td>
<img src='".THEME."images/panel_02.png' height='38' alt=''></td>
<td>
<img src='".THEME."images/panel_03.png' width='6' height='38' alt=''></td>
</tr>
</table>
</td></tr><tr><td class='main-bodis' width='100%'>\n";
}
function closetable() {
echo "</td></tr></taašable width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
function openside($title) {
echo "
<table border='0' cellpadding='0' cellspacing='0' align='center'><tr><td><table width='179' height='35' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>
<img src='".THEME."images/panele_01.png' width='179' height='12' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/panele_02.png' height='15' alt=''></td>
<td background='".THEME."images/panele_03.png' width='171' height='15' valign='top' style='font-family:Arial;
font-size: 11px;
color: #4285b2;
align: left;'>$title</td>
</tr>
<tr>
<td colspan='2'>
<img src='".THEME."images/panele_04.png' width='179' height='8' alt=''></td>
</tr>
</table></td></tr><tr><td class='side-body' width='100%'>\n";
}
function closeside() {
echo "</td></tr></taašable width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
|