SMRME98300_이메일전송.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>E-Mail 전송</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. </main>
  11. <send>
  12. <fromaddress/>
  13. <fromname/>
  14. <toaddress/>
  15. <ccaddress/>
  16. <subject/>
  17. <msg/>
  18. <attach/>
  19. <closeflag/>
  20. </send>
  21. <init>
  22. </init>
  23. <hidden>
  24. </hidden>
  25. </root>
  26. </instance>
  27. <submission id="TXZME00101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. //opt_filetotal.value = 0;
  31. misfGridInit(grd_attach);
  32. if(model.getValue("/root/send/closeflag") == 'Y')
  33. {
  34. btn_confirm.dispatch("DOMActivate");
  35. btn_cancel.dispatch("DOMActivate");
  36. }
  37. ]]>
  38. </script>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" src="../../../com/emailsenderweb/js/ZME00100.js"/>
  45. <script type="javascript">
  46. <![CDATA[
  47. function fInitialize()
  48. {
  49. model.resetInstanceNode("/root/send");
  50. misfGridInit(grd_attach);
  51. model.refresh();
  52. }
  53. ]]>
  54. </script>
  55. </xhtml:head>
  56. <xhtml:body pagewidth="517" pageheight="450" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  57. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:415px; ">
  58. <line id="line5" class="line_2" style="x1:0px; y1:100px; x2:500px; y2:100px; "/>
  59. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">이메일전송</caption>
  60. <button id="button1" class="btn2_letter3" style="left:447px; top:5px; width:53px; height:19px; ">
  61. <caption>초기화</caption>
  62. <script type="javascript" ev:event="DOMActivate">
  63. <![CDATA[
  64. fInitialize();
  65. ]]>
  66. </script>
  67. </button>
  68. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  69. <caption id="caption50" class="cell_1" style="left:0px; top:150px; width:90px; height:93px; vertical-align:middle; ">내용</caption>
  70. <caption id="caption47" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
  71. <textarea id="tar_msg" ref="/root/send/msg" class="text_essential" navindex="4" style="left:93px; top:151px; width:407px; height:89px; "/>
  72. <line id="line24" class="line_2" style="x1:0px; y1:52px; x2:500px; y2:52px; "/>
  73. <input id="ipt_fromaddress" ref="/root/send/fromaddress" class="input_essential" navindex="1" style="left:93px; top:31px; width:202px; height:19px; "/>
  74. <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
  75. <line id="line3" class="line_2" style="x1:0px; y1:148px; x2:500px; y2:148px; "/>
  76. <caption id="caption5" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">제목</caption>
  77. <input id="ipt_subject" ref="/root/send/subject" class="input_essential" navindex="3" style="left:93px; top:127px; width:407px; height:19px; "/>
  78. <button id="btn_fileattach" class="btn2_letter4" style="left:436px; top:246px; width:64px; height:19px; ">
  79. <caption>파일첨부</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. var pos;
  83. var filename;
  84. var n;
  85. files = window.fileDialog("open", "|", true);
  86. filelist = files.split("|");
  87. for(var i = 0 ; i < filelist.length ; i++ ) {
  88. if(filelist[i] != "")
  89. {
  90. grd_attach.addItem();
  91. n = grd_attach.rows - 1;
  92. grd_attach.valueMatrix(n, 0) = filelist[i];
  93. pos=filelist[i].lastIndexOf("\\");
  94. filename=filelist[i].substring(pos+1);
  95. grd_attach.valueMatrix(n, 1) = filename;
  96. grd_attach.valueMatrix(n, 2) = upload_attach.getFileSize(filelist[i]);
  97. }
  98. }
  99. opt_filetotal.value = upload_attach.getTotalFileSize();
  100. ]]>
  101. </script>
  102. </button>
  103. <upload id="upload_attach" nodeset="/root/send/attach/file" filecount="5" filesize="100000000" validate="true" style="left:240px; top:245px; width:100px; height:20px; "/>
  104. <datagrid id="grd_attach" nodeset="/root/send/attach" caption="경로^첨부파일이름^사이즈" colwidth="0, 384, 114" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:0px; top:266px; width:500px; height:107px; ">
  105. <col ref="file" style="left:0px; top:23px; width:250px; height:23px; "/>
  106. <col ref="filename"/>
  107. <col ref="filesize" format="#,### &quot;bytes&quot;" style="text-align:right; "/>
  108. </datagrid>
  109. <line id="line2" class="line_2" style="x1:0px; y1:76px; x2:500px; y2:76px; "/>
  110. <caption id="caption2" class="cell_1" style="left:0px; top:54px; width:90px; height:23px; vertical-align:middle; ">받는이</caption>
  111. <input id="ipt_toaddress" ref="/root/send/toaddress" class="input_essential" navindex="2" style="left:93px; top:55px; width:407px; height:19px; "/>
  112. <caption id="caption3" class="hand" style="left:95px; top:103px; width:390px; height:15px; vertical-align:middle; ">수신자가 여러명일 경우 ";" 를 구분자로 하여 입력합니다.</caption>
  113. <line id="line4" class="line_2" style="x1:0px; y1:242px; x2:500px; y2:242px; "/>
  114. <caption id="caption6" class="cell_1" style="left:0px; top:78px; width:90px; height:23px; vertical-align:middle; ">참조</caption>
  115. <input id="ipt_ccaddress" ref="/root/send/ccaddress" class="input_default" navindex="2" style="left:93px; top:79px; width:407px; height:19px; "/>
  116. <button id="btn_filedelete" class="btn2_letter4" style="left:370px; top:246px; width:64px; height:19px; ">
  117. <caption>파일삭제</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. deleteSelectedRows(grd_attach, false);
  121. opt_filetotal.value = upload_attach.getTotalFileSize();
  122. ]]>
  123. </script>
  124. </button>
  125. <caption id="caption7" class="hand" style="left:260px; top:377px; width:125px; height:15px; vertical-align:middle; ">파일총크기 :</caption>
  126. <output id="opt_filetotal" format="#,### &quot;bytes&quot;" style="left:385px; top:375px; width:115px; height:19px; font-weight:bold; text-align:right; "/>
  127. <caption id="caption8" class="cell_1" style="left:298px; top:30px; width:67px; height:23px; vertical-align:middle; ">이름</caption>
  128. <input id="input1" ref="/root/send/fromname" class="input_essential" navindex="1" style="left:368px; top:31px; width:129px; height:19px; "/>
  129. <caption id="caption9" class="hand" style="left:260px; top:395px; width:125px; height:15px; vertical-align:middle; ">최대파일크기 :</caption>
  130. <caption id="caption10" style="left:385px; top:395px; width:115px; height:19px; font-weight:bold; text-align:right; ">10,000,000 bytes</caption>
  131. </group>
  132. <group id="grp_btn" scroll="auto" style="left:0px; top:415px; width:501px; height:27px; ">
  133. <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
  134. <caption>확인</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. fEmailSubmit();
  138. window.close();
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
  143. <caption>취소</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. window.close();
  147. ]]>
  148. </script>
  149. </button>
  150. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
  151. </group>
  152. </xhtml:body>
  153. </xhtml:html>