DC00023基于jsp+MySQL新生报到管理系统

news2024/9/29 23:37:29

1、项目功能演示

DC00023基于jsp新生报到管理系统java web+MySQL新生管理系统

2、项目功能描述

基于jsp+MySQL新生报到管理系统项目分为学生、辅导员、财务处和系统管理员四个角色。

2.1 学生功能

1、系统登录
2、校园新闻、报到流程、学校简介、在线留言、校园风光、入校须知、大学公告、证书清单
3、个人资料管理
4、缴费记录查看
5、我的宿舍查看

2.2 辅导员功能

1、系统登录
2、留言管理
3、新生报到添加
4、宿舍分配

2.3 财务处功能

1、系统登录
2、个人密码管理
3、学生缴费添加、学生缴费查询

2.4 系统管理员功能

1、系统登录
2、管理员管理
3、校园新闻管理
4、校园风光管理
5、宿舍楼管理
6、班级信息管理
7、留言管理
8、专业信息管理
9、新生报到管理
10、宿舍分配管理
11、大学公告管理
12、入校须知管理
13、系统管理:系统公告、学校简介、友情链接、新生报到
14、证件管理

3、项目运行截图(部分)

 

4、项目核心代码

4.1 数据库操作类

package db;

import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class db
{
  private String dbDriver = "com.mysql.cj.jdbc.Driver";

  private String sConnStr = "jdbc:mysql://localhost:3306/arrivals?useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&autoReconnect=true";
  public Connection connect = null;
  public ResultSet rs = null;

  public db() {
    try {
      Class.forName(this.dbDriver).newInstance();

      this.connect = DriverManager.getConnection(this.sConnStr, "root", "root");
      
    }
    catch (Exception ex)
    {
      ex.printStackTrace();
    }
  }

  public ResultSet executeQuery(String sql)
  {
    try {
      this.connect = DriverManager.getConnection(this.sConnStr, "root", "root");
      Statement stmt = this.connect.createStatement();
      this.rs = stmt.executeQuery(sql);
    }
    catch (SQLException ex) {
      ex.printStackTrace();
    }

    return this.rs;
  }

  public void executeUpdate(String sql)
  {
    Statement stmt = null;
    this.rs = null;
    try {
      this.connect = DriverManager.getConnection(this.sConnStr, "root", "root");
      stmt = this.connect.createStatement();
      stmt.executeUpdate(sql);
      stmt.close();
      this.connect.close();
    }
    catch (SQLException ex)
    {
      ex.printStackTrace();
    }
  }
}

 4.2 主界面

<%@ 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="myconnDbBean" scope="page" class="db.db" />
<html>
<head>
<base href="<%=basePath%>">

<title>新生报到系统</title>
<LINK href="qtimages/style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style1 {
	WIDTH: 63px
}

.STYLE2 {
	color: #477641;
	font-weight: bold;
}

.STYLE3 {
	color: #FFFFFF
}

.STYLE4 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>

</head>

