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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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/user.css">
  12. </head>
  13. <body class="body-bg">
  14. <?php pasterTempletDiy('top.htm');?>
  15. <div class="container">
  16. <div class="row">
  17. <div class="col-md-12 text-center">
  18. <div class="login-from d-inline-block">
  19. <div class="login-box shadow-sm rounded text-left">
  20. <h2 class="text-center mb-3">会员注册</h2>
  21. <form method="post" action="reg_new.php" id="regUser" name="form2" onsubmit="return CheckSubmit();">
  22. <input type="hidden" value="regbase" name="dopost">
  23. <input type="hidden" value="1" name="step">
  24. <input type="hidden" value="个人" name="mtype">
  25. <div class="form-group">
  26. <label for="iptUserid">账号</label>
  27. <input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入账号">
  28. </div>
  29. <div class="form-group">
  30. <label for="iptUserpwd">密码</label>
  31. <input type="password" name="userpwd" id="iptUserpwd" class="form-control" placeholder="请输入密码">
  32. </div>
  33. <div class="form-group">
  34. <label for="iptUserpwdok">确认密码</label>
  35. <input type="password" name="userpwdok" id="iptUserpwdok" class="form-control" placeholder="请输入确认密码">
  36. </div>
  37. <div class="form-group">
  38. <label for="iptValidate">验证码</label>
  39. <div class="input-group">
  40. <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码">
  41. <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="验证码">
  42. </div>
  43. </div>
  44. <div class="form-group form-check">
  45. <input type="checkbox" class="form-check-input" id="iptLicence">
  46. <label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>和<a href="">《隐私保护条例》</a></label>
  47. </div>
  48. <div class="form-group"><button type="submit" class="btn btn-success btn-sm w-100">注册</button></div>
  49. <div><a href="<?php echo $cfg_memberurl;?>/login.php" class="btn btn-outline-success btn-sm w-100">登录</a></div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <?php pasterTempletDiy('foot.htm');?>
  57. <script>
  58. //CheckSubmit 校验注册提交表单
  59. function CheckSubmit() {
  60. let formCheck = [{
  61. elem: "#iptUserid",
  62. condition: $("#iptUserid").val() === "",
  63. },
  64. {
  65. elem: "#iptLicence",
  66. condition: !$("#iptLicence").is(':checked'),
  67. },
  68. {
  69. elem: "#iptValidate",
  70. condition: $("#iptValidate").val() === "",
  71. },
  72. {
  73. elem: "#iptUserpwd",
  74. condition: $("#iptUserpwd").val() === "",
  75. },
  76. {
  77. elem: "#iptUserpwdok",
  78. condition: $("#iptUserpwdok").val() !== $("#iptUserpwd").val(),
  79. },
  80. ];
  81. for (let i = 0; i < formCheck.length; i++) {
  82. const fc = formCheck[i];
  83. if (fc.condition) {
  84. $(fc.elem).addClass("is-invalid");
  85. return false
  86. } else {
  87. $(fc.elem).removeClass("is-invalid");
  88. }
  89. }
  90. return true
  91. }
  92. </script>
  93. </body>
  94. </html>