designerReg.zml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. ${zhiqim_manager_breadcrumb("信息审核")}
  2. ${zhiqim_manager_content()}
  3. <script>
  4. function regCheckBack(questionsId)
  5. {
  6. var dialog = new Z.Dialog();
  7. dialog.title = "入驻审核拒绝";
  8. dialog.url = "/regCheckBack.htm?questionsId=" + questionsId;
  9. dialog.width = 450;
  10. dialog.height = 350;
  11. dialog.execute();
  12. }
  13. function checkApproved(questionsId)
  14. {
  15. var dialog = new Z.Dialog();
  16. dialog.title = "入驻审核通过";
  17. dialog.url = "/checkApproved.htm?questionsId=" + questionsId;
  18. dialog.width = 280;
  19. dialog.height = 230;
  20. dialog.execute();
  21. }
  22. function doDownDesginFile(questionsId)
  23. {
  24. var downFileType = "DesginFile";
  25. var ajax = new Z.Ajax();
  26. ajax.setClassName("DesignerRegAction");
  27. ajax.setMethodName("downFile");
  28. ajax.addParam(questionsId);
  29. ajax.addParam(downFileType);
  30. ajax.setFailureAlert();
  31. ajax.setSuccess(function(attaIdList){
  32. var attaIds = attaIdList.replace("[","");
  33. attaIds = attaIds.replace("]","");
  34. var mainFrame = parent.parent.document.getElementById("mainFrame");
  35. var mainSrc = mainFrame.src;
  36. var prefix = Z.l.protocol + "//" + Z.l.host ;
  37. var element1 = document.createElement("a");
  38. element1.href = prefix+"/downQuestionsFile.htm?attaId=" + attaIds +"&downFileType="+downFileType;
  39. Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaIds+"&downFileType="+downFileType, zCallFrame);
  40. });
  41. ajax.execute();
  42. }
  43. function doDownEndFile(questionsId)
  44. {
  45. var downFileType = "EndFile";
  46. var ajax = new Z.Ajax();
  47. ajax.setClassName("DesignerRegAction");
  48. ajax.setMethodName("downFile");
  49. ajax.addParam(questionsId);
  50. ajax.addParam(downFileType);
  51. ajax.setFailureAlert();
  52. ajax.setSuccess(function(attaIdList){
  53. var attaIds = attaIdList.replace("[","");
  54. attaIds = attaIds.replace("]","");
  55. var mainFrame = parent.parent.document.getElementById("mainFrame");
  56. var mainSrc = mainFrame.src;
  57. var prefix = Z.l.protocol + "//" + Z.l.host ;
  58. var element1 = document.createElement("a");
  59. element1.href = prefix+"/downQuestionsFile.htm?attaId=" + attaIds +"&downFileType="+downFileType;
  60. Z.L.href(prefix+"/downQuestionsFile.htm?attaId=" + attaIds+"&downFileType="+downFileType, zCallFrame);
  61. });
  62. ajax.execute();
  63. }
  64. function queryDetail(){
  65. var designer = Z.FM.getChecked("designer");
  66. var dialog = new parent.Z.Dialog();
  67. dialog.title = "设计师详情";
  68. dialog.url = "/designerCourseDetail.htm?designer="+designer;
  69. dialog.width = 700;
  70. dialog.height = 520;
  71. dialog.execute();
  72. }
  73. //考试凭证查看
  74. function queryExamVoucher(questionsId)
  75. {
  76. var ajax = new Z.Ajax();
  77. ajax.setClassName("DesignerRegAction");
  78. ajax.setMethodName("queryExamVoucher");
  79. ajax.addParam(questionsId);
  80. ajax.setFailureAlert();
  81. ajax.setSuccess(function(url){
  82. var hostUrl = Z.l.protocol+'//'+Z.l.host;
  83. var dialog = new parent.Z.Dialog();
  84. dialog.shadow = true;
  85. dialog.title = "考试成绩截图";
  86. dialog.fixed = true;
  87. dialog.url = hostUrl+"/showLargeImg.htm?imgpath="+url;
  88. dialog.width = parent.Z.D.clientWidth()-1000;
  89. dialog.height = parent.Z.D.clientHeight()-400;
  90. dialog.execute();
  91. dialog.$background.remove();
  92. });
  93. ajax.setLoading("rackWait", '正在提交', {disabled:true});
  94. ajax.execute();
  95. }
  96. </script>
  97. <#-- 导航 -->
  98. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  99. <nav>
  100. <ul>
  101. <li onclick="Z.L.href('designerManage.htm');">设计师管理</li>
  102. <li onclick="Z.L.href('onlineLog.htm');">在线设计师</li>
  103. <li onclick="Z.L.href('workSearchLog.htm');">工作日志</li>
  104. <li onclick="Z.L.href('desOnlineTimeLog.htm');">接单时长</li>
  105. <li class="z-active">注册审核</li>
  106. <li onclick="Z.L.href('virtualAccount.htm');">资金账户</li>
  107. <li onclick="Z.L.href('accountsManage.htm');">结算管理</li>
  108. </ul>
  109. </nav>
  110. </div>
  111. <#-- 列表 -->
  112. <!--<div class="z-tabnav-main z-blue z-mg-b5">
  113. <nav>
  114. <ul>
  115. <li class="z-active" >注册审核</li>
  116. <li onclick="Z.L.href('designerProfile.htm');">简介审核</li>
  117. <li onclick="Z.L.href('designerWorks.htm');">作品审核</li>
  118. </ul>
  119. </nav>
  120. </div>-->
  121. <form name="designerManage" action="/designerReg.htm" method="post" id="designerReg">
  122. <table class="z-table z-bordered z-pd6 z-bg-white">
  123. <tr>
  124. <td>&nbsp;设&nbsp;计&nbsp;师&nbsp;
  125. <input type="text" name="designer" class="z-input z-w180 ${zmr_color_class}" value="${designer}">
  126. </td>
  127. <td>&nbsp;手&nbsp;机&nbsp;号&nbsp;
  128. <input type="text" name="mobile" class="z-input z-w180 ${zmr_color_class}" value="${mobile}">
  129. </td>
  130. <td>状态
  131. <select name="status" class="z-select z-w180" data-role="z-select-search" data-class="${zmr_color_class}">
  132. <option value="">请选择</option>
  133. <option value="0" <#if status == 0>selected</#if>>问卷考试中</option>
  134. <option value="10" <#if status == 10>selected</#if>>设计考试中</option>
  135. <option value="20" <#if status == 20>selected</#if>>等待审核</option>
  136. <option value="40" <#if status == 30>selected</#if>>审核拒绝</option>
  137. </select>
  138. </td>
  139. <td><button class="z-button z-w80 z-large z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button></td>
  140. </tr>
  141. </table>
  142. </form>
  143. <#-- 操作功能 -->
  144. <div class="z-w100p z-mg-t10 z-mg-b3">
  145. <button type="button" class="z-button z-mg-t3 z-mg-r6 ${zmr_color_class}" onclick="queryDetail();"><i class="z-font z-query"></i>查看详情</button>
  146. </div>
  147. <table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
  148. <tr bgcolor="${zmr_thead_bgcolor}" class="z-h40">
  149. <td width="40">选择</td>
  150. <td width="80">设计师</td>
  151. <td width="80">手机号</td>
  152. <td width="40">状态</td>
  153. <td width="220">设计要求</td>
  154. <td width="40">问卷成绩</td>
  155. <td width="40">设计文件</td>
  156. <td width="40">印刷文件</td>
  157. <td width="80">设计完成时间</td>
  158. <td width="80">操作</td>
  159. </tr>
  160. ${zhiqim_manager_tr_no_record(pageResult, 39, "暂时没有考试信息")}
  161. <#for item : pageResult.list()>
  162. <tr ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  163. <td><input name="designer" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getDesigner()}"></td>
  164. <td>${item.getDesigner()}</td>
  165. <td>${item.getMobile()}</td>
  166. <td>
  167. <#if item.getStatus() == 0>
  168. 问卷考试中
  169. <#elseif item.getStatus() == 10>
  170. 设计考试中
  171. <#elseif item.getStatus() == 20>
  172. 等待审核
  173. <#else>
  174. 审核拒绝
  175. </#if>
  176. </td>
  177. <td>${item.getDesignRequirements()}</td>
  178. <td> <#if item.getStatus() == 20>
  179. <a onclick="queryExamVoucher('${item.getQuestionsId()}')"><p style="color:#2483EB">查看</p></a></#if>
  180. </td>
  181. <td> <#if item.getStatus() == 20>
  182. <a onclick="doDownDesginFile('${item.getQuestionsId()}');"><p style="color:#2483EB">下载</p></a></#if>
  183. </td>
  184. <td> <#if item.getStatus() == 20>
  185. <a onclick="doDownEndFile('${item.getQuestionsId()}');"><p style="color:#2483EB">下载</p></a></#if>
  186. </td>
  187. <td>${Sqls.toDateTimeString(item.getDesignEndTime())}</td>
  188. <td>
  189. <#if item.getStatus() == 20>
  190. <button type="button" class="z-button z-w80 z-blue" onclick="checkApproved('${item.getQuestionsId()}')">通过</button>&nbsp;&nbsp;
  191. <button type="button" class="z-button z-w80 z-red" onclick="regCheckBack('${item.getQuestionsId()}')">拒绝</button>
  192. <#else>
  193. ${item.getRemarks()}
  194. </#if>
  195. </td>
  196. </tr>
  197. </#for>
  198. </table>
  199. ${zhiqim_manager_paging(pageResult, "/designerReg.htm")}
  200. ${zhiqim_manager_content_end()}