Parašė andriussx· 2010 Kov. 12 12:03:13
#1
Ar galitė man ištrinti iš theme.php ?
Šitus fignius... , Vartoto Zona, ir populariausi siuntiniai ir naujiausi siuntiniai... bučiau labai dėkingas. ;)
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#ede0be";
$theme_width = "755";
$theme_width_l = "190";
$theme_width_r = "190";
function render_header($header_content) {
global $theme_width,$userdata,$data,$db_prefix,$lookup,$msg_count,$aidlink,$locale,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<td><img src='".THEME."images/header.gif'>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' background='".THEME."images/header_2.gif' height='145'>
<tr>
<td style='padding-left: px; padding-top: px;'>";
//Naujausi siuntiniai
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='225' cellspacing='0' cellpadding='0' style='padding-top: 3px; padding-left:25px;'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 27);
echo "<tr><td class='small' align='left'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><span style='color: #fff;'><b>$itemsubject</b></span></a>
</td>
</tr>";
}
echo "</table>";
}
echo "</td><td width=0></td><td style='padding-top: 0px; padding-left: px;'>";
// Prisijungimo panele
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='300' align='center' border='0' cellspacing='0' cellpadding='0' style=' padding-left:35px;'><tr><td>";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' style='border:1px solid #999'></center>\n";
}
echo "</td>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'><span class='news-body'>Apraðymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'><span class='news-body'>Þinutës [naujø: <b>".sprintf($msg_count)."</b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'><span class='news-body'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'><span class='news-body'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'><span class='news-body'>".$locale['084']."</a>\n";"
</td>
</tr>
</table>";
echo "</table>";
} else {
echo "<table width='300' border='0' cellspacing='0' cellpadding='0' align='center' style='padding-top: 0px; padding-left: 82px;'>
<form name='loginform' method='post' action='".FUSION_SELF."' align='center'>
<tr><td><span style='color:#fff; center;'><b>VARTOTOJO ZONA</b></td></tr>
<tr><td style='padding-right: 40px; padding-top: 10px;'><a href=".BASEDIR."register.php><span style='color:#fff;'>Registruotis</span></a> |
<a href=".BASEDIR."lostpassword.php><span style='color:#fff;'>Slaptaþodis</span></a></td></tr>
<tr>
<td style='center; padding-top: 3px;'>
<input style='width:120px;height:15px;filter:alpha(opacity=70)'type='text' name='user_name' class='textbox-header' onBlur=\"if(this.value=='') this.value='Vartotojas';\" onFocus=\"if(this.value=='Vartotojas') this.value='';\"></td>
</tr>
<tr>
<td style='center; padding-top: 3px;'>
<input type='password' name='user_pass' class='textbox-header' value='Slaptazodis' style='width:120px;height:15px;filter:alpha(opacity=70)' onBlur=\"if(this.value=='') this.value='Slaptazodis';\" onFocus=\"if(this.value=='Slaptazodis') this.value='';\"></td>
</tr>
<tr>
<td style='center; padding-top: 3px;'><input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
echo"</table>";
}
echo "</td><td width=0></td><td style='padding-top: 0px; padding-right: 0px;'>";
//Populiariausi siuntiniai
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='225' cellpadding='0' cellspacing='0' style='padding-top: 3px; padding-left: 30px;'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 27);
echo "<tr><td class='small'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><span style='color: #fff;'><b>$itemsubject</b></span></a></td>\n
</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo"
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/search.gif' width='280' style='padding-left: 80px;'>
<form name='search' method='post' action='".BASEDIR."search.php?stype=d'>
<input type='textbox' value='' name='stext' class='textbox' style='width:110px'>
<input type='submit' name='search' value='Ieskoti' class='button'></form></td>
</td>
<td><a href='".BASEDIR."index.php'><img src='".THEME."links/namai.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."links/muzika.gif' border='0'></a></td>
<td><a href='".BASEDIR."albumai.php'><img src='".THEME."links/albumai.gif' border='0'></a></td>
<td><a href='".BASEDIR."top100.php'><img src='".THEME."links/top100.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."links/forumas.gif' border='0'></a></td>
<td><a href='".BASEDIR."klipai.php'><img src='".THEME."links/klipai.gif' border='0'></a></td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: -8px;'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type,$locale,$db_prefix;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/news-left.gif' width='15' height='50'></td>
<td background='".THEME."images/news-center.gif' height='50' class='news-center' style='padding-top: 10px;'>$subject<br><span style='padding-left: 20px;'>
<a href='news.php?readmore=".$info['news_id']."' class='small'>Skaityti plaèiau</a>
</td>
<td background='".THEME."images/news-right.gif' width='150' height='50'>
<center>
<span style='color:#fff; font-size: 13px; padding-left: 0px;'><font FACE='Tahoma'><b>".showdate("shortdate", $info['news_date'])." </span> <br>
<span style='color:#fff; font-size: 13px; padding-left: 0px;'><font FACE='Tahoma'><b>Paraðë: <a href='profile.php?lookup=".$info['user_id']."'><span style='color:#fff; font-size: 13px; padding-left: 10px;'><font FACE='Tahoma'><b>".$info['user_name']."</span></a>
</center>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='news-body'>$news<br><br></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $aidlink,$item_type,$locale,$db_prefix;
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td background='".THEME."images/news-left.gif' width='15' height='50'></td>
<td background='".THEME."images/news-center.gif' height='50' class='news-center' style='padding-top: 10px;'>$subject<br>
</td>
<td background='".THEME."images/news-right.gif' width='150' height='50'>
<center>
<span style='color:#fff; font-size: 13px; padding-left: 0px;'><font FACE='Tahoma'><b>".showdate("shortdate", $info['article_date'])." </span> <br>
<span style='color:#fff; font-size: 13px; padding-left: 0px;'><font FACE='Tahoma'><b>Paraðë: <a href='profile.php?lookup=".$info['user_id']."'><span style='color:#fff; font-size: 13px; padding-left: 10px;'><font FACE='Tahoma'><b>".$info['user_name']."</span></a>
</center>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/panel-left.gif' width='11' height='30'>
<td class='capmain' background='".THEME."images/panel-center.gif'>$title</td>
<td background='".THEME."images/panel-right.gif' width='10' height='30'>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opennav($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='opennav'>$title</td>
</tr>
<tr>
<td width='175' class='nav-body'>\n";
}
function closenav() {
echo "</td>
</tr>
<tr><td background='".THEME."images/closenav.gif' height='20'></td>
</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";
}
?>
Redagavo WyPuk· 2010 Kov. 12 12:03:54