Hogyan lehetne legördülő menüt csinálni PHP Fusionba? Itt a theme:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "935");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style;
//Header Start
echo '<table id="Table_01" align="center" width="935" height="208" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="4">
<img src="'.THEME.'images/header_01.jpg" width="684" height="208" alt="" /></td>
<td>
<img src="'.THEME.'images/header_02.jpg" width="204" height="33" alt="" /></td>
<td rowspan="4">
<img src="'.THEME.'images/header_03.jpg" width="47" height="208" alt="" /></td>
</tr>';
//Member Header Start
echo '<tr>';
if (iMEMBER) {
echo '<td class="MemberForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="padding-left:40px">';
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'><b>Profil szerkesztése</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'><b>Üzenetek</b></a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'><b>Regisztrált tagok</b></a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'><b>Vezérlopult</b></a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'><b>Kijelentkezés</b></a>\n";
//Quest Header Start
} else {
if (isset($_POST['Regh'])) {
redirect('register.php');
}
echo '<td class="LoginForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="paddin-top:8px">';
include LOCALE.LOCALESET."global.php";
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']." <input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']." <input type='password' name='user_pass' class='textbox' style='width:100px;margin-left:4px;margin-top:2px' /><br />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='buttonHeader' style='margin-top:4px;margin-right:4px;width:45px' /><input type='submit' name='Regh' value='Click Here to Register!' class='buttonReg' style='margin-top:4px;width:118px' /><br />\n";
echo "<small>Emlékezem a jelszavadra?</small><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;margin-top:3px' />\n";
echo "</form>\n";
if ($settings['enable_registration']) {
echo '<a href="'.BASEDIR.'register.php" title="Regisztráció!" class="side">Katt ide </a> a regisztrációért.<br />';
}
echo '<a href="'.BASEDIR.'lostpassword.php" title="Elfelejtett jelszó?" class="side">Elfelejtett jelszó?</a></div>';
}
echo '</td></tr>
<tr>
<td>
<img src="'.THEME.'images/header_05.jpg" width="204" height="30" alt="" /></td>
</tr>
<tr>
<td background="'.THEME.'images/header_06.jpg" width="204" height="30" align="center">';
// Search script //
echo "<form name='Search' method='post' action='".BASEDIR."search.php?stype=d'><b><font color='white'><small>Keresés: </small></font></b>";
echo "<input value='Adja meg a kulcsszavakat' name='stext' class='textbox' style='width:100px' onBlur="if(this.value=='') this.value='Adja meg a kulcsszavakat';" onFocus="if(this.value=='Adja meg a kulcsszavakat') this.value='';" /> ";
echo "<input type='submit' name='search' value='Go!' class='buttonReg' style='width:30px' /></form></td>";
echo '</tr></table>';
// Menus Starts
echo '<table align="center" id="Table_02" width="541" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<center><img src="'.THEME.'images/menu_01.jpg" width="10" height="30" alt="" border="0" />
</td>
<td><a href="'.BASEDIR.'index.php">
<img src="'.THEME.'images/menu_02.jpg" width="70" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'viewpage.php?page_id=1">
<img src="'.THEME.'images/menu_04.jpg" width="91" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'forum/index.php">
<img src="'.THEME.'images/menu_06.jpg" width="73" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td><a href="'.BASEDIR.'articles.php">
<img src="'.THEME.'images/menu_16.jpg" width="80" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
<td>
<img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>';
if (iMEMBER) {
echo ' <td><a href="'.BASEDIR.'setuser.php?logout=yes">
<img src="'.THEME.'images/menu_log.jpg" width="75" height="30" alt="" border="0" /></td>';
} else {
echo ' <td><a href="'.BASEDIR.'register.php">
<img src="'.THEME.'images/menu_20.jpg" width="75" height="30" alt="" border="0" /></td>';
}
echo '<td>
<img src="'.THEME.'images/menu_21.jpg" width="4" height="30" alt="" border="0" /></td>
<td background="'.THEME.'images/menu_22.jpg" width="118" height="30"><font color="white" class="date" style="margin-left:22px"><small>'.showsubdate().'</small></font>
</td>
</tr>
</table>';
// Menu Ends
echo "<table bgcolor='#070707' align='center' cellspacing='0' cellpadding='0' width='935' >
<tr>
<td>\n";
// Content
echo "<br /><table cellpadding='0' cellspacing='0' width='915' class='$main_style' align='center'>\n<tr>\n";
echo "<td class='side-border-left' valign='top' width='20%'>".LEFT."</td>";
echo "<td class='main-bg' align='center' valign='top' width='60%' style='margin:5px'>".U_CENTER.CONTENT.L_CENTER."</td>";
echo "<td class='side-border-right' valign='top' width='20%'>".RIGHT."</td>";
echo "</tr>\n</table>\n";
//Footer
echo "</td></tr></table>";
echo "<center><table cellpadding='0' cellspacing='0' width='935' background='".THEME."images/footer_bg.jpg'>\n<tr>\n";
echo "<td align='center' class='main-footer' style='color:#fff;'>".stripslashes($settings['footer']);
echo "DarkZik Theme Designed By <a href='http://www.iranzik.com/music_film/index.html' target='_blank'>| IranZik.com |</a>";
if (!$license) { echo "<br />\n".showcopyright(); }
echo "</td>\n";
echo "</tr>\n</table>\n</center>";
}
function render_news($subject, $news, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n";
echo "<br />";
}
function render_article($subject, $article, $info) {
echo "<div class='capmain'> $subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n";
echo "<br />";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'> $title</td>
</tr>
<tr>
<td class='main'>\n";
}
function closetable() {
echo "</td>
</tr>
</table><br />\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='29' class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</td></tr>\n<tr><td class='side-body' background='#10161D'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table><br />";
}
?>
jesszus...
Jobb lenne, ha a php-fusion support oldalán tennéd be ezt a kódot. Én kapásból oda mentem volna ezzel.
Egyébként van ott ilyen mod nem is egy. Letöltheted.
Kapcsolódó kérdések:
Minden jog fenntartva © 2025, www.gyakorikerdesek.hu
GYIK | Szabályzat | Jogi nyilatkozat | Adatvédelem | Cookie beállítások | WebMinute Kft. | Facebook | Kapcsolat: info(kukac)gyakorikerdesek.hu
Ha kifogással szeretne élni valamely tartalommal kapcsolatban, kérjük jelezze e-mailes elérhetőségünkön!