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

93 lines
3.8KB

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