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/insurer/original-mng.php

105 lines
5.1 KiB

<?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 info(id) {
var params = $('#searchForm').serialize();
window.location.href = '/insurer/original-mng-edit?id=' + id + '&back_params=' + encodeURIComponent(params);
}
$(function(){
$("#search-btn").click(function(){
$('#page').val(0);
var params = $('#searchForm').serialize();
window.location.href = "/insurer/original-mng?" + params;
});
});
</script>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="searchForm">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<tr>
<td class="td_bg">
被保险人:<input name="id_man" type="text" value="<?=$id_man?>">
电话:<input name="phone" type="text" value="<?=$phone?>">
车牌:<input name="car_no" type="text" value="<?=$car_no?>">
收款人:<select name="payee_id" id="payee_id" style="width:100px;">
<option value="">全部</option>
<?php
foreach($payee_items as $item) {
echo '<option value="'.$item->id.'"';
if($item->id == $payee_id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
收款方式:<select name="payment_id" id="payment_id" style="width:100px;">
<option value="">全部</option>
<?php
foreach($payment_items as $item) {
echo '<option value="'.$item->id.'"';
if($item->id == $payment_id)
echo ' selected ';
echo '>'.$item->name.'</option>';
}
?>
</select>
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
</td>
</tr>
</form>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<tr>
<td width="24" align="center" class="bg_tr">序号</td>
<td width="60" align="center" class="bg_tr">被保险人</td>
<td width="60" align="center" class="bg_tr">联系电话</td>
<td width="60" align="center" class="bg_tr">车牌号</td>
<td width="60" align="center" class="bg_tr">商业保单号</td>
<td width="80" align="center" class="bg_tr">交强保单号</td>
<td width="80" align="center" class="bg_tr">保险公司</td>
<td width="60" align="center" class="bg_tr">验证码</td>
<td width="60" align="center" class="bg_tr">销售座席</td>
<td width="60" align="center" class="bg_tr">状态</td>
<td width="60" align="center" class="bg_tr">支付方式</td>
<td width="60" align="center" class="bg_tr">收款人</td>
<td width="60" align="center" class="bg_tr">收款方式</td>
<td width="60" align="center" class="bg_tr">当前操作</td>
<td width="30" align="center" class="bg_tr">操作</td>
</tr>
<?php
foreach($items as $index => $item) {
$start_index = ($page - 1) * 20 + $index;
?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg"nowrap ><?=$start_index+1?></td>
<td class="td_bg" nowrap><?=MyLib::substr_cut($item->id_man,30)?></td>
<td class="td_bg" nowrap><?=$item->link_phone?></td>
<td class="td_bg" nowrap><?=$item->car_no?></td>
<td class="td_bg" nowrap><?=$item->insurer1_no?></td>
<td class="td_bg" nowrap><?=$item->insurer2_no?></td>
<td class="td_bg" ><?=MyLib::substr_cut($item->company?$item->company->name:'',30)?>&nbsp;</td>
<td class="td_bg" nowrap><?=$item->sms_code?></td>
<td class="td_bg" ><?=$item->user?$item->user->getShowName():''?>&nbsp;</td>
<td class="td_bg" ><?=$item->status->name?></td>
<td class="td_bg" align="center" nowrap><?=$item->shoufei_id?MyLib::zhifufs($item->shoufei_id).'-':''?><?=$item->payType?$item->payType->name:''?></td>
<td class="td_bg" ><?=$item->payee_id?$item->payee->name:''?></td>
<td class="td_bg" ><?=$item->payment_id?$item->payment->name:''?></td>
<td class="td_bg" ><?=$item->lock?$item->lock->getShowName():''?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="info(<?=$item->id?>)">详情</a>]
</td>
</tr>
<?php
}
?>
<tr>
<td height="25" colspan="15" align="center" class="td_bg"><?=$page_info?></td>
</tr>
</table>