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/sales-mng/sales-orders.php

95 lines
3.3 KiB

5 years ago
<?php
use common\libs\MyLinkPager;
$this->title = $car_info->car_no.'的保单';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=$this->title?></title>
<link href="/js/lib/datepicker/css/bootstrap.css" rel="stylesheet">
<link href="/css/base.css" rel="stylesheet">
<link href="/css/pages/list.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div id="inner-hd">
<div class="crumbs">
<i class="crumbs-arrow"></i>
<a href="javascript:;" class="crumbs-label"><?=$this->title?></a>
</div>
</div>
<div id="inner-bd">
<div class="button-group">
<div data-id="0" class="button current edit-btn">
<i class="iconfont">&#xe620;</i>
<span class="button-label">新增</span>
</div>
</div>
<div class="table-zone">
<form id="theFrm">
<table>
<thead>
<tr>
<td class="w70">ID</td>
<td class="w70">车牌号码</td>
<td class="w70">被保险人</td>
<td class="w70">联系电话</td>
<td class="w70">商业到期日期</td>
<td class="w70">交强到期日期</td>
<td class="w70">业务员</td>
<td class="w70">操作</td>
</tr>
</thead>
<tbody>
<?php
foreach($items as $item) {
?>
<tr>
<td class="text-center"><?=$item->id?></td>
<td class="text-left"><?=$item->car->car_no?></td>
<td class="text-left"><?=$item->id_man?></td>
<td class="text-left"><?=$item->link_phone?></td>
<td class="text-center"><?=$item->insurer1_begin_date?></td>
<td class="text-center"><?=$item->insurer2_begin_date?></td>
<td class="text-center">
<a data-id="<?=$item->id?>" href="javascript:;" class="edit-btn">详情</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</form>
</div>
<?php
echo MyLinkPager::widget([
'pagination' => $pagination,
]);
?>
</div>
<div id="inner-ft">
<br>
<br>
</div>
</div>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/global.js"></script>
<script type="text/javascript" src="/js/core.js"></script>
<script type="text/javascript" src="/js/jquery.grid.js"></script>
<script type="text/javascript">
$(function(){
$('.edit-btn').click(function(){
var id = $(this).data('id');
window.location.href = '/sales-mng/sales-orders-edit?id='+id+'&car_id=<?=$car_info->id?>';
});
});
</script>
</body>
</html>