menu.tpl.php 653 Bytes
<? $pos   = 100 ?>
<? foreach ($this->menuItems as $menu_id => $menu_data): ?>
	<? 
		$domid = "MENU_" . strtoupper ($menu_id);
		$url   = $_SERVER['PHP_SELF'] . '?cont=' . urlencode ($menu_id);
		$img   = ($this->contentId != $menu_id) ? 
			'menu-bg.png' : 'menu-bg-hilite.png';
	?>
	<DIV CLASS="menuItem" STYLE="top: <?=$pos?>px">
		<IMG ID="<?=$domid?>" SRC="images/<?=$img?>" ALT="">
		<DIV onMouseOver="javascript: menuOn ('<?=$domid?>');"
		     onMouseOut="javascript: menuOff ('<?=$domid?>');"
			  CLASS="menuItemText">
			<A CLASS="menuItemText" 
			   HREF="<?=$url?>"><?=$menu_data[0]?></A></DIV>
	</DIV>
	<? $pos += 26 ?>
<? endforeach ?>