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/gift/gift2-edit.php

86 lines
3.9 KiB

<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<form id="theFrm">
<input type="hidden" name="id" value="<?=$info->id?>">
<tr>
<td width="100" height="25" class="td_bg">编号</td>
<td height="25" class="td_bg">
<input name="code" type="text" id="code" value="<?=$info->code?>" style="width:400px;"/>
</td>
<td width="100" height="25" class="td_bg">名称</td>
<td height="25" class="td_bg">
<input name="name" type="text" id="name" value="<?=$info->name?>" style="width:400px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">车牌号</td>
<td height="25" class="td_bg">
<input name="car_no" type="text" id="car_no" value="<?=$info->car_no?>" style="width:400px;"/>
</td>
<td width="100" height="25" class="td_bg">联系电话</td>
<td height="25" class="td_bg">
<input name="phone" type="text" id="phone" value="<?=$info->phone?>" style="width:400px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">商业保单号</td>
<td height="25" class="td_bg">
<input name="insurer1_no" type="text" id="insurer1_no" value="<?=$info->insurer1_no?>" style="width:400px;"/>
</td>
<td width="100" height="25" class="td_bg">交强保单号</td>
<td height="25" class="td_bg">
<input name="insurer2_no" type="text" id="insurer2_no" value="<?=$info->insurer2_no?>" style="width:400px;"/>
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">状态</td>
<td colspan="3" height="25" class="td_bg">
<input type="radio" name="status" value="0" <?=$info->status==0?'checked':''?>>未使用
<input type="radio" name="status" value="1" <?=$info->status==1?'checked':''?>>出库
<input type="radio" name="status" value="2" <?=$info->status==2?'checked':''?>>回收
</td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">入库时间</td>
<td colspan="3" height="25" class="td_bg"><?=$info->input_time?></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">出库时间</td>
<td colspan="3" height="25" class="td_bg"><?=$info->output_time?></td>
</tr>
<tr>
<td width="100" height="25" class="td_bg">回收时间</td>
<td colspan="3" height="25" class="td_bg"><?=$info->return_time?></td>
</tr>
</form>
<tr>
<td height="22" colspan="4" align="center" class="td_bg">
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/>
&nbsp;&nbsp;
<input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 ">
</td>
</tr>
</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 () {
//提交按钮
$("#submit-btn").click(function(){
if(confirm('是否确认提交?')) {
var params = $("#theFrm").serialize();
$.post('/gift/gift2-save',params,function(obj){
alert(obj.msg);
if(obj.success) {
$('#back-btn').click();
}
},'json');
}
});
//返回按钮
$('#back-btn').click(function(){
window.location.href='/gift/gift2-list';
});
})
</script>