habe folgenden Code, und möchte ein Menü wie dieses hier haben:
http://www.hoermann.de/de/de/
Also das horizontale Menü oben.
Hier nun der Code zum Menü, nur komme ich hier mit meinen begrenzten Kenntnissen nicht weiter:
http://www.hoermann.de/de/de/
Also das horizontale Menü oben.
Hier nun der Code zum Menü, nur komme ich hier mit meinen begrenzten Kenntnissen nicht weiter:
PHP-Code:
include("../includes/adminapplication.inc.php");
if($_POST['area']) {$area = $_POST['area'];}else{$area = $_GET['area'];}
if($_POST['page']) {$page = $_POST['page'];}else{$page = $_GET['page'];}
if($_POST['mp']) {$mp = $_POST['mp'];}else{$mp = $_GET['mp'];}
if($_POST['a']) {$a = $_POST['a'];}else{$a = $_GET['a'];}
if(!$area AND !$page) {$area="home";}
if(!$area) {$area="page";}
$sys = new System($db);
$shortnews = $sys-> getNews('Shortnews');
if(!$mp){$mp = "aindex";}
$includefile = "../includes/modul/".$area."/".$mp.".inc.php";
include($includefile);
// DB schließen
//----------------------------------------------------------------------------------------------------
$db->close();
// Logindata ermitteln
//----------------------------------------------------------------------------------------------------
$c["logindata"] = $_SESSION["userdata"]["vorname"]." ".$_SESSION["userdata"]["nachname"]." (<b>".$_SESSION["userdata"]["usertyp"]."</b>)";
$c['NAVI'] .= '<div style="float: left" id="my_menu" class="sdmenu">';
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">##############:</span>';
$c['NAVI'] .= ' <a href="index.php">Startseite</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' </div>';
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">########:</span>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' </div>';
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">#########:</span>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' </div>';
if($_SESSION["userdata"]["usertyp"] == "Admin")
{
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">########:</span>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' <a href="index.php?area=########">########</a>';
$c['NAVI'] .= ' </div>';
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">Einstellungen:</span>';
$c['NAVI'] .= ' <a href="index.php?area=user">Userverwaltung</a>';
$c['NAVI'] .= ' <a href="index.php?area=config">Grundkonfiguration</a>';
$c['NAVI'] .= ' <a href="index.php?area=dbbackup">Datenbankbackup</a>';
$c['NAVI'] .= ' <a href="../../phpmyadmin" target="_blank">Datenbankverwaltung</a>';
$c['NAVI'] .= ' </div>';
}
$c['NAVI'] .= ' <div>';
$c['NAVI'] .= ' <span id="menu-head">Abmelden:</span>';
$c['NAVI'] .= ' <a href="logout.php">Abmelden</a>';
$c['NAVI'] .= ' </div>';
$c['NAVI'] .= '</div>';
$c['NAVI'] .= '<br><br><br>';
// Template ausgeben
//----------------------------------------------------------------------------------------------------
if(!$templatename){$templatename="index";}
$data["SYSTEM_VERSION"] = $ini['system']['system_version'];
$data["FOOTERINFO"] = "<b>".$cf['reg_firma']."</b> / Seriennummer: (<b>".substr($cf['reg_number'],0,26)."</b>XXXXXX)";;
$data["HEAD"] = $c["head"];
$data["SHORTNEWS"] = $shortnews;
$data["BODY"] = $c["body"];
$data["NAVI"] = $c['NAVI'];
$data["TITLE"] = $c['TITLE'];
$data["LOGINDATA"] = $c["logindata"];
$data["CONTENT"] = $c["content"];
$data["LASTUPDATE"] = date("d.m.Y");
foreach($cf AS $key => $value)
{
$data["CF_".strtoupper($key)] = $value;
}
$template = new Template($templatename,"../includes/templates/backend/");
$template->getTemplate($data);
echo $template->template;
?>