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
<?xml version="1.0" encoding="UTF-8"?>
<!--
&author:DJ
$date:2013/11/12
$purpose:短信发送
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<p:switch test="/parameter/@source_type">
<p:case value="HISTORY">
<a:model-query defaultWhereClause="t1.mailing_list_id = ${/parameter/@mailing_list_id}" model="sys.SYS406.zj_sys_mailing_list_ht_body" rootPath="mail_body"/>
</p:case>
<p:case value="*">
<a:model-query defaultWhereClause="t1.mailing_list_id = ${/parameter/@mailing_list_id}" model="sys.SYS406.zj_sys_mailing_list_body" rootPath="mail_body"/>
</p:case>
</p:switch>
</a:init-procedure>
<a:view>
<script charset="utf-8" src="${/request/@context_path}/kindeditor/kindeditor-min.js" type="text/javascript"/>
<script charset="utf-8" src="${/request/@context_path}/kindeditor/lang/zh_CN.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[
var mailEditorList = [];
function mailEdit_create(list) {
var k = KindEditor;
var config = {
width: '800px',
height: '450px',
resizeType: 0,
allowPreviewEmoticons: false,
allowImageUpload: false,
items: ['undo', 'redo', '|', 'cut', 'copy', 'paste', 'plainpaste', '|', 'preview', 'print', '|', 'insertorderedlist', 'insertunorderedlist', '|', 'table', 'link', 'unlink', 'pagebreak', 'hr', '|', '/', 'fontname', 'fontsize', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', '|', 'lineheight', 'justifyleft', 'justifycenter', 'justifyright', 'indent', 'outdent', '|', 'selectall', 'removeformat', '|']
};
for (var i = 0;i < list.length;i++) {
list[i]['value'] = k.create('textarea[id="' + list[i]['name'] + '"]', config);
list[i]['value'].readonly(true);
list[i]['value'].toolbar.div.hide();
}
}
function mailEditorClear()
{
var list = mailEditorList;
for (var i=0;i < list.length;i++)
{
list[i]['value'].html('');
}
}
]]></script>
<a:dataSets>
<a:dataSet id="mailBodyDs">
<a:datas dataSource="/model/mail_body"/>
<!-- <a:fields><![CDATA[-->
<!-- ]]></a:fields>-->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form title=" ">
<a:textArea name="body" id="body" bindTarget="mailBodyDs" height="270" prompt="正文" width="650"/>
</a:form>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function(K) {
var list = mailEditorList;
list[0] = {
name: 'body'
};
mailEdit_create(list);
});
]]></script>
</a:screenBody>
</a:view>
</a:screen>