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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
[#include "/component/webupload.html" /]
[#include "/component/HtmlEditor.html" /]
[#include "/component/sel.html" /]
<title>公告编辑</title>
<script type="text/javascript">
$(document).ready(function() {
    $.formValidator.initConfig({formID:"infoForm",onError:function(msg){popupTips(msg)},onSuccess:function(){
        document.getElementById("infoForm").target = window.top.openDialog("0","工单提交",
                             {},
                             {"width":60,"height":35,"noclose":true},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                             return true;
    }});
});
 
function subForm(){
    var title = $("#title").val();
    var content = $("#content").val();
    if($.util.isEmpty(title)){
        window.top.popupTips('通知公告标题不能为空', 2);
        return;
    }
    if($.util.isEmpty(content)){
        window.top.popupTips('通知公告内容不能为空', 2);
        return;
    }
    $("#infoForm").submit();
}
</script>
 
 
</head>
 
<body>
<div class="notice_main">
    <form id="infoForm" method="post" action="">
    <input type="hidden" name="orderId" value="${RequestParameters.orderId}"/>
    <input type="hidden" name="flowId" value="${RequestParameters.flowId}"/>
    <input type="hidden" name="nodeId" value="${RequestParameters.nodeIdId}"/>
    <table class="edit_layout">
    <div class="nm_detail">
        <tr><th><label class="required">标题:</label></th><td><input id="title" name="title" class="general maintitle" type="text" value="" /></td></tr>
        <tr>
            <th><label>类型:</label></th>
            <td>
                [@sel id="type_id" value="" name="type_id"  source=type textField="ID" valueField="DATAVALUE" labelName="type_name"/]
            </td>
        </tr>
        <tr>
            <th><label>是否置顶:</label></th>
            <td>
                <input class="radio is" name="top" type="radio" value="1" /><span>是</span>
                <input class="radio isno" name="top" type="radio" value="2" /><span>否</span>
            </td>
        </tr>
        <tr>
            <th><label>有效截止时间:</label></th>
            <td>
                [@datepicker id="dendline" value="" class="general" length=14/]
            </td>
        </tr>
        <tr>
            <th><label class="required">内容:</label></th>
            <td>
                <div>[@htmleditor id="content" value="" simple="true" /]</div>
            </td>
        </tr>
        <tr>
            <th><label>文档附件:</label></th>
            <td>
                
            <div class="upload_file">
                  [@webupload id="files" multiple="true" extensions="*"/]
            </div>
               
           </td>
        </tr>
    </table>
    </form>
</div>
</body>
</html>