Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

users_add.htm 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="overflow-y: scroll;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. <div class="fixed-bar">
  8. <div class="item-title"><a class="back_xin" href="{:url('Member/users_index')}" title="返回"><i class="iconfont e-fanhui"></i></a></a>
  9. <div class="subject">
  10. <h3>会员中心 - 新增会员</h3>
  11. <h5></h5>
  12. </div>
  13. </div>
  14. </div>
  15. <form class="form-horizontal" id="postForm" action="{:url('Member/users_add')}" method="post">
  16. <div class="ncap-form-default">
  17. <dl class="row"><dt class="tit"><label><b>基本资料</b></label></dt></dl>
  18. <dl class="row">
  19. <dt class="tit">
  20. <label for="username"><em>*</em>用户名</label>
  21. </dt>
  22. <dd class="opt">
  23. <input type="text" name="username" id="username" class="input-txt">
  24. <p class="notic"></p>
  25. </dd>
  26. </dl>
  27. <dl class="row">
  28. <dt class="tit">
  29. <label for="password"><em>*</em>登录密码</label>
  30. </dt>
  31. <dd class="opt">
  32. <input type="password" name="password" id="password" class="input-txt">
  33. <p class="notic"></p>
  34. </dd>
  35. </dl>
  36. <dl class="row">
  37. <dt class="tit">
  38. <label for="password2"><em>*</em>确认密码</label>
  39. </dt>
  40. <dd class="opt">
  41. <input type="password" name="password2" id="password2" class="input-txt">
  42. <p class="notic"></p>
  43. </dd>
  44. </dl>
  45. <dl class="row">
  46. <dt class="tit">
  47. <label for="level">会员级别</label>
  48. </dt>
  49. <dd class="opt">
  50. <select name="level" id="level">
  51. {volist name='$user_level' id='vo'}
  52. <option value="{$vo.level_id}" >{$vo.level_name}</option>
  53. {/volist}
  54. </select>
  55. <span class="err"></span>
  56. <p class="notic"></p>
  57. </dd>
  58. </dl>
  59. {notempty name='$users_para'}
  60. <dl class="row"><dt class="tit"><label><b>更多资料</b></label></dt></dl>
  61. <!-- 会员属性 开始 -->
  62. {include file="member/users_field"/}
  63. <!-- 会员属性 结束 -->
  64. {/notempty}
  65. <div class="bot">
  66. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  67. </div>
  68. </div>
  69. </form>
  70. </div>
  71. <script type="text/javascript">
  72. function checkForm(){
  73. if($('input[name=username]').val() == ''){
  74. showErrorMsg('用户名不能为空!');
  75. $('input[name=username]').focus();
  76. return false;
  77. }
  78. var password = $('#password').val();
  79. var password2 = $('#password2').val();
  80. if(password == ''){
  81. showErrorMsg('登录密码不能为空!');
  82. $('#password').focus();
  83. return false;
  84. }
  85. if(password2 == ''){
  86. showErrorMsg('确认密码不能为空!');
  87. $('#password2').focus();
  88. return false;
  89. }
  90. if (password != '' || password2 != '') {
  91. if (password != password2) {
  92. showErrorMsg('两次密码输入不一致!');
  93. $('input[name=password]').focus();
  94. return false;
  95. }
  96. }
  97. layer_loading('正在处理');
  98. $('#postForm').submit();
  99. }
  100. </script>
  101. {include file="public/footer" /}