edit.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  8. <load href='__TMPL__Common/js/calendar/calendar.css' />
  9. <load href='__TMPL__Common/js/calendar/calendar.js' />
  10. <div class="main">
  11. <div class="main_title">{%EDIT} <a href="{:u("EduUserGeneral/index")}" class="back_list">{%BACK_LIST}</a></div>
  12. <div class="blank5"></div>
  13. <form name="edit" action="__APP__" method="post" enctype="multipart/form-data" onsubmit="return submit_check();">
  14. <table class="form conf_tab" cellpadding=0 cellspacing=0 >
  15. <tr>
  16. <td colspan=2 class="topTd"></td>
  17. </tr>
  18. <tr>
  19. <td class="item_title">{%ID}:</td>
  20. <td class="item_input">{$vo.id}</td>
  21. </tr>
  22. <tr>
  23. <td class="item_title">{%CREATE_TIME}:</td>
  24. <td class="item_input">{$vo.create_time}</td>
  25. </tr>
  26. <tr>
  27. <td class="item_title">{%NICK_NAME}:</td>
  28. <td class="item_input"><input type="text" name="nick_name" class="textbox" value="{$vo.nick_name}" /></td>
  29. </tr>
  30. <tr>
  31. <td class="item_title">头像:</td>
  32. <td class="item_input">
  33. <html:imgUpload name="head_image" id="head_image" value="$vo.head_image" />
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="item_title">{%USER_MOBILE}:</td>
  38. <td class="item_input"><input type="text" value="{$vo.mobile}" class="textbox" name="mobile" /></td>
  39. </tr>
  40. <tr>
  41. <td class="item_title">所属地区:</td>
  42. <td class="item_input">
  43. <select name="province">
  44. <option value="" rel="0">请选择省份</option>
  45. <foreach name="region_lv2" item="region">
  46. <option value="{$region.name}" rel="{$region.id}" <if condition="$region['selected']">selected="selected"</if>>{$region.name}</option>
  47. </foreach>
  48. </select>
  49. <select name="city">
  50. <option value="" rel="0">请选择城市</option>
  51. <foreach name="region_lv3" item="region">
  52. <option value="{$region.name}" rel="{$region.id}" <if condition="$region['selected']">selected="selected"</if>>{$region.name}</option>
  53. </foreach>
  54. </select>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="item_title">性别:</td>
  59. <td class="item_input">
  60. <label>女<input type="radio" name="sex" value="2" <if condition="$vo['sex'] eq 2">checked="checked"</if> /></label>
  61. <label>男<input type="radio" name="sex" value="1" <if condition="$vo['sex'] eq 1 or $vo['sex'] eq 0">checked="checked"</if>/></label>
  62. </td>
  63. </tr>
  64. <!--<tr>
  65. <td class="item_title">会员类型:</td>
  66. <td class="item_input">
  67. <select name="user_type">
  68. <option value="0" <if condition="$vo['user_type'] eq 0">selected="selected"</if>>普通用户</option>
  69. <option value="1" <if condition="$vo['user_type'] eq 1">selected="selected"</if>>企业会员</option>
  70. </select>
  71. </td>
  72. </tr>-->
  73. <tr>
  74. <td class="item_title">会员等级:</td>
  75. <td class="item_input">
  76. <select name="user_level">
  77. <foreach name="user_level" item="level">
  78. <option value="{$level.level}" <if condition="$vo['user_level'] eq $level['level']">selected="selected"</if>>{$level.name}</option>
  79. </foreach>
  80. </select>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="item_title">个性签名:</td>
  85. <td class="item_input">
  86. <input type="text" value="{$vo.signature}" class="textbox" name="signature" style="width: 450px;" maxlength="32"/>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="item_title">{%IS_EFFECT}:</td>
  91. <td class="item_input">
  92. <label>{%IS_EFFECT_1}<input type="radio" name="is_effect" value="1" <if condition="$vo['is_effect'] eq 1">checked="checked"</if> /></label>
  93. <label>{%IS_EFFECT_0}<input type="radio" name="is_effect" value="0" <if condition="$vo['is_effect'] eq 0">checked="checked"</if> /></label>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="item_title">{%IS_BAN}:</td>
  98. <td class="item_input">
  99. <label><input type="radio" name="is_ban" value="0" <if condition="$vo['is_ban'] eq 0">checked="checked"</if> />{%IS_BAN_0}</label>
  100. <label><input type="radio" name="is_ban" value="1" <if condition="$vo['is_ban'] eq 1">checked="checked"</if> />{%IS_BAN_1}</label>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td class="item_title">{%IS_HOT_ON}:</td>
  105. <td class="item_input">
  106. <label><input type="radio" name="is_hot_on" value="0" <if condition="$vo['is_hot_on'] eq 0">checked="checked"</if> />{%IS_HOT_ON_0}</label>
  107. <label><input type="radio" name="is_hot_on" value="1" <if condition="$vo['is_hot_on'] eq 1">checked="checked"</if> />{%IS_HOT_ON_1}</label>
  108. </td>
  109. </tr>
  110. <tr id="ban_type">
  111. <td class="item_title">{%BAN_TYPE}:</td>
  112. <td class="item_input">
  113. <label><input type="radio" name="ban_type" value="0" <if condition="$vo['ban_type'] eq 0">checked="checked"</if> />{%BAN_TYPE_0}</label>
  114. <label><input type="radio" name="ban_type" value="1" <if condition="$vo['ban_type'] eq 1">checked="checked"</if> />{%BAN_TYPE_1}</label>
  115. <label><input type="radio" name="ban_type" value="2" <if condition="$vo['ban_type'] eq 2">checked="checked"</if> />{%BAN_TYPE_2}</label>
  116. </td>
  117. </tr>
  118. <tr id="show_ban_time">
  119. <td class="item_title">{%BAN_TIME}:</td>
  120. <td class="item_input">
  121. <input type="text" class="textbox" name="ban_time" id="ban_time" value="{$vo.ban_time}" onfocus="this.blur(); return showCalendar('ban_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_ban_time');" />
  122. <input type="button" class="button" id="btn_ban_time" value="{%SELECT_TIME}" onclick="return showCalendar('ban_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_ban_time');" />
  123. <input type="button" class="button" value="{%CLEAR_TIME}" onclick="$('#ban_time').val('');" />
  124. <span class='tip_span'>时间为空的话,直播状态正常;否则结束时间之前禁播。</span>
  125. </td>
  126. </tr>
  127. <if condition="$open_vip eq 1">
  128. <tr>
  129. <td class="item_title">是否VIP:</td>
  130. <td class="item_input">
  131. <label><input type="radio" name="is_vip" value="0" <if condition="$vo['is_vip'] eq 0">checked="checked"</if> />否</label>
  132. <label><input type="radio" name="is_vip" value="1" <if condition="$vo['is_vip'] eq 1">checked="checked"</if> />是</label>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="item_title">会员到期时间:</td>
  137. <td class="item_input">
  138. <input type="text" class="textbox" name="vip_expire_time" id="vip_expire_time" value="{$vo.vip_expire_time}" onfocus="this.blur(); return showCalendar('vip_expire_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_vip_expire_time');" />
  139. <input type="button" class="button" id="btn_vip_expire_time" value="{%SELECT_TIME}" onclick="return showCalendar('vip_expire_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_vip_expire_time');" />
  140. <input type="button" class="button" value="{%CLEAR_TIME}" onclick="$('#vip_expire_time').val('');" />
  141. <span class='tip_span'>是VIP时,时间为空表示永久VIP。</span>
  142. </td>
  143. </tr>
  144. </if>
  145. <if condition="$open_distribution eq 1">
  146. <tr>
  147. <td class="item_title">分销上级ID:</td>
  148. <td class="item_input"><input type="text" name="p_user_id" class="textbox" value="{$vo.p_user_id}" /></td>
  149. </tr>
  150. </if>
  151. <tr>
  152. <td class="item_title">主播提现比例:</td>
  153. <td class="item_input"><input type="text" name="alone_ticket_ratio" class="textbox" value="{$vo.alone_ticket_ratio}" />
  154. <span class='tip_span'>设置主播提现比例,如果为空,则使用后台通用比例 (如:100印票*0.01=1元)</span>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="item_title">认证审核:</td>
  159. <td class="item_input">
  160. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 0">checked="checked"</if> value="0">未认证(取消认证)
  161. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 1">checked="checked"</if> value="1">待审核
  162. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 2">checked="checked"</if> value="2">已认证
  163. <input type="radio" name="is_authentication" <if condition="$vo.is_authentication eq 3">checked="checked"</if> value="3">审核不通过
  164. </td>
  165. </tr>
  166. <tr>
  167. <td class="item_title"> 直播分类:</td>
  168. <td class="item_input">
  169. <select name="classified_id">
  170. <option value="0">——</option>
  171. <foreach name="classified_id" item="list">
  172. <option value="{$list.id}" <if condition="$vo['classified_id'] eq $list['id']">selected="selected"</if>>{$list.title}</option>
  173. </foreach>
  174. </select>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td colspan=2 class="bottomTd"></td>
  179. </tr>
  180. </table>
  181. <div class="blank5"></div>
  182. <table class="form identify_info" cellspacing=0 cellpadding=0 id="identify_info_1" <if condition="$vo.is_authentication neq 0">style="display:block"</if>>
  183. <tr>
  184. <td class="item_title">认证类型:</td>
  185. <td class="item_input">
  186. <select name="authentication_type" id="authentication_type">
  187. <option value="">请选择类型</option>
  188. <foreach name="authent_list" item="authent">
  189. <option value="{$authent.name}" <if condition="$vo['authentication_type'] eq $authent['name']">selected="selected"</if>>{$authent.name}</option>
  190. </foreach>
  191. </select>
  192. </td>
  193. </tr>
  194. <tr>
  195. <td class="item_title">真实姓名:</td>
  196. <td class="item_input"><input type="text" name="authentication_name" class="textbox" value="{$vo.authentication_name}" /></td>
  197. </tr>
  198. <tr>
  199. <td class="item_title">联系方式:</td>
  200. <td class="item_input"><input type="text" name="contact" class="textbox" value="{$vo.contact}" /></td>
  201. </tr>
  202. <tr>
  203. <td class="item_title">+v认证说明:</td>
  204. <td class="item_input">
  205. <input type="text" value="{$vo.v_explain}" name="v_explain" class="textbox" style="width:500px;" maxlength="16"/>
  206. <span class='tip_span'>&nbsp;最大长度为16</span>
  207. </td>
  208. </tr>
  209. <tr class="teacher_info" <if condition="$vo['authentication_type'] neq '教师'"> style="display:none;" </if>>
  210. <td class="item_title">教师资格证 :</td>
  211. <td class="item_input"><html:imgUpload name="teaching_certificate" id="teaching_certificate" value="$teaching_certificate" /></td>
  212. </tr>
  213. <tr class="teacher_info" <if condition="$vo['authentication_type'] neq '教师'"> style="display:none;" </if>>
  214. <td class="item_title">学历证书 :</td>
  215. <td class="item_input"><html:imgUpload name="education_certificate" id="education_certificate" value="$education_certificate" /></td>
  216. </tr>
  217. <tr class="org_info" <if condition="$vo['authentication_type'] neq '机构'"> style="display:none;" </if>>
  218. <td class="item_title">营业资格证 :</td>
  219. <td class="item_input"><html:imgUpload name="business_license" id="business_license" value="$business_license" /></td>
  220. </tr>
  221. <tr>
  222. <td class="item_title">身份证正面:</td>
  223. <td class="item_input"><html:imgUpload name="identify_positive_image" id="identify_positive_image" value="$vo.identify_positive_image" /></td>
  224. </tr>
  225. <if condition="app_conf('IDENTIFY_NAGATIVE') eq 1">
  226. <tr>
  227. <td class="item_title">身份证反面:</td>
  228. <td class="item_input"><html:imgUpload name="identify_nagative_image" id="identify_nagative_image" value="$vo.identify_nagative_image" /></td>
  229. </tr>
  230. </if>
  231. <if condition="app_conf('IDENTIFY_NAGATIVE') eq 1">
  232. <tr>
  233. <td class="item_title">手持身份证正面:</td>
  234. <td class="item_input"><html:imgUpload name="identify_hold_image" id="identify_hold_image" value="$vo.identify_hold_image" /></td>
  235. </tr>
  236. </if>
  237. <tr>
  238. <td class="item_title">身份证号码:</td>
  239. <td class="item_input"><input type="text" id="identify_number" value="{$vo.identify_number}" class="textbox" name="identify_number" /></td>
  240. </tr>
  241. </table>
  242. <script>
  243. $(function(){
  244. if($("input[name='is_ban']:checked").val()==1){
  245. $('#show_ban_time').hide();
  246. }else{
  247. $('#show_ban_time').show();
  248. }
  249. $("input[name='is_ban']").bind("click",function(){
  250. var is_ban=$(this).val();
  251. if(is_ban==1){
  252. $('#show_ban_time').hide();
  253. }else{
  254. $('#show_ban_time').show();
  255. }
  256. });
  257. if($("input[name='is_ban']:checked").val()==1){
  258. $('#ban_type').show();
  259. }else{
  260. $('#ban_type').hide();
  261. }
  262. $("input[name='is_ban']").bind("click",function(){
  263. var is_ban=$(this).val();
  264. if(is_ban==1){
  265. $('#ban_type').show();
  266. }else{
  267. $('#ban_type').hide();
  268. }
  269. });
  270. if($("input[name='is_authentication']:checked").val()>0){
  271. $('#identify_info_1').show();
  272. }else{
  273. $('#identify_info_1').hide();
  274. }
  275. $("input[name='is_authentication']").bind("click",function(){
  276. var num = $(this).val();
  277. if(num==0){
  278. $('#identify_info_1').hide();
  279. }else{
  280. $('#identify_info_1').show();
  281. }
  282. });
  283. $("#authentication_type").change(function(){
  284. if (this.value == '教师') {
  285. $('.teacher_info').show();
  286. $('.org_info').hide();
  287. } else if (this.value == '机构') {
  288. $('.teacher_info').hide();
  289. $('.org_info').show();
  290. } else {
  291. $('.teacher_info').hide();
  292. $('.org_info').hide();
  293. }
  294. });
  295. });
  296. function submit_check(){
  297. if($("input[name='is_authentication']:checked").val()==2 || $("input[name='is_authentication']:checked").val()==1){
  298. if($('#authentication_type option:selected') .val()==''){
  299. alert("请选择认证类型");
  300. return false;
  301. }
  302. if($.trim($("input[name='authentication_name']").val())==''){
  303. alert("请输入真实名称");
  304. return false;
  305. }
  306. if($.trim($("input[name='contact']").val())==''){
  307. alert("请输入联系方式");
  308. return false;
  309. }
  310. if($.trim($("input[name='identify_positive_image']").val())==''){
  311. alert("请输入身份证正面");
  312. return false;
  313. }
  314. if($.trim($("input[name='identify_nagative_image']").val())==''){
  315. alert("请输入身份证反面");
  316. return false;
  317. }
  318. if($.trim($("input[name='identify_hold_image']").val())==''){
  319. alert("请输入手持身份证正面");
  320. return false;
  321. }
  322. if($.trim($("input[name='identify_number']").val())==''){
  323. alert("请输入身份证号码");
  324. return false;
  325. }
  326. }
  327. return true;
  328. }
  329. </script>
  330. <div class="blank5"></div>
  331. <table class="form" cellpadding=0 cellspacing=0>
  332. <tr>
  333. <td colspan=2 class="topTd"></td>
  334. </tr>
  335. <tr>
  336. <td class="item_title"></td>
  337. <td class="item_input">
  338. <!--隐藏元素-->
  339. <input type="hidden" name="{:conf("VAR_MODULE")}" value="EduUserGeneral" />
  340. <input type="hidden" name="{:conf("VAR_ACTION")}" value="update" />
  341. <input type="hidden" name="id" value="{$vo.id}" />
  342. <input type="hidden" name="wx_openid" value="{$vo.wx_openid}" />
  343. <!--隐藏元素-->
  344. <input type="submit" class="button" value="{%EDIT}" />
  345. <input type="reset" class="button" value="{%RESET}" />
  346. </td>
  347. </tr>
  348. <tr>
  349. <td colspan=2 class="bottomTd"></td>
  350. </tr>
  351. </table>
  352. </form>
  353. </div>
  354. <include file="Public:footer" />