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/business-order/search-result.php

50 lines
2.3 KiB

5 years ago
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="searchForm">
<tr>
<td class="td_bg">
搜索结果
<input type="button" class="act_btn" id="back-btn" name="back-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 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->car_no ?></td>
<td align="left" class="td_bg" nowrap><?= $item->car_man ?></td>
<td align="left" class="td_bg" nowrap><?= $item->phone ?></td>
<td align="left" class="td_bg" nowrap><?= $item->engine_no ?></td>
<td align="left" class="td_bg" nowrap><?= $item->car_frame_no ?></td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);" onclick="edit(<?= $item->id ?>)">添加修车记录</a>]
</td>
</tr>
<?php endforeach; ?>
</table>
<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) {
window.location.href = '/business-order/order-info?car_id=' + id + '&status=0';
}
//返回按钮
$('#back-btn').click(function () {
window.location.href = '/business-order/search';
});
</script>