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/non-auto-insurance/bd-index.php

89 lines
3.9 KiB

6 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">
//编辑
function edit(id,ordid) {
var params = $('#searchForm').serialize();
// window.location.href = '/non-auto-insurance/bd-info?id=' + id + '&back_params=' + encodeURIComponent(params);
window.location.href = '/non-auto-insurance/add-bd-info?id=' + id + '&ordid='+ordid;
}
//删除
// function del(id) {
// if(confirm('是否确认删除?')) {
// $.post('/fix-car/my-list-delete',{id:id},function(obj){
// alert(obj.msg);
// if(obj.success) {
// window.location.reload();
// }
// },'json');
// }
// }
$(function(){
$("#search-btn").click(function(){
var params = $('#searchForm').serialize();
window.location.href = "/non-auto-insurance/bd-index?" + params;
});
// $('#add-btn').click(function(){
// window.location.href = '/non-auto-insurance/my-search';
// });
$('#new-btn').click(function(){
window.location.href = '/non-auto-insurance/add-bd-info';
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="searchForm">
<tr>
<td class="td_bg">
被保险人:<input name="insurant_name" type="text" value="<?=$insurant_name?>">
<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="添加">-->
<input type="button" class="act_btn" id="new-btn" name="new-btn" value="新增">
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="50" align="center" align="center" class="bg_tr" nowrap>排序</td>
<td align="center" align="center" class="bg_tr">被保险人</td>
<td align="center" align="center" class="bg_tr">被保险人证件号</td>
<td align="center" align="center" class="bg_tr">状态</td>
<td align="center" align="center" class="bg_tr">总保额</td>
<td align="center" align="center" class="bg_tr">保险费用</td>
<td align="center" align="center" class="bg_tr">投保份数</td>
<td align="center" align="center" class="bg_tr">当前操作</td>
<td width="30" align="center" class="bg_tr">操作</td>
</tr>
<?php
foreach($items as $index => $item) {
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap><?=$index+1?></td>
<td align="left" class="td_bg" nowrap><?=$item->id_man?></td>
<td align="left" class="td_bg" nowrap><?=$item->id_number?></td>
<td align="left" class="td_bg" nowrap><?=$item->status->name?></td>
<td align="left" class="td_bg" nowrap><?=$item->ord_scheme_id?$item->nona->baoer:''?></td>
<td align="left" class="td_bg" nowrap><?=$item->ord_scheme_id?$item->nona->baofei:''?></td>
<td align="left" class="td_bg" nowrap><?=$item->non_num?></td>
<td align="left" class="td_bg" nowrap><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="edit(<?= $item->non_id ?>,<?= $item->id ?>)">详情</a>]
</td>
</tr>
<?php
}
?>
<tr >
<td height="25" colspan="12" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>