Parašė Žmogus· 2008 Rugp. 14 11:08:42
#6
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// Tema Ayarlarż
$body_text = "#555555";
$body_bg = "#F4F4F4";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' bordercolor='#99CC00' border='2' cellpadding='0' width='$theme_width'>";
//SAAT KODU BAŽLANGIĒ
echo "<td align='right' class='white-header'><div id='Clock'>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Sekmadienis','Pirmadienis','Antradienis','Trečiadienis','Ketvirtadienis','Penktadienis','Šeštadienis');
var MnthNam = new Array(
'Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis','Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."saat.js'></script></div></td>";
//SAAT KODU BŻTŻŽ
echo "<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
</td>
</tr>
</table>\n";
//Logo - Sub_menü(Kategoriler) - Üye Giriži Kodu Bažlangżē
echo "<table style='background-image:url(".THEME."images/ust_bg.jpg);' align='center' cellspacing='0' cellpadding='0' width='100%' height='400' border='0'>
<tr>
<td width='45%' align='center'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,13");
if (dbrows($result) != 0) {
echo "<table width='86%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bulletai.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td>
<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,13");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bulletai.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>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo"
</td>
</tr>
<td>
</td><td width='85'>
<div align='bottom'>
</td>";
if (iGUEST)
{echo "<td aling='right' width='110'>
<div align='right'>".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>
<b>Loginas</b>
<br>
<input type='text' name='user_name' class='textbox' style='width:100px'>
<br>
<b>Slaptažodis</b>
<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<br>
<input type='checkbox' name='remember_me' value='y' title='Beni Hatżrla' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='button'></form>
<br>
</div>
<div align='center'>
<form name='uyeol' method='post' action='".BASEDIR."register.php'>
<input type='submit' name='uyeol' value='Registruotis' class='button'>
</form>
<br>
<form name='kayip_sifre' method='post' action='".BASEDIR."lostpassword.php'>
<input type='submit' name='kayip_sifre' value='Pamiršai Slaptazody?' class='button'>
</form>
</div>
</td>";}
echo "</table>";
//Logo - Sub_menü(Kategoriler) - Üye Giriži Kodu Bitiž
//RESŻMLŻ MENU
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='background-color:#F1F1F1'>
<div align='center'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<td width='63'><p align='center'><font size='1'></a>
<a title='Sugryžti į pagrindinį puslapį' href='".BASEDIR."index.php'>
<img src='".THEME."images/resimli_menu/anasayfa.gif' border='0' width='32' height='32' /><br><b>
Namai</b></a></font></p>
</td>
<td width='68'><p align='center'><font size='1'></a>
<a title='Naujėnų Kategorijos' href='".BASEDIR."news_cats.php'>
<img src='".THEME."images/resimli_menu/kategoriler.gif' border='0' width='32' height='32' /><br><b>
Kategorijos</b></a></font></p>
</td>
<td width='98'><p align='center'><font size='1'></a>
<a title='Naujėnų Pateikimas mūsų puslapiui' href='".BASEDIR."submit.php?stype=n'>
<img src='".THEME."images/resimli_menu/haber-ekle.gif' border='0' width='32' height='32' /><br><b>
Naujėnų Pateikimas</b></a></font></p>
</td>
<td width='69'><p align='center'><font size='1'></a>
<a title='Puslapio Straipsniai' href='".BASEDIR."articles.php'>
<img src='".THEME."images/resimli_menu/makaleler.gif' border='0' width='32' height='32' /><br><b>
Straipsniai</b></a></font></p>
</td>
<td width='76'><p align='center'><font size='1'></a>
<a title='Straipsniu Pateikimas mūsų puslapiui' href='".BASEDIR."submit.php?stype=a'>
<img src='".THEME."images/resimli_menu/makale-yaz.gif' border='0' width='32' height='32' /><br><b>
Pateikti Straipsnį</b></a></font></p>
</td>
<td width='68'><p align='center'><font size='1'></a>
<a title='Užsiregistravę galėsite matyti daugiau puslapio paslaugų!' href='".BASEDIR."register.php'>
<img src='".THEME."images/resimli_menu/uyeol.gif' border='0' width='32' height='32' /><br><b>
Registracija</b></a></font></p>
</td>
<td width='77'><p align='center'><font size='1'></a>
<a title='Paieškos sistema' href='".BASEDIR."search.php'>
<img src='".THEME."images/resimli_menu/arama.gif' border='0' width='32' height='32' /><br><b>
Paieška</b></a></font></p>
</td>
<td width='74'><p align='center'><font size='1'></a>
<a title='Puslapio žemėlapis' href='".BASEDIR."infusions/site_map/site_map.php'>
<img src='".THEME."images/resimli_menu/site-map.gif' border='0' width='32' height='32' /><br><b>
Site Map</b></a></font></p>
</td>
<td width='65'><p align='center'><font size='1'></a>
<a title='Site Yönetimine E-Mail Gönder!' href='".BASEDIR."contact.php'>
<img src='".THEME."images/resimli_menu/iletisim.gif' border='0' width='32' height='32' /><br><b>
Kontaktai</b></a></font></p>
</td>
<td width='74'><p align='center'><font size='1'></a>
<a title='Dažniausiai Užduodami Klausimai!' href='".BASEDIR."faq.php'>
<img src='".THEME."images/resimli_menu/bilgi.gif' border='0' width='32' height='32' /><br><b>
D.U.K</b></a></font></p>
</td>
</table>
</div>
<hr>
</td>
</tr>
</table>\n";
//RESŻMLŻ MENU BŻTŻS
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
//Footer Haber ve Orta Bloklar Kodu
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>";
{echo"Sukurta by: <a target='_blank' href='http://www.green-zone.xz.lt/contact.php/'></a>
| <a target='_blank' href='http://istegenc.kayyo.com'><img border='0' src='".THEME."images/candy_green.gif'> <img border='0' src='".THEME."images/theme_kdk.gif'></a> <br>\n"; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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%' class='border'>
<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%' 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";
}
?>
Bandyk
Redagavo Žmogus· 2008 Rugp. 14 11:08:43