Your IP : 172.28.240.42


Current Path : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/template3/
Upload File :
Current File : /var/www/html/clients/amz.e-nk.ru/bitrix/templates/template3/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%">&nbsp;</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" height="27"><tr>';
	$sMenu .= '<td onmouseover="show('.$i.')" onmouseout="hidden('.$i.')"><a href="'.$LINK.'" class="'.$clrtext.'"><nobr>&nbsp;'.$TEXT.'&nbsp;</nobr></a></td>';
	$sMenu .= '<td width="0%">';

	if($i<count($MENU_ITEMS)-1) //add vertical divider after all items but not after the last one
		$sMenu .= '<img src="/bitrix/templates/template3/images/1.gif" width="15" height="19" alt="">';
	else
		$sMenu .= '<img src="/bitrix/templates/template3/images/1.gif" width="1" height="27" 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/".SITE_TEMPLATE_ID."/popup.menu_template.php";
		$sMenu .= '<div style="position:relative; width: 100%; z-index: +100 ">';
		$sMenu .= '<div onMouseOver="show('.$i.')" onMouseOut="hidden('.$i.')" id="menu'.$i.'" style="visibility: hidden; position: absolute; top: 0px;" >';
		$sMenu .= $popup_menu->GetMenuHtmlEx();
		$sMenu .= '</div></div>';
	}
	$sMenu .= '</td>';
}
$sMenu .= '<td width="100%"><img src="/bitrix/templates/template3/images/1.gif" width="50" height="1" alt=""></td></tr></table>';
?>