SPZME00100_이메일전송.xrw 7.4 KB

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