<?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"/>
        <style type="text/css">
		table{
			width: 100%;
			text-align: center;
			border: solid #bdccd2;
			border-width: 1px 0px 0px 1px;
		}
		.column-list-title{
			background: #def6ff;
			font-size: 15px;
			font-weight: bold;
		}
		td{
			border: solid #bdccd2;
			border-width:0px 1px 1px 0px;
			padding: 5px;
		}
		table input{
			width: 15px;
			height: 15px;
		}
		.colunm-list-display{
			font-size: 13px;
		}
		

	</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">工资月份</div>
				<div class="caozuo-title">
				    <div class="caozuo-lanmu"><a href="/salary/index.php/Admin/Month/add" target="right" >添加</a></div>
			    </div>				
		</div>
        <form method="POST" action="/salary/index.php/Admin/Month/bdel" >
			<table border="0" cellspacing="0" cellpadding="0">
				<tr class="column-list-title">
					<td>
						<input type="checkbox" name="" id="selall" value="" />
					</td>
					<td>ID</td>
					<td>月份</td>
					<td>公司名称</td>
					<td>工资类型</td>
					<td>基本操作</td>
				</tr>
                <?php if(is_array($cateres)): $i = 0; $__LIST__ = $cateres;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="colunm-list-display">
					<td><input type="checkbox" name="bdel[]" id="" class="selall" value="<?php echo ($vo["cate_id"]); ?>" /></td>
					<td><?php echo ($vo["com_id"]); ?> </td>
					<td><?php echo ($vo["com_mon"]); ?></td>
					<td><?php echo ($vo["com_name"]); ?></td>
                    <td><?php echo ($vo["com_type"]); ?></td>
					<td>
                    <span style="margin-right: 5px;"><a href="/salary/index.php/Admin/Month/edt/com_id/<?php echo ($vo["com_id"]); ?>" target="right">修改</a></span>|
                    <span style="margin-left: 5px;"><a href="/salary/index.php/Admin/Month/del/com_id/<?php echo ($vo["com_id"]); ?>" onClick="return confirm('您确定要删除栏目吗')" target="right">删除</a></span> 
                    </td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</table>
            <div style="margin-top:20px;"><input type="submit" value="删除选中" onClick="return confirm('您确定要删除这些栏目吗！')"/></div>
            </form>
		</div>
	</body>
</html>
<script>
   $("#selall").click(function(){
	   if($(this).attr("checked")){
		   $(".selall").attr("checked","checked");
		   }else{
			$(".selall").removeAttr("checked");   
			   }
	   }
   
   );
</script>