|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
- <title>会员注册-<?php echo $cfg_webname;?></title>
- <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script>
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css">
- <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css">
- </head>
- <body class="body-bg">
- <?php pasterTempletDiy('top.htm');?>
- <div class="container">
- <div class="row">
- <div class="col-md-12 text-center">
- <div class="login-from d-inline-block">
- <div class="login-box shadow-sm rounded text-left">
- <h2 class="text-center mb-3">会员注册</h2>
- <form method="post" action="reg_new.php" id="regUser" name="form2" onsubmit="return CheckSubmit();">
- <input type="hidden" value="regbase" name="dopost">
- <input type="hidden" value="1" name="step">
- <input type="hidden" value="个人" name="mtype">
- <div class="form-group">
- <label for="iptUserid">账号</label>
- <input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入账号">
- </div>
- <div class="form-group">
- <label for="iptUserpwd">密码</label>
- <input type="password" name="userpwd" id="iptUserpwd" class="form-control" placeholder="请输入密码">
- </div>
- <div class="form-group">
- <label for="iptUserpwdok">确认密码</label>
- <input type="password" name="userpwdok" id="iptUserpwdok" class="form-control" placeholder="请输入确认密码">
- </div>
- <div class="form-group">
- <label for="iptValidate">验证码</label>
- <div class="input-group">
- <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码">
- <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="验证码">
- </div>
- </div>
- <div class="form-group form-check">
- <input type="checkbox" class="form-check-input" id="iptLicence">
- <label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>和<a href="">《隐私保护条例》</a></label>
- </div>
- <div class="form-group"><button type="submit" class="btn btn-success w-100">注册</button></div>
- <div><a href="<?php echo $cfg_memberurl;?>/login.php" class="btn btn-outline-success w-100">登录</a></div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php pasterTempletDiy('foot.htm');?>
- <script>
- //CheckSubmit 校验注册提交表单
- function CheckSubmit() {
- let formCheck = [{
- elem: "#iptUserid",
- condition: $("#iptUserid").val() === "",
- },
- {
- elem: "#iptLicence",
- condition: !$("#iptLicence").is(':checked'),
- },
- {
- elem: "#iptValidate",
- condition: $("#iptValidate").val() === "",
- },
- {
- elem: "#iptUserpwd",
- condition: $("#iptUserpwd").val() === "",
- },
- {
- elem: "#iptUserpwdok",
- condition: $("#iptUserpwdok").val() !== $("#iptUserpwd").val(),
- },
- ];
- for (let i = 0; i < formCheck.length; i++) {
- const fc = formCheck[i];
- if (fc.condition) {
- $(fc.elem).addClass("is-invalid");
- return false
- } else {
- $(fc.elem).removeClass("is-invalid");
- }
- }
- return true
- }
- </script>
- </body>
- </html>
|