<body>
	<table width="992" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td colspan="2"><%@ include file="qttop.jsp"%>
			</td>
		</tr>
		<tr>
			<td width="163" valign="top"><%@ include file="qtleft.jsp"%></td>
			<td width="813" valign="top"><table width="98%" border="0"
					align="center" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td height="44" background="qtimages/index_r4_c8.jpg"><table
									width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr>
										<td width="8%">&nbsp;</td>
										<td width="92%" class="red STYLE2">学校简介</td>
									</tr>
								</table></td>
						</tr>
						<tr>
							<td height="182" valign="top" class="boder"><table
									cellspacing="0" cellpadding="0" width="98%" align="center"
									border="0">
									<tbody>
										<tr>
											<td valign="top" width="487"><div class="introliness">
													<%
														String sql = "select content from dx where leibie='系统简介'";
														String neirong = "";
														ResultSet RS_result = myconnDbBean.executeQuery(sql);
														while (RS_result.next()) {
															neirong = RS_result.getString("content");
															out.print(neirong);
														}
													%>
												</div></td>
											<td width="13">&nbsp;</td>
											
										</tr>
									</tbody>
								</table></td>
						</tr>
						<tr>
							<td valign="top" height="9"><img
								src="qtimages/index_r19_c8.jpg" width="320" /></td>
						</tr>
						<tr>
							<td height="3"></td>
						</tr>
						<tr>
							<td background="qtimages/index_r52_c8.jpg" height="53"><table
									width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr>
										<td width="8%">&nbsp;</td>
										<td width="92%" class="red STYLE2">校园风光</td>
									</tr>
								</table></td>
						</tr>
						<tr>
							<td class="boder" height="130"><table class="newsline"
									cellspacing="0" cellpadding="0" width="98%" align="center"
									border="0">
									<tbody>

									</tbody>
								</table>
								<table width="100%" height="100%" border="0" align="center"
									cellpadding="0" cellspacing="0">
									<tr>

										<td><table width="100%" height="100%" border="0"
												align="center" cellpadding="0" cellspacing="0">
												<tr>
													<%
														sql = "select  id,mingcheng,tupian from xiaoyuanfengguang where tupian<>'' order by id desc limit 0,4";
														RS_result = myconnDbBean.executeQuery(sql);
														String xingming = "";
														String touxiang = "";
														String id = "";
														while (RS_result.next()) {
															id = RS_result.getString("id");
															xingming = RS_result.getString("mingcheng");
															touxiang = RS_result.getString("tupian");
													%>
													<td align="center"><table width="150" border="0"
															cellspacing="0" cellpadding="0">
															<tr>
																<td height="129" align="center"><a
																	href="<%=touxiang%>" target="_blank"><img
																		src="<%=touxiang%>" width="129" height="123"
																		border="0" /></a></td>
															</tr>
															<tr>
																<td height="26" align="center"><%=xingming%></td>
															</tr>
														</table></td>
													<%
														}
													%>
												</tr>
											</table></td>
									</tr>
								</table></td>
						</tr>
						<tr>
							<td><img height="9" src="qtimages/index_r19_c8.jpg"
								width="320" /></td>
						</tr>
						<tr>
							<td height="3"></td>
						</tr>
						<tr>
							<td><table cellspacing="0" cellpadding="0" width="100%"
									border="0">
									<tbody>
										<tr>
											<td width="387" valign="top"><table cellspacing="0"
													cellpadding="0" width="387" border="0">
													<tbody>
														<tr>
															<td width="387" height="40"
																background="qtimages/index_r22_c8.jpg"><table
																	width="100%" border="0" cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="15%">&nbsp;</td>
																		<td width="85%"><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 = myconnDbBean.executeQuery(sql);
																			// String id="";
																			String biaoti = "";
																			String addtime = "";
																			int 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>
											<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 = myconnDbBean.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>
						<tr>
							<td height="3"></td>
						</tr>
					</tbody>
				</table></td>
		</tr>
	</table>
	<%@ include file="qtdown.jsp"%>
</body>
</html>

 4.3 登录界面

<%@ 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>

