<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "942px");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $settings, $main_style, $userdata, $locale, $db_prefix, $aidlink;
//Header
echo "<center>\n";
echo "<div style='margin-top: -10px;'>\n";
echo "<div class='top-header'><div style='display: table; width: 942px;'><div style='font-size: 9px; float: left; margin-top: 14px; margin-left: 10px; width: 543px; text-align: center;'>Sveiki atvykę į “HardGaming - Counter Strike Serverių Tinklas” tinklapį,linkime malonaus naršymo.</div><div style='font-size: 11px; float: left; margin-left: 19px; margin-top: 27px; color: #fff; width: 177px; text-align: center;'>Vartotojo valdymas</div>
<div style='float: right; margin-top: 6px; margin-right: 60px;'><a href=''><img src='".THEME."images/top-msg.jpg' alt='' border='0' /></a> <a href=''><img src='".THEME."images/top-search.jpg' alt='' border='0' /></a></div></div>
<div style='color: #fff; font-size: 9px; float: left; margin-top: 5px; margin-left: 20px;'>";
if (iMEMBER) {
echo "Sveki, ".$userdata['user_name']." ";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti aprašymą</a> <img src='".THEME."images/redaguoti.png' style='vertical-align: middle;' alt='' /> \n";
echo "<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a> <img src='".THEME."images/profilis.png' style='vertical-align: middle;' alt='' /> \n";
echo "<a href='".BASEDIR."messages.php' class='side'>Asmeninės žinutės</a> <img src='".THEME."images/zinutes.png' style='vertical-align: middle;' alt='' /> \n";
echo "<a href='".BASEDIR."members.php' class='side'>Narių sąrašas</a> <img src='".THEME."images/nariai.png' style='vertical-align: middle;' alt='' /> \n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."' class='side'>Admin</a> <img src='".THEME."images/paslaugos.png' style='vertical-align: middle;' alt='' /> \n";
} else {
echo "<a href='' class='side'>Paslaugos</a> <img src='".THEME."images/paslaugos.png' style='vertical-align: middle;' alt='' /> \n";
}
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) {
echo "<img src='".THEME."images/naujos.png' style='vertical-align: middle;' alt='' /> <a href='".BASEDIR."messages.php' class='side'>".$msg_count." naujų žinučių</a>";
} else {
echo "<img src='".THEME."images/naujos.png' style='vertical-align: middle;' /> <a href='".BASEDIR."messages.php' class='side'>0 naujų žinučių</a>\n";
}
echo " <img src='".THEME."images/atsijungti.png' style='vertical-align: middle;' alt='' /> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a>\n";
echo "</div><div style='float: right; color: #fff; margin-top: 4px; margin-right: 12px;'>".showsubdate()."</div>";
} else {
echo "<div style='text-align:left; float: left; margin-top: -4px;'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."\n<input type='text' name='user_name' class='textbox' style='width:100px; height: 9px; font-size: 9px;' />\n";
echo $locale['global_102']."\n<input type='password' name='user_pass' class='textbox' style='width:100px; height: 9px; font-size: 9px;' />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' />\n";
echo "</form></div>";
echo "<div style='float: left; margin-left: 20px;'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>Registracija</a> | \n";
}
echo "<a href='".BASEDIR."lostpassword.php'>Priminti slaptažodį</a></div>\n";
/*
echo "Tu neprisijungęs. <a href='".BASEDIR."login.php'>Prisijungti</a>";
*/
echo "</div><div style='float: right; color: #fff; margin-top: 4px; margin-right: 12px;'>".showsubdate()."</div>";
}
echo "</div></div>\n";
echo "<div class='full-header floatfix'><div style='width: 256px; height: 99px; text-align: left; float: right; margin-top: 70px; margin-right: 50px; font-size: 9px;'>Kiekvienas narys norintys žaisti mūsų serveriuose turi žinoti
visas serverio taisykles,jas galite sužinoti šiame puslapyje.
Už taisyklių nesilaikymą jus būsite stipriai baudžiami,tad
mes rekomenduojame žaisti serveryje tik perskaičius serverio
taisykles.Tai galite padaryti paspaudę “Skaityti Taisykles”.<br />
<div style='float: left; margin-left: 120px; margin-top: 5px;'><img src='".THEME."images/taisykles.jpg' border='0' alt='' /></div><div style='float: left; margin-top: 12px;'><a href=''>Skaityti taisykles</a></div></div></div>\n";
echo "<div class='sub-header floatfix'>\n";
echo "<div style='float:left; margin-top: 16px; margin-left: 30px; word-spacing: 45px;'>
<a href='".BASEDIR."index.php'>Pagrindinis</a>
<a href='".BASEDIR."forum/index.php'>Forumas</a>
<a href=''>Serveriai</a>
<a href='".BASEDIR."members.php'>Nariai</a>
<a href='".BASEDIR."contact.php'>Kontaktai</a>
<a href=''>Mūšiai</a>
<a href=''>Parama</a></div>\n";
echo "<div style='float: left; margin-left: 30px; margin-top: 5px;'>
<form name='searchform' method='get' action='".BASEDIR."search.php?stype=all'>
<input type='hidden' name='stype' value='all' />
<input type='text' name='stext' style='background: none; height: 21px; width: 150px; border: 0px; color: #fff; font-size: 11px;' value='Paieškos žodis...' onclick=\"if(this.value=='Paieškos žodis...') this.value='';\" onblur=\"if(this.value=='') this.value='Paieškos žodis...'\" />
<input type='submit' name='search' value='' class='search-button' />
</form></div>\n";
echo "<div style='float: right; margin-right: 43px; margin-top: 10px;'><a href=''><img src='".THEME."images/vip.jpg' alt='' border='0' /></a></div>";
echo "</div>\n";
//Content
echo "<div class='center' style='width: 942px;'>";
if (LEFT) { echo "<div id='side-border-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-border-right'>".RIGHT."</div>\n"; }
echo "<div id='main-bg' class='clearfix'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
//Footer
echo "<div class='footer clear' style='text-align: center;'>\n";
echo "<div style='float: left; margin-top: 32px; margin-left: 30px;'>Varikliukas: <a href='https://webdnd.com' target='_blank' title='PHP-Fusion Lietuva'>PHP-Fusion</a></div>";
echo "<div style='float: left; margin-top: 30px; margin-left: 220px;'>HardGaming 2010 / Visos Teisės Saugomos</div>";
echo "<div style='float: right; margin-top: 25px; margin-right: 30px;'>Dizainas: HardGaming<br />Kodavimas: <a href='http://www.creatium.lt' title='Internetinių puslapių kūrimas, logotipai, vizitinės kortelės' target='_blank'>Creatium</a></div>";
echo "</div></div>\n";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'>
<div style='padding-top: 10px; padding-left: 20px; float: left; height: 26px;'>$subject</div>
<div class='more'>".showdate("shortdate", $info['news_date'])."<br />
<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti daugiau</a></div></div>\n";
echo "<div class='main-body floatfix'><div style='padding-left: 20px; padding-right: 20px; padding-top: 10px; text-align: left;'>".$news."</div></div>\n";
echo "<div class='news-footer'></div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'><div style='padding-top: 10px; padding-left: 20px; float: left; height: 26px;'>$subject</div></div>\n";
echo "<div class='main-body floatfix'><div style='padding-left: 20px; padding-right: 20px; padding-top: 10px;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div></div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
}
function opentable($title) {
echo "<div class='capmain'><div style='padding-top: 10px; padding-left: 20px; float: left; height: 26px;'>$title</div></div>\n";
echo "<div class='main-body floatfix'><div style='padding-left: 20px; padding-right: 20px; padding-top: 10px;'>\n";
}
function closetable() {
echo "</div></div>\n";
echo "<div class='news-footer'></div>\n";
}
function openforum($title) {
echo "<div class='fapmain'><div style='text-align: center; padding-top: 30px;'>$title</div></div>\n";
echo "<div class='main-forum'>\n";
}
function closeforum() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain'><div style='padding-top: 16px;'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div></div>\n<div class='side-body floatfix'><div style='margin: 20px 20px 20px 20px;'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div></div><div class='panel-footer'></div>\n"; }
echo "</div></div><div class='panel-footer'></div>\n";
}
?>