隐藏页面特效

5.2-团队项目-每日任务-申请表提交功能

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、明日任务

继续提交功能遇到信息无法在社长端实现的问题


__EOF__

本文作者往心。
本文链接https://www.cnblogs.com/lx06/p/14761872.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   往心。  阅读(55)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
点击右上角即可分享
微信分享提示