<extend name="Public/base"/>

<block name="body">
    
    
    <div class="cf main-place top_nav_list navtab_list">
        <h3 class="page_title">{$meta_title}</h3>
        <p class="description_text"></p>
    </div>
    
    <div class="tab-content tabcon1711 tabcon17112"> 
    
    <form action="{:U()}" method="post" class="form-horizontal form_info_ml">
        <table border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
                <td class="l noticeinfo">标题</td>
                <td class="r table_radio">
                    <input type="text" class="" name="title" value="{$info.title|default=''}" placeholder="请输入标题">
                    <span class="notice-text">用于后台显示的配置标题</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">排序</td>
                <td class="r table_radio">
                    <input type="text" class="" name="sort" value="{$info.sort|default=0}" placeholder="请输入排序">
                    <span class="notice-text">用于分组显示的顺序</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">链接</td>
                <td class="r table_radio">
                    <input type="text" class="" name="url" value="{$info.url|default=''}" placeholder="请输入链接">
                    <span class="notice-text">U函数解析的URL或者外链</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">上级菜单</td>
                <td class="r table_radio">
                    <span class="form_select"><select name="pid">
                    <volist name="Menus" id="menu">
                        <option value="{$menu.id}">{$menu.title_show}</option>
                    </volist>
                </select></span>
                    <span class="notice-text">所属的上级菜单</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">分组</td>
                <td class="r table_radio">
                    <input type="text" class="" name="group" value="{$info.group|default=''}" placeholder="请输入分组">
                    <span class="notice-text">用于左侧分组二级菜单</span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">是否隐藏</td>
                <td class="r table_radio">
                    <span class="form_radio"><label><input type="radio" name="hide" value="1"> 是</label>
                <label><input type="radio" name="hide" value="0"> 否</label></span>
                    <span class="notice-text"></span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">仅开发者模式可见</td>
                <td class="r table_radio">
                    <span class="form_radio"><label><input type="radio" name="is_dev" value="1"> 是</label>
                <label><input type="radio" name="is_dev" value="0"> 否</label></span>
                    <span class="notice-text"></span>
                </td>
            </tr>
            <tr>
                <td class="l noticeinfo">说明</td>
                <td class="r table_radio">
                    <input type="text" class="" name="tip" value="{$info.tip|default=''}" placeholder="请输入说明">
                    <span class="notice-text">菜单详细说明</span>
                </td>
            </tr>
          </tbody>
        </table>
    
    
        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class=" submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class=" submit_btn" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
    
    </div>
		
		
		<div class="common_settings">
			<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
			<form class="addShortcutIcon">
				<input type="hidden" name="title" value="{$m_title}">
				<input type="hidden" name="url" value="{$m_url}">
			</form>
			<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
		</div>
		
</block>

<block name="script">
    <script type="text/javascript">
        Think.setValue("pid", {$info.pid|default = 0});
        Think.setValue("hide", {$info.hide|default = 0});
        Think.setValue("is_dev", {$info.is_dev|default = 0});
        //导航高亮
        highlight_subnav('{:U('index')}');
    </script>
</block>