ich habe mir für einen mandanten eine navi zusammengebastelt. diese funktioniert ohne probleme


hier mal den output der hauptnavi:
Code: Alles auswählen
<?php
include_once($cfg["path"]["contenido"].$cfg["path"]["includes"]."functions.con.php");
$catStart = "CMS_VALUE[0]";
if ($catStart != "") {
$catIds = conDeeperCategoriesArray($catStart);
$sqlabfrage = "SELECT COUNT(*) FROM con_cat WHERE parentid = 1";
$db->query($sqlabfrage);
$db->next_record();
$maxmenuitem = $db->f("COUNT(*)");
if ( is_array($catIds) ) {
foreach($catIds as $key=>$val) {
// Ersten Eintrag ueberspringen, weil das der Menupunkt selbst ist
// und nicht angezeigt werden soll.
if ($key != 0) {
$sql = "SELECT CAT.idcat AS idcat, name FROM ".
$cfg["tab"]["cat"]." AS CAT, ".
$cfg["tab"]["cat_lang"]." AS CATLANG
WHERE CAT.idcat = ".$val."
AND CAT.idcat = CATLANG.idcat
AND CATLANG.idlang = '$lang'
AND CATLANG.visible = '1'
AND CAT.parentid = '1'";
$db->query($sql);
$db2 = new DB_Contenido;
while ( $db->next_record() ) {
$target = "_self";
/* Check for redirect and new window flag */
$sql = "SELECT idart FROM ".$cfg["tab"]["cat_art"]." WHERE idcat='". $db->f("idcat")."' AND is_start = '1'";
$db2->query($sql);
if ($db2->next_record())
{
$cidart = $db2->f("idart");
$sql = "SELECT external_redirect FROM ".$cfg["tab"]["art_lang"]." WHERE idart = '$cidart' AND idlang='$lang'";
$db2->query($sql);
if ($db2->next_record())
{
$target = ( $db2->f("external_redirect") == 0 ) ? '_self' : '_blank';
}
}
$sql3 = "SELECT * FROM con_properties WHERE name = 'medianame' AND value = 'Hauptmenu_".$db->f("name")."'";
$db2->query($sql3);
$db2->next_record();
$db2->f("itemid"); //dateiname bild normal
$teilstring = substr($db2->f("itemid"), 0, -4);
$high = $teilstring."_high.gif";
echo '<a target="'.$target.'" href="front_content.php?idcat='.$db->f("idcat").'"><img src=upload/'.$db2->f("itemid").' border=0 onMouseOut="this.src=\'upload/'.$db2->f("itemid").'\';" onMouseOver="this.src=\'upload/'.$high.'\';"></a>';
$maxmenuitem--;
if($maxmenuitem > 0)
{
echo '<img src="images/kopf/nav_strich.gif">';
}
} // end while
} // if
} // end foreach
} // end if (is_array)
echo '<img src="images/kopf/nav_strich_ende.gif" width="2" height="24">';
}
?>
hier mal zum ansehen:
http://web1.vs188133.vserver.de/conteni ... ontent.php
die service-navi benötigt noch die pics aber sonst funzts.
gruesse rene