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.
79 lines
4.8 KiB
79 lines
4.8 KiB
5 years ago
|
<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>
|
||
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
||
|
<form id="searchForm" method="GET">
|
||
|
<tr>
|
||
|
<td class="td_bg">
|
||
|
<label for="pid">分类:</label>
|
||
|
<select name="pid" id="pid">
|
||
|
<option value="0">全部</option>
|
||
|
</select>
|
||
|
<label for="name">更换项目(配件名):</label>
|
||
|
<input type="text" id="name" name="name" size="15" value="">
|
||
|
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索">
|
||
|
<input type="button" class="act_btn" value="添加" onclick="location.href='/keep-in-good/info'">
|
||
|
</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 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 if (count($bsdcs) > 0): ?>
|
||
|
<?php foreach ($bsdcs as $index=>$bsdc): ?>
|
||
|
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
|
||
|
<td align="center" class="td_bg" nowrap><?= $index+1 ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->brandT->name ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->seriesT->name ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->car_year ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->displacementT->name ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[0]->level ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[0]->use ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[0]->price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[0]->hour ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[1]->price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[1]->hour ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[2]->price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[2]->hour ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[2]->air_price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[3]->price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[3]->hour ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[4]->price ?></td>
|
||
|
<td align="left" class="td_bg" nowrap><?= $bsdc->carKeepInGoodItems[4]->hour ? $bsdc->carKeepInGoodItems[4]->hour : 0 ?></td>
|
||
|
<td align="center" class="td_bg" nowrap>
|
||
|
[<a href="javascript:void(0);" onclick="edit('<?= $bsdc->id ?>')">详情</a>]
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
<?php endif; ?>
|
||
|
<tr>
|
||
|
<td height="25" colspan="19" align="center" class="td_bg"><?= $page_info ?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
//编辑
|
||
|
function edit(id) {
|
||
|
window.location.href = '/keep-in-good/info?id=' + id;
|
||
|
}
|
||
|
</script>
|