submit
Signed-off-by: Chenx221 <chenx221@yandex.com>
This commit is contained in:
parent
191dc7e361
commit
191c4f3d91
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="cyou.chenx221.mapper.CourseDao">
|
||||||
|
<select id="getAllCourses" resultType="cyou.chenx221.pojo.Course">
|
||||||
|
SELECT *
|
||||||
|
FROM course
|
||||||
|
WHERE removed = 0
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -22,6 +22,7 @@
|
|||||||
<!-- 限制访问↓-->
|
<!-- 限制访问↓-->
|
||||||
<security:intercept-url pattern="/dashboard" access="hasRole('admin')"/>
|
<security:intercept-url pattern="/dashboard" access="hasRole('admin')"/>
|
||||||
<security:intercept-url pattern="/student/**" access="hasRole('admin')"/>
|
<security:intercept-url pattern="/student/**" access="hasRole('admin')"/>
|
||||||
|
<security:intercept-url pattern="/course/**" access="hasRole('admin')"/>
|
||||||
<!-- 未登录状态下会自动跳转到/login登录页-->
|
<!-- 未登录状态下会自动跳转到/login登录页-->
|
||||||
<security:form-login login-page="/login"
|
<security:form-login login-page="/login"
|
||||||
default-target-url="/dashboard"
|
default-target-url="/dashboard"
|
||||||
|
@ -0,0 +1,172 @@
|
|||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
||||||
|
<meta http-equiv="x-ua-compatible" content="ie=edge"/>
|
||||||
|
<title>课程信息查看</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap"
|
||||||
|
rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/mdb.min.css"/>
|
||||||
|
<style>
|
||||||
|
.table-container {
|
||||||
|
min-width: 80vw; /* 设置最小宽度为视窗宽度的80% */
|
||||||
|
min-height: 80vh; /* 设置最小高度为视窗高度的80% */
|
||||||
|
/*display: flex;*/
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-container table {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: 'Noto Sans SC Regular',serif">
|
||||||
|
<!--Main Navigation-->
|
||||||
|
<header>
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="z-index: 1;min-height: 58.59px">
|
||||||
|
<div class="container">
|
||||||
|
<button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
|
||||||
|
data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
||||||
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<a class="navbar-brand mt-2 mt-lg-0" href="#">
|
||||||
|
<i class="fas fa-chalkboard-user me-2"></i>
|
||||||
|
教务管理系统
|
||||||
|
</a>
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active" aria-current="page" href="#">首页</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
学生管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息查询</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
||||||
|
<li>
|
||||||
|
<hr class="dropdown-divider"/>
|
||||||
|
</li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li>
|
||||||
|
<hr class="dropdown-divider"/>
|
||||||
|
</li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
教师管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown2">
|
||||||
|
<li><a class="dropdown-item" href="#">教师信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">教师课程管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown3" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
课程管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown3">
|
||||||
|
<li><a class="dropdown-item" href="#">课程信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">课程安排管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown4" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
系统管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown4">
|
||||||
|
<li><a class="dropdown-item" href="#">个人设定</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">用户管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">日志管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">版本信息</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown">
|
||||||
|
<a class="dropdown-toggle d-flex align-items-center hidden-arrow" href="#"
|
||||||
|
id="navbarDropdownMenuAvatar" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
<i class="fas fa-circle-user fa-lg"></i>
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuAvatar">
|
||||||
|
<li>
|
||||||
|
<a class="dropdown-item" href="${pageContext.request.contextPath}/logout">登出</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!--Main Navigation-->
|
||||||
|
|
||||||
|
<!--Main layout-->
|
||||||
|
<main>
|
||||||
|
<div class="bg-image shadow-2-strong vh-100"
|
||||||
|
style="background-image: url('${pageContext.request.contextPath}/resources/img/jason-blackeye-nyL-rzwP-Mk-unsplash.jpg'); margin-top: -58.59px;">
|
||||||
|
<div class="mask d-flex align-items-center h-100" style="background-color: hsla(0, 0%, 100%, 0.5);">
|
||||||
|
<div class="container d-flex justify-content-center">
|
||||||
|
<button type="button" class="btn btn-primary" onclick="location.href='../dashboard'">返回</button>
|
||||||
|
<div class="table-container rounded-4 shadow-3-strong"
|
||||||
|
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px;">
|
||||||
|
<table class="table table-striped table-hover border-primary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">课程ID</th>
|
||||||
|
<th scope="col">课程名</th>
|
||||||
|
<th scope="col">课程描述</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:forEach var="course" items="${courses}">
|
||||||
|
<tr>
|
||||||
|
<td>${course.CourseID}</td>
|
||||||
|
<td>${course.CourseName}</td>
|
||||||
|
<td>${course.Description}</td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!--Main layout-->
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="bg-link text-center text-lg-start ">
|
||||||
|
</footer>
|
||||||
|
<!-- Footer -->
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/mdb.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -42,20 +42,19 @@
|
|||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
|
||||||
<li><a class="dropdown-item" href="student/all">学生信息显示</a></li>
|
<li><a class="dropdown-item" href="student/all">学生信息显示</a></li>
|
||||||
<li><a class="dropdown-item" href="student/queryinfo">学生信息查询</a></li>
|
<li><a class="dropdown-item" href="student/queryinfo">学生信息查询</a></li>
|
||||||
<li><a class="dropdown-item" href="student/modstep1">学生信息修改</a></li>
|
<li><a class="dropdown-item" href="student/modstep1">学生信息修改(旧)</a></li>
|
||||||
<li><a class="dropdown-item" href="student/infomodv2">学生信息添加</a></li>
|
<li><a class="dropdown-item" href="student/infomodv2">学生信息修改</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生信息删除</a></li>
|
|
||||||
<li><a class="dropdown-item disabled"><del>自己输入sql语句查</del>(划掉,没做)</a></li>
|
<li><a class="dropdown-item disabled"><del>自己输入sql语句查</del>(划掉,没做)</a></li>
|
||||||
<li>
|
<li>
|
||||||
<hr class="dropdown-divider" />
|
<hr class="dropdown-divider" />
|
||||||
</li>
|
</li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">成绩管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
<li>
|
<li>
|
||||||
<hr class="dropdown-divider" />
|
<hr class="dropdown-divider" />
|
||||||
</li>
|
</li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="course/all">课程管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
|
||||||
<title>面板</title>
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap"
|
|
||||||
rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="css/mdb.min.css" />
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!--Main Navigation-->
|
|
||||||
<header>
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="z-index: 1;min-height: 58.59px">
|
|
||||||
<div class="container">
|
|
||||||
<button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
|
|
||||||
data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<i class="fas fa-bars"></i>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
||||||
<a class="navbar-brand mt-2 mt-lg-0" href="#">
|
|
||||||
<i class="fas fa-chalkboard-user me-2"></i>
|
|
||||||
教务管理系统
|
|
||||||
</a>
|
|
||||||
<ul class="navbar-nav">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" aria-current="page" href="#">首页</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
学生管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
||||||
<li><a class="dropdown-item" href="../WEB-INF/views/studentList.jsp">学生信息显示</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息查询</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息修改</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息添加</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息删除</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">自己输入sql语句查</a></li>
|
|
||||||
<li>
|
|
||||||
<hr class="dropdown-divider" />
|
|
||||||
</li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li>
|
|
||||||
<hr class="dropdown-divider" />
|
|
||||||
</li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
教师管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
||||||
<li><a class="dropdown-item" href="#">教师信息管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">教师课程管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
课程管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
||||||
<li><a class="dropdown-item" href="#">课程信息管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">课程安排管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
系统管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
||||||
<li><a class="dropdown-item" href="#">个人设定</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">用户管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">日志管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">版本信息</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="dropdown">
|
|
||||||
<a class="dropdown-toggle d-flex align-items-center hidden-arrow" href="#"
|
|
||||||
id="navbarDropdownMenuAvatar" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
<i class="fas fa-circle-user fa-lg"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuAvatar">
|
|
||||||
<li>
|
|
||||||
<a class="dropdown-item" href="logout">登出</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<!--Main Navigation-->
|
|
||||||
|
|
||||||
<!--Main layout-->
|
|
||||||
<main>
|
|
||||||
<div class="bg-image shadow-2-strong vh-100"
|
|
||||||
style="background-image: url('img/jason-blackeye-nyL-rzwP-Mk-unsplash.jpg');margin-top: -58.59px;">
|
|
||||||
<div class="mask d-flex align-items-center h-100" style="background-color: hsla(0, 0%, 100%, 0.5);">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</main>
|
|
||||||
<!--Main layout-->
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="bg-link text-center text-lg-start ">
|
|
||||||
</footer>
|
|
||||||
<!-- Footer -->
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/mdb.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,52 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
|
||||||
<title>Material Design for Bootstrap</title>
|
|
||||||
<!-- MDB icon -->
|
|
||||||
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
|
|
||||||
<!-- Font Awesome -->
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
|
|
||||||
/>
|
|
||||||
<!-- Google Fonts Roboto -->
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap"
|
|
||||||
/>
|
|
||||||
<!-- MDB -->
|
|
||||||
<link rel="stylesheet" href="css/mdb.min.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Start your project here-->
|
|
||||||
<div class="container">
|
|
||||||
<div class="d-flex justify-content-center align-items-center" style="height: 100vh">
|
|
||||||
<div class="text-center">
|
|
||||||
<img
|
|
||||||
class="mb-4"
|
|
||||||
src="https://mdbootstrap.com/img/logo/mdb-transparent-250px.png"
|
|
||||||
style="width: 250px; height: 90px"
|
|
||||||
/>
|
|
||||||
<h5 class="mb-3">Thank you for using our product. We're glad you're with us.</h5>
|
|
||||||
<p class="mb-3">MDB Team</p>
|
|
||||||
<a
|
|
||||||
class="btn btn-primary btn-lg"
|
|
||||||
href="https://mdbootstrap.com/docs/standard/getting-started/"
|
|
||||||
target="_blank"
|
|
||||||
role="button"
|
|
||||||
>Start MDB tutorial</a
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- End your project here-->
|
|
||||||
|
|
||||||
<!-- MDB -->
|
|
||||||
<script type="text/javascript" src="js/mdb.min.js"></script>
|
|
||||||
<!-- Custom scripts -->
|
|
||||||
<script type="text/javascript"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,237 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
|
||||||
<title>学生信息查询</title>
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap"
|
|
||||||
rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="css/mdb.min.css" />
|
|
||||||
<link rel="stylesheet" href="css/datepicker.min.css" />
|
|
||||||
<style>
|
|
||||||
.table-container {
|
|
||||||
min-width: 80vw;
|
|
||||||
/* 设置最小宽度为视窗宽度的80% */
|
|
||||||
min-height: 80vh;
|
|
||||||
/* 设置最小高度为视窗高度的80% */
|
|
||||||
/*display: flex;*/
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-container table {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!--Main Navigation-->
|
|
||||||
<header>
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="z-index: 1;min-height: 58.59px">
|
|
||||||
<div class="container">
|
|
||||||
<button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
|
|
||||||
data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<i class="fas fa-bars"></i>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
||||||
<a class="navbar-brand mt-2 mt-lg-0" href="#">
|
|
||||||
<i class="fas fa-chalkboard-user me-2"></i>
|
|
||||||
教务管理系统
|
|
||||||
</a>
|
|
||||||
<ul class="navbar-nav">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" aria-current="page" href="#">首页</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
学生管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息查询</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
|
||||||
<li>
|
|
||||||
<hr class="dropdown-divider" />
|
|
||||||
</li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
|
||||||
<li>
|
|
||||||
<hr class="dropdown-divider" />
|
|
||||||
</li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
教师管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown2">
|
|
||||||
<li><a class="dropdown-item" href="#">教师信息管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">教师课程管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown3" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
课程管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown3">
|
|
||||||
<li><a class="dropdown-item" href="#">课程信息管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">课程安排管理</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown4" role="button"
|
|
||||||
data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
系统管理
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown4">
|
|
||||||
<li><a class="dropdown-item" href="#">个人设定</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">用户管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">日志管理</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">版本信息</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="dropdown">
|
|
||||||
<a class="dropdown-toggle d-flex align-items-center hidden-arrow" href="#"
|
|
||||||
id="navbarDropdownMenuAvatar" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
|
|
||||||
<i class="fas fa-circle-user fa-lg"></i>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuAvatar">
|
|
||||||
<li>
|
|
||||||
<a class="dropdown-item" href="logout">登出</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<!--Main Navigation-->
|
|
||||||
|
|
||||||
<!--Main layout-->
|
|
||||||
<main>
|
|
||||||
<div class="bg-image shadow-2-strong vh-100"
|
|
||||||
style="background-image: url('img/jason-blackeye-nyL-rzwP-Mk-unsplash.jpg'); margin-top: -58.59px;">
|
|
||||||
<div class="mask d-flex align-items-center h-100" style="background-color: hsla(0, 0%, 100%, 0.5);">
|
|
||||||
<div class="container d-flex justify-content-center">
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body p-4 p-md-5">
|
|
||||||
<h3 class="mb-4 pb-2">数据查询</h3>
|
|
||||||
<form action="">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 mb-4">
|
|
||||||
<div class="form-outline">
|
|
||||||
<input type="text" id="firstName" class="form-control" />
|
|
||||||
<label class="form-label" for="firstName">名字</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 mb-4">
|
|
||||||
<div class="form-outline datepicker">
|
|
||||||
<input type="text" class="form-control" id="birthdayDate" />
|
|
||||||
<label for="birthdayDate" class="form-label">出生日期</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 mb-4">
|
|
||||||
<h6 class="mb-2 pb-1">性别: </h6>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="radio" name="inlineRadioOptions"
|
|
||||||
id="femaleGender" value="option1" />
|
|
||||||
<label class="form-check-label" for="femaleGender">女</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="radio" name="inlineRadioOptions"
|
|
||||||
id="maleGender" value="option2" />
|
|
||||||
<label class="form-check-label" for="maleGender">男</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 mb-4">
|
|
||||||
<div class="form-outline">
|
|
||||||
<input type="id" id="id" class="form-control" />
|
|
||||||
<label class="form-label" for="id">学号</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 mb-4">
|
|
||||||
<div class="form-outline">
|
|
||||||
<input type="tel" id="phoneNumber" class="form-control" />
|
|
||||||
<label class="form-label" for="phoneNumber">联系方式</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<h6 class="mb-3">班级</h6>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" id="inlineCheckbox1"
|
|
||||||
value="option1" />
|
|
||||||
<label class="form-check-label" for="inlineCheckbox1">1班</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" id="inlineCheckbox2"
|
|
||||||
value="option2" />
|
|
||||||
<label class="form-check-label" for="inlineCheckbox2">2班</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" id="inlineCheckbox3"
|
|
||||||
value="option3" />
|
|
||||||
<label class="form-check-label" for="inlineCheckbox3">3班</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" id="inlineCheckbox4"
|
|
||||||
value="option4" />
|
|
||||||
<label class="form-check-label" for="inlineCheckbox4">4班</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-check form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" id="inlineCheckbox5"
|
|
||||||
value="option5" />
|
|
||||||
<label class="form-check-label" for="inlineCheckbox5">5班</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-4">
|
|
||||||
<input class="btn btn-warning btn-lg" type="submit" value="Submit" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!--Main layout-->
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="bg-link text-center text-lg-start ">
|
|
||||||
</footer>
|
|
||||||
<!-- Footer -->
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/mdb.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/datepicker.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||||||
|
package cyou.chenx221.controller;
|
||||||
|
|
||||||
|
import cyou.chenx221.pojo.Course;
|
||||||
|
import cyou.chenx221.service.CourseService;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/course")
|
||||||
|
public class CourseController {
|
||||||
|
private final CourseService courseService;
|
||||||
|
|
||||||
|
public CourseController(CourseService courseService) {
|
||||||
|
this.courseService = courseService;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/all")//课程信息查询(不带条件)
|
||||||
|
public String getAllCourses(Model model) {
|
||||||
|
List<Course> courses = courseService.getAllCourses();
|
||||||
|
model.addAttribute("courses", courses);
|
||||||
|
return "courseList"; // 重定向到 dashboard 页面
|
||||||
|
}
|
||||||
|
}
|
11
project2/src/main/java/cyou/chenx221/mapper/CourseDao.java
Normal file
11
project2/src/main/java/cyou/chenx221/mapper/CourseDao.java
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package cyou.chenx221.mapper;
|
||||||
|
|
||||||
|
import cyou.chenx221.pojo.Course;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface CourseDao {
|
||||||
|
List<Course> getAllCourses();
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package cyou.chenx221.mapper.impl;
|
||||||
|
|
||||||
|
import cyou.chenx221.mapper.CourseDao;
|
||||||
|
import cyou.chenx221.pojo.Course;
|
||||||
|
import org.apache.ibatis.session.SqlSession;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public class CourseDaoImpl implements CourseDao {
|
||||||
|
private SqlSession sqlSession;
|
||||||
|
@Autowired
|
||||||
|
public CourseDaoImpl(SqlSession sqlSession) {
|
||||||
|
this.sqlSession = sqlSession;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Course> getAllCourses() {
|
||||||
|
return sqlSession.selectList("getAllCourses");
|
||||||
|
}
|
||||||
|
}
|
57
project2/src/main/java/cyou/chenx221/pojo/Score.java
Normal file
57
project2/src/main/java/cyou/chenx221/pojo/Score.java
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
package cyou.chenx221.pojo;
|
||||||
|
|
||||||
|
public class Score {
|
||||||
|
private Integer ScoreID; //成绩记录ID
|
||||||
|
private Student student; //。。。
|
||||||
|
private Course course; //。。。
|
||||||
|
private Integer score; //成绩
|
||||||
|
|
||||||
|
public Score(Integer scoreID, Student student, Course course, Integer score) {
|
||||||
|
ScoreID = scoreID;
|
||||||
|
this.student = student;
|
||||||
|
this.course = course;
|
||||||
|
this.score = score;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScoreID() {
|
||||||
|
return ScoreID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScoreID(Integer scoreID) {
|
||||||
|
ScoreID = scoreID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Student getStudent() {
|
||||||
|
return student;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStudent(Student student) {
|
||||||
|
this.student = student;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Course getCourse() {
|
||||||
|
return course;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCourse(Course course) {
|
||||||
|
this.course = course;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScore() {
|
||||||
|
return score;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScore(Integer score) {
|
||||||
|
this.score = score;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Score{" +
|
||||||
|
"ScoreID=" + ScoreID +
|
||||||
|
", student=" + student +
|
||||||
|
", course=" + course +
|
||||||
|
", score=" + score +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cyou.chenx221.service;
|
||||||
|
|
||||||
|
import cyou.chenx221.mapper.CourseDao;
|
||||||
|
import cyou.chenx221.pojo.Course;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class CourseService {
|
||||||
|
private CourseDao courseDao;
|
||||||
|
|
||||||
|
public List<Course> getAllCourses() {
|
||||||
|
return courseDao.getAllCourses();
|
||||||
|
}
|
||||||
|
}
|
11
project2/src/main/resources/mapper/CourseMapper.xml
Normal file
11
project2/src/main/resources/mapper/CourseMapper.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="cyou.chenx221.mapper.CourseDao">
|
||||||
|
<select id="getAllCourses" resultType="cyou.chenx221.pojo.Course">
|
||||||
|
SELECT *
|
||||||
|
FROM course
|
||||||
|
WHERE removed = 0
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -12,6 +12,7 @@
|
|||||||
<mappers>
|
<mappers>
|
||||||
<mapper resource="mapper/UserMapper.xml"/>
|
<mapper resource="mapper/UserMapper.xml"/>
|
||||||
<mapper resource="mapper/StudentMapper.xml"/>
|
<mapper resource="mapper/StudentMapper.xml"/>
|
||||||
|
<mapper resource="mapper/CourseMapper.xml"
|
||||||
<!-- 可以添加其他的映射器配置 -->
|
<!-- 可以添加其他的映射器配置 -->
|
||||||
</mappers>
|
</mappers>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
<!-- 限制访问↓-->
|
<!-- 限制访问↓-->
|
||||||
<security:intercept-url pattern="/dashboard" access="hasRole('admin')"/>
|
<security:intercept-url pattern="/dashboard" access="hasRole('admin')"/>
|
||||||
<security:intercept-url pattern="/student/**" access="hasRole('admin')"/>
|
<security:intercept-url pattern="/student/**" access="hasRole('admin')"/>
|
||||||
|
<security:intercept-url pattern="/course/**" access="hasRole('admin')"/>
|
||||||
<!-- 未登录状态下会自动跳转到/login登录页-->
|
<!-- 未登录状态下会自动跳转到/login登录页-->
|
||||||
<security:form-login login-page="/login"
|
<security:form-login login-page="/login"
|
||||||
default-target-url="/dashboard"
|
default-target-url="/dashboard"
|
||||||
|
172
project2/web/WEB-INF/views/courseList.jsp
Normal file
172
project2/web/WEB-INF/views/courseList.jsp
Normal file
@ -0,0 +1,172 @@
|
|||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
||||||
|
<meta http-equiv="x-ua-compatible" content="ie=edge"/>
|
||||||
|
<title>课程信息查看</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap"
|
||||||
|
rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/mdb.min.css"/>
|
||||||
|
<style>
|
||||||
|
.table-container {
|
||||||
|
min-width: 80vw; /* 设置最小宽度为视窗宽度的80% */
|
||||||
|
min-height: 80vh; /* 设置最小高度为视窗高度的80% */
|
||||||
|
/*display: flex;*/
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-container table {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: 'Noto Sans SC Regular',serif">
|
||||||
|
<!--Main Navigation-->
|
||||||
|
<header>
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light" style="z-index: 1;min-height: 58.59px">
|
||||||
|
<div class="container">
|
||||||
|
<button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
|
||||||
|
data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
|
||||||
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<a class="navbar-brand mt-2 mt-lg-0" href="#">
|
||||||
|
<i class="fas fa-chalkboard-user me-2"></i>
|
||||||
|
教务管理系统
|
||||||
|
</a>
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active" aria-current="page" href="#">首页</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
学生管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息查询</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生信息管理</a></li>
|
||||||
|
<li>
|
||||||
|
<hr class="dropdown-divider"/>
|
||||||
|
</li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
|
<li>
|
||||||
|
<hr class="dropdown-divider"/>
|
||||||
|
</li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
教师管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown2">
|
||||||
|
<li><a class="dropdown-item" href="#">教师信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">教师课程管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown3" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
课程管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown3">
|
||||||
|
<li><a class="dropdown-item" href="#">课程信息管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">课程安排管理</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown4" role="button"
|
||||||
|
data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
系统管理
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdown4">
|
||||||
|
<li><a class="dropdown-item" href="#">个人设定</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">用户管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">日志管理</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">版本信息</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown">
|
||||||
|
<a class="dropdown-toggle d-flex align-items-center hidden-arrow" href="#"
|
||||||
|
id="navbarDropdownMenuAvatar" role="button" data-mdb-toggle="dropdown" aria-expanded="false">
|
||||||
|
<i class="fas fa-circle-user fa-lg"></i>
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuAvatar">
|
||||||
|
<li>
|
||||||
|
<a class="dropdown-item" href="${pageContext.request.contextPath}/logout">登出</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!--Main Navigation-->
|
||||||
|
|
||||||
|
<!--Main layout-->
|
||||||
|
<main>
|
||||||
|
<div class="bg-image shadow-2-strong vh-100"
|
||||||
|
style="background-image: url('${pageContext.request.contextPath}/resources/img/jason-blackeye-nyL-rzwP-Mk-unsplash.jpg'); margin-top: -58.59px;">
|
||||||
|
<div class="mask d-flex align-items-center h-100" style="background-color: hsla(0, 0%, 100%, 0.5);">
|
||||||
|
<div class="container d-flex justify-content-center">
|
||||||
|
<button type="button" class="btn btn-primary" onclick="location.href='../dashboard'">返回</button>
|
||||||
|
<div class="table-container rounded-4 shadow-3-strong"
|
||||||
|
style="background-color: rgba(255,255,255,0.9); overflow-y: auto; max-height: 400px;">
|
||||||
|
<table class="table table-striped table-hover border-primary">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">课程ID</th>
|
||||||
|
<th scope="col">课程名</th>
|
||||||
|
<th scope="col">课程描述</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<c:forEach var="course" items="${courses}">
|
||||||
|
<tr>
|
||||||
|
<td>${course.CourseID}</td>
|
||||||
|
<td>${course.CourseName}</td>
|
||||||
|
<td>${course.Description}</td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<!--Main layout-->
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="bg-link text-center text-lg-start ">
|
||||||
|
</footer>
|
||||||
|
<!-- Footer -->
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/mdb.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -48,13 +48,13 @@
|
|||||||
<li>
|
<li>
|
||||||
<hr class="dropdown-divider" />
|
<hr class="dropdown-divider" />
|
||||||
</li>
|
</li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">成绩管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
<li><a class="dropdown-item" href="#">学生成绩管理</a></li>
|
||||||
<li>
|
<li>
|
||||||
<hr class="dropdown-divider" />
|
<hr class="dropdown-divider" />
|
||||||
</li>
|
</li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="course/all">课程管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
<li><a class="dropdown-item" href="#">学生选课管理</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user