Manuel
By: a guest | Feb 6th, 2010 | Syntax:
PHP | Size: 1.17 KB | Hits: 140 | Expires: Never
<?php
function repeat($main, $posx, $parts, $part_names) {
$posy = -2;
foreach ($parts as $key => $part) {
$part_name = $part_names[$key] ? $part_names[$key] : $part;
print '<quad posn="'.$posx.' '.$posy.' 2" sizen="15 2.3" halign="center" image="./img/menue/dropdown_bg.jpg" imagefocus="./img/menue/menuehover.jpg" manialink="http://12makaronie.manialinkhost.de/Test/index.php:'.$main.':'.$part.'"/>
<label posn="'.$posx.' '.($posy-0.3).' 3" halign="center" autonewline="0" text="'.$part_name.'"/>';
$posy -= 2.3;
}
}
switch ($_GET['dropdown']) {
case "http://12makaronie.manialinkhost.de/Test/index.php":
case "http://12makaronie.manialinkhost.de/Test/index.php":
repeat
("http://12makaronie.manialinkhost.de/Test/index.php", 24
, array("ManiaContact", "MLGB", "ManiaPoll", array(1 => "ManialinkGuestbook")));
break;
case "Support":
repeat
("Support", 40
, array("Forum", "Contactform", "FAQ"), array($lang->forum, $lang->contactform, $lang->faq));
break;
case "Extras":
repeat
("Extras", 72
, array("Stats", "Guestbook", "Imprint"), array('$k'.$lang->stats, $lang->guestbook, $lang->imprint));
break;
}
print '</frame>';
?>