You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simple-yewu/frontend/views/statistics/clean-work.php

88 lines
4.5 KiB

5 years ago
<?php
use \common\libs\MyLib;
?>
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/statistics/clean-work?" + params;
});
$("#fenpei-btn").click(function(){
window.location.href = "/statistics/clean-work-zj";
});
//导出
// $("#output-btn").click(function(){
// $('#page').val(0);
// var params = $('#searchForm').serialize();
// window.location.href = "/statistics/work-output?" + params;
// });
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<tr>
<td class="td_bg">
提单日期:从<input name="date_begin" type="text" value="<?=$date_begin?>" style="width:100px;" onclick="WdatePicker()"><input name="date_end" type="text" value="<?=$date_end?>" style="width:100px;" onclick="WdatePicker()">截止
工号:<input name="username" type="text" value="<?=$username?>">
级别:<select name="group_id">
<option value="0">全部</option>
<?php
foreach($group_items as $item) {
echo '<option value="'.$item->id.'"';
if($item->id == $group_id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
<input type="button" class="act_btn" id="output-btn" name="output-btn" value="导出">
<input type="button" class="act_btn" id="fenpei-btn" name="output-btn" value="分配的总量">
<a href="/statistics/clean-work?date_begin=<?=date('Y-m-d')?>&date_end=<?=date('Y-m-d')?>">当天</a>&nbsp;&nbsp;
<a href="/statistics/clean-work?date_begin=<?=date('Y-m-d',strtotime("-7 day"))?>&date_end=<?=date('Y-m-d')?>">7天</a>&nbsp;&nbsp;
<a href="/statistics/clean-work?date_begin=<?=date('Y-m-d',strtotime("-1 month"))?>&date_end=<?=date('Y-m-d')?>">1个月</a>&nbsp;&nbsp;
<a href="/statistics/clean-work?date_begin=<?=date('Y-m-d',strtotime("-3 month"))?>&date_end=<?=date('Y-m-d')?>">3个月</a>&nbsp;&nbsp;
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="50" align="center" class="bg_tr" nowrap>工号</td>
<td width="60" align="center" class="bg_tr" nowrap>真实姓名</td>
<td align="center" class="bg_tr" nowrap>正确数据总数</td>
<td align="center" class="bg_tr" nowrap>错误数据总数</td>
<td align="center" class="bg_tr" nowrap>预约数据总数</td>
</tr>
<?php
foreach($user_rows as $row) {
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap><?=$row['username']?></td>
<td align="center" class="td_bg" nowrap><?=$row['truename']?></td>
<td align="center" class="td_bg" nowrap><?=$row['total']['right_num']!=''?$row['total']['right_num']:''?></td>
<td align="center" class="td_bg" nowrap><?=$row['total']['wrong_num']!=''?$row['total']['wrong_num']:''?></td>
<td align="center" class="td_bg" nowrap><?=$row['total']['yuyue_num']!=''?$row['total']['yuyue_num']:''?></td>
</tr>
<?php
}
?>
<tr>
<td width="50" align="center" class="bg_tr" nowrap>汇总</td>
<td width="60" align="center" class="bg_tr" nowrap></td>
<td align="center" class="bg_tr" nowrap><?=$sum_total[0]?$sum_total[0]:''?></td>
<td align="center" class="bg_tr" nowrap><?=$sum_total[1]?$sum_total[1]:''?></td>
<td align="center" class="bg_tr" nowrap><?=$sum_total[2]?$sum_total[2]:''?></td>
</tr>
</table>