国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title><?php echo $cfg_webname; ?>-会员注册</title>
  7. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script>
  8. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css">
  11. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css">
  12. </head>
  13. <body>
  14. <?php include(DEDEMEMBER."/templets/top.htm"); ?>
  15. <?php include(DEDEMEMBER."/templets/header.htm"); ?>
  16. <main class="login-from">
  17. <div class="container">
  18. <div class="login-area">
  19. <h4 class="text-center py-2">会员注册</h4>
  20. <form method="post" action="reg_new.php" id="regUser" name="form2" onsubmit="return CheckSubmit();">
  21. <input type="hidden" value="regbase" name="dopost">
  22. <input type="hidden" value="1" name="step">
  23. <input type="hidden" value="个人" name="mtype">
  24. <div class="input-group mb-3">
  25. <input id="iptUserid" name="userid" type="text" class="form-control" placeholder="输入用户名">
  26. </div>
  27. <div class="form-group">
  28. <div class="input-group">
  29. <input name="vdcode" placeholder="请输入验证码" type="text" class="form-control" id="iptValidate" style="text-transform:uppercase">
  30. <img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" onClick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" alt="验证码" style="cursor:pointer">
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <div class="input-group">
  35. <input placeholder="登录密码" name="userpwd" type="password" class="form-control" id="iptUserpwd" style="text-transform:uppercase">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <div class="input-group">
  40. <input placeholder="确认密码" name="userpwdok" type="password" class="form-control" id="iptUserpwdok" style="text-transform:uppercase">
  41. </div>
  42. </div>
  43. <div class="form-group form-check">
  44. <input type="checkbox" class="form-check-input" id="iptLicence">
  45. <label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>、<a href="">《隐私保护条例》</a></label>
  46. </div>
  47. <button type="submit" class="btn btn-success btnLogin btn-sm">注册</button>
  48. <a href="<?php echo $cfg_memberurl;?>/login.php" class="btn btn-outline-success btnLogin mt-2 btn-sm">登录</a>
  49. </form>
  50. </div>
  51. </div>
  52. </main>
  53. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  54. <script>
  55. //CheckSubmit 校验注册提交表单
  56. function CheckSubmit() {
  57. let formCheck = [{
  58. elem: "#iptUserid",
  59. condition: $("#iptUserid").val() === "",
  60. },
  61. {
  62. elem: "#iptLicence",
  63. condition: !$("#iptLicence").is(':checked'),
  64. },
  65. {
  66. elem: "#iptValidate",
  67. condition: $("#iptValidate").val() === "",
  68. },
  69. {
  70. elem: "#iptUserpwd",
  71. condition: $("#iptUserpwd").val() === "",
  72. },
  73. {
  74. elem: "#iptUserpwdok",
  75. condition: $("#iptUserpwdok").val() !== $("#iptUserpwd").val(),
  76. },
  77. ];
  78. for (let i = 0; i < formCheck.length; i++) {
  79. const fc = formCheck[i];
  80. if (fc.condition) {
  81. $(fc.elem).addClass("is-invalid");
  82. return false
  83. } else {
  84. $(fc.elem).removeClass("is-invalid");
  85. }
  86. }
  87. return true
  88. }
  89. </script>
  90. </body>
  91. </html>