基于javaweb的JSP+Servlet新生报到迎新管理系统(java+jsp+mysql+css+javascript)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

001923042708

021923042708

031923042708

041923042708

051923042708

061923042708

071923042708

081923042708

091923042708

101923042708

111923042708

131923042708

141923042708

151923042708

591923032708

基于javaweb的JSP+Servlet新生报到迎新管理系统(java+jsp+mysql+css+javascript)

项目介绍
本项目分为前后台,分为管理员、辅导员、财务、学生四个角色;学生登录前台,管理员、辅导员、财务登录后台;
管理员角色包含以下功能:
管理员登录,管理人员管理,校园新闻管理,校园风光管理,宿舍楼管理,班级信息管理,留言管理,专业信息查询,新生报到管理,宿舍分配管理,大学公告管理,入校须知管理,系统公告管理,学校简介管理,友情链接管理,新生报到模板管理等功能。

辅导员角色包含以下功能:
辅导员登录,学生留言管理,新生报到管理,宿舍分配管理等功能。

财务管理角色包含以下功能:
财务管理员登录,管理学生缴费,个人密码管理等功能。

学生角色包含以下功能:
学生首页,校园新闻管理,报道流程管理,学校简介查看,在线留言,校园风光查看,入校须知查看,大学公告查看,学生信息后台,缴费记录查看,宿舍分配查看等功能。

由于本程序规模不大,可供课程设计,毕业设计学习演示之用

环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可
4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
5.数据库:MySql 5.7、8.0版本均可;
6.是否Maven项目:否;

技术栈
JSP+CSS+JavaScript+jquery+Hui+mysql

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;
  2. 使用IDEA/Eclipse/MyEclipse导入项目;
  3. 将项目中src/db/db.java配置文件中的数据库配置改为自己的配置;
  4. 运行项目,浏览器中输入http://localhost:8080登录

管理员账号/密码:admin/123456
学生账号/密码: 2019006113/123456
财务人员账号/密码:caiwu/123456
辅导员账号/密码:fudao/123456

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
											width="95%" align="center" border="0">
<tbody>
<%
sql = "select id,biaoti,addtime from xinwentongzhi where leibie='入校需知' order by id desc limit 0,7";

RS_result = connDbBean.executeQuery(sql);
// String id="";
biaoti = "";
addtime = "";
i = 0;
while (RS_result.next()) {
i = i + 1;
id = RS_result.getString("id");
biaoti = RS_result.getString("biaoti");
if (biaoti.length() >= 28) {
biaoti = biaoti.substring(0, 28);
}
addtime = RS_result.getString("addtime");
%>
<tr>
<td width="5%" height="25"><img height="7"
src="qtimages/index_r9_c9.jpg" width="7" /></td>
<td width="95%" height="25"><a
href="gg_detail.jsp?id=<%=id%>"><%=biaoti%></a></td>
</tr>
<%
}
%>
</tbody>
</table></td>
</tr>
<tr>
<td background="qtimages/index_r29_c8.jpg" height="10"></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
        <button onclick="setDisabled()">不可编辑</button>
<button onclick=" UE.getEditor('editor').setHide()">隐藏编辑器</button>
<button onclick=" UE.getEditor('editor').setShow()">显示编辑器</button>
<button onclick=" UE.getEditor('editor').setHeight(300)">设置高度为300默认关闭了自动长高</button>
</div>

<div>
<button onclick="getLocalData()" >获取草稿箱内容</button>
<button onclick="clearLocalData()" >清空草稿箱</button>
</div>

</div>
<div>
<button onclick="createEditor()">
创建编辑器</button>
<button onclick="deleteEditor()">
删除编辑器</button>
</div>

<script type="text/javascript">

//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
var ue = UE.getEditor('editor');


function isFocus(e){
alert(UE.getEditor('editor').isFocus());
UE.dom.domUtils.preventDefault(e)
}
function setblur(e){
UE.getEditor('editor').blur();
UE.dom.domUtils.preventDefault(e)
}
function insertHtml() {
var value = prompt('插入html代码', '');
UE.getEditor('editor').execCommand('insertHtml', value)
}
function createEditor() {
enableBtn();
UE.getEditor('editor');
}
function getAllHtml() {
alert(UE.getEditor('editor').getAllHtml())
}
function getContent() {
var arr = [];
arr.push("使用editor.getContent()方法可以获得编辑器的内容");
arr.push("内容为:");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
    }
