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.
69 lines
3.3 KiB
69 lines
3.3 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 edit(id,status) {
|
|
window.location.href = '/fix-car/my-list-edit?id=' + id + '&status=' + status + '&type=3&gift_enable=1';
|
|
}
|
|
$(function(){
|
|
$("#search-btn").click(function(){
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = "/fix-car/step3-list?" + params;
|
|
});
|
|
$('#add-btn').click(function(){
|
|
edit(0);
|
|
});
|
|
});
|
|
</script>
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
|
<form id="searchForm">
|
|
<tr>
|
|
<td class="td_bg">
|
|
车牌号:<input name="car_no" type="text" value="<?=$car_no?>">
|
|
<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="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 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->link_man?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->car_no?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->brand?$item->brand->name:''?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->series?$item->series->name:''?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->address?></td>
|
|
<td align="left" class="td_bg" nowrap></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->accident_type?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->responsibility?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->user->getShowName()?></td>
|
|
<td align="left" class="td_bg" nowrap><?=$item->getStatus()?></td>
|
|
<td align="center" class="td_bg" nowrap>
|
|
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>,<?=$item->status?>)">详情</a>]
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
|