<?php if (!defined('APP_PATH')) exit;?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Magic/Data/Public/js/jquery.min.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
</head>
<body>
<div class="container">
<iframe id="blank" name="blank"  style="display:none" ></iframe>
<form method="post" target="blank" action="?r=menu-index-save">
<input type="hidden" name="nid"  value="<?php echo $menu['nid'];?>">
<body class="formbox">
<table border="0" cellspacing="0" cellpadding="0" class="forminfo formtable">
		<tr>
		<td height="50" align="right">上级菜单：</td>
		<td>
			<select name="pid"  class="selectbox" >
				<option value="0">顶级菜单</option>
				<?php foreach ($list as $vo){?>
				<option value="<?php echo $vo['nid'];?>" <?php if($vo['nid']==$menu['pid']){ ?> selected<?php }?>><?php echo $vo['_name'];?></option>
				<?php }?>
			</select>
		</td>
	</tr>
	</tr>
		<td height="40" align="right">菜单名称：</td><td ><input type="text" name="title" value="<?php echo $menu['title'];?>" class="insty" size="30"></td>
	</tr>
	</tr>
		<td height="40" align="right">菜单类型：</td><td>
			<select name="menu"  class="selectbox" >
				<option value="1" <?php if($menu['menu']==1){ ?> selected<?php }?>>系统</option>
				<option value="2" <?php if($menu['menu']==2){ ?> selected<?php }?>>插件</option>
				<option value="3" <?php if($menu['menu']==3){ ?> selected<?php }?>>节点</option>
			</select>
		</td>
	</tr>
	<tr>
		<td height="40" align="right">MODULE：</td><td><input type="text" name="module" value="<?php echo $menu['module'];?>"  class="insty" size="30"></td>
	</tr>
	<tr>
		<td height="40" align="right">CONTROLLER：</td><td><input type="text" name="controller" value="<?php echo $menu['controller'];?>"  class="insty" size="30"></td>
	</tr>
	<tr>
		<td height="40" align="right">ACTION：</td><td ><input type="text" name="action" value="<?php echo $menu['action'];?>"  class="insty" size="30"></td>
	</tr>
	<tr>
		<td height="40" align="right">PARAM：</td><td ><input type="text" name="param" value="<?php echo $menu['param'];?>"  class="insty" size="30"></td>
	</tr>
	<tr>
		<td height="40" align="right">顺序：</td><td><input type="text" name="sorter" value="<?php echo $menu['sorter'];?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" maxlength="5" class="insty" size="8"><cite>排序仅能为数字</cite></td>
	<tr>
	
	<tr>
		<td height="40" align="right">状态：</td><td>
		<input type="radio" name="status" value="1" <?php if($menu['status']==1){ ?> checked<?php }?>>&nbsp;显示&nbsp;
		<input type="radio" name="status" value="0" <?php if($menu['status']==0){ ?> checked<?php }?>>&nbsp;隐藏&nbsp;
		</td>
	</tr>

</table>
</div>
<table style="margin:5px auto">
	<tr>
		<td align="center" height="40" colspan="10"><input type="submit" class="scbtn7" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn8"></td>
	</tr>
</table>
</body>
</html>