<?php use yii\helpers\Html; ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>车务管理系统</title> <link href="/css/left_css.css" rel="stylesheet" type="text/css"> <?=Html::csrfMetaTags() ?> </head> <body bgcolor="16ACFF"> <table width="170" border="0" cellpadding="0" cellspacing="0" background="/images/tablemde.jpg"> <?php foreach($menu_items as $item) { ?> <tr> <td height="5" background="/images/tableline_top.jpg" bgcolor="#16ACFF"></td> </tr> <tr> <td> <TABLE width="97%" border=0 align=right cellPadding=0 cellSpacing=0 class=leftframetable> <TBODY> <TR> <TD height="25" style="background:url(/images/left_tt.gif) no-repeat"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <TD width="20"></TD> <TD class=STYLE1 style="CURSOR: hand" onclick=showsubmenu(<?=$item['id']?>); height=25><?=$item['name']?></TD> </tr> </table> </TD> </TR> <TR> <TD> <TABLE id="submenu<?=$item['id']?>" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <?php if(isset($item['children'])) { foreach($item['children'] as $sub_item) { ?> <TR> <TD width="2%"><IMG src="/images/closed.gif"></TD> <TD height=23><A href="javascript:void(0);" onclick="parent.openTab({'id':<?=$sub_item['id']?>,'name':'<?=$sub_item['name']?>','path':'<?=$sub_item['path']?>'});"><?=$sub_item['name']?></A></TD> </TR> <?php }} ?> </TBODY> </TABLE> </TD> </TR> </TBODY> </TABLE> </td> </tr> <tr> <td height="5" background="/images/tableline_bottom.jpg" bgcolor="#9BC2ED"></td> </tr> <?php } ?> </table> <SCRIPT language=JavaScript> function showsubmenu(sid) { whichEl = eval("submenu" + sid); if (whichEl.style.display == "none") { eval("submenu" + sid + ".style.display=\"\";"); } else { eval("submenu" + sid + ".style.display=\"none\";"); } } </SCRIPT> </body> </html>