Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“修改了部分前端-admin-top.jsp-menu.jsp-showStudent.jsp” #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/resources/mysql.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jdbc.driver = com.mysql.jdbc.Driver
jdbc.url = jdbc:mysql://localhost:3306/examination_system
# jdbc.url = jdbc:mysql://localhost:3306/examination_system
jdbc.url = jdbc:mysql://localhost:3306/examination_system?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
jdbc.username = root
jdbc.password = 123456
jdbc.password = 1234
31 changes: 20 additions & 11 deletions src/main/webapp/WEB-INF/jsp/admin/menu.jsp
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<div class="col-md-2">
<ul class="nav nav-pills nav-stacked" id="nav">
<li><a href="/admin/showCourse">课程管理<span class="badge pull-right">8</span></a></li>
<li><a href="/admin/showStudent">学生管理<span class="badge pull-right">59</span></a></li>
<li><a href="/admin/showTeacher">教师管理<span class="badge pull-right">10</span></a></li>
<li><a href="/admin/userPasswordRest">账号密码重置<sapn class="glyphicon glyphicon-repeat pull-right" /></a></li>
<li><a href="/admin/passwordRest">修改密码<sapn class="glyphicon glyphicon-pencil pull-right" /></a></li>
<li><a href="/logout">退出系统<sapn class="glyphicon glyphicon-log-out pull-right" /></a></li>
<li class="disabled"><a href="##">Responsive</a></li>
</ul>
</div>
<aside class="lyear-layout-sidebar">
<!-- logo -->
<div id="logo" class="sidebar-header">
<a ><img src="/images/img.png" /></a>
</div>
<div class="lyear-layout-sidebar-scroll">
<nav class="sidebar-main">
<ul class="nav nav-drawer">
<li class="nav-item nav-item-has-subnav " >
<h4><li><a href="/admin/showCourse"><i class="mdi mdi-palette"></i>课程管理</a></li>
<li><a href="/admin/showStudent"><i class="mdi mdi-palette"></i>学生管理</a></li>
<li><a href="/admin/showTeacher"><i class="mdi mdi-palette"></i>教师管理</a></li>
<li><a href="/admin/userPasswordRest"><i class="mdi mdi-palette"></i>账号密码重置</a></li>
<li><a href="/admin/passwordRest"><i class="mdi mdi-palette"></i>修改密码</a></li>
<li><a href="/logout">退出系统</a></li>
<li class="disabled"><a href="##">Responsive</a></li></h4>>
</li>
</ul>
</nav>
</aside>
27 changes: 24 additions & 3 deletions src/main/webapp/WEB-INF/jsp/admin/showStudent.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 引入bootstrap -->
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link href="/css/materialdesignicons.min.css" rel="stylesheet">
<link href="/css/style.min.css" rel="stylesheet">

<!-- 引入JQuery bootstrap.js-->
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
Expand All @@ -18,12 +21,15 @@

</head>
<body>
<div class="lyear-layout-web">
<div class="lyear-layout-container">
<!-- 顶栏 -->
<jsp:include page="top.jsp"></jsp:include>
<jsp:include page="menu.jsp"></jsp:include>
<!-- 中间主体 -->
<div class="container" id="content">
<main class="lyear-layout-content">
<div class="container-fluid" >
<div class="row">
<jsp:include page="menu.jsp"></jsp:include>
<div class="col-md-10">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -42,9 +48,16 @@

</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>
<label class="lyear-checkbox checkbox-primary">
<input type="checkbox" id="check-all"><span></span>
</label>
</th>
<th>学号</th>
<th>姓名</th>
<th>性别</th>
Expand Down Expand Up @@ -98,14 +111,22 @@
</div>

</div>
</div>
</div></div></div>
</div>
<div class="container" id="footer">
<div class="row">
<div class="col-md-12"></div>
</div>
</div>
</main>>
</div>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
</div>
</body>

<script type="text/javascript">
$("#nav li:nth-child(2)").addClass("active");

Expand Down
140 changes: 137 additions & 3 deletions src/main/webapp/WEB-INF/jsp/admin/top.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
<%--shiro标签--%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!-- 顶栏 -->
<div class="container" id="top">
<header class="lyear-layout-header">
<nav class="navbar navbar-default">
<div class="topbar" id="top">
<div class="row">
<div class="col-md-12">
<!--加入导航条标题-->
<div class="navbar navbar-default" role="navigation">
<div class="topbar" role="navigation">
 <div class="navbar-header">
  <a href="##" class="navbar-brand">教务信息查询系统(管理员)</a>
  <a href="##" class="navbar-page-title">教务信息查询系统(管理员)</a>
 </div>
