edit.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. {include file="public/header" /}
  2. <div class="page">
  3. <form id="user_form" enctype="multipart/form-data" method="post">
  4. <input type="hidden" name="member_id" value="{$member_array.member_id}" />
  5. <input type="hidden" name="old_member_avatar" value="{$member_array.member_avatar}" />
  6. <input type="hidden" name="member_name" value="{$member_array.member_name}" />
  7. <table class="ds-default-table">
  8. <tbody>
  9. <tr class="noborder">
  10. <td class="required w120"><label>{$Think.lang.ds_member_name}:</label></td>
  11. <td class="vatop rowform">{$member_array.member_name}</td>
  12. <td class="vatop tips"></td>
  13. </tr>
  14. <tr class="noborder">
  15. <td class="required"><label for="member_password">{$Think.lang.ds_member_password}:</label></td>
  16. <td class="vatop rowform"><input type="text" id="member_password" name="member_password" class="txt"></td>
  17. <td class="vatop tips">{$Think.lang.member_edit_password_keep}</td>
  18. </tr>
  19. <tr class="noborder">
  20. <td class="required"><label for="member_paypwd">{$Think.lang.member_edit_paypwd}:</label></td>
  21. <td class="vatop rowform"><input type="text" id="member_paypwd" name="member_paypwd" class="txt"></td>
  22. <td class="vatop tips">{$Think.lang.member_edit_password_keep}</td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="required"><label for="member_email">{$Think.lang.member_email}:</label></td>
  26. <td class="vatop rowform"><input type="text" value="{$member_array.member_email}" id="member_email" name="member_email" class="txt"></td>
  27. <td class="vatop tips">{$Think.lang.member_email}</td>
  28. </tr>
  29. <tr class="noborder">
  30. <td class="required"><label for="member_truename">{$Think.lang.member_truename}:</label></td>
  31. <td class="vatop rowform"><input type="text" value="{$member_array.member_truename}" id="member_truename" name="member_truename" class="txt"></td>
  32. <td class="vatop tips"></td>
  33. </tr>
  34. <tr class="noborder">
  35. <td class="required"><label>{$Think.lang.member_edit_sex}:</label></td>
  36. <td class="vatop rowform">
  37. <label class="radio-label">
  38. <i class="radio-common {if $member_array.member_sex == 0}selected{/if}">
  39. <input type="radio" value="0" name="member_sex" {if $member_array.member_sex == 0}checked="checked"{/if}>
  40. </i>
  41. <span>{$Think.lang.member_edit_secret}</span>
  42. </label>
  43. <label class="radio-label">
  44. <i class="radio-common {if $member_array.member_sex == 1}selected{/if}">
  45. <input type="radio" value="1" name="member_sex" {if $member_array.member_sex == 1}checked="checked"{/if}>
  46. </i>
  47. <span>{$Think.lang.member_edit_male}</span>
  48. </label>
  49. <label class="radio-label">
  50. <i class="radio-common {if $member_array.member_sex == 2}selected{/if}">
  51. <input type="radio" value="2" name="member_sex" {if $member_array.member_sex == 2}checked="checked"{/if}>
  52. </i>
  53. <span>{$Think.lang.member_edit_female}</span>
  54. </label>
  55. </td>
  56. <td class="vatop tips"></td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="required"><label class="member_areainfo">{$Think.lang.member_areainfo}:</label></td>
  60. <td class="vatop rowform" colspan="2">
  61. <span class="w400">
  62. <input type="hidden" value="{$member_array['member_provinceid']|default=''}" name="province_id" id="_area_1">
  63. <input type="hidden" value="{$member_array['member_cityid']|default=''}" name="city_id" id="_area_2">
  64. <input type="hidden" value="{$member_array['member_areaid']|default=''}" name="area_id" id="_area_3">
  65. <input type="hidden" name="region" id="region" value="{$member_array.member_areainfo}"/>
  66. </span>
  67. </td>
  68. </tr>
  69. <tr class="noborder">
  70. <td class="required"><label class="member_mobile">{$Think.lang.member_mobile}:</label></td>
  71. <td class="vatop rowform"><input type="text" value="{:encrypt_show($member_array.member_mobile,4,4)}" onfocus="clearMobile(this)" id="member_mobile" name="member_mobile" class="txt"></td>
  72. <td class="vatop tips"></td>
  73. </tr>
  74. <tr class="noborder">
  75. <td class="required"><label class="member_qq">QQ:</label></td>
  76. <td class="vatop rowform"><input type="text" value="{$member_array.member_qq}" id="member_qq" name="member_qq" class="txt"></td>
  77. <td class="vatop tips"></td>
  78. </tr>
  79. <tr class="noborder">
  80. <td class="required"><label class="member_ww">{$Think.lang.member_ww}:</label></td>
  81. <td class="vatop rowform"><input type="text" value="{$member_array.member_ww}" id="member_ww" name="member_ww" class="txt"></td>
  82. <td class="vatop tips"></td>
  83. </tr>
  84. <tr class="noborder">
  85. <td class="required"><label>{$Think.lang.member_auth}:</label></td>
  86. <td class="vatop rowform">
  87. <label class="radio-label">
  88. <i class="radio-common {if $member_array.member_auth_state != 3}selected{/if}">
  89. <input type="radio" value="{if $member_array.member_auth_state == 3}0{else}{$member_array.member_auth_state}{/if}" name="member_auth_state" {if $member_array.member_auth_state != 3}checked="checked"{/if}>
  90. </i>
  91. <span>{$Think.lang.member_auth_state0}</span>
  92. </label>
  93. <label class="radio-label">
  94. <i class="radio-common {if $member_array.member_auth_state == 3}selected{/if}">
  95. <input type="radio" value="3" name="member_auth_state" {if $member_array.member_auth_state == 3}checked="checked"{/if}>
  96. </i>
  97. <span>{$Think.lang.member_auth_state3}</span>
  98. </label>
  99. </td>
  100. <td class="vatop tips"></td>
  101. </tr>
  102. <tr class="noborder">
  103. <td class="required"><label>{$Think.lang.member_index_inform}:</label></td>
  104. <td class="vatop rowform onoff">
  105. <label for="inform_allow1" class="cb-enable {if $member_array.inform_allow == '1'}selected{/if}" ><span>{$Think.lang.member_edit_allow}</span></label>
  106. <label for="inform_allow2" class="cb-disable {if $member_array.inform_allow == '2'}selected{/if}" ><span>{$Think.lang.member_edit_deny}</span></label>
  107. <input id="inform_allow1" name="inform_allow" {if $member_array.inform_allow == '1'}checked="checked"{/if} value="1" type="radio">
  108. <input id="inform_allow2" name="inform_allow" {if $member_array.inform_allow == '2'}checked="checked"{/if} value="2" type="radio">
  109. </td>
  110. <td class="vatop tips"></td>
  111. </tr>
  112. <tr class="noborder">
  113. <td class="required"><label>{$Think.lang.member_edit_allowbuy}:</label></td>
  114. <td class="vatop rowform onoff">
  115. <label for="isbuy_1" class="cb-enable {if $member_array.is_buylimit == '1'}selected{/if}" ><span>{$Think.lang.member_edit_allow}</span></label>
  116. <label for="isbuy_2" class="cb-disable {if $member_array.is_buylimit == '0'}selected{/if}" ><span>{$Think.lang.member_edit_deny}</span></label>
  117. <input id="isbuy_1" name="isbuy" {if $member_array.is_buylimit == '1'}checked="checked"{/if} value="1" type="radio">
  118. <input id="isbuy_2" name="isbuy" {if $member_array.is_buylimit == '0'}checked="checked"{/if} value="0" type="radio">
  119. </td>
  120. <td class="vatop tips">{$Think.lang.member_edit_allowbuy_tip}</td>
  121. </tr>
  122. <tr class="noborder">
  123. <td class="required"><label>{$Think.lang.member_edit_allowtalk}:</label></td>
  124. <td class="vatop rowform onoff">
  125. <label for="allowtalk_1" class="cb-enable {if $member_array.is_allowtalk == '1'}selected{/if}" ><span>{$Think.lang.member_edit_allow}</span></label>
  126. <label for="allowtalk_2" class="cb-disable {if $member_array.is_allowtalk == '0'}selected{/if}" ><span>{$Think.lang.member_edit_deny}</span></label>
  127. <input id="allowtalk_1" name="allowtalk" {if $member_array.is_allowtalk == '1'}checked="checked"{/if} value="1" type="radio">
  128. <input id="allowtalk_2" name="allowtalk" {if $member_array.is_allowtalk == '0'}checked="checked"{/if} value="0" type="radio">
  129. </td>
  130. <td class="vatop tips">{$Think.lang.member_edit_allowtalk_tip}</td>
  131. </tr>
  132. <tr class="noborder">
  133. <td class="required"><label>{$Think.lang.member_edit_allowlogin}:</label></td>
  134. <td class="vatop rowform onoff">
  135. <label for="memberstate_1" class="cb-enable {if $member_array.member_state == '1'}selected{/if}" ><span>{$Think.lang.member_edit_allow}</span></label>
  136. <label for="memberstate_2" class="cb-disable {if $member_array.member_state == '0'}selected{/if}" ><span>{$Think.lang.member_edit_deny}</span></label>
  137. <input id="memberstate_1" name="member_state" {if $member_array.member_state == '1'}checked="checked"{/if} value="1" type="radio">
  138. <input id="memberstate_2" name="member_state" {if $member_array.member_state == '0'}checked="checked"{/if} value="0" type="radio">
  139. </td>
  140. <td class="vatop tips"></td>
  141. </tr>
  142. <tr class="noborder">
  143. <td class="required"><label>{$Think.lang.member_mobilebind}:</label></td>
  144. <td class="vatop rowform onoff">
  145. <label for="membermobilebind_1" class="cb-enable {if $member_array.member_mobilebind == '1'}selected{/if}" ><span>{$Think.lang.ds_verified}</span></label>
  146. <label for="membermobilebind_2" class="cb-disable {if $member_array.member_mobilebind == '0'}selected{/if}" ><span>{$Think.lang.ds_unverified}</span></label>
  147. <input id="membermobilebind_1" name="member_mobilebind" {if $member_array.member_mobilebind == '1'}checked="checked"{/if} value="1" type="radio">
  148. <input id="membermobilebind_2" name="member_mobilebind" {if $member_array.member_mobilebind == '0'}checked="checked"{/if} value="0" type="radio">
  149. </td>
  150. <td class="vatop tips"></td>
  151. </tr>
  152. <tr class="noborder">
  153. <td class="required"><label>{$Think.lang.member_emailbind}:</label></td>
  154. <td class="vatop rowform onoff">
  155. <label for="memberemailbind_1" class="cb-enable {if $member_array.member_emailbind == '1'}selected{/if}" ><span>{$Think.lang.ds_verified}</span></label>
  156. <label for="memberemailbind_2" class="cb-disable {if $member_array.member_emailbind == '0'}selected{/if}" ><span>{$Think.lang.ds_unverified}</span></label>
  157. <input id="memberemailbind_1" name="member_emailbind" {if $member_array.member_emailbind == '1'}checked="checked"{/if} value="1" type="radio">
  158. <input id="memberemailbind_2" name="member_emailbind" {if $member_array.member_emailbind == '0'}checked="checked"{/if} value="0" type="radio"></td>
  159. <td class="vatop tips"></td>
  160. </tr>
  161. <tr class="noborder">
  162. <td class="required"><label>{$Think.lang.ds_member_points}:</label></td>
  163. <td class="vatop rowform">{$Think.lang.ds_member_points}&nbsp;<strong class="red">{$member_array.member_points}</strong>&nbsp;{$Think.lang.ds_member_points}</td>
  164. <td class="vatop tips"></td>
  165. </tr>
  166. <tr class="noborder">
  167. <td class="required"><label>{$Think.lang.member_exppoints}:</label></td>
  168. <td class="vatop rowform">{$Think.lang.member_exppoints}&nbsp;<strong class="red">{$member_array.member_exppoints}</strong>&nbsp;{$Think.lang.ds_member_points}</td>
  169. <td class="vatop tips"></td>
  170. </tr>
  171. <tr class="noborder">
  172. <td class="required"><label>{$Think.lang.member_index_available}{$Think.lang.ds_predeposit}:</label></td>
  173. <td class="vatop rowform">{$Think.lang.member_index_available}&nbsp;<strong class="red">{$member_array.available_predeposit}</strong>&nbsp;{$Think.lang.ds_yuan}</td>
  174. <td class="vatop tips"></td>
  175. </tr>
  176. <tr class="noborder">
  177. <td class="required"><label>{$Think.lang.member_index_frozen}{$Think.lang.ds_predeposit}:</label></td>
  178. <td class="vatop rowform">{$Think.lang.member_index_frozen}&nbsp;<strong class="red">{$member_array.freeze_predeposit}</strong>&nbsp;{$Think.lang.ds_yuan}</td>
  179. <td class="vatop tips"></td>
  180. </tr>
  181. </tbody>
  182. <tfoot>
  183. <tr class="tfoot">
  184. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  185. </tr>
  186. </tfoot>
  187. </table>
  188. </form>
  189. <script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js" charset="utf-8"></script>
  190. <script type="text/javascript">
  191. $(function() {
  192. $("#region").ds_region();
  193. $('#user_form').validate({
  194. errorPlacement: function(error, element) {
  195. error.appendTo(element.parent().parent().find('td:last'));
  196. },
  197. rules: {
  198. member_password: {
  199. maxlength: 20,
  200. minlength: 6
  201. },
  202. member_email: {
  203. email: true,
  204. remote: {
  205. url: ADMINSITEURL+'/Member/ajax.html?branch=check_email',
  206. type: 'get',
  207. data: {
  208. user_name: function() {
  209. return $('#member_email').val();
  210. },
  211. member_id : '{$member_array.member_id}'
  212. }
  213. }
  214. }
  215. },
  216. messages: {
  217. member_password: {
  218. maxlength: '{$Think.lang.member_edit_password_tip}',
  219. minlength: '{$Think.lang.member_edit_password_tip}'
  220. },
  221. member_email: {
  222. email: '{$Think.lang.member_edit_valid_email}',
  223. remote: '{$Think.lang.member_edit_email_exists}'
  224. }
  225. }
  226. });
  227. });
  228. function clearMobile(obj){
  229. if($(obj).val()=='{:encrypt_show($member_array.member_mobile,4,4)}'){
  230. $(obj).val('')
  231. }
  232. }
  233. </script>
  234. </div>