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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>修改角色</title>
 
[#include "/business/pages/include/static.html" /]
</head>
<body class="end_task_body widthauto">
 
<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;
        }});
        
        
        $("#rolename").formValidator({empty:false,onFocus:"请输入角色的名称"}).inputValidator({min:4,max:20,onError:"角色名称4-20个字符或2-10个汉字"});
        
        $("#sxh").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位"}).regexValidator({regExp:"intege1", dataType:"enum", onError:"顺序号必须为正整数"});
        
        $("#beiz").formValidator({empty:true,onFocus:"请填写说明(可以为空)"}).inputValidator({min:0,max:1000,onError:"说明0-1000个字符或0-500个汉字"});
        
})
</script>
 
<div class="edit_txt">
    <form action="addJsSubmit.html?category_id=${RequestParameters.category_id}&jb=${RequestParameters.jb}" method="post"  id="myform" name="myform" >
         <input type="hidden" name="id" value="${RequestParameters.id!info.ID}" />
         <table class="edit_layout2" >
                <tr><th ><label class="required" >角色名称:</label></th>
                    <td><input class="general" type="text" value="${info.ROLENAME}" name="rolename" id="rolename"/>
                    <div id="rolenameTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                <tr><th><label class="required">顺序号:</label></th>
                    <td ><input class="general" type="text" value="${info.SXH}" class="input-text" name="sxh"  id="sxh"/>
                    <div id="sxhTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                 
                <tr><th><label >说明:</label></th>
                    <td ><textarea class="general" style="width:360px;" id="beiz" name="beiz" />${info.BEIZ}</textarea>
                    <div id="beizTip" style="display:inline-block;"></div>
                    </td>
                </tr>
            </table>
     </form>
</div>
 
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
 
</script>
 
 
</body>
</html>