<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>管理员列表</title>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/common.css"/>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/right.css"/>
        <style type="text/css">
          table td:nth-child(3){
		   text-align:center;
		   padding-left:5px;
		   }
	   </style>
        <script language="javascript" src="<?php echo ADMIN_PUC ?>/js/jquery-1.4.2.min.js" ></script>
	</head>
	<body>
		<div class="content">
			<div class="column-name">
				<div class="lmlb">
                <span style="display:inline-block;float:left;width:7px;height:20px;background:#0096ca;margin-right:7px;"></span>
                <span>管理员列表</span>
                </div>
                <div class="zengjia"  style="cursor:pointer" onmousemove="this.className='add-over'"  onmouseout="this.className='add-out'">
                  <a href="/salary/index.php/Admin/Admin/add" target="right" class="add-color">
                    <span  class="icon-box">
                      <img src="<?php echo ADMIN_PUC ?>/img/add.png" alt="添加工资单" title="添加工资单" class="add-icon"/>
                    </span>
                    <span class="add-box">添加</span>
                  </a>
                </div>
		</div>
        <form method="POST" action="" >
			<table border="0" cellspacing="0" cellpadding="0">
				<tr class="column-list-title">
					<td width="5%">ID</td>
					<td >管理员名称</td>
					<td width="10%">操作</td>
				</tr>
                <?php if(is_array($confs)): $i = 0; $__LIST__ = $confs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="colunm-list-display"  onmousemove="this.className='mouse-over'"  onmouseout="this.className='mouse-out'">
					<td><?php echo ($vo["ad_id"]); ?> </td>
					<td><?php echo ($vo["ad_name"]); ?>  </td>
					<td>
                    <span style="height:37px;line-height:37px;float:left;width:45%;text-align:right;">
                    <a href="/salary/index.php/Admin/Admin/edt/ad_id/<?php echo ($vo["ad_id"]); ?>">
                    <img src="<?php echo ADMIN_PUC ?>/img/edit.png" alt="编辑" title="编辑" style="width:27px;vertical-align:middle"/>
                    </a>
                    </span>
                    <span style="height:37px;line-height:37px;float:right;width:45%;text-align:left;">
                    <a href="/salary/index.php/Admin/Admin/del/ad_id/<?php echo ($vo["ad_id"]); ?>"  onClick="return confirm('您确定要删除栏目吗')" target="right">
                    <img src="<?php echo ADMIN_PUC ?>/img/delete.png" alt="删除" title="删除" style="width:27px;vertical-align:middle"/>
                    </a>
                    </span> 
                    </td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</table>
            <div style="margin-top:20px;"><?php echo ($page); ?></div>
            </form>
		</div>
	</body>
</html>
<script>
   $("#selall").click(function(){
	   if($(this).attr("checked")){
		   $(".selall").attr("checked","checked");
		   }else{
			$(".selall").removeAttr("checked");   
			   }
	   }
   
   );
</script>