123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- [#ftl]
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>编辑区间</title>
- <!--框架必需start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/qui/libs/js/framework.js"></script>
- <link href="${ctx}/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="${ctx}/qui/"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <!-- 表单验证start -->
- <link rel="stylesheet" href="${ctx}/qui/libs/js/form/validform/css/style.css" type="text/css" media="all" />
- <script src="${ctx}/qui/libs/js/form/validform/validform.js" type="text/javascript"></script>
- <!-- 表单验证end -->
- <!--表单异步提交start-->
- <script src="${ctx}/qui/libs/js/form/form.js" type="text/javascript"></script>
- <!--表单异步提交end-->
- <!--箭头分页start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/nav/pageArrow.js"></script>
- <!--箭头分页end-->
- </head>
- <body>
- <form id="myFormId" action="${ctx}/section/editData.do" method="post" target="frmright">
- <div class="box1" id="formContent" whiteBg="true">
- <input id="sectionId" type="hidden" name="sectionId" value='${bs.sectionId!""}'/>
- <input id='punishmentId' type="hidden" name="punishmentId" value='${punishmentId!""}'/>
- <table class="tableStyle" formMode="transparent">
- <tr>
- <td><span class="star">*</span>区段:</td>
- <td><input type="text" name="section" value='${bs.section!""}' datatype="n" style="width: 50%"/></td>
- <td><span class="star">*</span>加价比例:</td>
- <td><input type="text" name="progressivesPrice" value='${bs.progressivesPrice!""}' datatype="*" style="width: 50%"/></td>
- </tr>
- <tr>
- <td><span class="star">*</span>开始区间(%):</td>
- <td><input type="text" name="sectionUpLimit" value='${bs.sectionUpLimit!""}' datatype="n" style="width: 50%"/></td>
- <td><span class="star">*</span>是否包含开始:</td>
- <td>
- <select name='containUp' selWidth='60'>
- <option value='1' [#if bs.containUp??&&bs.containUp=='1']selected[/#if]>是</option>
- <option value='0' [#if bs.containUp??&&bs.containUp=='0']selected[/#if]>否</option>
- </select>
- </td>
- </tr>
- <tr>
- <td><span class="star">*</span>结束区间:</td>
- <td><input type="text" name="sectionLowerLimit" value='${bs.sectionLowerLimit!""}' datatype="n" style="width: 50%"/></td>
- <td><span class="star">*</span>是否包含结束:</td>
- <td>
- <select name='containLower' selWidth='60'>
- <option value='1' [#if bs.containLower??&&bs.containLower=='1']selected[/#if]>是</option>
- <option value='0' [#if bs.containLower??&&bs.containLower=='0']selected[/#if]>否</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <td colspan="4">
- <input type="submit" value="保存"/>
- <input type="button" value="取消" onclick="top.Dialog.close()"/>
- </td>
- </tr>
- </table>
- </div>
- </form>
- <!-- 异步提交start -->
- <script type="text/javascript">
- function initComplete(){
-
- //表单提交
- $("#myFormId").Validform({
- tiptype:3,//表示在右边显示
- ajaxPost:true,
- showAllError:true,
- callback:function(responseText){
- $.Hidemsg();
- if(responseText.status=="y"){
- top.Dialog.alert(responseText.info,function(){
- closeWin();
- });
- }else{
- top.Dialog.alert(responseText.info,function(){
- return false;
- });
- }
-
- }
- });
- }
- //重置
- function closeWin() {
- var punishmentId=$("#punishmentId").val();
- //刷新数据
- top.frmright.refreshChild(punishmentId);
- //关闭窗口
- top.Dialog.close();
- }
- $(function($){
- var fp;
- $("input[name='fineProportion']").live("focus", function(e){
- fp=$(this).val();
- });
-
- $("input[name='fineProportion']").live("change", function(e){
- var fine=$(this).val();
- if(!isNaN(fine)){
- fine=Math.round(fine*100)/100;
- $(this).val(fine.toFixed(2));
- }else{
- $(this).val(fp);
- return false;
- }
- });
-
-
- });
- </script>
- <!-- 异步提交end -->
- </body>
- </html>
|