61524241c6bee98439ff69dbc45205a6.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php /*a:2:{s:58:"/data/web/mall.valimart.net/app/admin/view/member/add.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <form id="user_form" enctype="multipart/form-data" method="post">
  33. <table class="ds-default-table">
  34. <tbody>
  35. <tr class="noborder">
  36. <td class="required w120"><label class="validation" for="member_name"><?php echo htmlentities(lang('ds_member_name')); ?>:</label></td>
  37. <td class="vatop rowform"><input type="text" value="" name="member_name" id="member_name" class="txt"></td>
  38. <td class="vatop tips"></td>
  39. </tr>
  40. <tr class="noborder">
  41. <td class="required"><label class="validation" for="member_password"><?php echo htmlentities(lang('ds_member_password')); ?>:</label></td>
  42. <td class="vatop rowform"><input type="text" id="member_password" name="member_password" class="txt"></td>
  43. <td class="vatop tips"></td>
  44. </tr>
  45. <tr class="noborder">
  46. <td class="required"><label for="member_email"><?php echo htmlentities(lang('member_email')); ?>:</label></td>
  47. <td class="vatop rowform"><input type="text" value="" id="member_email" name="member_email" class="txt"></td>
  48. <td class="vatop tips"></td>
  49. </tr>
  50. <tr class="noborder">
  51. <td class="required"><label for="member_truename"><?php echo htmlentities(lang('member_truename')); ?>:</label></td>
  52. <td class="vatop rowform"><input type="text" value="" id="member_truename" name="member_truename" class="txt"></td>
  53. <td class="vatop tips"></td>
  54. </tr>
  55. <tr class="noborder">
  56. <td class="required"><label> <?php echo htmlentities(lang('member_edit_sex')); ?>:</label></td>
  57. <td class="vatop rowform">
  58. <label class="radio-label">
  59. <i class="radio-common selected">
  60. <input type="radio" value="0" name="member_sex" checked="checked">
  61. </i>
  62. <span><?php echo htmlentities(lang('member_edit_secret')); ?></span>
  63. </label>
  64. <label class="radio-label">
  65. <i class="radio-common">
  66. <input type="radio" value="1" name="member_sex">
  67. </i>
  68. <span><?php echo htmlentities(lang('member_edit_male')); ?></span>
  69. </label>
  70. <label class="radio-label">
  71. <i class="radio-common">
  72. <input type="radio" value="2" name="member_sex">
  73. </i>
  74. <span><?php echo htmlentities(lang('member_edit_female')); ?></span>
  75. </label>
  76. </td>
  77. <td class="vatop tips"></td>
  78. </tr>
  79. <tr class="noborder">
  80. <td class="required"><label for="member_qq">QQ:</label></td>
  81. <td class="vatop rowform"><input type="text" value="" id="member_qq" name="member_qq" class="txt"></td>
  82. <td class="vatop tips"></td>
  83. </tr>
  84. <tr class="noborder">
  85. <td class="required"><label class="member_ww"><?php echo htmlentities(lang('member_ww')); ?>:</label></td>
  86. <td class="vatop rowform"><input type="text" value="" id="member_ww" name="member_ww" class="txt"></td>
  87. <td class="vatop tips"></td>
  88. </tr>
  89. </tbody>
  90. <tfoot>
  91. <tr class="tfoot">
  92. <td colspan="15"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
  93. </tr>
  94. </tfoot>
  95. </table>
  96. </form>
  97. </div>
  98. <script type="text/javascript">
  99. $(function() {
  100. $('#user_form').validate({
  101. errorPlacement: function(error, element) {
  102. error.appendTo(element.parent().parent().find('td:last'));
  103. },
  104. rules: {
  105. member_name: {
  106. required: true,
  107. minlength: 3,
  108. maxlength: 15,
  109. remote: {
  110. url: "<?php echo url('Member/ajax',['branch'=>'check_user_name']); ?>",
  111. type: 'get',
  112. data: {
  113. user_name: function() {
  114. return $('#member_name').val();
  115. },
  116. member_id:'<?php echo htmlentities((isset($member_array['member_id']) && ($member_array['member_id'] !== '')?$member_array['member_id']:0)); ?>'
  117. }
  118. }
  119. },
  120. member_password: {
  121. required: true,
  122. maxlength: 20,
  123. minlength: 6
  124. },
  125. member_email: {
  126. email: true,
  127. remote: {
  128. url: "<?php echo url('Member/ajax',['branch'=>'check_email']); ?>",
  129. type: 'get',
  130. data: {
  131. user_name: function() {
  132. return $('#member_email').val();
  133. },
  134. member_id: '<?php echo htmlentities((isset($member_array['member_id']) && ($member_array['member_id'] !== '')?$member_array['member_id']:0)); ?>'
  135. }
  136. }
  137. },
  138. member_qq: {
  139. digits: true,
  140. minlength: 5,
  141. maxlength: 11
  142. }
  143. },
  144. messages: {
  145. member_name: {
  146. required: '<?php echo htmlentities(lang('member_add_name_null')); ?>',
  147. maxlength: '<?php echo htmlentities(lang('member_add_name_length')); ?>',
  148. minlength: '<?php echo htmlentities(lang('member_add_name_length')); ?>',
  149. remote: '<?php echo htmlentities(lang('member_add_name_exists')); ?>'
  150. },
  151. member_password: {
  152. required: '<?php echo htmlentities(lang('password_add_name_null')); ?>',
  153. maxlength: '<?php echo htmlentities(lang('member_edit_password_tip')); ?>',
  154. minlength: '<?php echo htmlentities(lang('member_edit_password_tip')); ?>'
  155. },
  156. member_email: {
  157. email: '<?php echo htmlentities(lang('member_edit_valid_email')); ?>',
  158. remote: '<?php echo htmlentities(lang('member_edit_email_exists')); ?>'
  159. },
  160. member_qq: {
  161. digits: '<?php echo htmlentities(lang('member_edit_qq_wrong')); ?>',
  162. minlength: '<?php echo htmlentities(lang('member_edit_qq_wrong')); ?>',
  163. maxlength: '<?php echo htmlentities(lang('member_edit_qq_wrong')); ?>'
  164. }
  165. }
  166. });
  167. });
  168. </script>