Parašė Jaunelis· 2011 Rugp. 25 22:08:55
#4
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;
echo "<table border='0' cellpadding='0' cellspacing='0' width='950' align='center'>
<tr>
<td width='100%'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<td width='50%'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='345' height='150' colspan='5'><img border='0' src='".THEME."images/header.jpg' width='345' height='150'></td>
</tr>
<tr>
<td width='345' height='100' align='left' background='".THEME."images/header2.jpg'>";
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (iMEMBER) {
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table border='0' cellspacing='0' cellpadding='0' align=\"left\" style=\"padding-left: 60px;\"><tr><td>\n";
if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' height='70' style='border:0px solid #343434'>\n";
} else {
echo "<img src='".THEME."images/noav.gif' width='70' height='70' border='0'>\n";
}
echo"</td></tr></table>";
echo "<span style='padding-left:10px; color:#cc4500;'><a href='".BASEDIR."edit_profile.php' class='logtext'>Redaguoti profilį</a></span><br>
<span style='padding-left:10px;'><a href='".BASEDIR."messages.php' class='logtext'>Žinutės (naujų: ".sprintf($msg_count).")</a></span><br>
<span style='padding-left:10px;'><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='logtext'>Mano profilis</a></span><br>
<span style='padding-left:10px;'><a href='".BASEDIR."members.php' class='logtext'>Narių sarašas</a></span><br>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<span style='padding-left:10px;'><a href='".ADMIN."index.php".$aidlink."' class='logtext'>".$locale['global_123']."</a></span><br />\n";
}
echo "<span style='padding-left:10px;'><a href='".BASEDIR."setuser.php?logout=yes' class='logtext'>".$locale['global_124']."</a></span>\n";
} else {
echo "<br><div align='left' width='250' style='padding-left: 60px;'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<table width='250' border='0' cellpadding='3' cellspacing='1'>
<tr>
<td width='164' align='left' height='23'>
<input type='text' name='user_name' class='id' value='vardas' onBlur=\"if(this.value=='') this.value='vardas';\" onFocus=\"if(this.value=='vardas') this.value='';\" >
</td>
<td rowspan='2' width='66' align='left' height='51'>
<input type='submit' name='login' value='' class='inne'>
</td>
</tr>
<tr>
<td width='164' align='left' height='23'>
<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='';\" >
</td>
</tr>
</table>
</form>\n";
echo "<img src='".THEME."images/bg_l.png' alt=''><br>
<a href='".BASEDIR."register.php' ><span style='padding-left: 10px; font-family: Tahoma; font-weight: bold; font-size: 11px; color:#ffcfa8;'> Registracija | </a></span>
<a href='".BASEDIR."lostpassword.php' ><span style='font-family: Tahoma; font-weight: bold; font-size: 11px; color:#ffcfa8;'>prisimink slaptažodi!</a></span>\n";
echo "</div>\n";
}
echo "</td>
</tr>
</table>";
echo "</td>
<td width='50%'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='50%'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='227' height='30'><img border='0' src='".THEME."images/header3.jpg' width='227' height='30'></td>
<td width='215' height='30'><img border='0' src='".THEME."images/header9.jpg' width='215' height='30'></td>
</tr>
<tr>
<td width='227' height='160' background='".THEME."images/header4.jpg'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_submit = '0' ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='210' align='left' cellpadding='0' cellspacing='0' style='padding-left: 50px;'>";
while($data = dbarray($result)) {
echo "<tr>
<td class='downloads'>
<img src='".THEME."images/bullet.gif'>
$itemsubject = trimlink($data['download_title'], 35);
echo "<tr>\n<td class='tbl' align='left'><img src='".THEME."images/bullet.gif' alt='image' /><span> </span><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."'title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n";
echo"<td align='right' class='small'>[".date("d.m.Y", $data['download_datestamp'])."]</td>";
echo "</tr>\n";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>Nera siuntiniu</div>\n";
}
echo "</td>
<td width='215' height='160' background='".THEME."images/header8.jpg'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='160' align='left' cellpadding='0' cellspacing='0' style='padding-left: 0px;'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='downloads'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject"</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>Nera siuntiniu</div>\n";
}
echo "</td>
</tr>
<tr>
<td width='227' height='60' align='right' style='padding-right: 10px;' background='".THEME."images/header5.jpg'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/pateikti_albuma.png' width='153' hight='23' title='' alt=''></a >\n";
echo "</td>
<td width='215' height='60' background='".THEME."images/header10.jpg'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/pateikti_albuma.png' width='153' hight='23' title='' alt=''></a >\n";
echo "</td>
</tr>
</table>";
echo "</td>
<td width='50%'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='163' height='250'>
<img border='0' src='".THEME."images/header6.jpg' width='163' height='250'></td>
</tr>
<tr>
</table>";
echo"</td></tr></table></td></tr></table></td></tr></table></td></tr></table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>
<td><img src='".THEME."images/header7.jpg' width='950' height='14' border='0' alt=''></a></td>
</tr><tr>";
echo "</td></tr></table>";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>
<td><img src='".THEME."images/navigacija/00.jpg' width='33' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/01.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."muzika.php'><img src='".THEME."images/navigacija/02.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."topai.php'><img src='".THEME."images/navigacija/03.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".FORUM."index.php'><img src='".THEME."images/navigacija/04.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."renginiai.php'><img src='".THEME."images/navigacija/05.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."reklama.php'><img src='".THEME."images/navigacija/06.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."pagalba.php'><img src='".THEME."images/navigacija/07.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><a href='".BASEDIR."contact.php'><img src='".THEME."images/navigacija/08.jpg' width='110' height='36' border='0' alt=''></a></td>
<td><img src='".THEME."images/navigacija/09.jpg' width='37' height='36' border='0' alt=''></a></td>
</tr><tr>";
echo "</td></tr></table>";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>
<td><img src='".THEME."images/header11.jpg' width='950' height='10' border='0' alt=''></a></td>
</tr><tr>";
echo "</td></tr></table>";
echo "<table cellpadding='0' cellspacing='0' width='950' align='center' class='content'><tr>\n";
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (LEFT) { echo "<td class='side-border-left' valign='top' width='359'>".LEFT."</td>"; }
if (RIGHT) { echo "<td class='side-border-right' valign='top' width='359'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
echo "<table width='950' height='85' border='0' cellpadding='0' cellspacing='0' align='center' class='footer'>
<tr>
<td align='left'>
<span style='padding-left:40px; font-family: Tahoma; font-size: 11px;'> Svetainės admin skype: <a href='skype:vardas?chat'>Vardas</a></span><br>
<span style='padding-left:40px; font-family: Tahoma; font-size: 11px;'> Visos teisės saugomos: <a href='http://www.vardas.lt/' target='_blank'>www.vardas.lt</a></span>
</td>
<td align='center'>
</td>
<td align='right'>
<span style='padding-right:75px; font-family: Tahoma; font-size: 11px;'> Dizaino įdėja: <a href='skypeakinanti šypsenecolor.?chat'>decolor. </a></span><br>
<span style='padding-right:75px; font-family: Tahoma; font-size: 11px;'> Studijos svetainė: <a href='http://www.decolor.lt/' target='_blank'>www.decolor.lt </a></span>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main3'><div class='panel-title-main'>$subject</div></td>";
echo "<td><div class='panel-news'><div class='placiau'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti daugiau</a></div></div></td>";
echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><div style='margin-top:5px'></div>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main3'><div class='panel-title-main'>$subject</div></td>";
echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><br>";
echo "<td class='infobar2'>".articleposter($info," ·")."</td>";
echo "<td align='right' class='infobar2'>";
echo articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><div style='margin-top:5px'></div>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left2'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main2'><div class='panel-title-table'>$title</div></td>";
echo "<td class='panel-right2'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='table-body'><br>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain2'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><div style='margin-top:5px'></div>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='10' height='45' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'><div class='panel-title-side'>$title</div></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='10' height='45' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='side-body'><br>\n";
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><div style='margin-top:5px'></div>\n";
}
?>
Megink balvone :D