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.
66 lines
2.6 KiB
66 lines
2.6 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/ajax.js"></script>
|
||
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
||
|
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
function edit(id){
|
||
|
var back_params = $('#searchForm').serialize();
|
||
|
window.location.href = '/work-day/edit?id='+ id + '&back_params=' + encodeURIComponent(back_params);
|
||
|
}
|
||
|
|
||
|
$(function(){
|
||
|
//搜索
|
||
|
$('#search-btn').click(function(){
|
||
|
var params = $('#searchForm').serialize();
|
||
|
window.location.href = '/work-day/index?' + params;
|
||
|
});
|
||
|
|
||
|
$('#add-btn').click(function(){
|
||
|
var params = $('#searchForm').serialize();
|
||
|
window.location.href = '/work-day/edit?id=0&back_params=' + encodeURIComponent(params);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<form id="searchForm">
|
||
|
<tr>
|
||
|
<td class="td_bg">
|
||
|
时间:<input name="date" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM'})">
|
||
|
<input type="hidden" name="page" value="<?=$page?>">
|
||
|
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
|
||
|
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</form>
|
||
|
</table>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<tr>
|
||
|
<td class="bg_tr" align="center" nowrap>排序</td>
|
||
|
<td class="bg_tr" align="center" nowrap>日期</td>
|
||
|
<td class="bg_tr" align="center" nowrap>双休天数</td>
|
||
|
<td class="bg_tr" align="center" nowrap>单休天数</td>
|
||
|
<td class="bg_tr" align="center" nowrap>操作</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
foreach ($items as $index => $item) {
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="td_bg"><?=$index+1?></td>
|
||
|
<td class="td_bg"><?=$item->date?></td>
|
||
|
<td class="td_bg"><?=$item->double_break?></td>
|
||
|
<td class="td_bg"><?=$item->single_break?></td>
|
||
|
<td class="td_bg" align="center">
|
||
|
<a href="javascript:void(0)" onclick="edit(<?=$item->id?>)">[操作]</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="td_bg" colspan="5" align="center"><?=$page_info?></td>
|
||
|
</tr>
|
||
|
</table>
|