<?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.SYS4006.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.SYS4006.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="370" prompt="正文" width="800"/> </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>