<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={sys_charset}">
<title>menu edit</title>
<link href="{adminStylePath}style/common.css" rel="stylesheet" type="text/css">
<link href="{adminStylePath}style/jqModal.css" type="text/css" rel="stylesheet">
<script language="javascript" src="{adminStylePath}js/jquery.js"></script>
<script language="javascript" src="{adminStylePath}js/jqModal.js"></script>
<script language="javascript" src="{adminStylePath}js/jqModal.init.js"></script>
<script language="javascript" src="{adminStylePath}js/common.js"></script>
<script language="javascript" src="{adminStylePath}js/validate.js"></script>

<script>
function showAuth()
{
	var inputO =  document.getElementsByTagName("input");
	if(inputO.length>0) {
		for(i=0; i<inputO.length; i++)
		{
			if(inputO[i].name.toLowerCase()=="menu_type") {
				if(inputO[i].checked == true) {	    			
					if(inputO[i].value!=0) 
						document.getElementById("tr_auth").style.display="none";															
				}
			}
		}
	}
}

function selectShowAuth(svalue)
{
	if(svalue!=0) document.getElementById("tr_auth").style.display="none";	
	else 	document.getElementById("tr_auth").style.display="";
}

function init()
{
	showAuth();
}
</script>
</head>

<body onload="init()">
<table class="nav_table" cellpadding="0" cellspacing="0">	
	<tr>
		<td class="nav_td">{menu_nav}</td>
	</tr>	
</table>
<table class="toolbar_table" cellpadding="0" cellspacing="0">
	<tr>
		<td class="toolbar_td">{toolbar}</td>
	</tr>

</table>

<div class="line_space"><img src="{adminStylePath}images/blank.gif"></div>

<table cellpadding="0" cellspacing="0" class="edit_tb">
  
  <form name="editForm" method="post" action="" >
  	<input type="hidden" name="selectid" id="selectValue" value="{selectid}">
    <input type="hidden" name="selectValue" id="selectValue" value="{selectid}">
    <tr> 
      <td class="edit_td_txt">菜单类型:</td>
      <td class="edit_td_input">
      	{type_show}
      </td>
    </tr>
    <tr> 
      <td width="30%" class="edit_td_txt">菜单编号:</td>
      <td width="70%" class="edit_td_input">{id}</td>
    </tr>
	<tr> 
      <td width="30%" class="edit_td_txt">菜单标题:</td>
      <td width="70%" class="edit_td_input"><input type="text" name="title" id="title" class="input_text" value="{title}" ></td>
    </tr>
    <tr> 
    	<td colspan="2" width="100%">
    		<table cellpadding="0" cellspacing="0" width="100%" border="0">	
				<tr>
				  <td width="30%" class="edit_td_txt">所属分类:</td>
			      <td width="20%" class="edit_td_input">
			      	<select name="parentid" class="input_select" {is_edit}>
			      	  <option value="">+</option>
			      	  {list_class}
			        </select> 
			        <input type="hidden" name="parentid_old" value="{parentid_old}">
			      </td>
			      <td width="20%" class="edit_td_txt">所属用户:</td>
			      <td class="edit_td_input">
			      	<input type="text" name="username" id="username" class="input_text" value="{username}" onclick="openSelectWin('../mod_user/user_select.php')" {isdisabled}>
				      <input type="hidden" name="uid" id="uid" value="{uid}">
			      </td>
				</tr>	
			</table>
    	</td>
    </tr>
    <tr> 
      <td width="30%"  class="edit_td_txt">文件路径:</td>
      <td width="70%"  class="edit_td_input">
      	<input type="text" name="tourl" class="input_text" size="40" value="{tourl}" require="false" dataType="LimitB" min="0" max="200"  msg="[0,200]个字符之内">
      	<input type="hidden" name="tourl_old" value="{tourl_old}">
      </td>
    </tr>
    <tr> 
      <td class="edit_td_txt">标题图片:</td>
      <td class="edit_td_input">
      	<input type="text" name="fileurl" class="input_text" size="40" value="{fileurl}" require="false" dataType="LimitB" min="0" max="200"  msg="[0,200]个字符之内">
        &nbsp;&nbsp;{show_img}
      </td>
    </tr>   
    <tr id="tr_auth" style="display:"> 
      <td class="edit_td_txt">可用权限:</td>
      <td class="edit_td_input">
      	{auth_list}
      </td>
    <tr> 
      <td class="edit_td_txt">是否显示菜单:</td>
      <td class="edit_td_input">
      	{status}
      </td>
    </tr>
    <tr> 
      <td class="edit_td_txt">是否可用:</td>
      <td class="edit_td_input">
      	{is_delete}
      </td>
    </tr>
	<tr> 
      <td colspan="2" class="edit_more">
      	<img src="{adminStylePath}images/edit_detail.gif" align="absmiddle">&nbsp;<span class="edit_subtitle_txt">辅助功能</span>
      	<input type="checkbox" id="chk_more" checked value="1" onClick="showDisplayHidden('chk_more','area_more')">
      </td>
    </tr>
    <tr id="area_more" style="display:"> 
		<td colspan="2">
      	<table cellpadding="3" cellspacing="0" width="100%" border="0">	
		<tr> 
			<td class="edit_td_txt">限制选择频道的父ID</td>
			<td class="edit_td_input">
			<input type="text" name="channel_ids" id="channel_ids" class="input_text" size="30" value="{channel_ids}" require="false" dataType="LimitB" min="0" max="255"  msg="不能为空">
            <input type="button" class="btn_jqm" name="btn_select_channel_ids" id="btn_select_channel_ids" title="选择频道" value="选择..." onclick="openChannelSelect('channel_ids','multiselect','all')" >
			</td>
		</tr>
		<tr> 
			<td class="edit_td_txt">文章模板选择</td>
			<td class="edit_td_input">
				<input type="text" name="template_id_show" id="template_id_show" class="input_text" value="{template_title}" >	
				<input type="button" name="btn_select_channel_id"  value="选择..." onClick="openTemplateSelect('article.php')" >
				<input type="hidden" name="template_id" id="template_id" value="{template_id}">
			</td>
		</tr>
		</table>
		</td>
    </tr>  

  </form>
</table>

<div id="modalWindow" class="jqmWindow">
<div id="jqmTitle">
<button class="jqmClose">X</button>
<span id="jqmTitleText">选择频道</span>
</div>
<iframe id="jqmContent" src=""></iframe>
</div>

</body>
</html>

