<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left">
    <div class="company">
        <aside class="left_panel" un="leftNavBar">
            <ul class="sidetd">
              <?php echo $left_menu_html;?>
            </ul>
        </aside>
        <div class="right_panel"><!-- 新建/编辑用户组 -->
        
        <form id="frm" action="<?php echo SITEURL;?>?mod=system&c=add_menu" method="post" onsubmit="return checkPrivilegeInput()">
        <?php if($c=='edit_menu') { ?>
         <input type="hidden" name="menu[isfolder]" value="<?php echo $menu['isfolder'];?>" />
         <input type="hidden" name="menuid" value="<?php echo $menuid;?>" />
            <?php } ?>
    <div class="content_block">
        <h1>
           <?php if($c=='edit_menu') { ?>编辑<?php } else { ?>增加<?php } ?>菜单
        </h1>
        <div style="overflow:hidden;_zoom:1;">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                    菜单所属：
                </label>
            </div>
            <div class="settingDiv_r" style="width:590px;">
                <select tabindex="3" style="width: 252px;" class="txt" name="menu[parentid]">
                            <option value="0">父菜单组(根目录)</option>
                           	<?php echo $select_menu;?>
                             </select>
                <div class="clr">
                </div>
            </div>
        </div>
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   菜单名称：
                </label>
            </div>
            <div class="settingDiv_r">
                <input type="text" class="txt" name="menu[title]" value="<?php echo $menu['title'];?>" style="width:250px;">

              
            </div>
        </div>
        
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   菜单排序：
                </label>
            </div>
            <div class="settingDiv_r">
            
               <input type="text" class="txt" name="menu[listorder]" value="<?php echo $menu['listorder'];?>" style="width:250px;">

            </div>
        </div>
        
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l" style="clear:;">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                    菜单类型：
                </label>
            </div>
            <div valid="check:1" validmsg="请选择管理权限" class="settingDiv_r">
              
                <input type="radio" name="menu[isfolder]" ck="isfolder" value="1" <?php if($c=='edit_menu') { ?>disabled="disabled"<?php } ?><?php if($menu['isfolder']=='1'||$parentid=='') { ?>checked="checked"<?php } ?>>
                <label>
                    菜单组
                </label>
                  <input type="radio" name="menu[isfolder]" ck="isfolder" value="0" <?php if($c=='edit_menu') { ?>disabled="disabled"<?php } ?> <?php if($menu['isfolder']=='0'||$parentid) { ?>checked="checked"<?php } ?>>
                <label>
                    菜单
                </label>
 
                <span un="validMsg">
                </span>
            </div>
        </div>
        
        <div id="isfolder">
        <?php if($menu['isfolder']=='0'&&$c=='edit_menu'||$parentid) { ?>
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   模块名称：
                </label>
            </div>
            <div class="settingDiv_r">
                <input type="text" class="txt" name="menu[scriptnav]" value="<?php echo $menu['scriptnav'];?>" style="width:250px;">

              
            </div>
        </div>
        
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   菜单网址：
                </label>
            </div>
            <div class="settingDiv_r">
                <input type="text" class="txt" name="menu[url]" value="<?php echo $menu['url'];?>" style="width:250px;">

              
            </div>
        </div>
        <?php } ?>
        
        
        </div>
        
    </div>
    <!--end content-->
    <div class="submitColumn setting_action">
        <div class="left">
            <input type="submit" id="btnSubmit" class="btn btnSubmit" value="确定">
        </div>
        <div class="cancelLink">
            <a href="#" onclick="javascript:history.back();return false;">
                取消
            </a>
        </div>
    </div>
</form>

<div style="display:none" id='isfolderhtml'>
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   模块名称：
                </label>
            </div>
            <div class="settingDiv_r">
                <input type="text" class="txt" name="menu[scriptnav]" value="<?php echo $menu['scriptnav'];?>" style="width:250px;">

              
            </div>
        </div>
        
        <div style="overflow:hidden;_zoom:1">
            <div class="settingDiv_l">
                <label class="colum">
                    <span class="txt_red middleAlign">
                        *&nbsp;
                    </span>
                   菜单网址：
                </label>
            </div>
            <div class="settingDiv_r">
                <input type="text" class="txt" name="menu[url]" value="<?php echo $menu['url'];?>" style="width:250px;">

              
            </div>
        </div>

</div>
        
      </div>
    </div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>