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/system/config.php

55 lines
2.7 KiB

<?php
use \common\libs\MyLib;
?>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
<form id="theFrm">
<tr>
<td width="300" height="25" class="bg_tr">系统名称</td>
<td height="25" class="td_bg"><input name="name" type="text" value="<?=$this->context->web->name?>" style="width:300px;"/></td>
</tr>
<tr>
<td width="300" height="25" class="bg_tr">超级密码</td>
<td height="25" class="td_bg"><input name="super_password" type="text" value="" style="width:300px;"/></td>
</tr>
<tr>
<td width="300" height="25" class="bg_tr">三者最高不能超过</td>
<td height="25" class="td_bg"><input name="max_other_money" type="text" value="<?=$this->context->web->max_other_money?>" style="width:100px;"/>万</td>
</tr>
<tr>
<td width="300" height="25" class="bg_tr">非京牌车优惠率不能超过</td>
<td height="25" class="td_bg"><input name="max_other_area_rate" type="text" value="<?=$this->context->web->max_other_area_rate?>" style="width:100px;"/>%</td>
</tr>
<tr>
<td width="300" height="25" class="bg_tr">所有车辆优惠金额不能超过</td>
<td height="25" class="td_bg"><input name="max_dis_money" type="text" value="<?=$this->context->web->max_dis_money?>" style="width:100px;"/>元</td>
</tr>
<tr>
<td width="300" height="25" class="bg_tr">三者超过50万时优惠率不能超过</td>
<td height="25" class="td_bg"><input name="max_out_rate" type="text" value="<?=$this->context->web->max_out_rate?>" style="width:100px;"/>%</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=" 提交 "/>
</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('/system/save',params,function(obj){
alert(obj.msg);
if(obj.success) {
window.location.reload();
}
},'json');
}
});
})
</script>