edit.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <load href='__TMPL__Common/js/conf.js' />
  5. <script type="text/javascript" src="__ROOT__/public/region.js"></script>
  6. <load href='__TMPL__Common/js/user_edit.js' />
  7. <div class="main">
  8. <div class="main_title">{%EDIT} <a href="{:u("EduUserAudit/index")}" class="back_list">{%BACK_LIST}</a></div>
  9. <div class="blank5"></div>
  10. <form name="edit" action="__APP__" method="post" enctype="multipart/form-data">
  11. <table class="form conf_tab" cellpadding=0 cellspacing=0 >
  12. <tr>
  13. <td colspan=2 class="topTd"></td>
  14. </tr>
  15. <tr>
  16. <td class="item_title">{%ID}:</td>
  17. <td class="item_input">{$vo.id}</td>
  18. </tr>
  19. <tr>
  20. <td class="item_title">{%NICK_NAME}:</td>
  21. <td class="item_input">{$vo.nick_name}<input type="hidden" name="nick_name" value="{$vo.nick_name}" /></td>
  22. </tr>
  23. <tr>
  24. <td class="item_title">{%USER_MOBILE}:</td>
  25. <td class="item_input"><input type="text" value="{$vo.mobile}" class="textbox" name="mobile" /></td>
  26. </tr>
  27. <tr>
  28. <td class="item_title">所属地区:</td>
  29. <td class="item_input">
  30. <select name="province">
  31. <option value="" rel="0">请选择省份</option>
  32. <foreach name="region_lv2" item="region">
  33. <option value="{$region.name}" rel="{$region.id}" <if condition="$region['selected']">selected="selected"</if>>{$region.name}</option>
  34. </foreach>
  35. </select>
  36. <select name="city">
  37. <option value="" rel="0">请选择城市</option>
  38. <foreach name="region_lv3" item="region">
  39. <option value="{$region.name}" rel="{$region.id}" <if condition="$region['selected']">selected="selected"</if>>{$region.name}</option>
  40. </foreach>
  41. </select>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="item_title">性别:</td>
  46. <td class="item_input">
  47. <label>女<input type="radio" name="sex" value="2" <if condition="$vo['sex'] eq 2">checked="checked"</if> /></label>
  48. <label>男<input type="radio" name="sex" value="1" <if condition="$vo['sex'] eq 1">checked="checked"</if>/></label>
  49. <label>未知<input type="radio" name="sex" value="0" <if condition="$vo['sex'] eq 0">checked="checked"</if> /></label>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="item_title">会员类型:</td>
  54. <td class="item_input">
  55. <select name="user_type">
  56. <option value="0" <if condition="$vo['user_type'] eq 0">selected="selected"</if>>普通用户</option>
  57. <option value="1" <if condition="$vo['user_type'] eq 1">selected="selected"</if>>企业会员</option>
  58. </select>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="item_title">会员等级:</td>
  63. <td class="item_input">
  64. <select name="user_level">
  65. <option value="0">请选择等级</option>
  66. <foreach name="user_level" item="level">
  67. <option value="{$level.level}" <if condition="$vo['user_level'] eq $level['level']">selected="selected"</if>>{$level.name}</option>
  68. </foreach>
  69. </select>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="item_title">简介:</td>
  74. <td class="item_input">
  75. <textarea name="intro" class="textarea">{$vo.intro}</textarea>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td class="item_title">{%IS_EFFECT}:</td>
  80. <td class="item_input">
  81. <label>{%IS_EFFECT_1}<input type="radio" name="is_effect" value="1" <if condition="$vo['is_effect'] eq 1">checked="checked"</if> /></label>
  82. <label>{%IS_EFFECT_0}<input type="radio" name="is_effect" value="0" <if condition="$vo['is_effect'] eq 0">checked="checked"</if> /></label>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td colspan=2 class="bottomTd"></td>
  87. </tr>
  88. </table>
  89. <div class="blank5"></div>
  90. <table class="form" cellspacing=0 cellpadding=0>
  91. <tr><td colspan=2 class="topTd"></td></tr>
  92. <tr>
  93. <td class="item_title">认证审核:</td>
  94. <td class="item_input">
  95. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 0">checked="checked"</if> value="0">未认证
  96. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 1">checked="checked"</if> value="1">未审核
  97. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 2">checked="checked"</if> value="2">审核通过
  98. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 3">checked="checked"</if> value="3">审核未通过
  99. </td>
  100. </tr>
  101. <tr>
  102. <td class="item_title">认证类型:</td>
  103. <td class="item_input">
  104. <select name="authentication_type">
  105. <option value="0">请选择类型</option>
  106. <foreach name="authent_list" item="authent">
  107. <option value="{$authent.name}" <if condition="$vo['authentication_type'] eq $authent['name']">selected="selected"</if>>{$authent.name}</option>
  108. </foreach>
  109. </select>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="item_title">认证名称:</td>
  114. <td class="item_input">
  115. <input type="text" name="authentication_name" value="{$vo.authentication_name}" class="textbox" style="width:500px;" />
  116. </td>
  117. </tr>
  118. </table>
  119. <div class="blank5"></div>
  120. <table class="form identify_info" id="identify_info_0" <if condition="$vo.is_authentication neq 0">style="display:none"</if>>
  121. <tr></tr>
  122. </table>
  123. <table class="form identify_info" cellspacing=0 cellpadding=0 id="identify_info_1" <if condition="$vo.is_authentication eq 0">style="display:none"</if>>
  124. <tr>
  125. <td class="item_title">身份证正面:</td>
  126. <td class="item_input"><html:imgUpload name="identify_positive_image" id="identify_positive_image" value="$vo.identify_positive_image" /></td>
  127. </tr>
  128. <tr>
  129. <td class="item_title">身份证反面:</td>
  130. <td class="item_input"><html:imgUpload name="identify_nagative_image" id="identify_nagative_image" value="$vo.identify_nagative_image" /></td>
  131. </tr>
  132. <tr>
  133. <td class="item_title">手持身份证正面:</td>
  134. <td class="item_input"><html:imgUpload name="identify_hold_image" id="identify_hold_image" value="$vo.identify_hold_image" /></td>
  135. </tr>
  136. <tr>
  137. <td class="item_title">+v认证说明:</td>
  138. <td class="item_input">
  139. <input type="text" value="{$vo.v_explain}" name="v_explain" class="textbox" style="width:500px;" />
  140. </td>
  141. </tr>
  142. </table>
  143. <script>
  144. $(function(){
  145. $("input[name='is_authentication']").bind("click",function(){
  146. num=$(this).val();
  147. if(num==0){
  148. //$("#identify_info_2").show("slow");
  149. //$(".identify_info_3").hide();
  150. $("#identify_info_1").hide();
  151. }else{
  152. $("#identify_info_1").show("slow")
  153. /*if(num==0){
  154. $("#identify_info_1").hide();
  155. }else{
  156. $("#identify_info_1").show("slow");
  157. $(".identify_info_3").show("slow");
  158. }
  159. $("#identify_info_2").hide("slow");*/
  160. }
  161. });
  162. if($("input[name='is_investor']:checked").val()==0){
  163. $("#identify_info_2").hide();
  164. $("#identify_info_3").hide();
  165. $("#identify_info_1").hide();
  166. }else{
  167. if($("input[name='is_investor']:checked").val()==1 || $("input[name='is_investor']:checked").val()==3){
  168. $("#identify_info_1").show("slow");
  169. $(".identify_info_3").show("slow");
  170. $("#identify_info_2").hide();
  171. }else{
  172. $("#identify_info_2").show("slow");
  173. $(".identify_info_3").hide();
  174. }
  175. }
  176. });
  177. </script>
  178. <div class="blank5"></div>
  179. <table class="form" cellpadding=0 cellspacing=0>
  180. <tr>
  181. <td colspan=2 class="topTd"></td>
  182. </tr>
  183. <tr>
  184. <td class="item_title"></td>
  185. <td class="item_input">
  186. <!--隐藏元素-->
  187. <input type="hidden" name="{:conf("VAR_MODULE")}" value="EduUserAudit" />
  188. <input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
  189. <input type="hidden" name="id" value="{$vo.id}" />
  190. <input type="hidden" name="wx_openid" value="{$vo.wx_openid}" />
  191. <!--隐藏元素-->
  192. <input type="submit" class="button" value="{%EDIT}" />
  193. <input type="reset" class="button" value="{%RESET}" />
  194. </td>
  195. </tr>
  196. <tr>
  197. <td colspan=2 class="bottomTd"></td>
  198. </tr>
  199. </table>
  200. </form>
  201. </div>
  202. <include file="Public:footer" />