Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
LiryWinnie committed Mar 21, 2018
0 parents commit ecdee26
Show file tree
Hide file tree
Showing 250 changed files with 9,032 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
36 changes: 36 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SSH_Test</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions .settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
7 changes: 7 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
8 changes: 8 additions & 0 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="SSH_Test">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="SSH_Test"/>
<property name="java-output-path" value="/SSH_Test/build/classes"/>
</wb-module>
</project-modules>
10 changes: 10 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v8.0"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.6"/>
</faceted-project>
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.container
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1 change: 1 addition & 0 deletions .settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Binary file added WebContent/WEB-INF/lib/antlr-2.7.6.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/asm-3.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/asm-commons-3.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/asm-tree-3.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-io-2.0.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-lang3-3.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/commons-logging-1.1.3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/dom4j-1.6.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/freemarker-2.3.19.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/hibernate3.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/javassist-3.11.0.GA.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/javassist-3.12.0.GA.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jaxen-1.1-beta-6.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/jta-1.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/log4j-1.2.17.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/ognl-3.0.6.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/slf4j-api-1.6.1.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/slf4j-log4j12-1.7.2.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/struts-core-1.3.10.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/struts2-core-2.3.15.3.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/xwork-core-2.3.15.3.jar
Binary file not shown.
53 changes: 53 additions & 0 deletions WebContent/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">

<!-- Spring的框架的核心过滤器的配置 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>

<!-- Structs2的框架的核心过滤器的配置 -->
<filter>
<filter-name>struts</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<display-name>SSH_Study</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
42 changes: 42 additions & 0 deletions WebContent/admin/adRekey.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<%@ page language="java" contentType="text/html;charset=gbk" errorPage="exception.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk">
<title>在线考试系统</title>
<link href="<%=request.getContextPath()%>/css/admin.css" rel="stylesheet" type="text/css" >
</head>
<body>
<div class="top">
<img src="../images/logo.png" /> &nbsp;<a>在线考试系统</a>
<div class="top_left">
<a>${sessionScope.admin.getAname()}</a>&nbsp;
<a>|&nbsp;</a>
<a href="<%=request.getContextPath()%>">退出</a>
</div>
</div>
<div class="menu_left">
<nav id="main-navigation" class="clearfix">
<ul>
<li><a href="ad_index.jsp">首页</a></li>
<li><a href="stuInfo.jsp">查看学生信息</a></li>
<li><a href="teaInfo.jsp">查看老师信息</a></li>
<li><a href="adRekey.jsp">修改密码</a></li>
<li><a href="modify.jsp">修改个人信息</a></li>
</ul>
</nav>
</div>
<div class="tu"><a><img src="../images/rekey.png" width="430px"></a></div>

<div class="mima">
<form name="stuRekeyForm" method="post">
<br>
<p>&emsp;&ensp;原密码:&emsp;<input class="input_form" type="password" name="psone" /></p>
<p>&emsp;&ensp;新密码:&emsp;<input class="input_form" type="password" name="pstwo" /></p>
<p>&ensp;确认密码:&emsp;<input class="input_form" type="password" name="psthree" /></p>
<p align="center"><input type="submit" value="确认"/></p>
</form>
</div>
</body>
</html>
48 changes: 48 additions & 0 deletions WebContent/admin/ad_index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<%@ page language="java" contentType="text/html;charset=gbk" errorPage="exception.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk">
<title>在线考试系统</title>
<link href="<%=request.getContextPath()%>/css/admin.css" rel="stylesheet" type="text/css" >
</head>
<body>
<div class="top">
<img src="../images/logo.png" /> &nbsp;<a>在线考试系统</a>
<div class="top_left">
<a>${sessionScope.admin.getAname()}</a>&nbsp;
<a>|&nbsp;</a>
<a href="<%=request.getContextPath()%>">退出</a>
</div>
</div>
<div class="menu_left">
<nav id="main-navigation" class="clearfix">
<ul>
<li><a href="ad_index.jsp">首页</a></li>
<li><a href="stuInfo.jsp">查看学生信息</a></li>
<li><a href="teaInfo.jsp">查看老师信息</a></li>
<li><a href="adRekey.jsp">修改密码</a></li>
<li><a href="modify.jsp">修改个人信息</a></li>
</ul>
</nav>
</div>
<div class="info">
<p align="center"><img src="../images/info.jpg" width="300px"></p>
<table border="1" cellspacing=0>
<tr>
<th>工号</th>
<td>${sessionScope.admin.getAnumber()}</td>
</tr>
<tr>
<th>姓名</th>
<td>${sessionScope.admin.getAname()}</td>
</tr>
<tr>
<th>性别</th>
<td>${sessionScope.admin.getAsex()}</td>
</tr>
</table>
</div>
</body>
</html>
28 changes: 28 additions & 0 deletions WebContent/admin/login.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<%@ page language="java" contentType="text/html;charset=gbk" errorPage="exception.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在线考试系统</title>
<link href="<%=request.getContextPath()%>/css/index.css" rel="stylesheet" type="text/css">

