forked from zhiyuncloud/aixuexiao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 31c7320
Showing
194 changed files
with
16,460 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_45"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="jst.web"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-3.3.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-2.2.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.1.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/javassist-3.17.1-GA.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.17.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-spring-1.2.0.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-log4j12-1.7.5.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aop-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aspects-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-expression-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xstream-1.3.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-3.2.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-orm-3.2.3.RELEASE.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aopalliance-1.0.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aspectjweaver.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/c3p0-0.9.2-pre4.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mchange-commons-java-0.2.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector-java-5.1.19-bin.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/slf4j-api-1.7.5.jar"/> | ||
<classpathentry kind="output" path="build/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>aixuexiao</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
encoding//WebContent/WEB-INF/views/common/css.jsp=UTF-8 | ||
encoding//WebContent/WEB-INF/views/common/js.jsp=UTF-8 | ||
encoding//WebContent/WEB-INF/views/common/navbar.jsp=UTF-8 | ||
encoding//WebContent/WEB-INF/views/common/sidebar.jsp=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-modules id="moduleCoreId" project-version="1.5.0"> | ||
<wb-module deploy-name="aixuexiao"> | ||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> | ||
<property name="context-root" value="aixuexiao"/> | ||
<property name="java-output-path" value="/aixuexiao/build/classes"/> | ||
</wb-module> | ||
</project-modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 v6.0"/> | ||
<fixed facet="jst.web"/> | ||
<fixed facet="java"/> | ||
<fixed facet="wst.jsdt.web"/> | ||
<installed facet="java" version="1.6"/> | ||
<installed facet="jst.web" version="2.5"/> | ||
<installed facet="wst.jsdt.web" version="1.0"/> | ||
</faceted-project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
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 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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xmlns:p="http://www.springframework.org/schema/p" | ||
xmlns:mvc="http://www.springframework.org/schema/mvc" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd | ||
http://www.springframework.org/schema/mvc | ||
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> | ||
|
||
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" > | ||
<property name="messageConverters"> | ||
<list> | ||
<bean class = "org.springframework.http.converter.StringHttpMessageConverter"> | ||
<property name = "supportedMediaTypes"> | ||
<list> | ||
<value>text/html;charset=UTF-8</value> | ||
</list> | ||
</property> | ||
</bean> | ||
</list> | ||
</property> | ||
</bean> | ||
|
||
<context:component-scan base-package="com.aixuexiao.web.controller"/> | ||
<mvc:annotation-driven /> | ||
|
||
<mvc:interceptors> | ||
<mvc:interceptor> | ||
<mvc:mapping path="/manager/**"/> | ||
<bean class="com.aixuexiao.web.interceptor.ManagerInterceptor" /> | ||
</mvc:interceptor> | ||
</mvc:interceptors> | ||
|
||
<!-- 对模型视图名称的解析,在请求时模型视图名称添加前后缀 --> | ||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | ||
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> | ||
<property name="prefix" value="/WEB-INF/views/"/> | ||
<property name="suffix" value=".jsp"/> | ||
</bean> | ||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>添加班级</title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<%@include file="/WEB-INF/views/common/css.jsp" %> | ||
</head> | ||
<body> | ||
<%@ include file="/WEB-INF/views/common/navbar.jsp" %> | ||
<div class="main-container container-fluid"> | ||
<a class="menu-toggler" id="menu-toggler" href="#"> | ||
<span class="menu-text"></span> | ||
</a> | ||
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %> | ||
<div class="main-content"> | ||
|
||
<div class="page-content"> | ||
<div class="page-header position-relative"> | ||
<h1> | ||
<small> | ||
<i class="icon-list-alt"></i> | ||
添加班级 | ||
</small> | ||
</h1> | ||
</div> | ||
<div class="row-fluid"> | ||
|
||
<div class="span12"> | ||
<!--PAGE CONTENT BEGINS--> | ||
<form action="addclasses" id="addclasses" class="form-horizontal" method="post"> | ||
<div class="control-group"> | ||
<label class="control-label" for="id">班级编号</label> | ||
<div class="controls"> | ||
<input type="text" name="id" id="id" placeholder=班级编号>* | ||
<span class="help-inline"><c:if test="${param.notice==null}">例:三年级二班编号为302</c:if> <font color="red"><c:if test="${param.notice!=null}">${param.notice}</c:if></font></span> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label" for="name">班级名称</label> | ||
<div class="controls"> | ||
<input type="text" id="name" value="${param.name}" name="name" placeholder="班级名称">* | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label" for="headteacher">班主任姓名</label> | ||
<div class="controls"> | ||
<input type="text" value="${param.headteacher}" name="headteacher" id="headteacher" placeholder="班主任姓名">* | ||
</div> | ||
</div> | ||
<div class="form-actions"> | ||
<button class="btn btn-info" id="add" type="button"> | ||
<i class="icon-ok bigger-110"></i> | ||
添加班级 | ||
</button> | ||
| ||
<button class="btn btn-info" type="button" onclick="location.href='<%=request.getContextPath() %>/manager/classes'" > | ||
<i class="icon-arrow-left"></i> | ||
返回 | ||
</button> | ||
</div> | ||
</form> | ||
<!--PAGE CONTENT ENDS--> | ||
</div><!--/.span--> | ||
</div><!--/.row-fluid--> | ||
</div><!--/.page-content--> | ||
</div><!--/.main-content--> | ||
</div><!--/.main-container--> | ||
<%@include file="/WEB-INF/views/common/js.jsp" %> | ||
<script type="text/javascript"> | ||
$(function() { | ||
$('#add').on('click', function() { | ||
if($.trim($("#id").val())==''||isNaN($('#id').val())){ | ||
alert('请输入正确的班级编号!'); | ||
return; | ||
}else if($.trim($("#name").val())==''){ | ||
alert('请输入班级名称!'); | ||
return; | ||
}else if($.trim($("#headteacher").val())==''){ | ||
alert('请输入班主任名称!'); | ||
return; | ||
}else{ | ||
$("#addclasses").submit(); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>班级动态</title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<%@include file="/WEB-INF/views/common/css.jsp" %> | ||
</head> | ||
|
||
<body> | ||
<%@ include file="/WEB-INF/views/common/navbar.jsp" %> | ||
<div class="main-container container-fluid"> | ||
<a class="menu-toggler" id="menu-toggler" href="#"> | ||
<span class="menu-text"></span> | ||
</a> | ||
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %> | ||
<div class="main-content"> | ||
|
||
<div class="page-content"> | ||
<div class="page-header position-relative"> | ||
<h1> | ||
<small> | ||
<i class="icon-comment"></i> | ||
发布动态 | ||
</small> | ||
</h1> | ||
</div> | ||
<div class="row-fluid"> | ||
|
||
<div class="span12"> | ||
<!--PAGE CONTENT BEGINS--> | ||
<form action="addclassesnews" id="addclassesnews" method="post"> | ||
<label for="form-field-8">为 <b>${cls.name}</b> 发布班级动态(班主任:<b>${cls.headteacher}</b>) </label> | ||
<input type="hidden" name="classid" value="${cls.id}"> | ||
<textarea class="span12" name="content" id="content" rows="4" placeholder="动态内容"></textarea> | ||
<br> | ||
<button class="btn btn-info" id="leavemessage" type="button"> | ||
<i class="icon-inbox"></i> | ||
发布 | ||
</button> | ||
<button class="btn btn-info" type="button" onclick="location.href='<%=request.getContextPath() %>/manager/classes'" > | ||
<i class="icon-arrow-left"></i> | ||
返回 | ||
</button> | ||
<br><br> | ||
<c:if test="${param.notice != null}"> | ||
<div class="alert alert-info"> | ||
<button type="button" class="close" data-dismiss="alert"> | ||
<i class="icon-remove"></i> | ||
</button> | ||
<i class="icon-ok"></i> | ||
<strong>${param.notice}</strong> | ||
</div> | ||
</c:if> | ||
</form> | ||
|
||
<table id="sample-table-1" class="table table-striped table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<th width="6%">编号</th> | ||
<th width="20%">留言时间</th> | ||
<th>内容</th> | ||
<th width="10%">操作</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<c:forEach items="${cnlist}" var="cn" varStatus="sta" > | ||
<tr> | ||
<td>${sta.index+1}</td> | ||
<td>${cn.inserttime}</td> | ||
<td>${cn.content}</td> | ||
<td><button class="btn btn-mini btn-danger" onclick="if(window.confirm('确认删除这条动态?')==true)location.href='<%=request.getContextPath() %>/manager/deleteclassesnews?classesid=${cn.classid}&id=${cn.id}'"><i class="icon-remove"></i>删除动态</button></td> | ||
</tr> | ||
</c:forEach> | ||
</tbody> | ||
</table> | ||
|
||
<!--PAGE CONTENT ENDS--> | ||
</div><!--/.span--> | ||
</div><!--/.row-fluid--> | ||
</div><!--/.page-content--> | ||
</div><!--/.main-content--> | ||
</div><!--/.main-container--> | ||
|
||
<%@include file="/WEB-INF/views/common/js.jsp" %> | ||
<script type="text/javascript"> | ||
$(function() { | ||
$('#leavemessage').on('click', function() { | ||
if($.trim($("#content").val())==''){ | ||
alert('请输入留言内容'); | ||
return; | ||
}else{ | ||
$("#addclassesnews").submit(); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.