Parašė delux585· 2008 Gru. 29 12:12:50
#4
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// Nustatymai
$body_text = "#444444";
$body_bg = "#555555";
$theme_width = "90%";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' bordercolor='#fffff' border='0' cellpadding='0' width='$theme_width'>";
echo "<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
</td>
</tr>
</table>\n";
//Headerio kodas
echo "<table style='background-image:url(".THEME."images/header.gif);' align='center' cellspacing='0' cellpadding='0' width='150%' height='150' border='0'>
<td>
<img border='0' alt='".$settings['sitename']."' title='".$settings['sitename']."' src='".THEME."images/logo.gif'>
</td><td width='85'>
<div align='center'>
<br>
</td>
</td>";
//Navigacija pradzia
echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='background-color:#FFFFFF'>
<div align='center'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<td><p align='center'></a>
<a title='Pagrindinis' href='".BASEDIR."index.php'>
<img src='".THEME."images/ustmenu/anasayfa.jpg' border='0' /><br><b>
Pagrindinis</b></a></p>
</td>
<td><p align='center'></a>
<a title='Forumas' href='".BASEDIR."forum/index.php'>
<img src='".THEME."images/ustmenu/forum.gif' border='0'/><br><b>
Forumas</b></a></p>
</td>
<td><p align='center'></a>
<a title='Nemokami Siuntiniai' href='http://www.siuskis.wu.lt/news_cats.php'>
<img src='".THEME."images/ustmenu/download.gif' border='0' /><br><b>
Siuntiniai</b></a></p>
</td>";
echo "<center>
<td><p align='center'></a>
<a title='Foto Galerija' href='".BASEDIR."photogallery.php'>
<img src='".THEME."images/ustmenu/galeri.png' border='0' /><br><b>
Foto Galerija</b></a></p>
</td>
<td><p align='center'></a>
<a title='Linkai' href='".BASEDIR."weblinks.php'>
<img src='".THEME."images/ustmenu/weblink.png' border='0' /><br><b>
Linkai</b></a></p>
</td>";
if (iMEMBER) {
echo "<center>
<td><p align='center'></a>
<a title='Keisti Profili' href='".BASEDIR."edit_profile.php'>
<img src='".THEME."images/ustmenu/Profilim.gif' border='0' /><br><b>
Keisti Profili</b></a></p>
</td></center>";}
if (iGUEST) {
echo "<center>
<td><p align='center'></a>
<a title='Registruotis' href='".BASEDIR."register.php'>
<img src='".THEME."images/ustmenu/uyeol.gif' border='0' /><br><b>
Registruotis</b></a></p>
</td></center>";}
echo "<center>
<td><p align='center'></a>
<a title='Paieska' href='".BASEDIR."search.php'>
<img src='".THEME."images/ustmenu/arama.gif' border='0' /><br><b>
Paieska</b></a></p>
</td>
<td><p align='center'></a>
<a title='Reklama' href='http://www.siuskis.wu.lt/readarticle.php?article_id=3'>
<img src='".THEME."images/ustmenu/site-map.gif' border='0' /><br><b>
Reklama</b></a></p>
</td>
<td><p align='center'></a>
<a title='Kontaktai' href='".BASEDIR."contact.php'>
<img src='".THEME."images/ustmenu/iletisim.gif' border='0' /><br><b>
Kontaktai</b></a></p>
</td>
<td><p align='center'></a>
<a title='Klausimai' href='".BASEDIR."faq.php'>
<img src='".THEME."images/ustmenu/bilgi.gif' border='0' /><br><b>
Klausimai</b></a></p>
</td>
</table>
</div>
<hr>
</td>
</tr>
</table>\n";
//Navigacija pabaiga
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
//Footer kodas
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right:#FFFFFF 1px; border-left: #FFFFFF 1px;'>";
echo "<td width='20%' height='30' class='white' align='left'>";
if ($license == false) {
echo "<b>Varikliukas <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b><a href=https://webdnd.com'></a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
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";
}
?>
Nu kur nustaciau visvien yra ;/