国内流行的内容管理系统(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.

110 lines
4.8KB

  1. <!doctype html>
  2. <html lang="zh-CN">
  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. <script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script>
  7. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css">
  8. <link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css">
  11. <title><?php echo $cfg_webname; ?>- 会员注册</title>
  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"
  30. style="text-transform:uppercase;">
  31. <img src="<?php echo $cfg_cmsurl;?>/plus/vdimgck.php" id="validateimg"
  32. style="cursor:pointer;"
  33. onclick="this.src='<?php echo $cfg_cmsurl;?>/plus/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)"
  34. title="点击我更换图片" alt="点击我更换图片" />
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <div class="input-group">
  39. <input placeholder="登录密码" name="userpwd" type="password" class="form-control" id="iptUserpwd"
  40. style="text-transform:uppercase;">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <div class="input-group">
  45. <input placeholder="确认密码" name="userpwdok" type="password" class="form-control" id="iptUserpwdok"
  46. style="text-transform:uppercase;">
  47. </div>
  48. </div>
  49. <div class="form-group form-check">
  50. <input type="checkbox" class="form-check-input" id="iptLicence">
  51. <label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>、<a
  52. href="">《隐私保护条例》</a></label>
  53. </div>
  54. <button type="submit" class="btn btn-success btnLogin">注 册</button>
  55. <a href="<?php echo $cfg_memberurl;?>/login.php"
  56. class="btn btn-outline-success btnLogin mt-2">登 录</a>
  57. </form>
  58. </div>
  59. </div>
  60. </main>
  61. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  62. <script>
  63. // CheckSubmit 校验注册提交表单
  64. function CheckSubmit() {
  65. let formCheck = [
  66. {
  67. elem : "#iptUserid",
  68. condition : $("#iptUserid").val() === "",
  69. },
  70. {
  71. elem : "#iptLicence",
  72. condition : !$("#iptLicence").is(':checked'),
  73. },
  74. {
  75. elem : "#iptValidate",
  76. condition : $("#iptValidate").val() === "",
  77. },
  78. {
  79. elem : "#iptUserpwd",
  80. condition : $("#iptUserpwd").val() === "",
  81. },
  82. {
  83. elem : "#iptUserpwdok",
  84. condition : $("#iptUserpwdok").val() !== $("#iptUserpwd").val(),
  85. },
  86. ];
  87. for (let i = 0; i < formCheck.length; i++) {
  88. const fc = formCheck[i];
  89. if (fc.condition) {
  90. $(fc.elem).addClass("is-invalid");
  91. return false
  92. } else {
  93. $(fc.elem).removeClass("is-invalid");
  94. }
  95. }
  96. return true
  97. }
  98. </script>
  99. </body>
  100. </html>