cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>增加/修改选择项</title>
[#include "/business/pages/include/static.html" /]
</head>
<body class="edit_txt_body">
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
        document.getElementById("myform").target = window.top.openDialog("1","操作",
        {},
        {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
        return true;
    }});
    
    $("#itemvalue").formValidator({empty:false,onShow:"请输入选择值",onFocus:"选择值不等于空"}).inputValidator({min:1,max:50,onCorrect:"123",onError:"选择值不等于空"});
    $("#serial").formValidator({empty:false,onShow:"请输入顺序号",onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
        .regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
})
</script>
 
<form action="editPropSel.html" method="post" id="myform" name="myform" >
    <input type="hidden" name="column_id" value="${RequestParameters.colId}"/>
    <input type="hidden" name="type" value="${RequestParameters.type}"/>
    <input type="hidden" name="id" value="${RequestParameters.id}"/>
    <table class="edit_layout2" width="99%">
        <tr><th ><label class="required" >选择值:</label></th>
            <td><input class="general" type="text"  value="${info.itemvalue}" name="itemvalue" id="itemvalue"/>
            <div id="itemvalueTip" style="display:inline-block;"></div>
            </td>
        </tr>
        <tr><th ><label class="required" >顺序号:</label></th>
            <td><input class="general" type="text" value="${info.serial}" name="serial" id="serial"/>
            <div id="serialTip" style="display:inline-block;width:200px;"></div>
            </td>
        </tr>
    </table>
</form>
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        $("#myform").submit();
    }
}
 
</script>
</body>
</html>