<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>Office 515158.com OA办公系统</title>
        <link rel="stylesheet" type="text/css" href="template/style2015/content/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="template/style2015/content/css/bootstrap-modal.css" />
		        <link rel="stylesheet" type="text/css" href="template/style2015/content/css/bootstrap.css"> 
				<link rel="stylesheet" type="text/css" href="template/style2015/bootstrap/css/bootstrap-datetimepicker.css"> 
        <link rel="stylesheet" type="text/css" href="template/style2015/content/css/base.css">
		<link rel="stylesheet" type="text/css" href="template/style2015/content/css/style.css">
		<script type="text/javascript" src="template/style2015/content/js/jquery.min.js"></script>
		<script type="text/javascript" src="template/style2015/content/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="template/style2015/content/js/bootstrap-modal.js"></script>
		<script type="text/javascript" src="template/style2015/content/js/bootstrap-modalmanager.js"></script>

   </head>
	<body >
	<div class="tabbable work-nav"> <!-- Only required for left/right tabs -->
				<ul id="myTab" class="nav nav-tabs">
					<li>
						<a href="admin.php?ac=usergroup&fileurl=mana">权限组管理</a>
					</li>
				    <li class="active">
						<a href="admin.php?ac=home&fileurl=mana">门户权限设置</a>
					</li>
				</ul>
			</div>
<div class="search_area">
    
</div>


	
	
		
	<div class="content" >
		<div style="padding-top:5px;">
			
			
			<div id="folder-grid" class="grid-view">
				<div class="toolbar"  style="margin-left:10px;">
				<!--<a style="margin-right:5px;" class="btn btn-primary" onClick="javascript:window.location='admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&do=add'">新增桌面模块</a> -->
						<a class="btn " onClick="javascript:window.location='admin.php?ac=usergroup&fileurl=mana'" style="margin-right:5px;">返回</a>
				</div>
				<div style="float:right; text-align:right; margin-right:20px;">
				</div>
				<table class="items table table-striped" style="margin-bottom:0px;">
					<thead>
						<tr>
							<th style="width:60px" id="folder-grid_c0">
							排序
							</th>
							<th style="width:120px;">名称</th>
							<th style="width: 140px;">模块</th>
							<th style="width: 80px;">类型</th>
							<th style="width: 80px;">状态</th>
							<th style="width: 100%;">可使用人员</th>
							<th style="width: 80px;">操作</th>
						</tr>
					</thead>
					</table>
					<div style="position:absolute; height:70%; width:100%;overflow:auto; ">
					<form name="update" method="post" action="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>">
<input type="hidden" name="do" value="update" />

<input type="hidden" name="id[]" value="<?php echo $row['id']?>" />
<table class="items table table-striped" style="margin-top:0px;">
				    <tbody>
<?php foreach ($result as $row) {?>
		<tr class="odd">
						<td style="width:60px">
						<?php echo $row['numbers']?></td>
						
						
						<td style="width:120px;">
						<?php echo $row['title']?></td>
						<td style="width:140px;">
						<?php echo $row['modname']?></td>
						<td style="width:80px;">
						<?php
						if($row['type']==1){
							echo '<font color=red>汇总版块</font>';
						}elseif($row['type']==2){
							echo '内容版本';
						}elseif($row['type']==3){
							echo '统计版块';
						}
						?>
						</td>
						<td style="width:80px;">
						<?php
						if($row['type1']==1){
							echo '正常';
						}elseif($row['type1']==2){
							echo '关闭';
						}
						?>
						</td>
						<td style="width:100%;">
						<?php
						if($row['user']!='0'){
							echo $row['user'];
						}else{
							echo '所有人可用';
						}
						?>
						</td>
						
						<td style="width: 120px; text-align:center; vertical-align:middle;"  class="notopen"><a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&do=add&id=<?php echo $row['id']?>">编辑</a>
						</td>
						</tr>
<?php }?>	
							
					</tbody>
					
				</table></form>	
			</div>
				
			</div>
		</div>
	</div>
<script>
function check_all(ck) {
	if ($(ck).attr('checked')) {
		$('#folder-grid tbody input[name="id[]"]').each(function() {
			$(this).attr('checked','checked');
			$(this).parent().parent().addClass('highlight');
		});
	} else {
		$('#folder-grid tbody input[name="id[]"]').each(function() {
			$(this).removeAttr('checked');
			$(this).parent().parent().removeClass('highlight');
		});
	}
}
</script>	
		
	</body>
</html>