"; echo ""; $temp = file( "menue.inc"); $anz = count($temp); for ($x = 0;$x < $anz;$x++) { $y =split(",",$temp[$x]); if ($x == $nr): $y[2]= "aktiv"; endif; menu_link($y[0],$y[1],$y[2]); } } // Funktion für das Menü // Benötigt: // $link als link // $text als Linkbeschreibung // $status aktiv oder deaktiv // keine Rückgabe function menu_link($link,$text,$status) { (string)$stat = $status; (string)$li = $link; (string)$te = $text; $col1 = "#eeeeee"; $col2 = "#cccccc"; $run1 = "images/rundung.gif"; $run2 = "images/rundung2.gif"; if ($te == "Home"): $col = $col2; $run = $run2; else: $col = $col1; $run = $run1; endif; switch($stat) { case("aktiv"): echo ""; echo ""; echo ""; echo ""; break; case("deaktiv"): echo ""; echo ""; echo ""; echo ""; break; case("titel"): echo ""; echo ""; echo ""; echo ""; break; default: echo ""; echo ""; echo ""; echo ""; break; } } //-------------------------------------------------------------------------------------------------- function tabi($name,$status,$link){ $host = "www.kodika.com"; //$path = "http://" .$GLOBALS['SERVER_NAME']. "/images/"; $path = "http://" .$host. "/images/"; $linksak = $path . "tab_left_ak.jpg"; $linksde = $path . "tab_left_de.jpg"; $rechtsak = $path . "tab_right_ak.jpg"; $rechtsde = $path . "tab_right_de.jpg"; if (!eregi("''", $link)): $link = "$name"; else: $link = "$name"; endif; if (($status== "aktiv")) { $tab = ""; } else { $tab = ""; } return $tab; } //-------------------------------------------------------------------------------------------------- function menue ($nr,$path,$link_path,$part) { switch($part){ case("1"): $temp = file($path . "menu.inc"); break; case("2"): $temp = file($path . "menu2.inc"); break; case("3"): $temp = file($path . "menu3.inc"); break; } $anz = count($temp); for($x = 0;$x < $anz;$x++) { $zeile = split(",",$temp[$x]); if($x == $nr): $zeile[1] = "aktiv"; endif; $zeile[2] = $link_path . $zeile[2]; print(tabi($zeile[0],$zeile[1],$zeile[2])); } return $anz; } function menue2($anz,$nr) { for($x = 0; $x < $anz; $x++) { if($x == $nr): $css = "tabaktiv"; print(""); print(""); else: $css = "tabdeaktiv"; print(""); print(""); endif; } } ?> KODIKA Group Bad Tölz,Development and production of cinematographic equipment
$te
$text
$text
$link
$link

Development and production of cinematographic equipment


Hans Kiening
Elektronik GmbH
Höhenbergweg 15
83646 Bad Tölz
Tel: 0049 (0)8041/4635
Fax: 0049 (0)8041/72346
Email:kodika@t-online.de