@ -0,0 +1,59 @@
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%@ page import="java.text.SimpleDateFormat" %><%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Vie
|
||||
Date: 2019/10/24
|
||||
Time: 15:25
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<style>
|
||||
body{
|
||||
background-image: url("Images/12.png");
|
||||
background-size: cover;
|
||||
}
|
||||
</style>
|
||||
<html>
|
||||
<head>
|
||||
<title>电费使用情况</title>
|
||||
</head>
|
||||
<body>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<center>
|
||||
<table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60" bgcolor="#E6F5FF" style="color:#06F; font-size:19px; font-weight:bolder; padding-left:50px;">高校公寓管理系统</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" background="Images/MenuBg.jpg"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="500" align="center" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="191" height="500" align="center" valign="top" background="Images/leftbg.jpg">
|
||||
<%@ include file="StudentLeft.jsp"%>
|
||||
</td>
|
||||
<td width="709" align="center" valign="top" bgcolor="#F6F9FE"><table width="709" border="0" cellspacing="0" cellpadding="0">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td height="35" background="Images/bootBg.jpg"> </td>
|
||||
</tr>
|
||||
</center>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,82 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: vie
|
||||
Date: 2019/12/30
|
||||
Time: 10:04
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,
|
||||
minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<title>学生信息</title>
|
||||
<style>
|
||||
body{
|
||||
background-image: url("Images/bg11.jpg");
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
String driver = "com.mysql.cj.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/test?characterEncoding=utf-8"
|
||||
+"&serverTimezone=GMT"+ "&useUnicode=true"+"&useSSL=false" ;
|
||||
String usr = "root";
|
||||
String password = "123456";
|
||||
Class.forName("com.mysql.cj.jdbc.Driver");
|
||||
Connection conn = DriverManager.getConnection(url, usr, password);
|
||||
String sqlString = "select * from electricity";
|
||||
PreparedStatement pstmt = conn.prepareStatement(sqlString);
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
%>
|
||||
|
||||
<%--<div align="right">欢迎你,<%=request.getParameter("username")%>--%>
|
||||
|
||||
<%-- <a href="logout.jsp">退出</a>--%>
|
||||
|
||||
<%--</div>--%>
|
||||
|
||||
<h2 align="center">宿舍电费列表</h2>
|
||||
|
||||
<br>
|
||||
|
||||
<table border=1 style="margin:auto">
|
||||
|
||||
<tr>
|
||||
<td class="listTable">宿舍号</td>
|
||||
<td class="listTable">电费余额</td>
|
||||
<td id="operate">操作</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
while (rs.next()) {
|
||||
out.println("<tr>");
|
||||
out.println("<td>" + rs.getString("Electricity_id") + "</td>");
|
||||
out.println("<td>" + rs.getString("Electricity_cost") + "</td>");
|
||||
out.println("<td><a href='www.baidu.com'>修改</a></td>");
|
||||
out.println("</tr>");
|
||||
}
|
||||
%>
|
||||
|
||||
</table>
|
||||
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,154 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: vie
|
||||
Date: 2019/11/20
|
||||
Time: 11:32
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%>
|
||||
|
||||
<%--<%@page import="com.sun.xml.internal.txw2.Document"%>--%>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8" import="java.util.*"%>
|
||||
<span style="font-size:18px;">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||||
<title>动态表格</title>
|
||||
<style type="text/css">
|
||||
body{ background-color:#9CC; text-align:center}
|
||||
table{ margin:10px auto;}
|
||||
tr th { border: 1px solid #096;}
|
||||
td{border: 1px solid #096;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
/*在函数的外部只能声明一些变量之类的,不能用操作方法,因为没有函数去调用执行它。*/
|
||||
//在载入页面的时候就在表格头放入选择框,因为是一次性的
|
||||
window.onload = function(){
|
||||
var tab = document.getElementById('tab');
|
||||
var firsttr = document.getElementsByTagName('tr')[0];
|
||||
var childtd = firsttr.childNodes;
|
||||
//在第一行第一列上加入选择框
|
||||
var inp = document.createElement('input');
|
||||
inp.type = 'checkbox';
|
||||
|
||||
//DOM Leve 2 事件注册
|
||||
catchEvent(inp,'click',function(){ //注册函数 不同状态进行判断
|
||||
if(inp.checked ==true){
|
||||
allSelect();
|
||||
}else{
|
||||
cancelSelect();
|
||||
}
|
||||
});
|
||||
//catchEvent(inp,'click',allSelect);
|
||||
//catchEvent(inp,'change',cancelSelect);
|
||||
childtd[0].appendChild(inp);
|
||||
|
||||
}
|
||||
//增加一行
|
||||
//var count =0;//增加一列用来 计数
|
||||
function addRow(){
|
||||
//count++;
|
||||
var tab = document.getElementById('tab');
|
||||
var firsttr = document.getElementsByTagName('tr')[0];
|
||||
var childtd = firsttr.childNodes;
|
||||
var tr = document.createElement('tr');
|
||||
var arrtd = new Array();
|
||||
var arrinp = new Array();
|
||||
for(var i =0;i<childtd.length;i++){
|
||||
arrtd[i] = document.createElement('td');
|
||||
arrinp[i] = document.createElement('input');
|
||||
if(i==0){
|
||||
arrinp[i].type = 'checkbox';
|
||||
arrinp[i].name = 'selectbox';
|
||||
}else if(i==1){
|
||||
//arrinp[i] = document.createTextNode(count);
|
||||
arrinp[i] = document.createTextNode('');
|
||||
}
|
||||
arrtd[i].appendChild(arrinp[i]);//思考为什么 input也要加上数组。
|
||||
tr.appendChild(arrtd[i]);
|
||||
}
|
||||
|
||||
tab.appendChild(tr);
|
||||
newSort();
|
||||
}
|
||||
//删除操作
|
||||
function deleteRow(){
|
||||
var parentTr = new Array();//先把被选中的行放在一个数组上
|
||||
var box = document.getElementsByName('selectbox');
|
||||
var tab = document.getElementById('tab');
|
||||
for(var i = 0;i<box.length;i++){
|
||||
if(box[i].checked==true){
|
||||
var parent = box[i].parentNode;
|
||||
parentTr[i] = parent.parentNode;//如果直接这种为放在里面为什么不能完全删除??是因为反应不够吗?
|
||||
//tab.removeChild(parentTr);
|
||||
}
|
||||
}
|
||||
for(var i = 0;i<parentTr.length;i++){ //这样做才能把选中的全部删除
|
||||
if(parentTr[i]){ //这边要先判断一下是否为空值,如果不为空才去移除,否者会报错。
|
||||
tab.removeChild(parentTr[i]);
|
||||
}
|
||||
}
|
||||
newSort();
|
||||
}
|
||||
|
||||
//如果执行删除的话则,重新进行排序
|
||||
function newSort(){
|
||||
var text = new Array();
|
||||
var child_td = new Array();
|
||||
var arr_tr = document.getElementsByTagName('tr');
|
||||
for(var i = 1;i<arr_tr.length;i++){
|
||||
child_td[i] = arr_tr[i].childNodes[1];//获得从第二行开始所有第二列的节点
|
||||
if(child_td[i].childNodes[0]){
|
||||
child_td[i].removeChild(child_td[i].childNodes[0]);
|
||||
}
|
||||
text[i] = document.createTextNode(i);
|
||||
child_td[i].appendChild(text[i]);
|
||||
|
||||
}
|
||||
}
|
||||
//全选操作
|
||||
function allSelect(){
|
||||
var box = document.getElementsByName('selectbox');
|
||||
for(var i= 0;i<box.length;i++){
|
||||
box[i].checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
//全部取消选择
|
||||
function cancelSelect(){
|
||||
var box = document.getElementsByName('selectbox');
|
||||
for(var i = 0;i<box.length;i++){
|
||||
if(box[i].checked == true){
|
||||
box[i].checked =false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//事件注册函数
|
||||
function catchEvent(eventobj,event,eventHandler){
|
||||
if(eventobj.addEventListener){
|
||||
eventobj.addEventListener(event,eventHandler,false);
|
||||
}else if(eventobj.attachEvent){
|
||||
event = 'on'+event;
|
||||
eventobj.attachEvent(event,eventHandler);
|
||||
}
|
||||
}
|
||||
|
||||
//catchEvent(add,'click',addRow);
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>动态表格</h3>
|
||||
<input type="button" value="增加" id="add" onclick="addRow()" />
|
||||
<input type="button" value="全部选择" onclick="allSelect()" />
|
||||
<input type="button" value="全部取消" onclick="cancelSelect()" />
|
||||
<input type="button" value="删除" id="delete" onclick="deleteRow()"/>
|
||||
<table id="tab" cellpadding="5px" cellspacing="0px">
|
||||
<tr><td></td><td>序号</td><td>题目一</td><td>题目二</td><td>题目三</td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html></span>
|
||||
|
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 409 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 267 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 300 KiB |
After Width: | Height: | Size: 850 KiB |
After Width: | Height: | Size: 356 KiB |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 370 B |
After Width: | Height: | Size: 370 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><title>Apache Tomcat/8.0.8 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 404 - /images/ewm.png</h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u>/images/ewm.png</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><hr class="line"><h3>Apache Tomcat/8.0.8</h3></body></html>
|
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 798 B |
After Width: | Height: | Size: 471 B |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 455 B |
After Width: | Height: | Size: 960 B |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 370 KiB |
After Width: | Height: | Size: 119 KiB |
After Width: | Height: | Size: 476 KiB |
After Width: | Height: | Size: 316 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,79 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Vie
|
||||
Date: 2019/10/24
|
||||
Time: 16:03
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>管理员首页</title>
|
||||
<style>
|
||||
body{
|
||||
background-image: url("Images/T(O8JNVG9RJ~H_O_TN8VLSD.jpg");
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div align="right" > </div>
|
||||
<table width="155" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="31" align="center" background="Images/left1.jpg"><strong>系统选项</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="ManagerPage.jsp">后台首页</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="StudentManage.jsp"> 学生信息管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="NoticeManage.jsp">宿舍公告管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="ElectricManage.jsp">宿舍电费管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="StudentRZ.action">学生入住登记</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="RepairedManage.jsp"> 学生报修管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="PasswordUpdate2.jsp">修改密码</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="http://localhost:8080/StudentManageSystem_war_exploded/" onclick="return confirm('确定要退出系统吗?')">退出系统</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,93 @@
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="java.util.Date" %><%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Vie
|
||||
Date: 2019/10/24
|
||||
Time: 16:03
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>管理员首页</title>
|
||||
<style>
|
||||
body{
|
||||
background-image: url("Images/T(O8JNVG9RJ~H_O_TN8VLSD.jpg");
|
||||
}
|
||||
img{
|
||||
position: absolute;
|
||||
left: 300px;
|
||||
top: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<img src="Images/12.png">
|
||||
<table width="155" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="31" align="center" background="Images/left1.jpg"><strong>系统选项</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" align="center" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="ManagerPage.jsp">后台首页</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="StudentManage.jsp"> 学生信息管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="NoticeManage.jsp">宿舍公告管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="ElectricManage.jsp">宿舍电费管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="StudentRZ.action">学生入住登记</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="RepairedManage.jsp"> 学生报修管理</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="PasswordUpdate2.jsp">修改密码</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" align="center"><img src="Images/ic.gif" width="1" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="center" background="Images/left2.jpg" style="text-align:left; padding-left:40px;"><a href="http://localhost:8080/StudentManageSystem_war_exploded/" onclick="return confirm('确定要退出系统吗?')">退出系统</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,57 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: vie
|
||||
Date: 2019/12/31
|
||||
Time: 12:16
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>公告管理</title>
|
||||
</head>
|
||||
<body>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<center>
|
||||
<table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60" bgcolor="#E6F5FF" style="color:#06F; font-size:19px; font-weight:bolder; padding-left:50px;">高校公寓管理系统</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" background="Images/MenuBg.jpg"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="500" align="center" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="191" height="500" align="center" valign="top" background="Images/leftbg.jpg">
|
||||
<%@ include file="ManagerLeft.jsp"%>
|
||||
</td>
|
||||
<td width="709" align="center" valign="top" bgcolor="#F6F9FE"><table width="709" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="30" background="Images/mainMenuBg.jpg" style="padding-left:25px;">公告管理</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="470" align="center" valign="top" bgcolor="#F6F9FE">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,118 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: Vie
|
||||
Date: 2019/10/24
|
||||
Time: 16:03
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>修改密码</title>
|
||||
<base href="<%=basePath%>">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="Style/Style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<script language="JavaScript">
|
||||
function mycheck(){
|
||||
if(isNull(form1.Password.value)){
|
||||
alert("请输入原密码!");
|
||||
return false;
|
||||
}
|
||||
if(isNull(form1.Password2.value)){
|
||||
alert("请输入新密码!");
|
||||
return false;
|
||||
}
|
||||
if(isNull(form1.Password3.value)){
|
||||
alert("请输入重复密码!");
|
||||
return false;
|
||||
}
|
||||
if (document.form1.Password2.value != document.form1.Password3.value) {
|
||||
alert("您两次输入的新密码不一致!请重新输入!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function isNull(str){
|
||||
if ( str == "" ) return true;
|
||||
var regu = "^[ ]+$";
|
||||
var re = new RegExp(regu);
|
||||
return re.test(str);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<body>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<center>
|
||||
<table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60" bgcolor="#E6F5FF" style="color:#06F; font-size:19px; font-weight:bolder; padding-left:50px;">高校公寓管理系统</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" background="Images/MenuBg.jpg"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="500" align="center" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="191" height="500" align="center" valign="top" background="Images/leftbg.jpg">
|
||||
<%@ include file="StudentLeft.jsp"%>
|
||||
</td>
|
||||
<td width="709" align="center" valign="top" bgcolor="#F6F9FE"><table width="709" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="30" background="Images/mainMenuBg.jpg" style="padding-left:25px;">修改密码</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="470" align="center" valign="top" bgcolor="#F6F9FE"><form name="form1" method="post" action="PasswordUpdateSave.action" onSubmit="return mycheck()" >
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="33%" height="30" align="right"> </td>
|
||||
<td width="67%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请输入原密码:</td>
|
||||
<td><input name="Password" type="password" class="text2" id="Password">
|
||||
<%if(request.getAttribute("Msg")!=null){%>
|
||||
<span style="color:red;"><%=request.getAttribute("Msg")%></span>
|
||||
<%}%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请输入新密码:</td>
|
||||
<td><input name="Password2" type="password" class="text2" id="Password2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请重复新密码:</td>
|
||||
<td><input name="Password3" type="password" class="text2" id="Password3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30"> </td>
|
||||
<td><input type="submit" name="button" id="button" value="修改密码"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="35" background="Images/bootBg.jpg"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</center>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,119 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: vie
|
||||
Date: 2019/12/30
|
||||
Time: 9:50
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||
%>
|
||||
<%--<%@ taglib prefix="s" uri="/struts-tags"%>--%>
|
||||
<%--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">--%>
|
||||
<html>
|
||||
<head>
|
||||
<title>修改密码</title>
|
||||
<base href="<%=basePath%>">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="Style/Style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<script language="JavaScript">
|
||||
function mycheck(){
|
||||
if(isNull(form1.Password.value)){
|
||||
alert("请输入原密码!");
|
||||
return false;
|
||||
}
|
||||
if(isNull(form1.Password2.value)){
|
||||
alert("请输入新密码!");
|
||||
return false;
|
||||
}
|
||||
if(isNull(form1.Password3.value)){
|
||||
alert("请输入重复密码!");
|
||||
return false;
|
||||
}
|
||||
if (document.form1.Password2.value != document.form1.Password3.value) {
|
||||
alert("您两次输入的新密码不一致!请重新输入!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function isNull(str){
|
||||
if ( str == "" ) return true;
|
||||
var regu = "^[ ]+$";
|
||||
var re = new RegExp(regu);
|
||||
return re.test(str);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<body>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<center>
|
||||
<table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60" bgcolor="#E6F5FF" style="color:#06F; font-size:19px; font-weight:bolder; padding-left:50px;">高校公寓管理系统</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" background="Images/MenuBg.jpg"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="500" align="center" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="191" height="500" align="center" valign="top" background="Images/leftbg.jpg">
|
||||
<%@ include file="ManagerLeft.jsp"%>
|
||||
</td>
|
||||
<td width="709" align="center" valign="top" bgcolor="#F6F9FE"><table width="709" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="30" background="Images/mainMenuBg.jpg" style="padding-left:25px;">修改密码</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="470" align="center" valign="top" bgcolor="#F6F9FE"><form name="form1" method="post" action="PasswordUpdateSave.action" onSubmit="return mycheck()" >
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="33%" height="30" align="right"> </td>
|
||||
<td width="67%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请输入原密码:</td>
|
||||
<td><input name="Password" type="password" class="text2" id="Password">
|
||||
<%if(request.getAttribute("Msg")!=null){%>
|
||||
<span style="color:red;"><%=request.getAttribute("Msg")%></span>
|
||||
<%}%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请输入新密码:</td>
|
||||
<td><input name="Password2" type="password" class="text2" id="Password2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" align="right"><span style="color:red;">*</span>请重复新密码:</td>
|
||||
<td><input name="Password3" type="password" class="text2" id="Password3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30"> </td>
|
||||
<td><input type="submit" name="button" id="button" value="修改密码"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="35" background="Images/bootBg.jpg"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</center>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,67 @@
|
||||
<%@ page import="java.util.Date" %>
|
||||
<%@ page import="java.text.SimpleDateFormat" %><%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: 黄瑛
|
||||
Date: 2019/10/24
|
||||
Time: 16:03
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>网上报修</title>
|
||||
<style>
|
||||
body{
|
||||
background-image:url("Images/bg11.jpg"); /* 随便选的图,记得改啊卧槽!*/
|
||||
background-size: cover;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
*{margin: 0;padding: 0;}
|
||||
form{margin: 0 auto;padding:15px; width: 300px;height:300px;text-align:center;font-size:25px;}
|
||||
#submit{padding: 20px}
|
||||
#submit input{width: 60px;height: 40px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<div class="wrapper">
|
||||
<form action="<%=request.getContextPath()%>/loginDemo" method="post">
|
||||
<label>报修宿舍:</label>
|
||||
<input type="text" name="num" value="${param.num}" size="15" style="height:30px;weight:100px;"/><br><br>
|
||||
<label>损坏物品:</label>
|
||||
<input type="text" name="item" size="15" style="height:30px;weight:100px;"/><br><br>
|
||||
<label>可修时间:</label>
|
||||
<input type="text" name="time" size="15" style="height:30px;weight:100px;"/><br><br>
|
||||
<label>维修状态:</label>
|
||||
<input type="text" name="status" size="15" style="height:30px;weight:100px;"/><br><br>
|
||||
|
||||
<font color="red">
|
||||
<%
|
||||
if(request.getAttribute("message")!= null){
|
||||
out.print(request.getAttribute("message"));
|
||||
}
|
||||
%>
|
||||
</font>
|
||||
|
||||
<div id="submit">
|
||||
<input type="submit" value="确定" size="10"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,94 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: vie
|
||||
Date: 2019/12/30
|
||||
Time: 9:37
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@page import="java.sql.ResultSet"%>
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,
|
||||
minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<title>学生报修信息管理</title>
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
String driver = "com.mysql.cj.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/test?characterEncoding=utf-8"
|
||||
+"&serverTimezone=GMT"+ "&useUnicode=true"+"&useSSL=false" ;
|
||||
String usr = "root";
|
||||
String password = "123456";
|
||||
Class.forName("com.mysql.cj.jdbc.Driver");
|
||||
Connection conn = DriverManager.getConnection(url, usr, password);
|
||||
String sqlString = "select * from repair";
|
||||
PreparedStatement pstmt = conn.prepareStatement(sqlString);
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
%>
|
||||
<div align="right" style="color: lavender">欢迎你,<%=request.getParameter("Username")%></div>
|
||||
<center>
|
||||
<table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60" bgcolor="#E6F5FF" style="color:#06F; font-size:19px; font-weight:bolder; padding-left:50px;">高校公寓管理系统</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" background="Images/MenuBg.jpg"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="500" align="center" valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="191" height="500" align="center" valign="top" background="Images/leftbg.jpg">
|
||||
<%@ include file="ManagerLeft.jsp"%>
|
||||
</td>
|
||||
<td width="709" align="center" valign="top" bgcolor="#F6F9FE"><table width="709" border="10" cellspacing="0" cellpadding="0">
|
||||
<caption><h3>宿舍报修信息</h3></caption>
|
||||
<tr>
|
||||
<td class="listTable">报修宿舍</td>
|
||||
<td class="listTable">报修时间</td>
|
||||
<td class="listTable">报修类型</td>
|
||||
<td class="listTable">报修电话</td>
|
||||
<td class="listTable">报修结果</td>
|
||||
<td id="operate">操作</td>
|
||||
</tr>
|
||||
<%
|
||||
while (rs.next()) {
|
||||
out.println("<tr>");
|
||||
out.println("<td>" + rs.getString("Repair_id") + "</td>");
|
||||
out.println("<td>" + rs.getString("Repair_time") + "</td>");
|
||||
out.println("<td>" + rs.getString("Repair_type") + "</td>");
|
||||
out.println("<td>" + rs.getInt("Repair_tel") + "</td>");
|
||||
out.println("<td>" + rs.getString("Repair_result") + "</td>");
|
||||
out.println("<td><a href='www.baidu.com'>已修</a></td>");
|
||||
out.println("</tr>");
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td height="35" background="Images/bootBg.jpg"> </td>
|
||||
</tr>
|
||||
</center>
|
||||
<div align="center" style="width: 100%;position: fixed;bottom: 0;color:yellow">
|
||||
<%!Date time= new Date();%>
|
||||
<%
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年MM月dd日 E HH时mm分ss秒");
|
||||
%>
|
||||
<h3><% out.println(sdf1.format(time)); %></h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|