{include file="page_header.htm"}
<form name="theForm" method="post" action="wx_menu.php" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_form">
	<tr>
	<td class="label">菜单名:</td>
	<td><input type="text" name="name" style="width:120px;" value="{$menu.name}" class="FormSmall" /></td>
	</tr>
	
	<tr>
	<td class="label">上级分类:</td>
	<td>
	<select name="parent_id" class="select_input" style="width:120px;">
	<option value="0">顶级分类</option>
	{foreach from=$menu_list item=cat}
	 <option value="{$cat.menu_id}" {if $menu.parent_id == $cat.menu_id} selected="selected"{/if}>{$cat.name}</option>
	 {/foreach}
	</select>
	</td>
	</tr> 
	
	<tr>
	<td class="label"><a href="#" title="链接（点击对应的微信菜单,打开链接的网页）<br />点击（点击对应的微信菜单，发送“响应消息”中对应关键词的消息内容）" style="margin-right:5px;" ><img src="images/help.gif" border="0" alt=""/></a>类型:</td>
	<td>
	<select name="type" class="select_input" style="width:120px;">
	<option value=""></option>
	<option value="view" {if $menu.type == 'view'} selected="selected"{/if}>链接</option>
	<option value="click" {if $menu.type == 'click'} selected="selected"{/if}>点击</option>
	</select> 		
	</td>
	</tr>
	
	<tr>
	<td class="label">关键词/链接:</td>
	<td><input type="text " name="value" size="60" value="{$menu.value}" class="FormSmall" /></td>
	</tr>
	
	<tr>
	<td class="label">排序:</td>
	<td><input type="text " name="sort_order" style="width:120px;" value="{$menu.sort_order}" class="FormSmall" />
	请输入整数，数字小的排在前面</td>
	</tr>
	
	<tr>
	<td class="label"><a href="#" title="是否在微信菜单中显示" style="margin-right:5px;" ><img src="images/help.gif" border="0" alt=""/></a> 状态: </td>
	<td>
	<select name="status" class="select_input" style="width:120px;">
	<option value="1" {if $menu.status == 1} selected="selected"{/if}>启用</option>
	<option value="0" {if $menu.status == 0} selected="selected"{/if}>禁用</option>
	</select>
	</td>
	</tr>  
  
	<tr>
	<td style="border:none;"></td>
	<td style="border:none;">
		<input type="hidden" name="act" value="{$form_action}" />
		<input type="hidden" name="menu_id" value="{$menu.menu_id}" />
		<input type="submit" value="提交" class="bginput" />
		<input type="reset" value="重置" class="bginput" />
	</td>
	</tr> 
</table>
</form>
{include file="page_footer.htm"}