<?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;
			font-size:7px;
		}
		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/Link/add" target="right" >添加</a></div>
                    <div class="caozuo-lanmu"><a href="/salary/index.php/Admin/Paylst/uploadexcel" target="right">上传Excel</a></div>
			    </div>				
		</div>
        <form method="POST" action="/salary/index.php/Admin/Paylst/bdel" >
			<table border="0" cellspacing="0" cellpadding="0">
				<tr class="column-list-title">
					<td style="width:2%">
						<input type="checkbox"  name="" id="selall" value="" />
					</td>
					<td style="width:2%">工资条ID</td>
                    <td style="width:1%">月份</td>
                    <td style="width:3%">企业</td>
					<td style="width:2%">姓名</td>
                    <td style="width:5%">身份证号</td>
                    <td style="width:4%">手机号</td>
                    <td style="width:2%">部门</td>
					<td style="width:2%">职级</td>
                    <td style="width:2%">入职日期</td>
					<td style="width:2%">状态</td>
                    <td style="width:2%">离职日期</td>
                    <td style="width:2%">成本中心</td>
                    <td style="width:2%">B小时工资/H</td>
                    <td style="width:2%">B满勤天数</td>
                    <td style="width:2%">B计薪天数</td>
                    <td style="width:2%">B迟到工时</td>
                    <td style="width:2%">B加班工时</td>
                    <td style="width:2%">B法加工时</td>
                    <td style="width:2%">B合计工时</td>
                    <td style="width:2%">I基本工资</td>
                    <td style="width:2%">I上月补发</td>
                    <td style="width:2%">I特殊岗位津贴</td>
                    <td style="width:2%">I其他补助</td>
                    <td style="width:2%">I应付合计</td>
                    <td style="width:2%">E上月补发管理费</td>
                    <td style="width:2%">E扣宿舍水电</td>
                    <td style="width:2%">E代扣工会会费</td>
                    <td style="width:2%">E扣自助餐消费</td>
                    <td style="width:2%">E扣物品损失费</td>
                    <td style="width:2%">E扣财务借款</td>
                    <td style="width:2%">E商业保险</td>
                    <td style="width:2%">E个税</td>
                    <td style="width:2%">E应扣合计</td>
                    <td style="width:2%">实发工资</td>
                    <td style="width:4%">基本操作</td>
                    
				</tr>
                <?php if(is_array($htps)): $i = 0; $__LIST__ = $htps;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["per_id"]); ?>" /></td>
					<td><?php echo ($vo["per_id"]); ?> </td>
					<td><?php echo ($vo["per_month"]); ?>  </td>
					<td><?php echo ($vo["per_company"]); ?></td>
					<td><?php echo ($vo["per_name"]); ?>  </td>
                    <td><?php echo ($vo["per_card"]); ?> </td>
                    <td><?php echo ($vo["per_phone"]); ?> </td>
					<td><?php echo ($vo["per_dep"]); ?>  </td>
					<td><?php echo ($vo["per_zhiji"]); ?></td>
					<td><?php echo ($vo["per_enttime"]); ?>  </td>
                    <td><?php echo ($vo["per_state"]); ?> </td>
                    <td><?php echo ($vo["per_cost"]); ?> </td>
					<td><?php echo ($vo["per_chenben"]); ?>  </td>
					<td><?php echo ($vo["per_bhpay"]); ?></td>
                    <td><?php echo ($vo["per_bmday"]); ?> </td>
                    <td><?php echo ($vo["per_bjxday"]); ?> </td>
					<td><?php echo ($vo["per_blate"]); ?>  </td>
					<td><?php echo ($vo["per_bjiaban"]); ?></td>
					<td><?php echo ($vo["per_bfajia"]); ?>  </td>
                    <td><?php echo ($vo["per_bheji"]); ?> </td>
                    <td><?php echo ($vo["per_ijiben"]); ?> </td>
					<td><?php echo ($vo["per_ibufa"]); ?>  </td>
					<td><?php echo ($vo["per_iteshujin"]); ?></td>
					<td><?php echo ($vo["per_iother"]); ?>  </td>
                    <td><?php echo ($vo["per_itotal"]); ?> </td>
                    <td><?php echo ($vo["per_eglf"]); ?> </td>
					<td><?php echo ($vo["per_eshuidian"]); ?>  </td>
					<td><?php echo ($vo["per_ehuifei"]); ?></td>
					<td><?php echo ($vo["per_ezizhu"]); ?>  </td>
                    <td><?php echo ($vo["per_esunshi"]); ?>  </td>
                    <td><?php echo ($vo["per_eloan"]); ?>  </td>
                    <td><?php echo ($vo["per_ebaoxian"]); ?>  </td>
                    <td><?php echo ($vo["per_eshui"]); ?>  </td>
                    <td><?php echo ($vo["per_eouttotal"]); ?>  </td>
                    <td><?php echo ($vo["per_esalary"]); ?>  </td>

					<td>
                    <span style="margin-right: 5px;"><a href="/salary/index.php/Admin/Paylst/edt/li_id/<?php echo ($vo["li_id"]); ?>" target="right" >修改</a></span>|
                    <span style="margin-left: 5px;"><a href="/salary/index.php/Admin/Paylst/del/li_id/<?php echo ($vo["li_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>
            <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>