Chcę aby bez logowania wyskakiwało mi menu, a nie logowanie poziome. Obecnie jak nie jestem zalogowany to wyskakuje w miejscu menu panel logowania poziomego, a chcę aby cały czas widniało menu. Mam nadzieję że rozumiecie. Oto kod pliku theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_WIDTH", "910");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<tr><td class='header' width='100%'>";
// Ust Arama Blok
echo "
<ul id='nav'>
<div align='left'>
<form name='search' method='post' action='search.php?stype=n'><font color='#FFFFFF'><b> Wyszukiwarka : </b></font></span>
<input type='textbox' value='' name='stext' class='textbox' style='width:130px' onBlur=\"if(this.value=='') this.value='Aramak Yapin';\" onFocus=\"if(this.value=='Arama yapin') this.value='';\">
<input type='submit' name='search' value='Szukaj' class='button'></form></td>
</ul></div>
";
// Ust Arama Blok Bitis
echo "<tr><td height='300' background='".THEME."images/banner.gif' align='right' valign='middle'>
<table width='910' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td> </td>
<td width='220' align='center'>";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if (iMEMBER) {
echo "
<ul id='nav'>
<div align='center'>
<li class='top'><a href='".BASEDIR."index.php' class='top_link'><span>Strona główna</span></a></li>
<li class='top'><a href='http://bsts.cba.pl/photogallery.php' class='top_link'><span>Galeria</span></a></li>
<li class='top'><a href='http://bsts.cba.pl/viewpage.php?page_id=14' class='top_link'><span>Terminarz</span></a></li>
<li class='top'><a href='http://bsts.cba.pl/forum/index.php' class='top_link'><span>Forum</span></a></li>
</ul></div>
";}
// uye giriţ
else {
echo "
<div id='uyemenu'>
<center><font color='#000000'>
<form name='loginform' method='post' action='setuser.php'>Login :
<input type='text' name='user_name' class='textbox' style='width:100px'>Hasło :
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='submit' name='login' value=' Zaloguj ' class='button'>
<a href='".BASEDIR."register.php'><font color='#000000'>Rejestracja</font></a>
<a href='".BASEDIR."lostpassword.php'><font color='#000000'> Zapomniane hasło</font></a>
</form></center></div> ";
}
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='910' height='100' align='center'>\n<tr>\n";
echo "<td align='left' class='footer'>".stripslashes($settings['footer'])."<br />\n";
if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br />
\n";
}
function render_news($subject, $news, $info) {
echo "<br><table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
|