1、社员提交社团申请表功能
2、完成情况
申请表填表项的设置和修改完成,提交功能遇到信息无法在社长端实现
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="login_head.jsp"></jsp:include>
<form id="regForm" action="${pageContext.request.contextPath}/login"
method="post">
<h1>用户登录</h1>
<div>
<input type="text" required name="login_mail" class="form-control"
placeholder="注册的邮箱" />
</div>
<div>
<input type="password" required name="pwd" maxlength="20"
class="form-control" placeholder="请输入密码 " />
</div>
<div style="padding-left: 90px;">
<button type="submit" class="btn btn-default">登录</button>
<button type="button" class="btn btn-default"
onclick="window.location='${pageContext.request.contextPath}/register.jsp'">注册</button>
<a class="reset_pass" href="#">忘记密码?</a>
</div>
<div class="clearfix"></div>
<div class="separator">
<div class="clearfix"></div>
<br />
<div>
<h1>
<i class="fa fa-paw"></i> Gentelella Alela!
</h1>
<p>©2021 All Rights Reserved. Gentelella Alela! is a Bootstrap 3
template. Privacy and Terms</p>
</div>
</div>
</form>
<jsp:include page="login_foot.jsp"></jsp:include>
<script type="text/javascript">
var msg = "${msg}";
if (msg.length > 0) {
if (msg.indexOf("需激活") >= 0) {
active();
} else {
alert(msg);
}
}
function active() {
var code = prompt("请输入激活验证码:");
var userId = msg.split("|")[1];
if (code != null) {
$
.ajax({
url : "${pageContext.request.contextPath}/active",
data : "userId=" + userId + "&code=" + code,
type : "get",
dataType : "text",
success : function(result) {
alert(result);
if (result.indexOf("成功") >= 0) {
window.location.href = "${pageContext.request.contextPath}/login.jsp";
} else {
active();
}
}
});
}
}
</script>
3、明日任务
继续提交功能遇到信息无法在社长端实现的问题