function hasContent() {
var arr = [];
arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
arr.push("判断结果为:");
arr.push(UE.getEditor('editor').hasContents());
alert(arr.join("\n"));
}
function setFocus() {
UE.getEditor('editor').focus();
}
function deleteEditor() {
disableBtn();
UE.getEditor('editor').destroy();
}
function disableBtn(str) {
var div = document.getElementById('btns');
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
for (var i = 0, btn; btn = btns[i++];) {
if (btn.id == str) {
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
} else {
btn.setAttribute("disabled", "true");
}
}
}
function enableBtn() {
var div = document.getElementById('btns');
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
for (var i = 0, btn; btn = btns[i++];) {
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
}
}

function getLocalData () {
alert(UE.getEditor('editor').execCommand( "getlocaldata" ));
}

function clearLocalData () {
UE.getEditor('editor').execCommand( "clearlocaldata" );
alert("已清空草稿箱")
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="edittable.css">
</head>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="connDbBean" scope="page" class="db.db" />
<html>
<head>
<base href="<%=basePath%>">

<title>新生报到</title>
<LINK href="css.css" type=text/css rel=stylesheet>

</head>
<%
String sql;
ResultSet RS_result;
%>
<body>
<p>已有新生报到列表:</p>
<form name="form1" id="form1" method="post" action="">
搜索:&nbsp;&nbsp;学号:<input name="xuehao" type="text" id="xuehao"
style='border: solid 1px #000000; color: #666666' size='15' />&nbsp;&nbsp;姓名:<input
name="xingming" type="text" id="xingming"
style='border: solid 1px #000000; color: #666666' size='15' /> 性别:<select
name="xingbie" id="xingbie"><option value="">所有</option>
<option value="男"></option>
<option value="女"></option></select> 班级:<select name='banji' id='banji'><option
value="">所有</option>
<%
sql = "select banji from banjixinxi order by id desc";
RS_result = connDbBean.executeQuery(sql);
while (RS_result.next()) {
%><option
value="<%=RS_result.getString("banji")%>"><%=RS_result.getString("banji")%></option>
<%
}
%></select> 专业:<select name='zhuanye' id='zhuanye'><option value="">所有</option>
<%
sql = "select zhuanye from zhuanyexinxi order by id desc";
RS_result = connDbBean.executeQuery(sql);
while (RS_result.next()) {
%><option
value="<%=RS_result.getString("zhuanye")%>"><%=RS_result.getString("zhuanye")%></option>
<%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
							%>
</tbody>
</table></td>
</tr>
<tr>
<td background="qtimages/index_r29_c8.jpg" height="10"></td>
</tr>
</tbody>
</table></td>
<td width="5"></td>
<td width="400" valign="top"><table width="100%"
border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="387" height="40"
background="qtimages/index_r22_c14.jpg"><table
width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="16%">&nbsp;</td>
<td width="84%"><a href="news.jsp?lb=入校需知"><font
class="STYLE2">入校需知</font></a></td>
</tr>
</table></td>
</tr>
<tr>
<td class="boder" valign="top" height="131"><table
class="newsline" cellspacing="0" cellpadding="0"
width="95%" align="center" border="0">
<tbody>
<%
sql = "select id,biaoti,addtime from xinwentongzhi where leibie='入校需知' order by id desc limit 0,7";

RS_result = connDbBean.executeQuery(sql);
// String id="";
biaoti = "";
addtime = "";
i = 0;
while (RS_result.next()) {
i = i + 1;
id = RS_result.getString("id");
biaoti = RS_result.getString("biaoti");
if (biaoti.length() >= 28) {
biaoti = biaoti.substring(0, 28);
}
addtime = RS_result.getString("addtime");
%>
<tr>
<td width="5%" height="25"><img height="7"
src="qtimages/index_r9_c9.jpg" width="7" /></td>
<td width="95%" height="25"><a
href="gg_detail.jsp?id=<%=id%>"><%=biaoti%></a></td>
</tr>


项目链接:
https://javayms.github.io?id=591923032708201cd
https://javayms.pages.dev?id=591923032708201cd