<?php /* Smarty version Smarty-3.0.6, created on 2013-10-17 02:29:22
         compiled from "C:/AppServ/www/www/templates/adminsys\menu_tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:28429525f4b82914cf5-64770908%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2bc1b22f4300cb3da9db884b268a010b5ddfea61' => 
    array (
      0 => 'C:/AppServ/www/www/templates/adminsys\\menu_tpl.html',
      1 => 1381140600,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28429525f4b82914cf5-64770908',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜单列表 -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/templates/adminsys/css/menu.css" />
<script type="text/javascript">

// 树状菜单
function closeitem( strid )
{
     var strid = strid;
	 var idtwolist = document.getElementById("twolist["+strid+"]");
	 
	 var idmenuc = document.getElementById("menuc["+strid+"]");
	 //alert(strid);
	 if(idmenuc.className=='oneth1')
	 {
		 document.getElementById("twolist["+strid+"]").style.display="none";
		 document.getElementById("menuc["+strid+"]").className="oneth2";
	 }else{
		 document.getElementById("twolist["+strid+"]").style.display="";
		 document.getElementById("menuc["+strid+"]").className="oneth1";
	 }
	 
} 
	var divMenuc = new Array();
	gi = 0;
	<?php  $_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['mkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('menuArray')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['contact']->key => $_smarty_tpl->tpl_vars['contact']->value){
 $_smarty_tpl->tpl_vars['mkey']->value = $_smarty_tpl->tpl_vars['contact']->key;
?>
		divMenuc[gi]		=<?php echo $_smarty_tpl->tpl_vars['mkey']->value;?>
;
		gi++;
	<?php }} ?>

   function changeall()
   {
		idtitlediv = document.getElementById("titlediv");
	 	idopendiv  = document.getElementById("opendiv");
		if(idtitlediv.className=='oneth1')
		{
			 document.getElementById("titlediv").className="oneth2";
			 document.getElementById("titleupdiv").innerHTML="↑";
			 for(i=0;i<divMenuc.length;i++)
			 {
				document.getElementById("twolist["+divMenuc[i]+"]").style.display="none";
				document.getElementById("menuc["+divMenuc[i]+"]").className="oneth2";
			 }
		}else{
			document.getElementById("titlediv").className="oneth1";
			document.getElementById("titleupdiv").innerHTML="↓";
			 for(i=0;i<divMenuc.length;i++)
			 {
				document.getElementById("twolist["+divMenuc[i]+"]").style.display="";
				document.getElementById("menuc["+divMenuc[i]+"]").className="oneth1";
			 }

		}

   }
   function outclassName( obj )
   {
   		obj.className="twoh2";
   }
   function overclassName( obj )
   {
   		obj.className="twoh3";
   }
</script>
</head>
<body>
<div id="menu">
<div class="oneth1" id="titlediv" onclick="changeall()" ><span id="titleupdiv">↓</span>菜单栏</div>
<?php  $_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['mkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('menuArray')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['contact']->key => $_smarty_tpl->tpl_vars['contact']->value){
 $_smarty_tpl->tpl_vars['mkey']->value = $_smarty_tpl->tpl_vars['contact']->key;
?>
  <div id="menuc[<?php echo $_smarty_tpl->tpl_vars['mkey']->value;?>
]"  onclick="closeitem(<?php echo $_smarty_tpl->tpl_vars['mkey']->value;?>
)" class="oneth1"><?php echo $_smarty_tpl->tpl_vars['contact']->value['men_name'];?>
</div>
  <div id="twolist[<?php echo $_smarty_tpl->tpl_vars['mkey']->value;?>
]"  class="twoli">
  <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['contact']->value['array']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
    <h2 class="twoh2" onMouseOut="outclassName(this)"; onMouseOver="overclassName(this)"><a href=".<?php echo $_smarty_tpl->tpl_vars['item']->value['men_file'];?>
" target="<?php echo $_smarty_tpl->tpl_vars['item']->value['men_targetval'];?>
" ><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/item8.gif"  width="8" border="0"><?php echo $_smarty_tpl->tpl_vars['item']->value['men_name'];?>
</a></h2>
   <?php }} ?>
  </div>
<?php }} ?>
</div>
</body>
</html>