settingCredentialInfo.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <!-- include '../header' -->
  2. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/swfuplad2/swfupload.js"></script>
  3. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/swfuplad2/swfupload.queue.js"></script>
  4. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/swfuplad2/fileprogress.js"></script>
  5. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/swfuplad2/handlers.js"></script>
  6. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/setting.js"></script>
  7. <script type="text/javascript">
  8. var swfu;
  9. var diplomaSwf;
  10. var CertificateSwf;
  11. window.onload = function() {
  12. var settings = {
  13. flash_url : "<?= WEB_SITE_GLOBAL ?>js/swfuplad2/swfupload.swf",
  14. upload_url: "/settingCredentialInfoTypeDo/professionalTitle", // Relative to the SWF file
  15. file_size_limit : "8 MB",
  16. file_types : "*.jpg;*.gif;*.png",
  17. file_types_description : "*.jpg;*.gif;*.png",
  18. file_upload_limit : 8,
  19. file_queue_limit : 1,
  20. custom_settings : {
  21. progressTarget : "fsUploadProgress",
  22. cancelButtonId : "btnCancel"
  23. },
  24. debug: true,
  25. // Button settings
  26. button_image_url: "<?= WEB_SITE_GLOBAL ?>images/btn-normal1.jpg", // Relative to the Flash file
  27. button_width: "200",
  28. button_height: "40",
  29. button_placeholder_id: "spanButtonPlaceHolder",
  30. // The event handler functions are defined in handlers.js
  31. file_queued_handler : fileQueued,
  32. file_queue_error_handler : fileQueueError,
  33. file_dialog_complete_handler : fileDialogComplete,
  34. upload_start_handler : uploadStart,
  35. upload_progress_handler : uploadProgress,
  36. upload_error_handler : uploadError,
  37. upload_success_handler : uploadSuccessProfessionalTitle,
  38. upload_complete_handler : uploadComplete,
  39. queue_complete_handler : queueComplete // Queue plugin event
  40. };
  41. swfu = new SWFUpload(settings);
  42. var diplomaSettings = {
  43. flash_url : "<?= WEB_SITE_GLOBAL ?>js/swfuplad2/swfupload.swf",
  44. upload_url: "/settingCredentialInfoTypeDo/diploma", // Relative to the SWF file
  45. file_size_limit : "8 MB",
  46. file_types : "*.jpg;*.gif;*.png",
  47. file_types_description : "*.jpg;*.gif;*.png",
  48. file_upload_limit : 8,
  49. file_queue_limit : 1,
  50. custom_settings : {
  51. progressTarget : "fsUploadProgress",
  52. cancelButtonId : "btnCancel"
  53. },
  54. debug: false,
  55. button_image_url: "<?= WEB_SITE_GLOBAL ?>images/btn-normal1.jpg", // Relative to the Flash file
  56. button_width: "200",
  57. button_height: "40",
  58. button_placeholder_id: "spanButtonDiploma",
  59. // The event handler functions are defined in handlers.js
  60. file_queued_handler : fileQueued,
  61. file_queue_error_handler : fileQueueError,
  62. file_dialog_complete_handler : fileDialogComplete,
  63. upload_start_handler : uploadStart,
  64. upload_progress_handler : uploadProgress,
  65. upload_error_handler : uploadError,
  66. upload_success_handler : uploadSuccessDiploma,
  67. upload_complete_handler : uploadComplete,
  68. queue_complete_handler : queueComplete // 上传完成后,提示上传成功多少文件
  69. };
  70. diplomaSwf=new SWFUpload(diplomaSettings);
  71. var CertificateSettings = {
  72. flash_url : "<?= WEB_SITE_GLOBAL ?>js/swfuplad2/swfupload.swf",
  73. upload_url: "/settingCredentialInfoTypeDo/certificate", // Relative to the SWF file
  74. file_size_limit : "8 MB",
  75. file_types : "*.jpg;*.gif;*.png",
  76. file_types_description : "*.jpg;*.gif;*.png",
  77. file_upload_limit : 8,
  78. file_queue_limit : 1,
  79. custom_settings : {
  80. progressTarget : "fsUploadProgress",
  81. cancelButtonId : "btnCancel"
  82. },
  83. debug: false,
  84. button_image_url: "<?= WEB_SITE_GLOBAL ?>images/btn-normal1.jpg", // Relative to the Flash file
  85. button_width: "200",
  86. button_height: "40",
  87. button_placeholder_id: "spanButtonCertificate",
  88. file_queued_handler : fileQueued,
  89. file_queue_error_handler : fileQueueError,
  90. file_dialog_complete_handler : fileDialogComplete,
  91. upload_start_handler : uploadStart,
  92. upload_progress_handler : uploadProgress,
  93. upload_error_handler : uploadError,
  94. upload_success_handler : uploadSuccessCertificate,
  95. upload_complete_handler : uploadComplete,
  96. queue_complete_handler : queueComplete // 上传完成后,提示上传成功多少文件
  97. };
  98. CertificateSwf=new SWFUpload(CertificateSettings);
  99. };
  100. </script>
  101. <body>
  102. <div class="mainLayout">
  103. <div class="mainMenu">
  104. <div class="menuItem">
  105. <a href="#" class="mLogo">CLD</a>
  106. <ul>
  107. <!-- include '../menu' -->
  108. </ul>
  109. </div>
  110. </div>
  111. <div class="warpContent">
  112. <div class="subMenu fL">
  113. <div class="menuItem">
  114. <!-- include 'settingMenu' -->
  115. </div>
  116. </div>
  117. <div class="adminContent autoHeight">
  118. <div class="subNav">
  119. <ul class="navTabs">
  120. <li ><a href="/settingEmployeeInfo">基本信息</a></li>
  121. <li class="active" ><a href="#">证件信息</a></li>
  122. <li><a href="/settingFinanceInfo">财务信息</a></li>
  123. </ul>
  124. </div>
  125. <!--证件信息-->
  126. <div class="saeaList" style="width:900px">
  127. <form method="post" action="/settingCredentialInfoDo" enctype="multipart/form-data" >
  128. <input type="hidden" name="sidKey" id='sidKey' value="{{staff.sidKey}}">
  129. <input type="hidden" id="professionalTitle" name="professionalTitle" value="">
  130. <input type="hidden" id="diploma" name="diploma" value="">
  131. <input type="hidden" id="certificate" name="certificate" value="">
  132. <table class="table table-bordered table-condensed">
  133. <tr>
  134. <th class="taC" width="150"><b class="colRed">* </b>身份证号码</th>
  135. <td <!-- if empty({{staff.IDcards}}) --> class="alert-warning" <!-- endif --> colspan="3"><input type="text" name="IDcards" value="{{staff.IDcards}}"></td>
  136. </tr>
  137. <tr>
  138. <th class="taC" width="150"><b class="colRed">* </b>身份证有效期</th>
  139. <td <!-- if {{staff.IDcardsValidity}}=='0000-00-00' --> class="alert-warning" <!-- endif --> colspan="3">
  140. <input type="date" name="IDcardsValidity" value="{{staff.IDcardsValidity}}"></td>
  141. </tr>
  142. <tr>
  143. <th class="taC" width="150"><b class="colRed">* </b>正面(国徽)</th>
  144. <td width="260"><input type="file" name="IDcardsImgA">
  145. </td>
  146. <td colspan="2" <!-- if empty({{staff.IDcardsImgA}}) --> class="alert-warning" <!-- endif -->>
  147. <p>
  148. <!-- if !{{empty(staff.IDcardsImgA)}} -->
  149. 正面(国徽) <a href="{{staff.IDcardsImgA}}" target="_blank">查看</a>
  150. <!-- endif -->
  151. </p>
  152. </td>
  153. </tr>
  154. <tr>
  155. <th class="taC" width="150"><b class="colRed">* </b>反面(照片)</th><td width="260"><input type="file" name="IDcardsImgB"></td>
  156. <td colspan="2" <!-- if empty({{staff.IDcardsImgB}}) --> class="alert-warning" <!-- endif -->>
  157. <p>
  158. <!-- if !{{empty(staff.IDcardsImgB)}} -->
  159. 正面(照片) <a href="{{staff.IDcardsImgB}}" target="_blank">查看</a>
  160. <!-- endif -->
  161. </p>
  162. </td>
  163. </tr>
  164. </table>
  165. <table class="table table-bordered table-condensed">
  166. <tr>
  167. <th class="taC" width="150"><b class="colRed">* </b>毕业证书</th><td width="260">
  168. <div class="controls">
  169. <span id="spanButtonCertificate"></span>
  170. </div>
  171. </td>
  172. <td colspan="2" <!-- if empty({{staff.certificate}})||{{staff.certificate}}=='[]' --> class="alert-warning" <!-- endif --> >
  173. <!-- if !{{empty(staff.certificate)}} -->
  174. <!-- loop staff.certificateArray -->
  175. <p>
  176. 毕业证书 <a href="{{staff.webSite}}{{certificateArray' value}}" target="_blank">查看</a>
  177. <a href="/delCredentialType/certificate/{{certificateArray' value}}" data-toggle="modal" role="button" title="删除职称证书1">删除</a>
  178. </p>
  179. <!-- endloop -->
  180. <!-- endif -->
  181. </td>
  182. </tr>
  183. <tr>
  184. <th class="taC" width="150">学位证书</th><td width="260">
  185. <div class="controls">
  186. <span id="spanButtonDiploma"></span>
  187. </div>
  188. </td>
  189. <td colspan="2">
  190. <!-- if !{{empty(staff.diploma)}} -->
  191. <!-- loop staff.diplomaArray -->
  192. <p>
  193. 学位证书 <a href="{{staff.webSite}}{{certificateArray' value}}" target="_blank">查看</a>
  194. <a href="/delCredentialType/diploma/{{certificateArray' value}}" data-toggle="modal" role="button" title="删除职称证书1">删除</a>
  195. </p>
  196. <!-- endloop -->
  197. <!-- endif -->
  198. </td>
  199. </tr>
  200. <tr>
  201. <th class="taC" width="150">职称证书</th><td width="260">
  202. <!-- flash 上传 -->
  203. <div class="controls">
  204. <span id="spanButtonPlaceHolder"></span>
  205. </div>
  206. <td colspan="2">
  207. <!-- if !{{empty(staff.professionalTitle)}} -->
  208. <!-- loop staff.professionalTitleArray -->
  209. <p>
  210. 职称证书 <a href="{{staff.webSite}}{{certificateArray' value}}" target="_blank">查看</a>
  211. <a href="/delCredentialType/professionalTitle/{{certificateArray' value}}" data-toggle="modal" role="button" title="删除职称证书1">删除</a>
  212. </p>
  213. <!-- endloop -->
  214. <!-- endif -->
  215. </td>
  216. </tr>
  217. </table>
  218. <!-- flash上传提示 -->
  219. <input id="btnCancel" type="button" value="取消所有上传" style="display:none" onclick="swfu.cancelQueue();" disabled="disabled">
  220. <span class="fieldset flash" id="fsUploadProgress"></span>
  221. <span id="divStatus">0 个文件已上传</span>
  222. <div class="control-group">
  223. <div class="controls">
  224. <button type="submit" class="button">确认上传</button>
  225. </div>
  226. </div>
  227. </form>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. <script type="text/javascript">autoFlashHeight();</script>
  233. </body>