dhz
2022-06-22 4d198cd78684d17c849b0bd7d323894009ca17f5
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>添加</title>
[#include "/business/pages/include/static.html" /]
</head>
[#include "/component/HtmlEditor.html" /]
<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;
        }});
        $("#code").formValidator({empty: false, onShow: "请输入版本号", onFocus: "请输入版本号!"}).inputValidator({min: 1, onError: "版本号不能为空!"}).inputValidator({max: 10, onError: "版本号达到最大长度!"});
        $("#content").formValidator({empty: false, onShow: "请填写更新内容", onFocus: "请填写更新内容!"}).inputValidator({min: 1, onError: "更新内容不能为空!"});
})
 
</script>
 
<div class="edit_txt">
    <form id="myform" action="savePtVersion.html" method="post">
        [#if info??]<input type="hidden" name="id" value="${info.ID}" />[/#if]
         <table class="edit_layout2">
                 <tr><th><label class="required">版本号:</label></th>
                    <td><input class="general" type="text" name="code" id="code" [#if info??]value="${info.VERSION_CODE}"[/#if] style="width:300px;"/>
                        </td><td>
                        <div id="codeTip" style="display:inline-block;"></div>
                    </td>
                    
                </tr>
                <tr><th><label class="required">更新内容:</label></th>
                    <td>[#if info ??][@htmleditor id="content"  width="90%" height="400px" simple="true" value='${info.CONTENT}' /][#else][@htmleditor id="content"  width="90%" height="400px" simple="true"  /][/#if]
                        </td><td>
                        <div id="contentTip" style="width:180px;"></div>
                    </td>
                </tr>
            </table>
     </form>
</div>
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
    
</script>
 
</body>
</html>