<?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?v=977"/>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/right.css?v=7977"/>
        <script language="javascript" src="<?php echo ADMIN_PUC ?>/js/jquery-1.4.2.min.js" ></script>
        <script type="text/javascript"  src="/salary/Public/laydate/laydate.js"></script>
	</head>
    <style>
       table td:nth-child(5){
		   text-align:center;
		   padding-left:5px;
		   }
    </style>
	<body>
		<div class="content">
            <div class="search">
               <div class="caozuo-title">
                  <form action="" method="post" enctype="multipart/form-data">
                    <div style="height:50px;line-height:50px;padding:20px;float:left;">
                      <ul style="list-style:none;margin:0px;padding:0px">
                       <li style="float:left;margin-right:10px;color:#4d4d4d;">公司:</li>
                        <li style="float:left;margin-right:70px;"  class="chaxun">
                           <select name="dao_company" style="width:200px;height:33px;outline:none;border:1px solid #c9c9c9;">
                              <option value="">全部</option>
                              <?php if(is_array($result)): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["dao_company"]); ?>"><?php echo ($vo["dao_company"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                           </select>
                        </li>
                        <li style="float:left;margin-right:10px;color:#4d4d4d;">月份:</li>
                        <li style="float:left;margin-right:70px;" class="chaxun">
                           <input type="text" name="dao_month" id="mon" value="<?php echo I('dao_month') ?>" autocomplete="off" class="shuru" placeholder="请选择月份"/>
                        </li>
                      </ul>
                    </div>
                       <div style="float:left;height:50px;padding:20px;line-height:50px;" >
                       <input  type="submit" value="查询" class="search-btn" onmousemove="this.className='search-over'"  onmouseout="this.className='search-out'"/>
                       </div>
                  </form>
			    </div>			
            </div>
        
			<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/Daoru/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="/salary/index.php/Admin/Daoru/bdel" >
			<table border="0" cellspacing="0" cellpadding="0">
				<tr class="column-list-title">
					<td>ID</td>
					<td>公司名称</td>
                    <td>月份</td>
					<td>用工模式</td>
					<td>操作</td>
				</tr>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;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>
                    <span style="float:left;height:37px;">
                    <input type="checkbox" name="bdel[]" id="" class="selall" value="<?php echo ($vo["dao_id"]); ?>" style="height:37px;line-height:37px;margin:0;"/>
                    </span>
                    <span style="margin-left:5px;"><?php echo ($vo["dao_id"]); ?> </span> 
                    </td>
                    <td><?php echo ($vo["dao_company"]); ?></td>
					<td><?php echo ($vo["dao_month"]); ?></td>
					<td><?php echo ($vo["dao_lei"]); ?></td>
					<td>
                    <span style="height:37px;line-height:37px;float:left;width:45%;text-align:right;">
                    <a href="/salary/index.php/Admin/Daoru/uploadexcel/dao_id/<?php echo ($vo["dao_id"]); ?>" target="right">
                    <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/Daoru/del/dao_id/<?php echo ($vo["dao_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:10px;height:57px;background:#ffffff;line-height:57px;">
            <div class="bottom-list">
            <input type="checkbox"  name="" id="selall" value="" class="all-select" />
            <span class="select-title">全选</span>
            </div>
            <div style="float:left;">
            <input type="submit" value="批量删除" onClick="return confirm('您确定要删除这些栏目吗！')" onmousemove="this.className='delete-over'"  onmouseout="this.className='delete-out'"  class="dbdelete" style="cursor:pointer"/>
            </div>
            </form>
            <div class="page"><span><?php echo ($page); ?></span></div>
            </div>
		</div>
	</body>
</html>
<script>
   $("#selall").click(function(){
	   if($(this).attr("checked")){
		   $(".selall").attr("checked","checked");
		   }else{
			$(".selall").removeAttr("checked");   
			   }
	   }
   
   );
</script>
 <script>
//执行一个laydate实例
   laydate.render({
     elem: '#mon' //指定元素
	 ,type: 'month'
        });
 </script>