Parašė edeni· 2009 Geg. 2 17:05:29
#4
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#999999";
$body_bg = "#262626";
$theme_width = "920";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' style='margin-top:-8px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'height='30' background='".THEME."images/header1.gif'>
<tr>
<td align='center'>";
include_once THEME."backlinkai.php";
echo"</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' height='135' background='".THEME."images/header2.gif'>
<tr>
<td style='padding-right: 45px; padding-top: 15px;'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table align='right' width='260' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='80' height='80'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='80' height='80'></center>\n";
}
echo "</td>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>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'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>\n";
} else {
echo "<table align='right' width='260' border='0' cellspacing='0' cellpadding='0'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr><td align='right'><a href=".BASEDIR."register.php>Registruotis </a></td>
<td>| <a href=".BASEDIR."lostpassword.php>Slaptažodis</a></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr>
<td align='right'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:130px;filter:alpha(opacity=70)'></td>
</tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr>
<td align='right'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:130px;filter:alpha(opacity=70)'></td>
</tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button2'></td>
</tr>
</form>\n";
}
echo "</td>
<td><img src='".THEME."images/blank.gif'></FONT></td>
</tr>
</table>
</td>";
echo"</td>
</tr>
</table>";
echo "
<table width='920' height='35' border='0' cellpadding='0' cellspacing='0' border='0'>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/links/namai.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/links/diskusijos.gif' border='0'></a></td>
<td><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/links/galerija.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/links/siuntiniai.gif' border='0'></a></td>
<td><a href='".BASEDIR."reklama.php'><img src='".THEME."images/links/reklama.gif' border='0'></a></td>
<td><img src='".THEME."images/links/back.gif'></td>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='dalis3'>\n<tr>
<td align='center' width='468'>";
include THEME."reklama.php";
echo "</td>
<td align='center' width='470'>";
include THEME."serveriai.php";
echo "</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;' class='footer'>
<tr>
<td align='left' width='150'>Sprendimas: <a href='http://www.e-studija.lt' class='tekstas'>E-Studija.lt</a></td>
<td align='center' style='padding-right: 150px;'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td><td class='capmain2' align='right' style='padding-right: 10px;'>
".showdate("shortdate", $info['news_date'])." - <a href='profile.php?lookup=".$info['user_id']."' style='color: #330000;'>".$info['user_name']."</a>
<a href='news.php?readmore=".$info['news_id']."' style='padding-left: 5px; color: #330000;'>Skaityti toliau...</a>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>$news</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td><td class='capmain2' align='right' style='padding-right: 10px;'>
".showdate("shortdate", $info['article_date'])." - <a href='profile.php?lookup=".$info['user_id']."' style='color: #330000;'>".$info['user_name']."</a>";
$readmore = "readarticle.php?article_id=".$info['article_id']."";
if ($readmore) {
}else{
echo"<a href='readarticle.php?article_id=".$info['article_id']."' style='padding-left: 5px; color: #330000;'>Skaityti toliau...</a>";
}
echo"
</td>
</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 class='capmain'>$title</td>
</tr>
<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 opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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 edeni· 2009 Geg. 2 17:05:20