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/store-room/jidian-container.php

60 lines
3.3 KiB

<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>
<?php if (count($contents) > 0): ?>
<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="">
<input type="submit" class="act_btn" id="search-btn" name="search-btn" value="搜索">
<input type="button" class="act_btn" value="添加" onclick="location.href='/store-room/put-in-store-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 width="30" align="center" class="bg_tr">操作</td>
</tr>
<?php foreach ($contents as $index => $content): ?>
<?php if (is_null($content)): ?>
<?php continue; ?>
<?php endif; ?>
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
<td align="center" class="td_bg" nowrap><?= $index + 1 ?></td>
<td align="center" class="td_bg" nowrap><input type="checkbox"></td>
<td align="center" class="td_bg" nowrap><input type="button" value="+" style="background-color: #299AD6"></td>
<td align="center" class="td_bg" nowrap><?= $content->itemScale->name ?></td>
<td align="center" class="td_bg" nowrap>--</td>
<td align="center" class="td_bg"
nowrap><?php if (1 == $t): ?>钣金项目<?php elseif (2 == $t): ?>机电项目<?php elseif (3 == $t): ?>喷漆项目<?php elseif (4 == $t): ?>美容项目<?php endif; ?></td>
<td align="center" class="td_bg" nowrap>--</td>
<td align="center" class="td_bg" nowrap><?= $content->work_hour ?></td>
<td align="center" class="td_bg" nowrap>未知</td>
<td align="center" class="td_bg" nowrap>
[<a href="javascript:void(0);">详情</a>]
[<a href="javascript:void(0);">删除</a>]
</td>
</tr>
<?php endforeach; ?>
<tr>
<td height="25" colspan="12" align="center" class="td_bg"></td>
</tr>
</table>
<?php endif; ?>
<script type="text/javascript" language="javascript">
//编辑
function edit(id) {
window.location.href = '/store-room/put-in-store-info?id=' + id;
}
</script>