<?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">
    <div class="content_block">
        <h1>
        <a class="btn btnNormal bt_opp_add right" href="<?php echo SITEURL;?>?mod=system&c=add_menu&parentid=<?php echo $parentid;?>">
                        <span class="ico_add" style="top:2px;"><b>ico+</b></span> 增加菜单
                    </a>
            菜单管理
        </h1>
        <div class="content b_size" style="margin:0;">
									
<div name="groupmanage" style="">
				<div class="tool_bar" style="_position:relative;">
        <?php if($parentid) { ?>
        <a class="btn" onclick="javascript:history.back();return false;"><span class="ico_home"></span>返回</a>
        <?php } ?>
		<a class="btn" opercmd="delfile"><span class="btnDel"></span>　 删除</a>
        
        	
		
	</div>
    
			
	<div id="ftnList" class="" style="width:100%;">			
		<table cellspacing="0" class="fileList listTable isroot" style="width:100%;table-layout:fixed;">
						<tbody><tr>
                 
				<th class="o_title2" width="8%">
                <input id="cbSelectAll" type="checkbox" opercmd="batchcheck" <?php if(!$parentid) { ?>disabled="disabled" title="禁止删除"<?php } ?> checkname="fid" style="margin:0 12px 0 0;vertical-align:middle;">排序</th>    
                <th width="15%">菜单标题</th>                              
				<th width="30%" nowrap="">网址</th>
                <th class="" width="5%">停用</th>
				<th class="txt_center" width="15%">类型</th>
				<th class="" width="15%">操作</th>
               
			</tr>
            <?php if($list) { ?>
            <?php foreach((array)$list as $key=>$item) {?>
            <tr>	
				<td class="name" nowrap="" style="overflow:hidden">
					<input type="checkbox" un="mbrCheck" authcode="<?php echo $item['fileidauthcode'];?>"  <?php if($item['isfolder']) { ?>disabled="disabled" title="禁止删除"<?php } ?> alias="<?php echo $item['fileid'];?>" style="margin-left:0;">
                    <?php echo $item['listorder'];?>
					
				</td>
				
				<td title="<?php echo $item['title'];?>">
					 <a href="<?php echo SITEURL;?>?mod=system&c=setmenu&parentid=<?php echo $item['menuid'];?>" title="点击查看下级菜单">
					<?php echo $item['title'];?>
                    </a>
				</td>

				<td>
					<?php if($item['url']) { ?><?php echo $item['url'];?><?php } else { ?>N/A<?php } ?>
				</td>
                 <td>
						<input type="checkbox" un="isclosed" menuid="<?php echo $item['menuid'];?>" <?php if($item['isfolder']) { ?>disabled="disabled" title="禁止停用"<?php } ?> <?php if($item['isclosed']) { ?>checked="checked"<?php } ?> value="<?php echo $item['isclosed'];?>">
				</td>
				
				<td class="txt_center">
                	<?php if($item['isfolder']) { ?>菜单组<?php } else { ?>菜单<?php } ?>
				</td>
				
				<td nowrap="" class="addrtitle">
                 <?php if(!$item['isfolder']) { ?>
                 <a href="<?php echo SITEURL;?>?mod=system&c=delete_menu&parentid=<?php echo $parentid;?>&menuid=<?php echo $item['menuid'];?>" onclick="return confirm('您确定要删除吗，如不确定请点取消')" title="删除" class="bt_del"></a>
                 <?php } ?>
					
					<a href="<?php echo SITEURL;?>?mod=system&c=edit_menu&parentid=<?php echo $parentid;?>&menuid=<?php echo $item['menuid'];?>" title="编辑" class="bt_rename"></a>&nbsp;&nbsp;
                    </td>
                   
			</tr>
             <?php }?>
            <?php } else { ?>
            
            <tr>	
				<td class="name" nowrap="" style="overflow:hidden">
					
					
				</td>
				
				<td style="color:#999">
					无下级菜单！
				</td>

				<td>
					
				</td>
				
				<td class="txt_center">
					 
				</td>
				
				<td nowrap="" class="addrtitle">
					
                    </td>
			</tr>
			<?php } ?>
					</tbody></table>
		
					
	</div>
		<div id="exInfo"></div>
	<div class="addrtitle" style="margin:15px 10px;display:none;">网盘容量：<em>2048 M</em>，当前剩余容量：<em>2047.90 M</em>，支持上传<em>1G</em>的单个文件。</div>
</div>
		</div>
    </div>
</div>
    </div>
</div>

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

</body>
</html>