Parašė Soo-2· 2008 Sau. 15 17:01:48
#12
Bnadyk šitaip
<?php
/*--------------------------------------------------+
| Theme skirta PHP-Fusion Turinio Valdymo Sistemai |
| Tema parengta ir paskelbta WTFTHEMES.com komandos.|
| Svetainė: www.wtfthemes.com |
| Prasome nepanikinti nuorodos i musu saita. |
| |
| Theme by WTFTHEMES.com |
| Please do not remove the copyright |
| Web: www.wtfthemes.com |
+-------------------------------------------------- */
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
echo "<script type='text/javascript' src='".THEME."js/menu.js'></script>";
function render_header($header_content) {
include THEME."locale/Lithuanian.php";
include LOCALE.LOCALESET."global.php";
global $theme_width,$settings;
echo "<table class='bodyline' cellSpacing='0' cellPadding='0' width='970' align='center' border='0'>";
echo "<tr><td><table title='".$settings[sitename]."' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td height='110'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/cellpic_bkg.jpg'></a></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' height='20' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
echo "<td class='topnav' nowrap align=left><a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif'></a> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.gif'></a> <img src='".THEME."images/menu_bar_div.gif'>";
//Account Code
if (iMEMBER) {
echo " <a href='".BASEDIR."edit_profile.php' id='account'><img src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<div class='lkmenu_popup' id='account_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_account.gif'><font class='block-title' align=>$subject ".$info['kategorija']."</font></td><center>User Options<a name='goto_account'></a></font>";
echo "</td></tr>";
echo "<tr><td><font class='lkmenu_text'>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN) {
echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."index.php?logout=yes' class='side'>".$locale['084']."</a>\n";
echo "</td></tr></table></div>";
} else {
echo " <a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif'></a> </font><img src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif'></a></font> <img src='".THEME."images/menu_bar_div.gif'> ";
//Search Code
echo "<a href='".BASEDIR."search.php' id='forumsearch'><img src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img src='".THEME."images/menu_bar_div.gif'>";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_search.gif'><font class='block-title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='370'><font class='lkmenu_text'>Search for Keywords:</font><hr>";
if ($stype == "") $stype = "f";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:375px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."<br>";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/logout.gif'></a></font>";
} else {
echo "<div class='lkmenu_popup' id='login_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_login.gif'><font class='block-title'><center>User Login<a name='goto_login'></a></font>";
echo "</td></tr>";
echo "<tr><td width='170'><font class='lkmenu_text'>";
echo"<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>";
echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br> ";
echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
echo "<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>";
echo "<input type='submit' name='login' value='".$locale['064']."' class='button'><br>";
echo "</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img src='".THEME."images/bullet.gif'> ".$locale['065']."<br><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> ".$locale['066']."";
echo "</div></td></tr></table></form></div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "<td class='topnav' valign='middle' align='right'>";
echo "<font class='date'>".ucwords(showdate($settings['subheaderdate'], time()))." ";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
/*******************************************************************/
/* Prašau gerbkite autorių nuorodas. */
/* NEIŠTRINKITE NUORUODŲ Į MŪSŲ SAITĄ. TAIP PAT IR PAVEIKSLĖLIŲ. */
/*******************************************************************/
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'><tr>";
echo "<td align='center'><br>".stripslashes($settings['footer'])."<br></td>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' class='topnav' align='center'><div align='left'> ";
if ($license == false) {
echo "Varikliukas: <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a>";
}
echo "</div></td>";
echo "<td width='20%' class='topnav' align='left'>";
echo "Theme by: <a target='_blank' href='http://www.wtfthemes.com'><img title='WTFTHEMES' src='".THEME."images/wtfthemes.gif' style='vertical-align:top;'></a></td>";
echo "<td width='35%' class='topnav' align='middle'><div align='right'>";
echo "<b>".$settings['counter']."</b></font> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject".$info['kategorija']."</b></font></td>";
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo " <font class='news-title'>$subject</b></font></td>";
echo "<td align='right>";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<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>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #333333'>";
echo "<tr><td bgcolor='#D8D8D8' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' class='side-body' width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>