Es geht also darum, dass, wenn der nächste horizontale Menu Punk aktiviert ist, den link danebenstehenden Trennstrich NICHT anzuzeigen... Das muß doch irgendwie funzen... Viele Dank nochmal für Eure Hilfe!
Code: Alles auswählen
echo '<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr>';
$i = 1;
foreach ($navitems as $key => $data) {
/* 1. Navigations Ebene */
$tpl->reset();
$tpl->set('d', 'NAME', $data['name']);
$tpl->set('d', 'TARGET', $data['target']);
$tpl->set('d', 'HREF', $sess->url('front_content.php?idcat='.$data['idcat']));
$tpl->set('d','CURRENT',$i);
$tpl->next();
if ($idcat == $data['idcat'] || is_array($data['sub'])) {
echo "<td align=\"center\" bgcolor=\"#E5F9FD\" style=\"border-top: 1px solid #FFFFFF;\"><a style=\"font-family: verdana, arial, helvetica, sans-serif;";
echo "font-weight: bold; font-size: 11px; text-decoration: none; color: #9E3D34;\" target=\"".$data['target']."\" href=\"".$sess->url('front_content.php?idcat='.$data['idcat'])."\">".$data['name']."</a></td>";
}
else {
echo "<td align=\"center\" bgcolor=\"#BB655D\" style=\"border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF; height: 20px;\"><a style=\"font-family: verdana, arial, helvetica, sans-serif;";
echo "font-weight: normal; font-size: 11px; text-decoration: none;color: #FFFFFF;\" target=\"".$data['target']."\" href=\"".$sess->url('front_content.php?idcat='.$data['idcat'])."\">".$data['name']."</a></td>";
if ($i < 5){
echo "<td width=\"1\" align=\"center\"><img src=\"img/1_back.gif\" border=\"0\"></td>";
}
}
if (is_array($data['sub'])) {
$tmp_data = array();
$tmp_data = $data;
} // end if
$i++;
} // end foreach
echo '</tr></table>';