└── springmvc
├── .classpath
├── .project
├── .settings
├── .jsdtscope
├── com.genuitec.eclipse.core.prefs
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.wst.common.project.facet.core.xml
├── org.eclipse.wst.jsdt.ui.superType.container
└── org.eclipse.wst.jsdt.ui.superType.name
├── WebRoot
├── META-INF
│ └── MANIFEST.MF
├── WEB-INF
│ ├── classes
│ │ ├── beans.xml
│ │ ├── com
│ │ │ └── zhao
│ │ │ │ ├── controller
│ │ │ │ └── UserController.class
│ │ │ │ ├── mapper
│ │ │ │ ├── UserMapper.class
│ │ │ │ └── UserMapper.xml
│ │ │ │ ├── pojo
│ │ │ │ ├── User.class
│ │ │ │ ├── UserExample$Criteria.class
│ │ │ │ ├── UserExample$Criterion.class
│ │ │ │ ├── UserExample$GeneratedCriteria.class
│ │ │ │ └── UserExample.class
│ │ │ │ └── service
│ │ │ │ ├── UserService.class
│ │ │ │ └── impl
│ │ │ │ └── UserServiceImpl.class
│ │ ├── jdbc.properties
│ │ ├── log4j.properties
│ │ ├── springmvc.xml
│ │ └── sqlMapConfig.xml
│ ├── jsp
│ │ ├── AddUser.jsp
│ │ ├── editItem.jsp
│ │ └── itemsList.jsp
│ ├── lib
│ │ ├── asm-3.3.1.jar
│ │ ├── cglib-2.2.2.jar
│ │ ├── com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar
│ │ ├── com.springsource.freemarker-2.3.15.jar
│ │ ├── com.springsource.org.aopalliance-1.0.0.jar
│ │ ├── com.springsource.org.apache.commons.fileupload-1.2.0.jar
│ │ ├── com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar
│ │ ├── commons-io-1.3.2.jar
│ │ ├── commons-logging-1.1.1.jar
│ │ ├── javassist-3.17.1-GA.jar
│ │ ├── jersey-client-1.18.1.jar
│ │ ├── jersey-core-1.18.1.jar
│ │ ├── jstl-1.2.jar
│ │ ├── log4j-1.2.17.jar
│ │ ├── log4j-api-2.0-beta9.jar
│ │ ├── log4j-core-2.0-beta9.jar
│ │ ├── mybatis-3.2.3.jar
│ │ ├── mybatis-spring-1.2.2.jar
│ │ ├── mysql-connector-java-5.0.8-bin.jar
│ │ ├── oscache-2.4.1.jar
│ │ ├── slf4j-api-1.7.5.jar
│ │ ├── slf4j-log4j12-1.7.5.jar
│ │ ├── spring-aop-3.2.0.RELEASE.jar
│ │ ├── spring-aspects-3.2.0.RELEASE.jar
│ │ ├── spring-beans-3.2.0.RELEASE.jar
│ │ ├── spring-context-3.2.0.RELEASE.jar
│ │ ├── spring-context-support-3.2.0.RELEASE.jar
│ │ ├── spring-core-3.2.0.RELEASE.jar
│ │ ├── spring-expression-3.2.0.RELEASE.jar
│ │ ├── spring-jdbc-3.2.0.RELEASE.jar
│ │ ├── spring-orm-3.2.0.RELEASE.jar
│ │ ├── spring-tx-3.2.0.RELEASE.jar
│ │ ├── spring-web-3.2.0.RELEASE.jar
│ │ └── spring-webmvc-3.2.0.RELEASE.jar
│ └── web.xml
├── index.jsp
└── js
│ ├── jquery.form.js
│ └── jquery.js
├── config
├── beans.xml
├── jdbc.properties
├── log4j.properties
├── springmvc.xml
└── sqlMapConfig.xml
└── src
└── com
└── zhao
├── controller
└── UserController.java
├── mapper
├── UserMapper.java
└── UserMapper.xml
├── pojo
├── User.java
└── UserExample.java
└── service
├── UserService.java
└── impl
└── UserServiceImpl.java
/springmvc/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/springmvc/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | springmvc
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.jsdt.core.javascriptValidator
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.wst.common.project.facet.core.builder
20 |
21 |
22 |
23 |
24 | org.eclipse.wst.validation.validationbuilder
25 |
26 |
27 |
28 |
29 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
30 |
31 |
32 |
33 |
34 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
35 |
36 |
37 |
38 |
39 |
40 | org.eclipse.jem.workbench.JavaEMFNature
41 | org.eclipse.wst.common.modulecore.ModuleCoreNature
42 | org.eclipse.wst.common.project.facet.core.nature
43 | org.eclipse.jdt.core.javanature
44 | org.eclipse.wst.jsdt.core.jsNature
45 |
46 |
47 |
--------------------------------------------------------------------------------
/springmvc/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springmvc/.settings/com.genuitec.eclipse.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | validator.Checked=WebRoot/js/jquery.js
3 | validator.Unchecked=
4 |
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//WebRoot/js/jquery.form.js=UTF-8
3 | encoding//WebRoot/js/jquery.js=UTF-8
4 |
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4 | org.eclipse.jdt.core.compiler.compliance=1.7
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.source=1.7
8 |
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/springmvc/WebRoot/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/controller/UserController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/controller/UserController.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/mapper/UserMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/mapper/UserMapper.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | and ${criterion.condition}
21 |
22 |
23 | and ${criterion.condition} #{criterion.value}
24 |
25 |
26 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
27 |
28 |
29 | and ${criterion.condition}
30 |
31 | #{listItem}
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | and ${criterion.condition}
50 |
51 |
52 | and ${criterion.condition} #{criterion.value}
53 |
54 |
55 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
56 |
57 |
58 | and ${criterion.condition}
59 |
60 | #{listItem}
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | idUser, UserName, Password, NickName, email, avatar
72 |
73 |
87 |
93 |
94 | delete from user
95 | where idUser = #{iduser,jdbcType=INTEGER}
96 |
97 |
98 | delete from user
99 |
100 |
101 |
102 |
103 |
104 | insert into user (idUser, UserName, Password,
105 | NickName, email, avatar
106 | )
107 | values (#{iduser,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
108 | #{nickname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}
109 | )
110 |
111 |
112 | insert into user
113 |
114 |
115 | idUser,
116 |
117 |
118 | UserName,
119 |
120 |
121 | Password,
122 |
123 |
124 | NickName,
125 |
126 |
127 | email,
128 |
129 |
130 | avatar,
131 |
132 |
133 |
134 |
135 | #{iduser,jdbcType=INTEGER},
136 |
137 |
138 | #{username,jdbcType=VARCHAR},
139 |
140 |
141 | #{password,jdbcType=VARCHAR},
142 |
143 |
144 | #{nickname,jdbcType=VARCHAR},
145 |
146 |
147 | #{email,jdbcType=VARCHAR},
148 |
149 |
150 | #{avatar,jdbcType=VARCHAR},
151 |
152 |
153 |
154 |
160 |
161 | update user
162 |
163 |
164 | idUser = #{record.iduser,jdbcType=INTEGER},
165 |
166 |
167 | UserName = #{record.username,jdbcType=VARCHAR},
168 |
169 |
170 | Password = #{record.password,jdbcType=VARCHAR},
171 |
172 |
173 | NickName = #{record.nickname,jdbcType=VARCHAR},
174 |
175 |
176 | email = #{record.email,jdbcType=VARCHAR},
177 |
178 |
179 | avatar = #{record.avatar,jdbcType=VARCHAR},
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 | update user
188 | set idUser = #{record.iduser,jdbcType=INTEGER},
189 | UserName = #{record.username,jdbcType=VARCHAR},
190 | Password = #{record.password,jdbcType=VARCHAR},
191 | NickName = #{record.nickname,jdbcType=VARCHAR},
192 | email = #{record.email,jdbcType=VARCHAR},
193 | avatar = #{record.avatar,jdbcType=VARCHAR}
194 |
195 |
196 |
197 |
198 |
199 | update user
200 |
201 |
202 | UserName = #{username,jdbcType=VARCHAR},
203 |
204 |
205 | Password = #{password,jdbcType=VARCHAR},
206 |
207 |
208 | NickName = #{nickname,jdbcType=VARCHAR},
209 |
210 |
211 | email = #{email,jdbcType=VARCHAR},
212 |
213 |
214 | avatar = #{avatar,jdbcType=VARCHAR},
215 |
216 |
217 | where idUser = #{iduser,jdbcType=INTEGER}
218 |
219 |
220 | update user
221 | set UserName = #{username,jdbcType=VARCHAR},
222 | Password = #{password,jdbcType=VARCHAR},
223 | NickName = #{nickname,jdbcType=VARCHAR},
224 | email = #{email,jdbcType=VARCHAR},
225 | avatar = #{avatar,jdbcType=VARCHAR}
226 | where idUser = #{iduser,jdbcType=INTEGER}
227 |
228 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/User.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$Criteria.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$Criterion.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/pojo/UserExample.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/service/UserService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/service/UserService.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/com/zhao/service/impl/UserServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/classes/com/zhao/service/impl/UserServiceImpl.class
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc\:mysql\://localhost\:8888/blog
3 | jdbc.username=root
4 | jdbc.password=123456
5 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/log4j.properties:
--------------------------------------------------------------------------------
1 | ### direct log messages to stdout ###
2 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
3 | log4j.appender.stdout.Target=System.out
4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
5 | log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
6 |
7 | ### direct messages to file mylog.log ###
8 | log4j.appender.file=org.apache.log4j.FileAppender
9 | log4j.appender.file.File=d:/mylog.log
10 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
11 | log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
12 |
13 | ### set log levels - for more verbose logging change 'info' to 'debug' ###
14 |
15 | log4j.rootLogger=info, stdout
16 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/springmvc.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/classes/sqlMapConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/jsp/AddUser.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 |
5 |
6 |
7 |
8 | 修改商品信息
9 |
10 |
11 |
12 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/jsp/editItem.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 |
5 |
6 |
7 |
8 | 修改商品信息
9 |
10 |
11 |
12 |
13 |
14 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/jsp/itemsList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 |
5 |
6 |
7 |
8 | 查询用户列表
9 |
10 |
11 | 添加用户列表:
12 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/asm-3.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/asm-3.3.1.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/cglib-2.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/cglib-2.2.2.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/com.springsource.freemarker-2.3.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/com.springsource.freemarker-2.3.15.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.apache.commons.fileupload-1.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.apache.commons.fileupload-1.2.0.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/commons-io-1.3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/commons-io-1.3.2.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/javassist-3.17.1-GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/javassist-3.17.1-GA.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/jersey-client-1.18.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/jersey-client-1.18.1.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/jersey-core-1.18.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/jersey-core-1.18.1.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/log4j-1.2.17.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/log4j-api-2.0-beta9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/log4j-api-2.0-beta9.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/log4j-core-2.0-beta9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/log4j-core-2.0-beta9.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/mybatis-3.2.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/mybatis-3.2.3.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/mybatis-spring-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/mybatis-spring-1.2.2.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/mysql-connector-java-5.0.8-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/mysql-connector-java-5.0.8-bin.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/oscache-2.4.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/oscache-2.4.1.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/slf4j-api-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/slf4j-api-1.7.5.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/slf4j-log4j12-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/slf4j-log4j12-1.7.5.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zhaozhen666/SpringMVCCRUDDemo/e47aeff2387ee9f4573e7508f782f03bec4b19bd/springmvc/WebRoot/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/springmvc/WebRoot/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | index.jsp
6 |
7 |
8 | contextConfigLocation
9 | classpath:beans.xml
10 |
11 |
12 | org.springframework.web.context.ContextLoaderListener
13 |
14 |
15 | CharacterEncodingFilter
16 | org.springframework.web.filter.CharacterEncodingFilter
17 |
18 | encoding
19 | utf-8
20 |
21 |
22 |
23 | CharacterEncodingFilter
24 | /*
25 |
26 |
27 |
28 |
29 | springmvc
30 | org.springframework.web.servlet.DispatcherServlet
31 |
32 | contextConfigLocation
33 | classpath:springmvc.xml
34 |
35 | 1
36 |
37 |
38 | springmvc
39 | /
40 |
41 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
2 | <%
3 | String path = request.getContextPath();
4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
5 | %>
6 |
7 |
8 |
9 |
10 |
11 |
12 | My JSP 'index.jsp' starting page
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 | This is my JSP page.
25 |
26 |
27 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/js/jquery.form.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery Form Plugin
3 | * version: 2.83 (11-JUL-2011)
4 | * @requires jQuery v1.3.2 or later
5 | *
6 | * Examples and documentation at: http://malsup.com/jquery/form/
7 | * Dual licensed under the MIT and GPL licenses:
8 | * http://www.opensource.org/licenses/mit-license.php
9 | * http://www.gnu.org/licenses/gpl.html
10 | */
11 | ;(function($) {
12 |
13 | /*
14 | Usage Note:
15 | -----------
16 | Do not use both ajaxSubmit and ajaxForm on the same form. These
17 | functions are intended to be exclusive. Use ajaxSubmit if you want
18 | to bind your own submit handler to the form. For example,
19 |
20 | $(document).ready(function() {
21 | $('#myForm').bind('submit', function(e) {
22 | e.preventDefault(); // <-- important
23 | $(this).ajaxSubmit({
24 | target: '#output'
25 | });
26 | });
27 | });
28 |
29 | Use ajaxForm when you want the plugin to manage all the event binding
30 | for you. For example,
31 |
32 | $(document).ready(function() {
33 | $('#myForm').ajaxForm({
34 | target: '#output'
35 | });
36 | });
37 |
38 | When using ajaxForm, the ajaxSubmit function will be invoked for you
39 | at the appropriate time.
40 | */
41 |
42 | /**
43 | * ajaxSubmit() provides a mechanism for immediately submitting
44 | * an HTML form using AJAX.
45 | */
46 | $.fn.ajaxSubmit = function(options) {
47 | // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
48 | if (!this.length) {
49 | log('ajaxSubmit: skipping submit process - no element selected');
50 | return this;
51 | }
52 |
53 | var method, action, url, $form = this;
54 |
55 | if (typeof options == 'function') {
56 | options = { success: options };
57 | }
58 |
59 | method = this.attr('method');
60 | action = this.attr('action');
61 | url = (typeof action === 'string') ? $.trim(action) : '';
62 | url = url || window.location.href || '';
63 | if (url) {
64 | // clean url (don't include hash vaue)
65 | url = (url.match(/^([^#]+)/)||[])[1];
66 | }
67 |
68 | options = $.extend(true, {
69 | url: url,
70 | success: $.ajaxSettings.success,
71 | type: method || 'GET',
72 | iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank'
73 | }, options);
74 |
75 | // hook for manipulating the form data before it is extracted;
76 | // convenient for use with rich editors like tinyMCE or FCKEditor
77 | var veto = {};
78 | this.trigger('form-pre-serialize', [this, options, veto]);
79 | if (veto.veto) {
80 | log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
81 | return this;
82 | }
83 |
84 | // provide opportunity to alter form data before it is serialized
85 | if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
86 | log('ajaxSubmit: submit aborted via beforeSerialize callback');
87 | return this;
88 | }
89 |
90 | var n,v,a = this.formToArray(options.semantic);
91 | if (options.data) {
92 | options.extraData = options.data;
93 | for (n in options.data) {
94 | if(options.data[n] instanceof Array) {
95 | for (var k in options.data[n]) {
96 | a.push( { name: n, value: options.data[n][k] } );
97 | }
98 | }
99 | else {
100 | v = options.data[n];
101 | v = $.isFunction(v) ? v() : v; // if value is fn, invoke it
102 | a.push( { name: n, value: v } );
103 | }
104 | }
105 | }
106 |
107 | // give pre-submit callback an opportunity to abort the submit
108 | if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
109 | log('ajaxSubmit: submit aborted via beforeSubmit callback');
110 | return this;
111 | }
112 |
113 | // fire vetoable 'validate' event
114 | this.trigger('form-submit-validate', [a, this, options, veto]);
115 | if (veto.veto) {
116 | log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
117 | return this;
118 | }
119 |
120 | var q = $.param(a);
121 |
122 | if (options.type.toUpperCase() == 'GET') {
123 | options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
124 | options.data = null; // data is null for 'get'
125 | }
126 | else {
127 | options.data = q; // data is the query string for 'post'
128 | }
129 |
130 | var callbacks = [];
131 | if (options.resetForm) {
132 | callbacks.push(function() { $form.resetForm(); });
133 | }
134 | if (options.clearForm) {
135 | callbacks.push(function() { $form.clearForm(); });
136 | }
137 |
138 | // perform a load on the target only if dataType is not provided
139 | if (!options.dataType && options.target) {
140 | var oldSuccess = options.success || function(){};
141 | callbacks.push(function(data) {
142 | var fn = options.replaceTarget ? 'replaceWith' : 'html';
143 | $(options.target)[fn](data).each(oldSuccess, arguments);
144 | });
145 | }
146 | else if (options.success) {
147 | callbacks.push(options.success);
148 | }
149 |
150 | options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg
151 | var context = options.context || options; // jQuery 1.4+ supports scope context
152 | for (var i=0, max=callbacks.length; i < max; i++) {
153 | callbacks[i].apply(context, [data, status, xhr || $form, $form]);
154 | }
155 | };
156 |
157 | // are there files to upload?
158 | var fileInputs = $('input:file', this).length > 0;
159 | var mp = 'multipart/form-data';
160 | var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
161 |
162 | // options.iframe allows user to force iframe mode
163 | // 06-NOV-09: now defaulting to iframe mode if file input is detected
164 | if (options.iframe !== false && (fileInputs || options.iframe || multipart)) {
165 | // hack to fix Safari hang (thanks to Tim Molendijk for this)
166 | // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
167 | if (options.closeKeepAlive) {
168 | $.get(options.closeKeepAlive, function() { fileUpload(a); });
169 | }
170 | else {
171 | fileUpload(a);
172 | }
173 | }
174 | else {
175 | // IE7 massage (see issue 57)
176 | if ($.browser.msie && method == 'get') {
177 | var ieMeth = $form[0].getAttribute('method');
178 | if (typeof ieMeth === 'string')
179 | options.type = ieMeth;
180 | }
181 | $.ajax(options);
182 | }
183 |
184 | // fire 'notify' event
185 | this.trigger('form-submit-notify', [this, options]);
186 | return this;
187 |
188 |
189 | // private function for handling file uploads (hat tip to YAHOO!)
190 | function fileUpload(a) {
191 | var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
192 | var useProp = !!$.fn.prop;
193 |
194 | if (a) {
195 | // ensure that every serialized input is still enabled
196 | for (i=0; i < a.length; i++) {
197 | el = $(form[a[i].name]);
198 | el[ useProp ? 'prop' : 'attr' ]('disabled', false);
199 | }
200 | }
201 |
202 | if ($(':input[name=submit],:input[id=submit]', form).length) {
203 | // if there is an input with a name or id of 'submit' then we won't be
204 | // able to invoke the submit fn on the form (at least not x-browser)
205 | alert('Error: Form elements must not have name or id of "submit".');
206 | return;
207 | }
208 |
209 | s = $.extend(true, {}, $.ajaxSettings, options);
210 | s.context = s.context || s;
211 | id = 'jqFormIO' + (new Date().getTime());
212 | if (s.iframeTarget) {
213 | $io = $(s.iframeTarget);
214 | n = $io.attr('name');
215 | if (n == null)
216 | $io.attr('name', id);
217 | else
218 | id = n;
219 | }
220 | else {
221 | $io = $('');
222 | $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
223 | }
224 | io = $io[0];
225 |
226 |
227 | xhr = { // mock object
228 | aborted: 0,
229 | responseText: null,
230 | responseXML: null,
231 | status: 0,
232 | statusText: 'n/a',
233 | getAllResponseHeaders: function() {},
234 | getResponseHeader: function() {},
235 | setRequestHeader: function() {},
236 | abort: function(status) {
237 | var e = (status === 'timeout' ? 'timeout' : 'aborted');
238 | log('aborting upload... ' + e);
239 | this.aborted = 1;
240 | $io.attr('src', s.iframeSrc); // abort op in progress
241 | xhr.error = e;
242 | s.error && s.error.call(s.context, xhr, e, status);
243 | g && $.event.trigger("ajaxError", [xhr, s, e]);
244 | s.complete && s.complete.call(s.context, xhr, e);
245 | }
246 | };
247 |
248 | g = s.global;
249 | // trigger ajax global events so that activity/block indicators work like normal
250 | if (g && ! $.active++) {
251 | $.event.trigger("ajaxStart");
252 | }
253 | if (g) {
254 | $.event.trigger("ajaxSend", [xhr, s]);
255 | }
256 |
257 | if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) {
258 | if (s.global) {
259 | $.active--;
260 | }
261 | return;
262 | }
263 | if (xhr.aborted) {
264 | return;
265 | }
266 |
267 | // add submitting element to data if we know it
268 | sub = form.clk;
269 | if (sub) {
270 | n = sub.name;
271 | if (n && !sub.disabled) {
272 | s.extraData = s.extraData || {};
273 | s.extraData[n] = sub.value;
274 | if (sub.type == "image") {
275 | s.extraData[n+'.x'] = form.clk_x;
276 | s.extraData[n+'.y'] = form.clk_y;
277 | }
278 | }
279 | }
280 |
281 | var CLIENT_TIMEOUT_ABORT = 1;
282 | var SERVER_ABORT = 2;
283 |
284 | function getDoc(frame) {
285 | var doc = frame.contentWindow ? frame.contentWindow.document : frame.contentDocument ? frame.contentDocument : frame.document;
286 | return doc;
287 | }
288 |
289 | // take a breath so that pending repaints get some cpu time before the upload starts
290 | function doSubmit() {
291 | // make sure form attrs are set
292 | var t = $form.attr('target'), a = $form.attr('action');
293 |
294 | // update form attrs in IE friendly way
295 | form.setAttribute('target',id);
296 | if (!method) {
297 | form.setAttribute('method', 'POST');
298 | }
299 | if (a != s.url) {
300 | form.setAttribute('action', s.url);
301 | }
302 |
303 | // ie borks in some cases when setting encoding
304 | if (! s.skipEncodingOverride && (!method || /post/i.test(method))) {
305 | $form.attr({
306 | encoding: 'multipart/form-data',
307 | enctype: 'multipart/form-data'
308 | });
309 | }
310 |
311 | // support timout
312 | if (s.timeout) {
313 | timeoutHandle = setTimeout(function() { timedOut = true; cb(CLIENT_TIMEOUT_ABORT); }, s.timeout);
314 | }
315 |
316 | // look for server aborts
317 | function checkState() {
318 | try {
319 | var state = getDoc(io).readyState;
320 | log('state = ' + state);
321 | if (state.toLowerCase() == 'uninitialized')
322 | setTimeout(checkState,50);
323 | }
324 | catch(e) {
325 | log('Server abort: ' , e, ' (', e.name, ')');
326 | cb(SERVER_ABORT);
327 | timeoutHandle && clearTimeout(timeoutHandle);
328 | timeoutHandle = undefined;
329 | }
330 | }
331 |
332 | // add "extra" data to form if provided in options
333 | var extraInputs = [];
334 | try {
335 | if (s.extraData) {
336 | for (var n in s.extraData) {
337 | extraInputs.push(
338 | $('').attr('value',s.extraData[n])
339 | .appendTo(form)[0]);
340 | }
341 | }
342 |
343 | if (!s.iframeTarget) {
344 | // add iframe to doc and submit the form
345 | $io.appendTo('body');
346 | io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
347 | }
348 | setTimeout(checkState,15);
349 | form.submit();
350 | }
351 | finally {
352 | // reset attrs and remove "extra" input elements
353 | form.setAttribute('action',a);
354 | if(t) {
355 | form.setAttribute('target', t);
356 | } else {
357 | $form.removeAttr('target');
358 | }
359 | $(extraInputs).remove();
360 | }
361 | }
362 |
363 | if (s.forceSync) {
364 | doSubmit();
365 | }
366 | else {
367 | setTimeout(doSubmit, 10); // this lets dom updates render
368 | }
369 |
370 | var data, doc, domCheckCount = 50, callbackProcessed;
371 |
372 | function cb(e) {
373 | if (xhr.aborted || callbackProcessed) {
374 | return;
375 | }
376 | try {
377 | doc = getDoc(io);
378 | }
379 | catch(ex) {
380 | log('cannot access response document: ', ex);
381 | e = SERVER_ABORT;
382 | }
383 | if (e === CLIENT_TIMEOUT_ABORT && xhr) {
384 | xhr.abort('timeout');
385 | return;
386 | }
387 | else if (e == SERVER_ABORT && xhr) {
388 | xhr.abort('server abort');
389 | return;
390 | }
391 |
392 | if (!doc || doc.location.href == s.iframeSrc) {
393 | // response not received yet
394 | if (!timedOut)
395 | return;
396 | }
397 | io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
398 |
399 | var status = 'success', errMsg;
400 | try {
401 | if (timedOut) {
402 | throw 'timeout';
403 | }
404 |
405 | var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
406 | log('isXml='+isXml);
407 | if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) {
408 | if (--domCheckCount) {
409 | // in some browsers (Opera) the iframe DOM is not always traversable when
410 | // the onload callback fires, so we loop a bit to accommodate
411 | log('requeing onLoad callback, DOM not available');
412 | setTimeout(cb, 250);
413 | return;
414 | }
415 | // let this fall through because server response could be an empty document
416 | //log('Could not access iframe DOM after mutiple tries.');
417 | //throw 'DOMException: not available';
418 | }
419 |
420 | //log('response detected');
421 | var docRoot = doc.body ? doc.body : doc.documentElement;
422 | xhr.responseText = docRoot ? docRoot.innerHTML : null;
423 | xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
424 | if (isXml)
425 | s.dataType = 'xml';
426 | xhr.getResponseHeader = function(header){
427 | var headers = {'content-type': s.dataType};
428 | return headers[header];
429 | };
430 | // support for XHR 'status' & 'statusText' emulation :
431 | if (docRoot) {
432 | xhr.status = Number( docRoot.getAttribute('status') ) || xhr.status;
433 | xhr.statusText = docRoot.getAttribute('statusText') || xhr.statusText;
434 | }
435 |
436 | var dt = s.dataType || '';
437 | var scr = /(json|script|text)/.test(dt.toLowerCase());
438 | if (scr || s.textarea) {
439 | // see if user embedded response in textarea
440 | var ta = doc.getElementsByTagName('textarea')[0];
441 | if (ta) {
442 | xhr.responseText = ta.value;
443 | // support for XHR 'status' & 'statusText' emulation :
444 | xhr.status = Number( ta.getAttribute('status') ) || xhr.status;
445 | xhr.statusText = ta.getAttribute('statusText') || xhr.statusText;
446 | }
447 | else if (scr) {
448 | // account for browsers injecting pre around json response
449 | var pre = doc.getElementsByTagName('pre')[0];
450 | var b = doc.getElementsByTagName('body')[0];
451 | if (pre) {
452 | xhr.responseText = pre.textContent ? pre.textContent : pre.innerHTML;
453 | }
454 | else if (b) {
455 | xhr.responseText = b.innerHTML;
456 | }
457 | }
458 | }
459 | else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
460 | xhr.responseXML = toXml(xhr.responseText);
461 | }
462 |
463 | try {
464 | data = httpData(xhr, s.dataType, s);
465 | }
466 | catch (e) {
467 | status = 'parsererror';
468 | xhr.error = errMsg = (e || status);
469 | }
470 | }
471 | catch (e) {
472 | log('error caught: ',e);
473 | status = 'error';
474 | xhr.error = errMsg = (e || status);
475 | }
476 |
477 | if (xhr.aborted) {
478 | log('upload aborted');
479 | status = null;
480 | }
481 |
482 | if (xhr.status) { // we've set xhr.status
483 | status = (xhr.status >= 200 && xhr.status < 300 || xhr.status === 304) ? 'success' : 'error';
484 | }
485 |
486 | // ordering of these callbacks/triggers is odd, but that's how $.ajax does it
487 | if (status === 'success') {
488 | s.success && s.success.call(s.context, data, 'success', xhr);
489 | g && $.event.trigger("ajaxSuccess", [xhr, s]);
490 | }
491 | else if (status) {
492 | if (errMsg == undefined)
493 | errMsg = xhr.statusText;
494 | s.error && s.error.call(s.context, xhr, status, errMsg);
495 | g && $.event.trigger("ajaxError", [xhr, s, errMsg]);
496 | }
497 |
498 | g && $.event.trigger("ajaxComplete", [xhr, s]);
499 |
500 | if (g && ! --$.active) {
501 | $.event.trigger("ajaxStop");
502 | }
503 |
504 | s.complete && s.complete.call(s.context, xhr, status);
505 |
506 | callbackProcessed = true;
507 | if (s.timeout)
508 | clearTimeout(timeoutHandle);
509 |
510 | // clean up
511 | setTimeout(function() {
512 | if (!s.iframeTarget)
513 | $io.remove();
514 | xhr.responseXML = null;
515 | }, 100);
516 | }
517 |
518 | var toXml = $.parseXML || function(s, doc) { // use parseXML if available (jQuery 1.5+)
519 | if (window.ActiveXObject) {
520 | doc = new ActiveXObject('Microsoft.XMLDOM');
521 | doc.async = 'false';
522 | doc.loadXML(s);
523 | }
524 | else {
525 | doc = (new DOMParser()).parseFromString(s, 'text/xml');
526 | }
527 | return (doc && doc.documentElement && doc.documentElement.nodeName != 'parsererror') ? doc : null;
528 | };
529 | var parseJSON = $.parseJSON || function(s) {
530 | return window['eval']('(' + s + ')');
531 | };
532 |
533 | var httpData = function( xhr, type, s ) { // mostly lifted from jq1.4.4
534 |
535 | var ct = xhr.getResponseHeader('content-type') || '',
536 | xml = type === 'xml' || !type && ct.indexOf('xml') >= 0,
537 | data = xml ? xhr.responseXML : xhr.responseText;
538 |
539 | if (xml && data.documentElement.nodeName === 'parsererror') {
540 | $.error && $.error('parsererror');
541 | }
542 | if (s && s.dataFilter) {
543 | data = s.dataFilter(data, type);
544 | }
545 | if (typeof data === 'string') {
546 | if (type === 'json' || !type && ct.indexOf('json') >= 0) {
547 | data = parseJSON(data);
548 | } else if (type === "script" || !type && ct.indexOf("javascript") >= 0) {
549 | $.globalEval(data);
550 | }
551 | }
552 | return data;
553 | };
554 | }
555 | };
556 |
557 | /**
558 | * ajaxForm() provides a mechanism for fully automating form submission.
559 | *
560 | * The advantages of using this method instead of ajaxSubmit() are:
561 | *
562 | * 1: This method will include coordinates for elements (if the element
563 | * is used to submit the form).
564 | * 2. This method will include the submit element's name/value data (for the element that was
565 | * used to submit the form).
566 | * 3. This method binds the submit() method to the form for you.
567 | *
568 | * The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely
569 | * passes the options argument along after properly binding events for submit elements and
570 | * the form itself.
571 | */
572 | $.fn.ajaxForm = function(options) {
573 | // in jQuery 1.3+ we can fix mistakes with the ready state
574 | if (this.length === 0) {
575 | var o = { s: this.selector, c: this.context };
576 | if (!$.isReady && o.s) {
577 | log('DOM not ready, queuing ajaxForm');
578 | $(function() {
579 | $(o.s,o.c).ajaxForm(options);
580 | });
581 | return this;
582 | }
583 | // is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
584 | log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
585 | return this;
586 | }
587 |
588 | return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) {
589 | if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed
590 | e.preventDefault();
591 | $(this).ajaxSubmit(options);
592 | }
593 | }).bind('click.form-plugin', function(e) {
594 | var target = e.target;
595 | var $el = $(target);
596 | if (!($el.is(":submit,input:image"))) {
597 | // is this a child element of the submit el? (ex: a span within a button)
598 | var t = $el.closest(':submit');
599 | if (t.length == 0) {
600 | return;
601 | }
602 | target = t[0];
603 | }
604 | var form = this;
605 | form.clk = target;
606 | if (target.type == 'image') {
607 | if (e.offsetX != undefined) {
608 | form.clk_x = e.offsetX;
609 | form.clk_y = e.offsetY;
610 | } else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
611 | var offset = $el.offset();
612 | form.clk_x = e.pageX - offset.left;
613 | form.clk_y = e.pageY - offset.top;
614 | } else {
615 | form.clk_x = e.pageX - target.offsetLeft;
616 | form.clk_y = e.pageY - target.offsetTop;
617 | }
618 | }
619 | // clear form vars
620 | setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100);
621 | });
622 | };
623 |
624 | // ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
625 | $.fn.ajaxFormUnbind = function() {
626 | return this.unbind('submit.form-plugin click.form-plugin');
627 | };
628 |
629 | /**
630 | * formToArray() gathers form element data into an array of objects that can
631 | * be passed to any of the following ajax functions: $.get, $.post, or load.
632 | * Each object in the array has both a 'name' and 'value' property. An example of
633 | * an array for a simple login form might be:
634 | *
635 | * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
636 | *
637 | * It is this array that is passed to pre-submit callback functions provided to the
638 | * ajaxSubmit() and ajaxForm() methods.
639 | */
640 | $.fn.formToArray = function(semantic) {
641 | var a = [];
642 | if (this.length === 0) {
643 | return a;
644 | }
645 |
646 | var form = this[0];
647 | var els = semantic ? form.getElementsByTagName('*') : form.elements;
648 | if (!els) {
649 | return a;
650 | }
651 |
652 | var i,j,n,v,el,max,jmax;
653 | for(i=0, max=els.length; i < max; i++) {
654 | el = els[i];
655 | n = el.name;
656 | if (!n) {
657 | continue;
658 | }
659 |
660 | if (semantic && form.clk && el.type == "image") {
661 | // handle image inputs on the fly when semantic == true
662 | if(!el.disabled && form.clk == el) {
663 | a.push({name: n, value: $(el).val()});
664 | a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
665 | }
666 | continue;
667 | }
668 |
669 | v = $.fieldValue(el, true);
670 | if (v && v.constructor == Array) {
671 | for(j=0, jmax=v.length; j < jmax; j++) {
672 | a.push({name: n, value: v[j]});
673 | }
674 | }
675 | else if (v !== null && typeof v != 'undefined') {
676 | a.push({name: n, value: v});
677 | }
678 | }
679 |
680 | if (!semantic && form.clk) {
681 | // input type=='image' are not found in elements array! handle it here
682 | var $input = $(form.clk), input = $input[0];
683 | n = input.name;
684 | if (n && !input.disabled && input.type == 'image') {
685 | a.push({name: n, value: $input.val()});
686 | a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
687 | }
688 | }
689 | return a;
690 | };
691 |
692 | /**
693 | * Serializes form data into a 'submittable' string. This method will return a string
694 | * in the format: name1=value1&name2=value2
695 | */
696 | $.fn.formSerialize = function(semantic) {
697 | //hand off to jQuery.param for proper encoding
698 | return $.param(this.formToArray(semantic));
699 | };
700 |
701 | /**
702 | * Serializes all field elements in the jQuery object into a query string.
703 | * This method will return a string in the format: name1=value1&name2=value2
704 | */
705 | $.fn.fieldSerialize = function(successful) {
706 | var a = [];
707 | this.each(function() {
708 | var n = this.name;
709 | if (!n) {
710 | return;
711 | }
712 | var v = $.fieldValue(this, successful);
713 | if (v && v.constructor == Array) {
714 | for (var i=0,max=v.length; i < max; i++) {
715 | a.push({name: n, value: v[i]});
716 | }
717 | }
718 | else if (v !== null && typeof v != 'undefined') {
719 | a.push({name: this.name, value: v});
720 | }
721 | });
722 | //hand off to jQuery.param for proper encoding
723 | return $.param(a);
724 | };
725 |
726 | /**
727 | * Returns the value(s) of the element in the matched set. For example, consider the following form:
728 | *
729 | *
737 | *
738 | * var v = $(':text').fieldValue();
739 | * // if no values are entered into the text inputs
740 | * v == ['','']
741 | * // if values entered into the text inputs are 'foo' and 'bar'
742 | * v == ['foo','bar']
743 | *
744 | * var v = $(':checkbox').fieldValue();
745 | * // if neither checkbox is checked
746 | * v === undefined
747 | * // if both checkboxes are checked
748 | * v == ['B1', 'B2']
749 | *
750 | * var v = $(':radio').fieldValue();
751 | * // if neither radio is checked
752 | * v === undefined
753 | * // if first radio is checked
754 | * v == ['C1']
755 | *
756 | * The successful argument controls whether or not the field element must be 'successful'
757 | * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
758 | * The default value of the successful argument is true. If this value is false the value(s)
759 | * for each element is returned.
760 | *
761 | * Note: This method *always* returns an array. If no valid value can be determined the
762 | * array will be empty, otherwise it will contain one or more values.
763 | */
764 | $.fn.fieldValue = function(successful) {
765 | for (var val=[], i=0, max=this.length; i < max; i++) {
766 | var el = this[i];
767 | var v = $.fieldValue(el, successful);
768 | if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) {
769 | continue;
770 | }
771 | v.constructor == Array ? $.merge(val, v) : val.push(v);
772 | }
773 | return val;
774 | };
775 |
776 | /**
777 | * Returns the value of the field element.
778 | */
779 | $.fieldValue = function(el, successful) {
780 | var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
781 | if (successful === undefined) {
782 | successful = true;
783 | }
784 |
785 | if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
786 | (t == 'checkbox' || t == 'radio') && !el.checked ||
787 | (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
788 | tag == 'select' && el.selectedIndex == -1)) {
789 | return null;
790 | }
791 |
792 | if (tag == 'select') {
793 | var index = el.selectedIndex;
794 | if (index < 0) {
795 | return null;
796 | }
797 | var a = [], ops = el.options;
798 | var one = (t == 'select-one');
799 | var max = (one ? index+1 : ops.length);
800 | for(var i=(one ? index : 0); i < max; i++) {
801 | var op = ops[i];
802 | if (op.selected) {
803 | var v = op.value;
804 | if (!v) { // extra pain for IE...
805 | v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
806 | }
807 | if (one) {
808 | return v;
809 | }
810 | a.push(v);
811 | }
812 | }
813 | return a;
814 | }
815 | return $(el).val();
816 | };
817 |
818 | /**
819 | * Clears the form data. Takes the following actions on the form's input fields:
820 | * - input text fields will have their 'value' property set to the empty string
821 | * - select elements will have their 'selectedIndex' property set to -1
822 | * - checkbox and radio inputs will have their 'checked' property set to false
823 | * - inputs of type submit, button, reset, and hidden will *not* be effected
824 | * - button elements will *not* be effected
825 | */
826 | $.fn.clearForm = function() {
827 | return this.each(function() {
828 | $('input,select,textarea', this).clearFields();
829 | });
830 | };
831 |
832 | /**
833 | * Clears the selected form elements.
834 | */
835 | $.fn.clearFields = $.fn.clearInputs = function() {
836 | var re = /^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i; // 'hidden' is not in this list
837 | return this.each(function() {
838 | var t = this.type, tag = this.tagName.toLowerCase();
839 | if (re.test(t) || tag == 'textarea') {
840 | this.value = '';
841 | }
842 | else if (t == 'checkbox' || t == 'radio') {
843 | this.checked = false;
844 | }
845 | else if (tag == 'select') {
846 | this.selectedIndex = -1;
847 | }
848 | });
849 | };
850 |
851 | /**
852 | * Resets the form data. Causes all form elements to be reset to their original value.
853 | */
854 | $.fn.resetForm = function() {
855 | return this.each(function() {
856 | // guard against an input with the name of 'reset'
857 | // note that IE reports the reset function as an 'object'
858 | if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) {
859 | this.reset();
860 | }
861 | });
862 | };
863 |
864 | /**
865 | * Enables or disables any matching elements.
866 | */
867 | $.fn.enable = function(b) {
868 | if (b === undefined) {
869 | b = true;
870 | }
871 | return this.each(function() {
872 | this.disabled = !b;
873 | });
874 | };
875 |
876 | /**
877 | * Checks/unchecks any matching checkboxes or radio buttons and
878 | * selects/deselects and matching option elements.
879 | */
880 | $.fn.selected = function(select) {
881 | if (select === undefined) {
882 | select = true;
883 | }
884 | return this.each(function() {
885 | var t = this.type;
886 | if (t == 'checkbox' || t == 'radio') {
887 | this.checked = select;
888 | }
889 | else if (this.tagName.toLowerCase() == 'option') {
890 | var $sel = $(this).parent('select');
891 | if (select && $sel[0] && $sel[0].type == 'select-one') {
892 | // deselect all other options
893 | $sel.find('option').selected(false);
894 | }
895 | this.selected = select;
896 | }
897 | });
898 | };
899 |
900 | // helper fn for console logging
901 | function log() {
902 | var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');
903 | if (window.console && window.console.log) {
904 | window.console.log(msg);
905 | }
906 | else if (window.opera && window.opera.postError) {
907 | window.opera.postError(msg);
908 | }
909 | };
910 |
911 | })(jQuery);
912 |
--------------------------------------------------------------------------------
/springmvc/WebRoot/js/jquery.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery JavaScript Library v1.6.1
3 | * http://jquery.com/
4 | *
5 | * Copyright 2011, John Resig
6 | * Dual licensed under the MIT or GPL Version 2 licenses.
7 | * http://jquery.org/license
8 | *
9 | * Includes Sizzle.js
10 | * http://sizzlejs.com/
11 | * Copyright 2011, The Dojo Foundation
12 | * Released under the MIT, BSD, and GPL Licenses.
13 | *
14 | * Date: Thu May 12 15:04:36 2011 -0400
15 | */
16 | (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!cj[a]){var b=f("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),c.body.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write("");b=cl.createElement(a),cl.body.appendChild(b),d=f.css(b,"display"),c.body.removeChild(ck)}cj[a]=d}return cj[a]}function cu(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function ct(){cq=b}function cs(){setTimeout(ct,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g=0===c})}function W(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function O(a,b){return(a&&a!=="*"?a+".":"")+b.replace(A,"`").replace(B,"&")}function N(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function L(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function F(){return!0}function E(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function H(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(H,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=d.userAgent,x,y,z,A=Object.prototype.toString,B=Object.prototype.hasOwnProperty,C=Array.prototype.push,D=Array.prototype.slice,E=String.prototype.trim,F=Array.prototype.indexOf,G={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?C.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:C,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!y){y=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",z,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",z),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&H()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):G[A.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!B.call(a,"constructor")&&!B.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||B.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;ca",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};f=c.createElement("select"),g=f.appendChild(c.createElement("option")),h=a.getElementsByTagName("input")[0],j={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},h.checked=!0,j.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,j.optDisabled=!g.disabled;try{delete a.test}catch(s){j.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function b(){j.noCloneEvent=!1,a.detachEvent("onclick",b)}),a.cloneNode(!0).fireEvent("onclick")),h=c.createElement("input"),h.value="t",h.setAttribute("type","radio"),j.radioValue=h.value==="t",h.setAttribute("checked","checked"),a.appendChild(h),k=c.createDocumentFragment(),k.appendChild(a.firstChild),j.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",l=c.createElement("body"),m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(q in m)l.style[q]=m[q];l.appendChild(a),b.insertBefore(l,b.firstChild),j.appendChecked=h.checked,j.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,j.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="",j.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="",n=a.getElementsByTagName("td"),r=n[0].offsetHeight===0,n[0].style.display="",n[1].style.display="none",j.reliableHiddenOffsets=r&&n[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(i=c.createElement("div"),i.style.width="0",i.style.marginRight="0",a.appendChild(i),j.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)===0),l.innerHTML="",b.removeChild(l);if(a.attachEvent)for(q in{submit:1,change:1,focusin:1})p="on"+q,r=p in a,r||(a.setAttribute(p,"return;"),r=typeof a[p]=="function"),j[q+"Bubbles"]=r;return j}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;return(e.value||"").replace(p,"")}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);c=j&&f.attrFix[c]||c,i=f.attrHooks[c],i||(!t.test(c)||typeof d!="boolean"&&d!==b&&d.toLowerCase()!==c.toLowerCase()?v&&(f.nodeName(a,"form")||u.test(c))&&(i=v):i=w);if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j)return i.get(a,c);h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);c=i&&f.propFix[c]||c,h=f.propHooks[c];return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return a[f.propFix[c]||c]?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=b),a.setAttribute(c,c.toLowerCase()));return c}},f.attrHooks.value={get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return a.value},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=Object.prototype.hasOwnProperty,y=/\.(.*)$/,z=/^(?:textarea|input|select)$/i,A=/\./g,B=/ /g,C=/[^\w\s.|`]/g,D=function(a){return a.replace(C,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=E;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=E);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),D).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem
17 | )});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},K=function(c){var d=c.target,e,g;if(!!z.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=J(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:K,beforedeactivate:K,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&K.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&K.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",J(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in I)f.event.add(this,c+".specialChange",I[c]);return z.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return z.test(this.nodeName)}},I=f.event.special.change.filters,I.focus=I.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=U.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(W(c[0])||W(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=T.call(arguments);P.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!V[a]?f.unique(e):e,(this.length>1||R.test(d))&&Q.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Y=/ jQuery\d+="(?:\d+|null)"/g,Z=/^\s+/,$=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,_=/<([\w:]+)/,ba=/",""],legend:[1,""],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""],_default:[0,"",""]};bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Y,""):null;if(typeof a=="string"&&!bc.test(a)&&(f.support.leadingWhitespace||!Z.test(a))&&!bg[(_.exec(a)||["",""])[1].toLowerCase()]){a=a.replace($,"<$1>$2>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bj(a,d),e=bk(a),g=bk(d);for(h=0;e[h];++h)bj(e[h],g[h])}if(b){bi(a,d);if(c){e=bk(a),g=bk(d);for(h=0;e[h];++h)bi(e[h],g[h])}}return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||
18 | b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!bb.test(k))k=b.createTextNode(k);else{k=k.replace($,"<$1>$2>");var l=(_.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=ba.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Z.test(k)&&o.insertBefore(b.createTextNode(Z.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bp.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bo.test(g)?g.replace(bo,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,c){var d,e,g;c=c.replace(br,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bs.test(d)&&bt.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bE=/%20/g,bF=/\[\]$/,bG=/\r?\n/g,bH=/#.*$/,bI=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bJ=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bK=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bL=/^(?:GET|HEAD)$/,bM=/^\/\//,bN=/\?/,bO=/