</head>
<body>
<div class="form">
<br>
<center><h1>在线考试系统</h1>
<br><br><br>
<s:form action="admin_login" method="post" namespace="/">
<s:actionerror/>
<p>工号 :<input type="text" name="anumber" size="16"></p>
<p>密码 :<input type="password" name="apassword" size="16"></p>
<p><input type="submit" name="B1" value="提交">&nbsp;&nbsp;&nbsp;
<input type="reset" name="B2" value="重置"></p>

</s:form>
</div>
</body>
</html>
31 changes: 31 additions & 0 deletions WebContent/admin/modify.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<%@ page language="java" contentType="text/html;charset=gbk" errorPage="exception.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk">
<title>在线考试系统</title>
<link href="<%=request.getContextPath()%>/css/admin.css" rel="stylesheet" type="text/css" >
</head>
<body>
<div class="top">
<img src="../images/logo.png" /> &nbsp;<a>在线考试系统</a>
<div class="top_left">
<a>${sessionScope.admin.getAname()}</a>&nbsp;
<a>|&nbsp;</a>
<a href="<%=request.getContextPath()%>">退出</a>
</div>
</div>
<div class="menu_left">
<nav id="main-navigation" class="clearfix">
<ul>
<li><a href="ad_index.jsp">首页</a></li>
<li><a href="stuInfo.jsp">查看学生信息</a></li>
<li><a href="teaInfo.jsp">查看老师信息</a></li>
<li><a href="adRekey.jsp">修改密码</a></li>
<li><a href="modify.jsp">修改个人信息</a></li>
</ul>
</nav>
</div>
</body>
</html>
43 changes: 43 additions & 0 deletions WebContent/admin/stuInfo.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<%@ page language="java" contentType="text/html;charset=gbk" errorPage="exception.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk">
<title>在线考试系统</title>
<link href="<%=request.getContextPath()%>/css/admin.css" rel="stylesheet" type="text/css" >
</head>
<body>
<div class="top">
<img src="../images/logo.png" /> &nbsp;<a>在线考试系统</a>
<div class="top_left">
<a>${sessionScope.admin.getAname()}</a>&nbsp;
<a>|&nbsp;</a>
<a href="<%=request.getContextPath()%>">退出</a>
</div>
</div>
<div class="menu_left">
<nav id="main-navigation" class="clearfix">
<ul>
<li><a href="ad_index.jsp">首页</a></li>
<li><a href="stuInfo.jsp">查看学生信息</a></li>
<li><a href="teaInfo.jsp">查看老师信息</a></li>
<li><a href="adRekey.jsp">修改密码</a></li>
<li><a href="modify.jsp">修改个人信息</a></li>
</ul>
</nav>
</div>
<div class="StudentList">
<p align="center"><img src="../images/stuInfo.jpg" width="300px"></p>
<table border="1" cellspacing=0>
<tr>
<th width="200px">学号</th>
<th width="150px">姓名</th>
<th width="150px">性别</th>
<th width="100px">班级</th>
<th width="100px">操作</th>
</tr>
</table>
</div>
</body>
</html>
Loading

0 comments on commit ecdee26

Please sign in to comment.