<form action="##" class="navbar-form navbar-right" rol="search">
<div class="dropdown">
Expand All @@ -24,6 +26,7 @@
<span class="glyphicon glyphicon-user"><shiro:principal/></span>
<span class="caret"></span>
</button>

<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation">
<a role="menuitem" tabindex="-1" href="#">
Expand All @@ -39,6 +42,135 @@
注销
</a>
</li>
<ul class="topbar-right">
<!--切换主题配色-->
<li class="dropdown dropdown-skin">
<span data-toggle="dropdown" class="icon-palette"><i class="mdi mdi-palette"></i></span>
<ul class="dropdown-menu dropdown-menu-right" data-stopPropagation="true">
<li class="drop-title"><p>主题</p></li>
<li class="drop-skin-li clearfix">
<span class="inverse">
<input type="radio" name="site_theme" value="default" id="site_theme_1" checked>
<label for="site_theme_1"></label>
</span>
<span>
<input type="radio" name="site_theme" value="dark" id="site_theme_2">
<label for="site_theme_2"></label>
</span>
<span>
<input type="radio" name="site_theme" value="translucent" id="site_theme_3">
<label for="site_theme_3"></label>
</span>
</li>
<li class="drop-title"><p>LOGO</p></li>
<li class="drop-skin-li clearfix">
<span class="inverse">
<input type="radio" name="logo_bg" value="default" id="logo_bg_1" checked>
<label for="logo_bg_1"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_2" id="logo_bg_2">
<label for="logo_bg_2"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_3" id="logo_bg_3">
<label for="logo_bg_3"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_4" id="logo_bg_4">
<label for="logo_bg_4"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_5" id="logo_bg_5">
<label for="logo_bg_5"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_6" id="logo_bg_6">
<label for="logo_bg_6"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_7" id="logo_bg_7">
<label for="logo_bg_7"></label>
</span>
<span>
<input type="radio" name="logo_bg" value="color_8" id="logo_bg_8">
<label for="logo_bg_8"></label>
</span>
</li>
<li class="drop-title"><p>头部</p></li>
<li class="drop-skin-li clearfix">
<span class="inverse">
<input type="radio" name="header_bg" value="default" id="header_bg_1" checked>
<label for="header_bg_1"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_2" id="header_bg_2">
<label for="header_bg_2"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_3" id="header_bg_3">
<label for="header_bg_3"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_4" id="header_bg_4">
<label for="header_bg_4"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_5" id="header_bg_5">
<label for="header_bg_5"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_6" id="header_bg_6">
<label for="header_bg_6"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_7" id="header_bg_7">
<label for="header_bg_7"></label>
</span>
<span>
<input type="radio" name="header_bg" value="color_8" id="header_bg_8">
<label for="header_bg_8"></label>
</span>
</li>
<li class="drop-title"><p>侧边栏</p></li>
<li class="drop-skin-li clearfix">
<span class="inverse">
<input type="radio" name="sidebar_bg" value="default" id="sidebar_bg_1" checked>
<label for="sidebar_bg_1"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_2" id="sidebar_bg_2">
<label for="sidebar_bg_2"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_3" id="sidebar_bg_3">
<label for="sidebar_bg_3"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_4" id="sidebar_bg_4">
<label for="sidebar_bg_4"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_5" id="sidebar_bg_5">
<label for="sidebar_bg_5"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_6" id="sidebar_bg_6">
<label for="sidebar_bg_6"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_7" id="sidebar_bg_7">
<label for="sidebar_bg_7"></label>
</span>
<span>
<input type="radio" name="sidebar_bg" value="color_8" id="sidebar_bg_8">
<label for="sidebar_bg_8"></label>
</span>
</li>
</ul>
</li>
<!--切换主题配色-->
</ul>
</ul>
</div>

Expand All @@ -48,3 +180,5 @@
</div>
</div>
</div>
</nav>
</header>
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--加载spring容器-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/spring/applicationContext-*.xml</param-value>
<param-value>classpath:/spring/applicationContext-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
Expand Down
Loading