這是一個完整的學生學籍管理系統,增刪改查功能都有。
全部資料51hei下載地址:
StudentsManagerWeb-master.zip
(15.59 MB, 下載次數: 5)
2018-12-23 16:25 上傳
點擊文件名下載附件
源碼預覽:
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
- %>
- <%
- String username=(String)session.getAttribute("username");
- if (username==null){
- response.sendRedirect("login.jsp");
- }
- String mainPage=(String)request.getAttribute("mainPage");
- if(mainPage==null || mainPage.equals("")){
- mainPage="common/default.jsp";
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
- <title>學生信息管理系統主界面</title>
- <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css" rel="stylesheet">
- <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
- <script src="${pageContext.request.contextPath}/bootstrap/js/jQuery.js"></script>
- <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.js"></script>
- <script type="text/javascript">
- function check() {
- if(confirm("您確定要退出嗎?")){
- window.location.href = "logout.jsp" ;
- }
- }
- </script>
- <script type="text/javascript">
- function setDateTime() {
- var date = new Date();
- var day = date.getDay();
- var week;
- switch (day) {
- case 0:
- week = "星期日";
- break;
- case 1:
- week = "星期一";
- break;
- case 2:
- week = "星期二";
- break;
- case 3:
- week = "星期三";
- break;
- case 4:
- week = "星期四";
- break;
- case 5:
- week = "星期五";
- break;
- case 6:
- week = "星期六";
- break;
- }
- var today = date.getFullYear() + "年" + (date.getMonth() + 1) + "月"
- + date.getDate() + "日 " + week + " " + date.getHours() + ":"
- + date.getMinutes() + ":" + date.getSeconds();
- document.getElementById("today").innerHTML = today;
- }
- window.setInterval("setDateTime()", 1000);
- </script>
- </head>
- <body>
- <div class="container">
- <jsp:include page="common/head.jsp"></jsp:include>
- <jsp:include page="<%=mainPage %>"></jsp:include>
- </div>
- </body>
- </html>
復制代碼
|