Your IP : 172.28.240.42


Current Path : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/demo/
Upload File :
Current File : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/demo/top.menu_template.php

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?><?
$sMenu = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="0%"><img src="/bitrix/templates/demo/images/top_menu_corner.gif" alt="" width="15" height="19"></td>';

for($i=0; $i<count($MENU_ITEMS); $i++)
{
	$MENU_ITEM = $MENU_ITEMS[$i];
	extract($MENU_ITEM);

	if($SELECTED)
		$clrtext = 'topmenuact';
	else
		$clrtext = 'topmenu';

	$sMenu .= '<td>';
	$sMenu .= '<table border="0" cellspacing="0" cellpadding="0"><tr>';
	$sMenu .= '<td bgcolor="#7B9DBB" onmouseover="show('.$i.')" onmouseout="hidden('.$i.')"><a href="'.$LINK.'" class="'.$clrtext.'"><nobr>&nbsp;'.$TEXT.'&nbsp;</nobr></a></td>';
	$sMenu .= '<td width="0%" bgcolor="#7B9DBB">';

	if($i<count($MENU_ITEMS)-1) //add vertical divider after all items but not after the last one
		$sMenu .= '<img src="/bitrix/templates/demo/images/top_menu_divider.gif" width="15" height="19" alt="">';
	else
		$sMenu .= '<img src="/bitrix/templates/demo/images/1.gif" width="1" height="19" alt="">';

	$sMenu .= '</td></tr></table>';

	//check if menu of left type exists in the folder that the menu item points to
	$popup_menu = new CMenu("left");
	$popup_menu->Init($LINK);
	if(count($popup_menu->arMenu) > 0)
	{
		//if left menu exists then we display it in the hidden layer
		$popup_menu->template = "/bitrix/templates/demo/popup.menu_template.php";
		$sMenu .= '<div style="position:relative; width: 100%;">';
		$sMenu .= '<div onMouseOver="show('.$i.')" onMouseOut="hidden('.$i.')" id="menu'.$i.'" style="visibility: hidden; position: absolute; z-index: +1; top: 0px;" >';
		$sMenu .= $popup_menu->GetMenuHtmlEx();
		$sMenu .= '</div></div>';
	}
	$sMenu .= '</td>';
}
$sMenu .= '<td width="100%" bgcolor="#7B9DBB"><img src="/bitrix/templates/demo/images/1.gif" width="50" height="1" alt=""></td></tr></table>';
?>