<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5.js"></script>
    
    <script type="text/javascript" src="lib/PIE_IE678.js"></script>
    <![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet"
	type="text/css" />
<!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
<body>
	<div class="header"></div>
	<div class="loginWraper">
		<div id="loginform" class="loginBox">
			<form name="form1" method="post" action="adminyanzheng.jsp"
				class="form form-horizontal">
				<div class="row cl">
					<label class="form-label col-3"><i class="Hui-iconfont">帐号</i></label>
					<div class="formControls col-8">
						<input name="username" type="text" id="username"
							class="input-text size-L" />

					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-3"><i class="Hui-iconfont">密码</i></label>
					<div class="formControls col-8">
						<input name="pwd" type="password" id="pwd"
							class="input-text size-L" />

					</div>
				</div>

				<div class="row cl">
					<label class="form-label col-3"><i class="Hui-iconfont">类型</i></label>
					<div class="formControls col-8">
						<select name="cx" id="cx" class="input-text size-L">
							<option value="管理员">管理员</option>
							<option value="财务处">财务处</option>
							<option value="辅导员">辅导员</option>
						</select> <input name="login" type="hidden" id="login" value="1">
					</div>
				</div>

				<div class="row">
					<div class="formControls col-8 col-offset-3"></div>
				</div>
				<div class="row">
					<div class="formControls col-8 col-offset-3">
						<input type="submit" name="Submit" value="登陆"
							class="btn btn-default radius size-L"> <input
							type="reset" name="Submit2" value="重置"
							class="btn btn-success radius size-L">

					</div>
				</div>
			</form>
		</div>
	</div>

</body>
</html>

5、项目内容包含

 

6、项目获取

6.1 方式一

私聊或者扫描下方名片获取项目文件。

6.2 方式二

点击此处直接获取项目文件。 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2178124.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

解决Qt每次修改代码后首次运行崩溃,后几次不崩溃问题

在使用unique_ptr声明成员变量后&#xff0c;我习惯性地在初始化构造列表中进行如下构造&#xff1a; 注意看&#xff0c;我将m_menuBtnGroup的父类指定为ui->center_menu_widget&#xff0c;这便是导致崩溃的根本原因&#xff0c;解决办法便是先用this初始化&#xff0c;后…

pdf页面尺寸裁减

1、编辑pdf 2、点击裁减页面&#xff0c;并在空白区域双击裁减 3、输入裁减数据&#xff1a;

calibre-web浏览器标题icon修改

calibre-web浏览器标题icon修改 Windows安装calibre-web&#xff0c;Python-CSDN博客文章浏览阅读537次&#xff0c;点赞10次&#xff0c;收藏11次。pip install calibreweb报错&#xff1a;error: Microsoft Visual C 14.0 or greater is required. Get it with "Microso…

Springboot中基于注解实现公共字段自动填充

1.使用场景 当我们有大量的表需要管理公共字段&#xff0c;并且希望提高开发效率和确保数据一致性时&#xff0c;使用这种自动填充方式是很有必要的。它可以达到一下作用 统一管理数据库表中的公共字段&#xff1a;如创建时间、修改时间、创建人ID、修改人ID等&#xff0c;这些…

视频剪辑软件哪个好?剪辑更高效用这些

众所周知&#xff0c;视频已经成为我们记录生活、表达自我的重要方式。 无论是制作旅行Vlog&#xff0c;还是剪辑短片分享故事&#xff0c;优秀的视频剪辑软件是让创意变为现实的利器。 那么&#xff0c;如何在众多免费软件中做出明智选择&#xff0c;成为剪辑高手呢&#xf…

通信工程学习:什么是SISO单入单出

SISO&#xff1a;单入单出 SISO&#xff0c;即单输入单输出&#xff08;Single-Input Single-Output&#xff09;系统&#xff0c;也被称为单变量系统。在这种系统中&#xff0c;输入量与输出量各为一个&#xff0c;是控制理论中的一个基本概念。以下是对SISO系统的详细解释&am…

为什么说函数传递参数最好小于四个

有一个说法说是函数传递参数最好不超过四个&#xff0c;原因有一个是参数太多难以维护&#xff0c;另一个重要的原因就是函数传递小于四个参数时候效率会更高&#xff0c;其实这个说法也不全对&#xff0c;在不同的结构下不太一样&#xff0c;也不一定是4 其实那么下面将探究函…

【RocketMQ】消费失败重试与死信消息

&#x1f3af; 导读&#xff1a;本文档详细介绍了RocketMQ中的重试机制与死信消息处理方法。对于生产者而言&#xff0c;文档提供了如何配置重试次数的具体示例&#xff1b;而对于消费者&#xff0c;它解释了默认情况下消息消费失败后的重试策略&#xff0c;并展示了如何通过代…

STM32LL库之printf函数重定向

1. 加入以下代码 int fputc(int ch,FILE *f) {LL_USART_TransmitData8(USART1,ch);while(!LL_USART_IsActiveFlag_TXE(USART1));//需要等待发送完成return(ch); }记得添加 stdio.h 头文件 2. 在MDK中勾选&#xff1a;Use MicroLIB

C++【类和对象】(取地址运算符重载与实现Date类)

文章目录 取地址运算符重载const成员函数取地址运算符重载 Date类的实现Date.hDate.cpp1.检查日期合法性2. 构造函数/赋值运算符重载3.得到某月的天数4. Date类 - 天数的操作4.1 日期 天数4.2 日期 天数4.3 日期 - 天数4.4 日期 - 天数 5. Date的前后置/--5.1 前置5.2 后置5.…

学习鸿蒙HarmongOS(基础一)

最近听到一个朋友在干鸿蒙系统开发&#xff0c;于是我也来看看&#xff0c;我看到的第一感觉和前端TS好像&#xff0c;鸿蒙的是叫ArkTS&#xff0c;于是来看一下视频&#xff0c;学习了一下&#xff0c;我的随手笔记记录一下吧,方便我以后阅读 基本 语句 函数

unity3D雨雪等粒子特效不穿透房屋效果实现

做项目有时候会做天气模拟&#xff0c;模拟雨雪天气等等。但是容易忽略一个问题&#xff0c;就是房屋内不应该下雨或者下雪&#xff0c;这样不就穿帮了嘛。 下面就粒子穿透物体问题做一个demo。 正常下雨下雪在室内的话&#xff0c;你可以看到&#xff0c;粒子是穿透建筑的。…

【C++篇】启航——初识C++(上篇)

目录 引言 一、C的起源和发展史 1.起源 2.C版本更新 二、C在⼯作领域中的应⽤ 三、C入门建议 1.参考文档 2.推荐书籍 四、C的第一个程序 1.C语言写法 2.C写法 五、命名空间 1.为什么要有命名空间 2.定义命名空间 3.主要特点 4.使用示例 六、C输⼊&输出 …

C程序设计——结构化程序设计的三种结构

前面我说过&#xff1a;“结构化编程语言&#xff0c;用语法限制程序员&#xff0c;只能使用顺序、选择、循环三种结构来解决问题。” 接下来&#xff0c;就讲解这三种结构。 顺序结构 前面我讲过&#xff0c;C语言所有的程序&#xff0c;都必须有一个 main 函数&#xff0c…

TCP\IP标准与OSI标准

TCP/IP 模型和 OSI 模型都是用于描述网络体系结构的模型&#xff0c;但它们的设计理念和层次结构有所不同。TCP/IP 模型更注重实际实现&#xff0c;而 OSI 模型更注重抽象和标准化。 1. OSI 模型 (Open Systems Interconnection Model) OSI 模型是一个七层模型&#xff0c;从…

828华为云征文|部署在线论坛网站 Flarum

828华为云征文&#xff5c;部署在线论坛网站 Flarum 一、Flexus云服务器X实例介绍二、Flexus云服务器X实例配置2.1 重置密码2.2 服务器连接2.3 安全组配置2.4 Docker 环境搭建 三、Flexus云服务器X实例部署 Flarum3.1 Flarum 介绍3.2 Flarum 部署3.3 Flarum 使用 四、总结 一、…

针对考研的C语言学习(定制化快速掌握重点2)

1.C语言中字符与字符串的比较方法 在C语言中&#xff0c;单字符可以用进行比较也可以用 > , < ,但是字符串却不能用直接比较&#xff0c;需要用strcmp函数。 strcmp 函数的原型定义在 <string.h> 头文件中&#xff0c;其定义如下&#xff1a; int strcmp(const …

Vue.js组件开发指南

Vue.js组件开发指南 Vue.js 是一个渐进式的 JavaScript 框架&#xff0c;用于构建用户界面。它的核心是基于组件的开发模式。通过将页面分解为多个独立的、可复用的组件&#xff0c;开发者能够更轻松地构建复杂的应用。本文将深入探讨 Vue.js 组件开发的基础知识&#xff0c;并…

基于springoot新能源充电系统的设计与实现

新能源充电系统的设计与实现 摘 要 如今社会上各行各业&#xff0c;都喜欢用自己行业的专属软件工作&#xff0c;互联网发展到这个时候&#xff0c;人们已经发现离不开了互联网。新技术的产生&#xff0c;往往能解决一些老技术的弊端问题。因为传统新能源充电系统信息管理难度…