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

94 lines
4.5KB

  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. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script>
  7. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css">
  8. <link href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/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" style="text-transform:uppercase">
  30. <img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" style="cursor:pointer" onClick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="点击我更换图片" alt="点击我更换图片" />
  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">注 册</button>
  48. <a href="<?php echo $cfg_memberurl;?>/login.php" class="btn btn-outline-success btnLogin mt-2">登 录</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. {
  59. elem : "#iptUserid",
  60. condition : $("#iptUserid").val() === "",
  61. },
  62. {
  63. elem : "#iptLicence",
  64. condition : !$("#iptLicence").is(':checked'),
  65. },
  66. {
  67. elem : "#iptValidate",
  68. condition : $("#iptValidate").val() === "",
  69. },
  70. {
  71. elem : "#iptUserpwd",
  72. condition : $("#iptUserpwd").val() === "",
  73. },
  74. {
  75. elem : "#iptUserpwdok",
  76. condition : $("#iptUserpwdok").val() !== $("#iptUserpwd").val(),
  77. },
  78. ];
  79. for (let i = 0; i < formCheck.length; i++) {
  80. const fc = formCheck[i];
  81. if (fc.condition) {
  82. $(fc.elem).addClass("is-invalid");
  83. return false
  84. } else {
  85. $(fc.elem).removeClass("is-invalid");
  86. }
  87. }
  88. return true
  89. }
  90. </script>
  91. </body>
  92. </html>