Compare commits

..

3 Commits

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-dbcp-1.4.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-email-1.4.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool-1.6.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/gson-2.8.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/json.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-impl.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mail.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector-java-5.1.18-bin.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-json-plugin-2.2.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xwork-core-2.2.1.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

1
.gitignore vendored

@ -0,0 +1 @@
/build/

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mindSubscribe</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
<filteredResources>
<filter>
<id>1758987424903</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random
Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

@ -1,2 +1,169 @@
# HospitalSystem
# 心理咨询预约管理系统
个人毕业设计用的一个玩具项目,无框架。
MVC模式普通Servlet控制器jsp视图前台Bootstrap
工具版本mysql5.7JDK1.8Tomcat8.5
## 主要功能模块
分为三个端:管理员、来访者(需要预约的人),咨询师
**管理员**端
* 首页
系统近况(咨询师和注册来访者数量,预约数量)
显示最新的消息、留言和公告(最新十条)
* 主要功能
咨询师管理(添加、修改、删除,账号激活停用)
来访者管理(账号激活停用)
预约问卷管理(添加、修改、删除)
* 公共和个人信息模块
消息、公告和留言管理(发送接受消息,发布公告,控制留言显示和隐藏)
个人信息管理(修改基本信息和密码)
**咨询师端**
- 首页
显示最新的消息、留言和公告(最新十条)
- 主要功能
查看预约详情,安排咨询申请(安排咨询时间或驳回)
咨询完毕建立咨询档案
查看所有咨询历史
- 公共和个人信息模块
消息、公告和留言管理(发送接受消息,查看公告,留言)
个人信息管理(修改基本信息和密码)
**来访者端**
- 首页
显示最新的消息、留言和公告(最新十条)
- 主要功能
发起预约申请,等待安排
在我的及时了解预约状态(待安排、准备咨询、被取消)
查看所有咨询历史
- 公共和个人信息模块
消息、公告和留言管理(发送接受消息,查看公告,留言)
个人信息管理(修改基本信息和密码)
预约状态变动时邮件和站内消息通知来访者
**其他**
来访者注册
管理员、咨询师和来访者登录
**预约流程**
1. 来访者申请预约
*来访者向某位咨询师申请预约,并填写预约申请表(期望时间地点和评估问卷)*
2. 咨询师安排咨询
*处理咨询申请,通过申请安排咨询,取消咨询*
3. 咨询档案
*咨询完成,咨询师上传咨询档案;每次咨询都会记录(可在我的咨询中查看)*
4. 来访者评价
*咨询完成,来访者对本次咨询进行评价*
## 项目工程文件
**src**
bean是数据库表对应实体类
model包下分别是dao层和service层
servlet下的是公共模块部分adminclientdoctor分别是三个端对应的控制器
test是测试包无用
utils.filter过滤器登录过滤字符过滤等等
utils.jdbc数据库工具类配置和得到连接池的连接
utils.mail是邮件模块
utils下的ConfigProperties是读入配置文件ResultDate和UploadResult分别是请求响应结果和文件上传结果对象Util封装了常用的工具
config.properties 配置参数,配置邮件发送,文件上传大小类型限制等
pool.properties 是连接池配置文件
**WebContext**
amidn,client,doctor分别是三个端对应的页面
plunge是用到的插件
mutualResource 是jscss样式模版目录
**mind_sub.sql是数据库表脚本**
数据库名mind_sub
## 运行项目
* 新建数据库mind_sub运行脚本mind_sub.sql
* 修改pool.properties中的username和password
* 修改config.properties中的邮件服务器为你自己的
HostName AuthenticationEmailAuthenticationPwd
我这里用的qq的
修改upload_path路径
* 在要部署的Tomcat中修改它的server.xml在Host标签下
增加一行 `<Context docBase="F:\upload" path="/mind_upload" reloadable="true"/>`
这是文件和图片上传存放的位置
**注意要与你config.properties中upload_path路径一致**
然后把项目部署到Tomcat运行即可

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>很抱歉,此页面暂时找不到!</title>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
font-family: "微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,
Baskerville, Palatino, Times;
font-size: 16px;
}
div {
margin-left: auto;
margin-right: auto;
}
a {
text-decoration: none;
color: #1064A0;
}
a:hover {
color: #0078D2;
}
img {
border: none;
}
h1, h2, h3, h4 {
/* display:block;*/
margin: 0;
font-weight: normal;
font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana;
}
h1 {
font-size: 44px;
color: #0188DE;
padding: 20px 0px 10px 0px;
}
h2 {
color: #0188DE;
font-size: 16px;
padding: 10px 0px 40px 0px;
}
#page {
width: 910px;
padding: 20px 20px 40px 20px;
margin-top: 80px;
}
.button {
width: 180px;
height: 28px;
margin-left: 0px;
margin-top: 10px;
background: #009CFF;
border-bottom: 4px solid #0188DE;
text-align: center;
}
.button a {
width: 180px;
height: 28px;
display: block;
font-size: 14px;
color: #fff;
}
.button a:hover {
background: #5BBFFF;
}
</style>
</head>
<body>
<div id="page"
style="border-style: dashed; border-color: #e4e4e4; line-height: 30px; background: url(sorry.png) no-repeat right;">
<h1>抱歉,找不到此页面~</h1>
<h2>Sorry, the site now can not be accessed.</h2>
<font color="#666666">你请求访问的页面,暂时找不到!</font><br><br>
</div>
</body>
</html>

@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>很抱歉,此页面暂时找不到!</title>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
font-family: "微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,
Baskerville, Palatino, Times;
font-size: 16px;
}
div {
margin-left: auto;
margin-right: auto;
}
a {
text-decoration: none;
color: #1064A0;
}
a:hover {
color: #0078D2;
}
img {
border: none;
}
h1, h2, h3, h4 {
/* display:block;*/
margin: 0;
font-weight: normal;
font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana;
}
h1 {
font-size: 44px;
color: #0188DE;
padding: 20px 0px 10px 0px;
}
h2 {
color: #0188DE;
font-size: 16px;
padding: 10px 0px 40px 0px;
}
#page {
width: 910px;
padding: 20px 20px 40px 20px;
margin-top: 80px;
}
.button {
width: 180px;
height: 28px;
margin-left: 0px;
margin-top: 10px;
background: #009CFF;
border-bottom: 4px solid #0188DE;
text-align: center;
}
.button a {
width: 180px;
height: 28px;
display: block;
font-size: 14px;
color: #fff;
}
.button a:hover {
background: #5BBFFF;
}
</style>
</head>
<body>
<div id="page"
style="border-style: dashed; border-color: #e4e4e4; line-height: 30px; background: url(sorry.png) no-repeat right;">
<h1>抱歉,发生了一个错误~</h1>
<h2>Sorry, the site now can not be accessed.</h2>
<font color="#666666">你请求访问的页面,我们正在努力修复!</font><br><br>
</div>
</body>
</html>

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Binary file not shown.

Binary file not shown.

@ -0,0 +1,241 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>mindSubscribe</display-name>
<welcome-file-list>
<welcome-file>indexAll.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>AdminServlet</display-name>
<servlet-name>AdminServlet</servlet-name>
<servlet-class>servlet.admin.AdminServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AdminServlet</servlet-name>
<url-pattern>/admin/base</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>AdminLoginServlet</display-name>
<servlet-name>AdminLoginServlet</servlet-name>
<servlet-class>servlet.admin.AdminLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AdminLoginServlet</servlet-name>
<url-pattern>/admin/login</url-pattern>
</servlet-mapping>
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>utils.filter.CharacterEncodingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>AdminLoginFilter</filter-name>
<filter-class>utils.filter.AdminLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AdminLoginFilter</filter-name>
<url-pattern>/admin/base</url-pattern>
<url-pattern>/doctor/DoctorServlet</url-pattern>
<url-pattern>/client/ClientServlet</url-pattern>
<url-pattern>/question/QuestionServlet</url-pattern>
</filter-mapping>
<servlet>
<description></description>
<display-name>DoctorServlet</display-name>
<servlet-name>DoctorServlet</servlet-name>
<servlet-class>servlet.doctor.DoctorServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DoctorServlet</servlet-name>
<url-pattern>/doctor/DoctorServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>ClientServlet</display-name>
<servlet-name>ClientServlet</servlet-name>
<servlet-class>servlet.client.ClientServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientServlet</servlet-name>
<url-pattern>/client/ClientServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>AnnouncmentServlet</display-name>
<servlet-name>AnnouncmentServlet</servlet-name>
<servlet-class>servlet.AnnouncmentServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AnnouncmentServlet</servlet-name>
<url-pattern>/announcment/AnnouncmentServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>MessageServlet</display-name>
<servlet-name>MessageServlet</servlet-name>
<servlet-class>servlet.MessageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MessageServlet</servlet-name>
<url-pattern>/message/MessageServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>DoctorLoginServlet</display-name>
<servlet-name>DoctorLoginServlet</servlet-name>
<servlet-class>servlet.doctor.DoctorLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DoctorLoginServlet</servlet-name>
<url-pattern>/doctor/DoctorLoginServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>ClientLoginServlet</display-name>
<servlet-name>ClientLoginServlet</servlet-name>
<servlet-class>servlet.client.ClientLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientLoginServlet</servlet-name>
<url-pattern>/client/ClientLoginServlet</url-pattern>
</servlet-mapping>
<filter>
<display-name>MessageSendFilter</display-name>
<filter-name>MessageSendFilter</filter-name>
<filter-class>utils.filter.MessageSendFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MessageSendFilter</filter-name>
<url-pattern>/message/MessageServlet</url-pattern>
</filter-mapping>
<servlet>
<description></description>
<display-name>MessageBoardServlet</display-name>
<servlet-name>MessageBoardServlet</servlet-name>
<servlet-class>servlet.MessageBoardServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MessageBoardServlet</servlet-name>
<url-pattern>/board/MessageBoardServlet</url-pattern>
</servlet-mapping>
<filter>
<display-name>MessageBoardFilter</display-name>
<filter-name>MessageBoardFilter</filter-name>
<filter-class>utils.filter.MessageBoardFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MessageBoardFilter</filter-name>
<url-pattern>/board/MessageBoardServlet</url-pattern>
</filter-mapping>
<servlet>
<description></description>
<display-name>QuestionServlet</display-name>
<servlet-name>QuestionServlet</servlet-name>
<servlet-class>servlet.QuestionServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>QuestionServlet</servlet-name>
<url-pattern>/question/QuestionServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>DoctorBaseServlet</display-name>
<servlet-name>DoctorBaseServlet</servlet-name>
<servlet-class>servlet.doctor.DoctorBaseServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DoctorBaseServlet</servlet-name>
<url-pattern>/doctor/base</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ClientBaseServlet</servlet-name>
<servlet-class>servlet.client.ClientBaseServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientBaseServlet</servlet-name>
<url-pattern>/client/base</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>ClientSubServlet</display-name>
<servlet-name>ClientSubServlet</servlet-name>
<servlet-class>servlet.client.ClientSubServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientSubServlet</servlet-name>
<url-pattern>/client/ClientSubServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>DoctorSubServlet</display-name>
<servlet-name>DoctorSubServlet</servlet-name>
<servlet-class>servlet.doctor.DoctorSubServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DoctorSubServlet</servlet-name>
<url-pattern>/doctor/DoctorSubServlet</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>DownloadFile</display-name>
<servlet-name>DownloadFile</servlet-name>
<servlet-class>servlet.DownloadFile</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DownloadFile</servlet-name>
<url-pattern>/DownloadFile</url-pattern>
</servlet-mapping>
<filter>
<display-name>DoctorLoginFilter</display-name>
<filter-name>DoctorLoginFilter</filter-name>
<filter-class>utils.filter.DoctorLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>DoctorLoginFilter</filter-name>
<url-pattern>/doctor/base</url-pattern>
<url-pattern>/doctor/DoctorSubServlet</url-pattern>
</filter-mapping>
<filter>
<display-name>ClientLoginFilter</display-name>
<filter-name>ClientLoginFilter</filter-name>
<filter-class>utils.filter.ClientLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ClientLoginFilter</filter-name>
<url-pattern>/client/base</url-pattern>
<url-pattern>/client/ClientSubServlet</url-pattern>
</filter-mapping>
<servlet>
<description></description>
<display-name>ClientRegisterServlet</display-name>
<servlet-name>ClientRegisterServlet</servlet-name>
<servlet-class>servlet.client.ClientRegisterServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ClientRegisterServlet</servlet-name>
<url-pattern>/client/reg</url-pattern>
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/web/404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/web/500.html</location>
</error-page>
<security-constraint>
<web-resource-collection>
<web-resource-name>JSPs</web-resource-name>
<url-pattern>/web/*</url-pattern><!-- 拒绝直接访问web文件夹下的所有页面 -->
</web-resource-collection>
<auth-constraint/>
</security-constraint>
</web-app>

@ -0,0 +1,231 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<title>个人信息管理</title>
</head>
<body>
<div class="clearfix">
<div class="admin_info_style">
<div class="admin_modify_style" id="Personal">
<div class="type_title">管理员信息 </div>
<div class="xinxi">
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">用户名: </label>
<div class="col-sm-9"><input type="text" name="name" id="website-title" value="${LOGIN_ADMIN.name }" class="col-xs-7 text_info" disabled="disabled">
&nbsp;&nbsp;&nbsp;<a href="javascript:ovid()" onclick="change_Password()" class="btn btn-warning btn-xs">修改密码</a></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">性别: </label>
<div class="col-sm-9">
<span class="sex">${LOGIN_ADMIN.sex eq 1 ? "男":"女"}</span>
<div class="add_sex">
<label><input name="sex" type="radio" class="ace" value="1" ${LOGIN_ADMIN.sex eq 1 ? 'checked="checked"':'' }><span class="lbl">男</span></label>&nbsp;&nbsp;
<label><input name="sex" type="radio" class="ace" value="0" ${LOGIN_ADMIN.sex eq 0 ? 'checked="checked"':'' }><span class="lbl">女</span></label>
</div>
</div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">年龄: </label>
<div class="col-sm-9"><input type="text" name="age" id="website-title" value="${LOGIN_ADMIN.age }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电话: </label>
<div class="col-sm-9"><input type="text" name="phone" id="website-title" value="${LOGIN_ADMIN.phone }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电子邮箱: </label>
<div class="col-sm-9"><input type="text" name="email" id="website-title" value="${LOGIN_ADMIN.email }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="Button_operation clearfix">
<button onclick="modify();" class="btn btn-danger radius" type="submit">修改信息</button>
<button onclick="save_info();" class="btn btn-success radius" type="button">保存修改</button>
</div>
</div>
</div>
</div>
</div>
<!--修改密码样式-->
<div class="change_Pass_style" id="change_Pass">
<ul class="xg_style">
<li><label class="label_name">原&nbsp;&nbsp;密&nbsp;码</label><input name="原密码" type="password" class="" id="password"></li>
<li><label class="label_name">新&nbsp;&nbsp;密&nbsp;码</label><input name="新密码" type="password" class="" id="Nes_pas"></li>
<li><label class="label_name">确认密码</label><input name="再次确认密码" type="password" class="" id="c_mew_pas"></li>
</ul>
<!-- <div class="center"> <button class="btn btn-primary" type="button" id="submit">确认修改</button></div>-->
</div>
</body>
</html>
<script>
//按钮点击事件
function modify(){
$('.text_info').attr("disabled", false);
$('.text_info').addClass("add");
$('#Personal').find('.xinxi').addClass("hover");
$('#Personal').find('.btn-success').css({'display':'block'});
};
function save_info(){
var num=0;
var str="";
$(".xinxi input[type$='text']").each(function(n){
if($(this).val()=="")
{
layer.alert(str+=""+$(this).attr("name")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
num++;
return false;
}
});
if(num>0){ return false;}
else{
//ajax请求
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/admin/base?m=updateBase",
data : {
"name" : $("input[name='name']").val(),
"sex" : $("input[name='sex']").val(),
"age" : $("input[name='age']").val(),
"phone" : $("input[name='phone']").val(),
"email" : $("input[name='email']").val(),
},
dataType : "json",
success : function(data) {
var i = 0;
if (data['result'] == true) {
i = 1;
}
layer.alert(data['msg'], {
title : '提示框',
icon : i,
});
}
});
$('#Personal').find('.xinxi').removeClass("hover");
$('#Personal').find('.text_info').removeClass("add").attr("disabled", true);
$('#Personal').find('.btn-success').css({'display':'none'});
}
};
//初始化宽度、高度
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
});
//修改密码
function change_Password() {
layer
.open({
type : 1,
title : '修改密码',
area : [ '300px', '300px' ],
shadeClose : true,
content : $('#change_Pass'),
btn : [ '确认修改' ],
yes : function(index, layero) {
if ($("#password").val() == "") {
layer.alert('原密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#Nes_pas").val() == "") {
layer.alert('新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#c_mew_pas").val() == "") {
layer.alert('确认新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if (!$("#c_mew_pas").val
|| $("#c_mew_pas").val() != $("#Nes_pas").val()) {
layer.alert('密码不一致!', {
title : '提示框',
icon : 0,
});
return false;
} else {
//修改密码
//ajax请求
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/admin/base?m=updatePwd",
data : {
"newPwd" : $("#Nes_pas").val(),
"password" : $("#password").val()
},
dataType : "json",
success : function(data) {
var i = 0;
if (data['result'] == true) {
i = 1;
}
layer.alert(data['msg'], {
title : '提示框',
icon : i,
});
layer.close(index);
}
});
}
}
});
}
</script>

@ -0,0 +1,638 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索公告</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/admin/AnnouncmentServlet?m=listAnnouncment"
method="post">
<li><label class="l_f">创建者</label><input name="creater"
type="text" class="text_add" placeholder="创建者"
value="${search.creater }" /></li>
<li><label class="l_f">标题</label><input name="title"
type="text" class="text_add" placeholder="公告标题"
value="${search.title }" /></li>
<li><label class="l_f">内容</label><input name="name"
type="text" class="text_add" placeholder="公告内容"
value="${search.context }" /></li>
<li><label class="l_f">创建时间:从</label><input
style="width: 120px;" id="startTime" name="startTime"
type="text" class="inline laydate-icon" placeholder="从何时创建"
value="${search.startTime }" /></li>
<li><label class="l_f">到</label><input style="width: 120px;"
id="endTime" name="endTime" type="text"
class="inline laydate-icon" placeholder="到何时"
value="${search.endTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<!---->
<div class="border clearfix">
<span class="l_f"> <a href="javascript:void()"
id="member_add" class="btn btn-warning"><i class="icon-plus"></i>添加公告</a>
</span> <span class="r_f">共:<b>${listSize }</b>条
</span>
</div>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width="100">创建者</th>
<th width="100">标题</th>
<th>内容</th>
<th width="100">创建时间</th>
<th width="70">状态</th>
<th width="250">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${announcementList }" var="announcement">
<tr>
<td>${announcement.admin.name }</td>
<td>${announcement.title }</td>
<td class="text-l">${announcement.context }</td>
<td>
<fmt:formatDate value="${announcement.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<c:if test="${announcement.isActive eq 1}">
<td class="td-status"><span
class="label label-success radius">显示</span></td>
<td class="td-manage"><a
onClick="member_stop(this,${announcement.announcementId })"
href="javascript:;" title="隐藏" class="btn btn-xs btn"><i
class="icon-ok bigger-120"></i></a> <a
style="text-decoration: none"
onClick="member_show(this,${announcement.announcementId })"
href="javascript:;" title="查看公告"
class="btn btn-xs btn-success">查看公告</a></td>
</c:if>
<c:if test="${announcement.isActive eq 0}">
<td class="td-status"><span
class="label label-defaunt radius">隐藏</span></td>
<td><a style="text-decoration: none"
onClick="member_start(this,${announcement.announcementId })"
href="javascript:;" title="显示" class="btn btn-xs btn-success"><i
class="icon-ok bigger-120"></i></a> <a
style="text-decoration: none"
onClick="member_show(this,${announcement.announcementId })"
href="javascript:;" title="查看公告"
class="btn btn-xs btn-success">查看公告</a></td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display: none">
<form id="announcementForm">
<ul class=" page-content">
<li><label class="label_name">公告标题:</label><span
class="add_name"><input name="title" type="text" id="title"
class="text_add" /></span>
<div class="prompt r_f"></div></li>
<li><label class="label_name">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态:</label><span
class="add_name"> <label><input name="isActive"
value="1" type="radio" id="isActive1" class="ace"><span
class="lbl">显示</span></label>&nbsp;&nbsp;&nbsp; <label><input
name="isActive" value="0" type="radio" id="isActive0" class="ace"><span
class="lbl">隐藏</span></label></span>
<div class="prompt r_f" id="isActiveDiv"></div></li>
<li><label class="label_name">公告内容:</label> <textarea
name="context" id="context" class="textarea"
onKeyUp="textarealength(this,1000)" cols="100" rows="10"></textarea>
<p class="textarea-numberbar">
<em class="textarea-length">0</em>/1000
</p>
<div class="prompt r_f" id="contextDiv"></div></li>
</ul>
</form>
</div>
<div id=announcementSee class="add_menber" style="display: none">
<h1 id="titleSee">标题</h1>
<hr />
<div id="contextSee">公告内容</div>
<hr />
<font style="color:green">
由:<span id="createrSee">创建者</span>于<span id="createTimeSee">日期</span> 创建
</font>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#announcementForm :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
/*用户-添加*/
$('#member_add').on('click', function(){
layer.open({
type: 1,
title: '创建公告&nbsp;&nbsp;<font style="color:red">*注意:公告一经发布不可修改*</font>',
maxmin: true,
shadeClose: false, //点击遮罩关闭层
area : ['800px' , '500px'],
content:$('#add_menber_style'),
btn:['创建','取消'],
yes:function(index,layero){
var msg = "";
if(isAble()){
//如果数据合法
//ajax上传
$.ajax({
url: '${pageContext.request.contextPath }/announcment/AnnouncmentServlet?m=addAnnouncement' ,
type: 'POST',
dataType:'json',
data: $("#announcementForm").serialize(),
cache: false,
success: function (data) {
if(data.isSuccess){
msg = "创建成功!";
//清空
$("#tilte,#context").val("");
$("#tilte,#context").text("");
$("#announcementForm").find("input:radio:checked").removeAttr('checked');
$('#add_menber_style').find("div[class='prompt r_f']").text("");
layer.alert(msg,
{title: '提示框',
icon:1, } ,
function(){
location.reload();
});
}else{
msg = data.msg;
layer.alert(msg,
{title: '提示框',
icon:1, } ,
);
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,
{title: '提示框',
icon:1, } ,
);
}
});
layer.close(index);
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
});
/*用户-查看
* 代表触发oclick的当前对象
*/
function member_show(an,id){
//先查到用户数据
selectedDoctor(id);
//显示查看界面
layer.open({
type: 1,
title: '查看公告',
maxmin: true,
shadeClose:false, //点击遮罩关闭层
area : ['500px' , '500px'],
content:$('#announcementSee'),
btn:['查看完毕'],
yes:function(index,layero){
layer.close(index);
}
});
}
/*公告隐藏*/
function member_stop(obj,id){
layer.confirm('确认要隐藏吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/announcment/AnnouncmentServlet?m=updateActive&action=0&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success " onClick="member_start(this,' + id +')" href="javascript:;" title="显示"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">隐藏</span>');
$(obj).remove();
layer.msg('已隐藏!',{icon: 5,time:1000});
}else{
layer.msg('隐藏失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/*公告显示*/
function member_start(obj,id){
layer.confirm('确认要显示吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/announcment/AnnouncmentServlet?m=updateActive&action=1&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn" onClick="member_stop(this,' + id +')" href="javascript:;" title="隐藏"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">显示</span>');
$(obj).remove();
layer.msg('已显示!',{icon: 6,time:1000});
}else{
layer.msg('显示失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/**
* 请求选中的内容
*/
function selectedDoctor(id){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/announcment/AnnouncmentServlet?m=selecteAnnouncement&id="+id,
dataType : "json",
success : function(data) {
//成功查到
if (data['isSuccess'] == true) {
//给表单赋值
//标题
$("#titleSee").text(data.dataList[0].title);
console.log("data.dataList[0].title-> " + data.dataList[0].title);
//内容
$("#contextSee").text(data.dataList[0].context);
//创建日期
$("#createTimeSee").text(data.dataList[0].createTime);
//创建者
$("#createrSee").text(data.dataList[0].admin.name);
/*
$("#announcementSee").each(function(){
if($(this).is("h1")){
console.log("data.dataList[0].title-> " + data.dataList[0].title);
$(this).val(data.dataList[0].title);
return;
}
if($(this).is("div")){
console.log("data.dataList[0].context-> " + data.dataList[0].context);
$(this).val(data.dataList[0].context);
return;
}
if($(this).is("#createTime")){
console.log("data.dataList[0].createTime-> " + data.dataList[0].createTime);
$(this).val(data.dataList[0].createTime);
return;
}
if($(this).is("#creater")){
console.log("data.dataList[0].admin.name-> " + data.dataList[0].admin.name);
$(this).val(data.dataList[0].admin.name);
return;
}
}); */
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
}
/**
* 对表单验证合法性
*/
function isAble(){
var isOk = true;
$("#announcementForm :input").each(function(){
//如果有一项不正确
if( !isAbleCheckOne($(this))){
isOk = false;
}
});
return isOk;
}
function isAbleCheckOne(thisElement){
var isOk = true;
//验证标题
if($(thisElement).is("#title")){
var len = $(thisElement).val().length;
if(len > 10 || len < 1){
var errorMsg = "标题为1-10个字符";
$(thisElement).parent().next("div").attr("style","color:red");
$(thisElement).parent().next("div").html(errorMsg);
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
$(thisElement).parent().next("div").html("通过");
}
}
//验证内容
if($(thisElement).is("#context")){
var len = $(thisElement).val().length;
if(len > 1000 || len < 1){
var errorMsg = "标题为1-1000个字符";
$("#contextDiv").attr("style","color:red");
$("#contextDiv").html(errorMsg);
isOk = false;
}else{
$("#contextDiv").attr("style","color:green");
$("#contextDiv").html("通过");
}
}
//验证公告状态(不为空即可)
if($(thisElement).is("input[name='isActive']")){
var msg = "";
if( $("input[name='isActive']:checked").val() == null){
msg = "请选择!";
$("#isActiveDiv").attr("style","color:red");
isOk = false;
}else{
$("#isActiveDiv").attr("style","color:green");
msg = "通过";
}
//填写内容
$("#isActiveDiv").html(msg);
}
return isOk;
}
laydate({
elem: '#startTime',
event: 'focus'
});
laydate({
elem: '#endTime',
event: 'focus'
});
</script>

@ -0,0 +1,300 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索来访者</div>
<ul class="search_content clearfix">
<form action="${pageContext.request.contextPath }/client/ClientServlet?m=listClient" method="post">
<li><label class="l_f">姓名</label><input style="width:70px;" name="name" type="text" class="text_add" placeholder="来访者的" value="${search.name }" /></li>
<li><label class="l_f">性&nbsp;&nbsp;别&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input name="sex" type="radio" class="ace" value="1" ${search.sex eq 1 ? "checked='checked'":"" }/><span class="lbl">男</span>
<input name="sex" type="radio" class="ace" value="0" ${search.sex eq 0 ? "checked='checked'":""}/><span class="lbl">女</span>
</li>
<li><label class="l_f">年龄:从</label><input style="width:70px;" name="startAge" type="number" step="1" min="0" class="text_add" placeholder="最小年龄" value="${search.startAge }" /></li>
<li><label class="l_f">到</label><input style="width:70px;" name="endAge" type="number" step="1" min="0" class="text_add" placeholder="最大年龄" value="${search.endAge }"/>止</li>
<li></li>
<li></li>
<li><label class="l_f">电话</label><input name="phone" type="text" class="text_add" placeholder="电话" value="${search.phone }"/></li>
<li><label class="l_f">邮箱</label><input name="email" type="text" class="text_add" placeholder="邮箱" value="${search.email }"/></li>
<li><label class="l_f">注册时间:从</label><input style="width:120px;" id="startRegionTime" name="startRegionTime" type="text" class="inline laydate-icon" placeholder="从何时起" value="${search.startRegionTime }" /></li>
<li><label class="l_f">到</label><input style="width:120px;" id="endRegionTime" name="endRegionTime" type="text" class="inline laydate-icon" placeholder="到何时" value="${search.endRegionTime }"/>止</li>
<li ><button type="submit" class="btn_search"><i class="icon-search"></i>查询</button></li>
</form>
</ul>
</div>
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
<th >登录账号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th>手机</th>
<th>邮箱</th>
<th >注册时间</th>
<th >状态</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientList }" var="client">
<tr>
<td><label><input type="checkbox" class="ace" value="${client.clientId }" checkedName="${client.name }"><span class="lbl"></span></label></td>
<td>${client.clientName }</td>
<td>${client.name }</td>
<td>${client.sex eq 1 ? "男":"女" }</td>
<td>${client.age }</td>
<td>${client.phone }</td>
<td>${client.email }</td>
<td class="text-l"><fmt:formatDate value="${client.regionTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td class="td-status">
<c:if test="${client.isActive eq 1}">
<span class="label label-success radius">已启用</span>
</td>
<td class="td-manage">
<a onClick="member_stop(this,${client.clientId })" href="javascript:;" title="停用" class="btn btn-xs btn"><i class="icon-ok bigger-120"></i></a>
<a style="text-decoration:none"
onClick="sendMessage(this,'${client.clientId }','${client.name }','client')"
href="javascript:;" title="发送消息"
class="btn btn-xs btn-success">发送消息</a>
</td>
</c:if>
<c:if test="${client.isActive eq 0}">
<span class="label label-defaunt radius">已停用</span>
<td class="td-manage">
<a style="text-decoration:none" onClick="member_start(this,${client.clientId })" href="javascript:;" title="启用" class="btn btn-xs btn-success"><i class="icon-ok bigger-120"></i></a>
<a style="text-decoration:none"
onClick="sendMessage(this,'${client.clientId }','${client.name }','client')"
href="javascript:;" title="发送消息"
class="btn btn-xs btn-success">发送消息</a>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
"bStateSave": true,//状态保存
"aoColumnDefs": [
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
] } );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
/*用户-停用*/
function member_stop(obj,id){
layer.confirm('确认要停用吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/client/ClientServlet?m=updateActive&action=0&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success " onClick="member_start(this,' + id +')" href="javascript:;" title="启用"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
$(obj).remove();
layer.msg('已停用!',{icon: 5,time:1000});
}else{
layer.msg('停用失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/*用户-启用*/
function member_start(obj,id){
layer.confirm('确认要启用吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/client/ClientServlet?m=updateActive&action=1&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn" onClick="member_stop(this,' + id +')" href="javascript:;" title="停用"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
$(obj).remove();
layer.msg('已启用!',{icon: 6,time:1000});
}else{
layer.msg('启用失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
laydate({
elem: '#startRegionTime',
event: 'focus'
});
laydate({
elem: '#endRegionTime',
event: 'focus'
});
</script>

@ -0,0 +1,975 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索咨询师</div>
<ul class="search_content clearfix">
<form action="${pageContext.request.contextPath }/doctor/DoctorServlet?m=listDoctor" method="post">
<li><label class="l_f">咨询师姓名</label><input name="name" type="text" class="text_add" placeholder="输入咨询师姓名" value="${search.name }" /></li>
<li><label class="l_f">性&nbsp;&nbsp;别&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input name="sex" type="radio" class="ace" value="1" ${search.sex eq 1 ? "checked='checked'":"" }/><span class="lbl">男</span>
<input name="sex" type="radio" class="ace" value="0" ${search.sex eq 0 ? "checked='checked'":""}/><span class="lbl">女</span>
</li>
<li><label class="l_f">年龄:从</label><input style="width:90px;" name="startAge" type="number" step="1" min="0" class="text_add" placeholder="最小年龄" value="${search.startAge }" /></li>
<li><label class="l_f">到</label><input style="width:90px;" name="endAge" type="number" step="1" min="0" class="text_add" placeholder="最大年龄" value="${search.endAge }"/>止</li>
<li><label class="l_f">电话</label><input name="phone" type="text" class="text_add" placeholder="电话" value="${search.phone }"/></li>
<li><label class="l_f">邮箱</label><input name="email" type="text" class="text_add" placeholder="邮箱" value="${search.email }"/></li>
<li ><button type="submit" class="btn_search"><i class="icon-search"></i>查询</button></li>
</form>
</ul>
</div>
<!---->
<div class="border clearfix">
<span class="l_f">
<a href="javascript:void()" id="member_add" class="btn btn-warning"><i class="icon-plus"></i>添加咨询师</a>
<a href="javascript:void()" id="deleteList"class="btn btn-danger"><i class="icon-trash"></i>批量删除</a>
</span>
<span class="r_f">共:<b>${listSize }</b>条</span>
</div>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
<th width="100">登录账号</th>
<th width="100">个人照片</th>
<th width="100">姓名</th>
<th width="80">性别</th>
<th width="80">年龄</th>
<th width="120">手机</th>
<th width="150">邮箱</th>
<th width="">一般咨询地点</th>
<th width="100">等级</th>
<th width="70">状态</th>
<th width="250">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${doctorList }" var="doctor">
<tr>
<td><label><input type="checkbox" class="ace" value="${doctor.doctorId }" checkedName="${doctor.name }"><span class="lbl"></span></label></td>
<td>${doctor.doctorName }</td>
<td>
<c:if test="${ empty doctor.img }">
<img src="${pageContext.request.contextPath }/mutualResource/images/image.png" width="77.7px" height="77.7px"/>
</c:if>
<c:if test="${not empty doctor.img }">
<img src="/mind_upload/${doctor.img}" width="77.7px" height="77.7px"/>
</c:if>
</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show(${doctor.doctorId })">${doctor.name }</u></td>
<td>${doctor.sex eq 1 ? "男":"女" }</td>
<td>${doctor.age }</td>
<td>${doctor.phone }</td>
<td>${doctor.email }</td>
<td class="text-l">${doctor.place }</td>
<td>${doctor.level }</td>
<td class="td-status">
<c:if test="${doctor.isActive eq 1}">
<span class="label label-success radius">已启用</span>
</td>
<td class="td-manage">
<a onClick="member_stop(this,${doctor.doctorId })" href="javascript:;" title="停用" class="btn btn-xs btn"><i class="icon-ok bigger-120"></i></a>
<a title="编辑" onclick="member_edit(${doctor.doctorId })" href="javascript:;" class="btn btn-xs btn-info" ><i class="icon-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,${doctor.doctorId })" class="btn btn-xs btn-warning" ><i class="icon-trash bigger-120"></i></a>
<a style="text-decoration:none"
onClick="sendMessage(this,'${doctor.doctorId }','${doctor.name }','doctor')"
href="javascript:;" title="发送消息"
class="btn btn-xs btn-success">发送消息</a>
</td>
</c:if>
<c:if test="${doctor.isActive eq 0}">
<span class="label label-defaunt radius">已停用</span>
<td class="td-manage">
<a style="text-decoration:none" onClick="member_start(this,${doctor.doctorId })" href="javascript:;" title="启用" class="btn btn-xs btn-success"><i class="icon-ok bigger-120"></i></a>
<a title="编辑" onclick="member_edit(${doctor.doctorId })" href="javascript:;" class="btn btn-xs btn-info" ><i class="icon-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,${doctor.doctorId })" class="btn btn-xs btn-warning" ><i class="icon-trash bigger-120"></i></a>
<a style="text-decoration:none" onClick="sendMessage(this,'${doctor.doctorId }','${doctor.name }','doctor')"
href="javascript:;" title="发送消息"
class="btn btn-xs btn-success">发送消息</a>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
<form action="" method="post" enctype="multipart/form-data" id="doctorEdit">
<ul class=" page-content">
<li><label class="label_name">姓名:</label><span class="add_name"><input name="name" type="text" id="name" class="text_add"/></span><div class="prompt r_f"></div></li>
<li><label class="label_name">年龄</label><span class="add_name"><input name="age" id="age" type="number" step="1" min="0" class="text_add"/></span><div class="prompt r_f"></div></li>
<li><label class="label_name">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</label><span class="add_name">
<label><input name="sex" type="radio" value="1" class="ace" id="sex1"><span class="lbl">男</span></label>&nbsp;&nbsp;&nbsp;
<label><input name="sex" type="radio" value="0" class="ace" id="sex0"><span class="lbl">女</span></label>&nbsp;&nbsp;&nbsp;
</span>
<div class="prompt r_f" id="sexDiv"></div>
</li>
<li><label class="label_name">邮箱:</label><span class="add_name"><input name="email" id="email" type="text" class="text_add" "/></span><div class="prompt r_f"></div></li>
<li><label class="label_name">电话:</label><span class="add_name"><input name="phone" id="phone" type="text" class="text_add" "/></span><div class="prompt r_f"></div></li>
<li><label class="label_name">等级:</label>
<span class="add_name">
<select name="level">
<option value="暂无" id="level0">暂无</option>
<option value="一级咨询师" id="level1" >一级咨询师</option>
<option value="二级级咨询师" id="level2">二级咨询师</option>
<option value="三级咨询师" id="level3">三级咨询师</option>
</select>
</span>
<div class="prompt r_f" id="levleDiv"></div>
</li>
<li ><label class="label_name">咨询地址:</label><span class="add_name"><input name="place" id="place" type="text" class="text_add" /></span> <div class="prompt r_f"></div> </li>
<li ><label class="label_name">擅长方向</label><span class="add_name"><input name="skill" id="skill" type="text" class="text_add" /></span> <div class="prompt r_f"></div> </li>
<!-- 图片 -->
<li >
<label class="label_name">个人图片</label>
<span class="add_name" id="img">
<input name="imgPath" type="hidden"/>
<img src="${pageContext.request.contextPath }/mutualResource/images/image.png" width="77.7" height="77.7" />
</span>
</li>
<li>
<input id="img" name="img" type="file" class="text_add" style=" width:350px"/>
</span>
</li>
<li class="adderss"></li>
<li><label class="label_name">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态:</label><span class="add_name">
<label><input name="isActive" value="1" type="radio" id="isActive1" class="ace"><span class="lbl">启用</span></label>&nbsp;&nbsp;&nbsp;
<label><input name="isActive" value="0" type="radio" id="isActive0" class="ace"><span class="lbl">停用</span></label></span><div class="prompt r_f" id="isActiveDiv"></div></li>
</ul>
</form>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
"bStateSave": true,//状态保存
"aoColumnDefs": [
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
] } );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#doctorEdit :input").each(function(){
var thisElement = $(this);
/* $(this).blur(function(){
//失去焦点处理函数
isAbleCheckOne(thisElement);
}); */
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
/*批量删除*/
$("#deleteList").on('click',function(){
var checkeds = "";
var checkedsName= "";
$("#sample-table").find("input[type='checkbox']:checked").each(function(){
checkeds += $(this).val() + ",";
checkedsName += $(this).attr("checkedName") + ",";
});
checkeds = checkeds.slice(0, checkeds.length - 1);
layer.confirm('即将删除:' + checkedsName + ' 请确认!',function(index){
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorServlet?m=deletDoctor&checkeds=" + checkeds,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
//删除页面上的
var objs = $("#sample-table").find("input[type='checkbox']:checked");
for(var o = 0 ; o < objs.length; o++){
$(objs[o]).parents("tr").remove();
}
layer.msg('已删除!',{icon:1,time:1000});
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
layer.close(index);
});
});
/*用户-添加*/
$('#member_add').on('click', function(){
//可编辑
toggleEdit(true);
//清空上次的
removeForm();
layer.open({
type: 1,
title: '添加用户',
maxmin: true,
shadeClose: false, //点击遮罩关闭层
area : ['800px' , ''],
content:$('#add_menber_style'),
btn:['提交','取消'],
yes:function(index,layero){
var msg = "";
if(isAbleD(true)){
//如果数据合法
//ajax上传
var formData = new FormData($(layero).find('form')[0]);
$.ajax({
url: '${pageContext.request.contextPath }/doctor/DoctorServlet?m=updateDoctor' ,
type: 'POST',
data: formData,
async: false,
cache: false,
contentType: false,
processData: false,
success: function (data) {
if(data.isSuccess){
msg = "添加成功初始密码为123456";
}else{
msg = data.msg;
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
}
});
layer.alert(msg,{
title: '提示框',
icon:1,
},function(){
window.location.reload();
});
layer.close(index);
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
});
/*用户-查看*/
function member_show(id){
//清空提示
$('#add_menber_style').find("div[class='prompt r_f']").text("");
//先查到用户数据
selectedDoctor(id);
//禁止编辑
toggleEdit(false);
//显示查看界面
layer.open({
type: 1,
title: '查看咨询师信息',
maxmin: true,
shadeClose:false, //点击遮罩关闭层
area : ['800px' , ''],
content:$('#add_menber_style'),
btn:['查看完毕'],
yes:function(index,layero){
layer.close(index);
}
});
}
/*用户-停用*/
function member_stop(obj,id){
layer.confirm('确认要停用吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorServlet?m=updateActive&action=0&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success " onClick="member_start(this,' + id +')" href="javascript:;" title="启用"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
$(obj).remove();
layer.msg('已停用!',{icon: 5,time:1000});
}else{
layer.msg('停用失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/*用户-启用*/
function member_start(obj,id){
layer.confirm('确认要启用吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorServlet?m=updateActive&action=1&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn" onClick="member_stop(this,' + id +')" href="javascript:;" title="停用"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
$(obj).remove();
layer.msg('已启用!',{icon: 6,time:1000});
}else{
layer.msg('启用失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/*用户-编辑*/
function member_edit(id){
//清空上次的
$('#add_menber_style').find("div[class='prompt r_f']").text("");
//先查到用户数据
selectedDoctor(id);
//让页面变成可编辑
toggleEdit(true);
//显示编辑界面
layer.open({
type: 1,
title: '修改用户信息',
maxmin: true,
shadeClose:false, //点击遮罩关闭层
area : ['800px' , ''],
content:$('#add_menber_style'),
btn:['提交','取消'],
yes:function(index,layero){
var msg = "";
if(!isAbleD(true)){
return;
}
//ajax上传
var formData = new FormData($(layero).find('form')[0]);
$.ajax({
url: "${pageContext.request.contextPath }/doctor/DoctorServlet?m=updateDoctor&id="+id ,
type: 'POST',
data: formData,
async: false,
cache: false,
contentType: false,
processData: false,
success: function (data) {
if(data.isSuccess){
msg = "修改成功!";
}else{
msg = data.msg;
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
}
});
layer.alert(msg,{
title: '提示框',
icon:1,
},function(){
window.location.reload();
});
layer.close(index);
}
});
}
/*用户-删除*/
function member_del(obj,id){
layer.confirm('确认要删除吗?',function(index){
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorServlet?m=deletDoctor&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
//删除页面上的
$(obj).parents("tr").remove();
layer.msg('已删除!',{icon:1,time:1000});
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
//关闭确认框
layer.close(index);
});
}
/**
* 请求选中的Doctor内容
*/
function selectedDoctor(id){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorServlet?m=selecteDoctor&id="+id,
dataType : "json",
success : function(data) {
//成功查到
if (data['isSuccess'] == true) {
addDate(data.dataList[0]);
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
}
/**
* 给Doctor表单赋值
*/
function addDate(doctor){
$("input[name='name']").val(doctor.name);
$("input[name='age']").val(doctor.age);
$("input[name='skill']").val(doctor.skill);
$("input:radio[name='sex'][value='" + doctor.sex + "']").attr('checked','checked');
$("input[name='email']").val(doctor.email);
$("input[name='phone']").val(doctor.phone);
if(doctor.level){
$("select[name='level']").find("option[value='" + doctor.level + "']").attr("selected",true);
}else{//如果没有填级别
$("select[name='level']").find("option[value='暂无']").attr("selected",true);
}
$("input[name='place']").val(doctor.place);
$("input:radio[name='isActive'][value='" + doctor.isActive + "']").attr('checked','checked');
var imgPath = $("input[name='imgPath']");
$(imgPath).val(doctor.img);
if(doctor.img){
$(imgPath).next().attr("src","/mind_upload/"+doctor.img);
}else{
$(imgPath).next().attr("src","${pageContext.request.contextPath }/admin/images/icon_error_s.png");
}
}
/**
* 对表单验证合法性
*/
function isAbleD(){
var isOk = true;
$("#doctorEdit :input").each(function(){
//如果有一项不正确
if( !isAbleCheckOne($(this))){
isOk = false;
}
});
return isOk;
}
function isAbleCheckOne(thisElement){
var isOk = true;
//验证姓名
if($(thisElement).is("input[name='name']")){
var nameVal = $.trim($(thisElement).val());
var regName = /[~#^$@%&!*()<>:;'"{}【】 ]/;
if(nameVal == "" || nameVal.length > 6 || regName.test(nameVal)){
var errorMsg = " 姓名非空且不多于6个字符不能包含特殊字符";
$(thisElement).parent().next("div").attr("style","color:red");
$(thisElement).parent().next("div").html(errorMsg);
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
$(thisElement).parent().next("div").html("通过");
}
}
//验证年龄
if($(thisElement).is("input[name='age']")){
var nameVal = $.trim($(thisElement).val());
var regName = /^((1[0-5])|[1-9])?\d$/;
var msg = "";
if(nameVal == "" || ! regName.test(nameVal)){
var msg = " 年龄为0-159不能包含特殊字符";
$(thisElement).parent().next("div").attr("style","color:red");
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
msg = "通过";
}
$(thisElement).parent().next("div").html(msg);
}
//验证性别 和 账号状态(不为空即可)
if($(thisElement).is("input[name='sex']")){
var msg = "";
if( $("input[name='sex']:checked").val() == null){
msg = "请选择!";
$("#sexDiv").attr("style","color:red");
isOk = false;
}else{
$("#sexDiv").attr("style","color:green");
msg = "通过";
}
//填写内容
$("#sexDiv").html(msg);
}
//验证账号状态(不为空即可)
if($(thisElement).is("input[name='isActive']")){
var msg = "";
if( $("input[name='isActive']:checked").val() == null){
msg = "请选择!";
$("#isActiveDiv").attr("style","color:red");
isOk = false;
}else{
$("#isActiveDiv").attr("style","color:green");
msg = "通过";
}
//填写内容
$("#isActiveDiv").html(msg);
}
//验证邮箱
if($(thisElement).is("input[name='email']")){
var nameVal = $.trim($(thisElement).val());
var regName = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;
var msg = "";
if(nameVal == "" || ! regName.test(nameVal)){
var msg = " 不能为空,且是一个合法的邮箱!";
$(thisElement).parent().next("div").attr("style","color:red");
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
msg = "通过";
}
$(thisElement).parent().next("div").html(msg);
}
//验证电话
if($(thisElement).is("input[name='phone']")){
var nameVal = $.trim($(thisElement).val());
var regName = /^1[3456789]\d{9}$/;
var msg = "";
if(nameVal == "" || ! regName.test(nameVal)){
var msg = " 不能为空且电话应为11位";
$(thisElement).parent().next("div").attr("style","color:red");
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
msg = "通过";
}
$(thisElement).parent().next("div").html(msg);
}
//验证咨询师等级(不为空即可)
if($(thisElement).is("select[name='level']")){
var msg = "";
//如果列表项,都没有选择
if($(thisElement).val() ==""){
msg = "请选择等级!";
$("#levleDiv").attr("style","color:red");
isOk = false;
}else{
$("#levleDiv").attr("style","color:green");
msg = "通过";
}
//填写内容
$("#levleDiv").html(msg);
}
//验证咨询地址擅长方向不为空200个字符
if($(thisElement).is("input[name='place']") || $(thisElement).is("input[name='skill']")){
var nameVal = $.trim($(thisElement).val());
var msg = "";
if(nameVal == "" || ! nameVal.length >200){
var msg = " 不能为空且不超过200个字符";
$(thisElement).parent().next("div").attr("style","color:red");
isOk = false;
}else{
$(thisElement).parent().next("div").attr("style","color:green");
msg = "通过";
}
$(thisElement).parent().next("div").html(msg);
}
//个人照片,不做要求
return isOk;
}
/**
* 切换是否可编辑
*/
function toggleEdit(isAble){
$("#doctorEdit :input").each(function(){
if(isAble=="1"){
//可编辑去掉disabled=
$(this).removeAttr("disabled");
}else{
$(this).attr("disabled","disabled");
}
});
}
/**
* 清空表单里的内容
*/
function removeForm(){
$("input:radio:checked").removeAttr('checked');
$("select[name='level']").find("option:selected").removeAttr('selected');
$("#name,#age,#email,#phone,#place,#skill,#img").val("");
$('#add_menber_style').find("div[class='prompt r_f']").text("");
}
/* laydate({
elem: '#start',
event: 'focus'
}); */
</script>

@ -0,0 +1,146 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="10;" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/dist/echarts.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<title>无标题文档</title>
</head>
<body>
<div class="page-content clearfix">
<div class="alert alert-block alert-success">
<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
<i class="icon-ok green"></i>欢迎使用<strong class="green">后台管理系统</strong>
</div>
<div class="state-overview clearfix">
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol terques">
<i class="icon-user"></i>
</div>
<div class="value">
<h1>${doctorNum }</h1>
<p>咨询师</p>
</div>
</section>
</div>
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol red">
<i class="icon-user"></i>
</div>
<div class="value">
<h1>${clientNum }</h1>
<p>来访者</p>
</div>
</section>
</div>
<div class="col-lg-3 col-sm-6">
<section class="panel">
<div class="symbol yellow">
<i class="icon-bar-chart"></i>
</div>
<div class="value">
<h1>${clientArchive }</h1>
<p>咨询</p>
</div>
</section>
</div>
</div>
<div class="clearfix">
<!-- <div class="t_Record">
<div id="main" style="height:300px; overflow:hidden; width:100%; overflow:auto" ></div>
</div> -->
<div class="news_style">
<div class="title_name">最新消息</div>
<c:if test="${empty messageList }">无</c:if>
<ul class="list">
<c:forEach items="${messageList }" var="message">
<li><i class="icon-bell red"></i><a title="查看消息" href="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage&reqeustUser=admin">
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
&nbsp;
来自${message.senderName}的消息 &nbsp;${message.context }
</a></li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新公告</div>
<ul class="list">
<c:forEach items="${announcmentList }" var="announcment">
<li><i class="icon-bell red"></i>
<a title="公告管理" href="${pageContext.request.contextPath }/admin/AnnouncmentServlet?m=listAnnouncment">
<b>${announcment.title}:</b>&nbsp;
${announcment.context}&nbsp;---${announcment.admin.name}&nbsp;
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a>
</li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新留言</div>
<ul class="list">
<c:forEach items="${newMessageBoardList }" var="messageBoard">
<li><i class="icon-bell red"></i><a title="留言管理" href="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard">
${messageBoard.context }&nbsp;&nbsp;
${messageBoard.client.name }
<fmt:formatDate value="${messageBoard.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a></li>
</c:forEach>
</ul>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".t_Record").width($(window).width()-320);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".t_Record").width($(window).width()-320);
});
});
</div>
</body>
</html>

@ -0,0 +1,371 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta charset="utf-8" />
<title>后台管理系统 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
</script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!--[if lte IE 8]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/excanvas.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-elements.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
$(function(){
var cid = $('#nav_list> li>.submenu');
cid.each(function(i){
$(this).attr('id',"Sort_link_"+i);
})
})
jQuery(document).ready(function(){
$.each($(".submenu"),function(){
var $aobjs=$(this).children("li");
var rowCount=$aobjs.size();
var divHeigth=$(this).height();
$aobjs.height(divHeigth/rowCount);
});
//初始化宽度、高度
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
});
$(".iframeurl").click(function(){
var cid = $(this).attr("name");
var cname = $(this).attr("title");
$("#iframe").attr("src",cid).ready();
$("#Bcrumbs").attr("href",cid).ready();
$(".Current_page a").attr('href',cid).ready();
$(".Current_page").attr('name',cid);
$(".Current_page").html(cname).css({"color":"#333333","cursor":"default"}).ready();
$("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display","none").ready();
$("#parentIfour").html(''). css("display","none").ready();
});
});
/*********************点击事件*********************/
$( document).ready(function(){
$('#nav_list').find('li.home').click(function(){
$('#nav_list').find('li.home').removeClass('active');
$(this).addClass('active');
});
//时间设置
function currentTime(){
var d=new Date(),str='';
str+=d.getFullYear()+'年';
str+=d.getMonth() + 1+'月';
str+=d.getDate()+'日';
str+=d.getHours()+'时';
str+=d.getMinutes()+'分';
str+= d.getSeconds()+'秒';
return str;
}
setInterval(function(){$('#time').html(currentTime)},1000);
//设置消息
setInterval(function(){
$.ajax({
url: '${pageContext.request.contextPath }/message/MessageServlet?m=newMessage&user=admin' ,
type: 'GET',
dataType:'json',
success: function (data) {
if(data.isSuccess){
if(data.dataList[0]==0){
$('#newMessage').attr("style","color:green");
}else{
$('#newMessage').attr("style","color:red");
}
$('#newMessage').html("<i class=\"icon-bell-alt\"></i>[" + data.dataList[0] + "]");
}else{
console.log(data.msg);
}
}
});
},3000);
$("#skin-colorpickerSkin-1").click();
$('#Exit_system').on('click', function(){
layer.confirm('是否确定退出系统?', {
btn: ['是','否'] ,//按钮
icon:2,
},
function(){
location.href="${pageContext.request.contextPath}/admin/login?m=logOutAdmin";
});
});
})
</script>
</head>
<body>
<div class="navbar navbar-default" id="navbar" style="background: #49565d;">
<script type="text/javascript">
try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>
<c:if test="${not empty LOGIN_ADMIN}">
<div class="navbar-container" id="navbar-container">
<div class="navbar-header pull-left">
<small>
<img src="${pageContext.request.contextPath }/mutualResource/images/logo.png">
</small>
</div><!-- /.navbar-header -->
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
<span class="time"><em id="time"></em></span><span class="user-info"><small>欢迎光临,</small>${LOGIN_ADMIN.name } </span>
</a>
<li><a href="javascript:void(0)" id="Exit_system"><i class="icon-off"></i>退出</a></li>
</ul>
</div>
</div>
</c:if>
<c:if test="${empty LOGIN_ADMIN}">
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a href="${pageContext.request.contextPath }/admin/AdminLoginServlet">
请登录
</a>
</li>
</ul>
</div>
</c:if>
</div>
<div class="main-container" id="main-container">
<script type="text/javascript">
try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>
<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
<span class="menu-text"></span>
</a>
<div class="sidebar" id="sidebar">
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
</script>
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="background-color: #758e9d;">
管理员
</div>
<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
<span class="btn btn-success"></span>
<span class="btn btn-info"></span>
<span class="btn btn-warning"></span>
<span class="btn btn-danger"></span>
</div>
</div>
<!-- #sidebar-shortcuts -->
<ul class="nav nav-list" id="nav_list">
<li class="home"><a href="javascript:void(0)" name="${pageContext.request.contextPath }/admin/base?m=adminIndex"
class="iframeurl" title=""><i class="icon-dashboard"></i><span
class="menu-text"> 系统首页 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/doctor/DoctorServlet?m=listDoctor" title="咨询师管理"
class="iframeurl"><i class="icon-user"></i><span
class="menu-text"> 咨询师管理 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/client/ClientServlet?m=listClient" title="来访者管理"
class="iframeurl"><i class="icon-user"></i><span
class="menu-text"> 来访者管理 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/question/QuestionServlet?m=listQuestion" title="问卷管理"
class="iframeurl"><i class="icon-list"></i><span
class="menu-text"> 问卷管理 </span></a></li>
<li>
<a href="#" class="dropdown-toggle"><i
class="icon-edit"></i><span class="menu-text"> 消息 </span>
<span id="newMessage" style="color:red"></span>
<b
class="arrow icon-angle-down"></b></a>
<ul class="submenu">
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage&reqeustUser=admin" title="消息查看" class="iframeurl"><i
class="icon-double-angle-right"></i>收信箱</a></li>
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listSendMessage&reqeustUser=admin" title="发送消息" class="iframeurl"><i
class="icon-double-angle-right"></i>发信箱</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/announcment/AnnouncmentServlet?m=listAnnouncment" title="公告管理"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 公告管理 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard" title="留言管理"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 留言管理 </span></a></li>
<li><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/admin/base?m=adminInfo" title="个人信息"
class="iframeurl"><i class="icon-group"></i><span
class="menu-text"> 个人信息 </span></a></li>
</ul>
<div class="sidebar-collapse" id="sidebar-collapse">
<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
</script>
</div>
<div class="main-content">
<script type="text/javascript">
try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
</script>
<div class="breadcrumbs" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="icon-home home-icon"></i>
<a href="${pageContext.request.contextPath }/admin/base?m=adminIndex">首页</a>
</li>
<li class="active"><span class="Current_page iframeurl"></span></li>
<li class="active" id="parentIframe"><span class="parentIframe iframeurl"></span></li>
<li class="active" id="parentIfour"><span class="parentIfour iframeurl"></span></li>
</ul>
</div>
<iframe id="iframe" style="border:0; width:100%; background-color:#FFF;"name="iframe" frameborder="0" src="${pageContext.request.contextPath }/admin/base?m=adminIndex"> </iframe>
<!-- /.page-content -->
</div><!-- /.main-content -->
<div class="ace-settings-container" id="ace-settings-container">
<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
<i class="icon-cog bigger-150"></i>
</div>
<div class="ace-settings-box" id="ace-settings-box">
<div>
<div class="pull-left">
<select id="skin-colorpicker" class="hide">
<option data-skin="default" value="#438EB9">#438EB9</option>
<option data-skin="skin-1" value="#222A2D" id="skin-colorpickerSkin-1">#222A2D</option>
<option data-skin="skin-2" value="#C6487E">#C6487E</option>
<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
</select>
</div>
<span>&nbsp; 选择皮肤</span>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
<label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
<label class="lbl" for="ace-settings-rtl">切换到左边</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
<label class="lbl" for="ace-settings-add-container">
切换窄屏
<b></b>
</label>
</div>
</div>
</div><!-- /#ace-settings-container -->
</div><!-- /.main-container-inner -->
</div>
<!--底部样式-->
<div class="footer_style" id="footerstyle">
<p class="l_f">心理咨询预约管理后台系统</p>
</div>
</body>
</html>

@ -0,0 +1,135 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<title>登陆</title>
</head>
<body class="login-layout" style="background-image: url(${pageContext.request.contextPath }/mutualResource/myImg/ye.png);background-size:cover;opacity:0.7">
<div class="loginbody">
<div class="login-container">
<div class="center">
<h1>
<i class="icon-leaf green"></i>
<span class="orange">心理咨询预约</span>
<span class="white">后台管理系统</span>
</h1>
</div>
<div class="space-6"></div>
<div class="position-relative">
<div id="login-box" class="login-box widget-box no-border visible" style="background-color: #2E3234;">
<div class="widget-body">
<div class="widget-main" style="background: #1d1818;">
<h4 class="header blue lighter bigger">
<i class="icon-coffee green"></i>
管理员登陆
</h4>
<div class="login_icon"><img src="${pageContext.request.contextPath }/mutualResource/images/login.png" /></div>
<form action="${pageContext.request.contextPath }/admin/login?m=saveLogin" method="post" >
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="text" class="form-control" placeholder="登录名" name="adminName" value="${param.adminName }"/>
<i class="icon-user"></i>
</span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="password" class="form-control" placeholder="密码" name="adminPwd">
<i class="icon-lock"></i>
</span>
</label>
<div class="space"></div>
<div class="clearfix">
<font style="color:red">${msg }</font><br/>
<button type="submit" class="width-35 pull-right btn btn-sm btn-primary" id="login_btn">
<i class="icon-key"></i>
登陆
</button>
</div>
<div class="space-4"></div>
</fieldset>
</form>
</div><!-- /widget-main -->
<div class="toolbar clearfix">
</div>
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div>
<!-- <div class="loginbm">版权所有 2016 <a href="">南京思美软件系统有限公司</a> </div><strong></strong>
--></body>
</html>
<script>
$(document).ready(function(){
$("#login_btn").on('click' ,function(){
var adminName = $("input[name=adminName]");
var adminPwd = $("input[name=adminPwd]");
if(adminName.val() == ""){
layer.alert(adminName.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}else if(adminPwd.val() == ""){
layer.alert(adminPwd.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}
$("#login_btn").submit();
});
});
</script>

@ -0,0 +1,287 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索留言</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard"
method="post">
<li><label class="l_f">创建者</label><input name="creater"
type="text" class="text_add" placeholder="创建者"
value="${search.creater }" /></li>
<li><label class="l_f">内容</label><input name="context"
type="text" class="text_add" placeholder="留言内容"
value="${search.context }" /></li>
<li><label class="l_f">创建时间:从</label><input
style="width: 120px;" id="startTime" name="startTime"
type="text" class="inline laydate-icon" placeholder="从何时创建"
value="${search.startTime }" /></li>
<li><label class="l_f">到</label><input style="width: 120px;"
id="endTime" name="endTime" type="text"
class="inline laydate-icon" placeholder="到何时"
value="${search.endTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width="100">留言创建者</th>
<th>内容</th>
<th width="180">创建时间</th>
<th width="70">状态</th>
<th width="100">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${messageBoardList }" var="messageBoard">
<tr>
<td>${messageBoard.client.name }</td>
<td class="text-l">${messageBoard.context }</td>
<td>
<fmt:formatDate value="${messageBoard.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<c:if test="${messageBoard.isActive eq 1}">
<td class="td-status"><span
class="label label-success radius">显示</span></td>
<td class="td-manage">
<a onClick="member_stop(this,${messageBoard.boardId })"
href="javascript:;" title="隐藏" class="btn btn-xs btn"><i
class="icon-ok bigger-120"></i></a>
</td>
</c:if>
<c:if test="${messageBoard.isActive eq 0}">
<td class="td-status"><span
class="label label-defaunt radius">隐藏</span></td>
<td><a style="text-decoration: none"
onClick="member_start(this,${messageBoard.boardId })"
href="javascript:;" title="显示" class="btn btn-xs btn-success"><i
class="icon-ok bigger-120"></i></a>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#announcementForm :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
/*留言隐藏*/
function member_stop(obj,id){
layer.confirm('确认要隐藏吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/board/MessageBoardServlet?m=updateActive&action=0&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success" onClick="member_start(this,' + id +')" href="javascript:;" title="显示"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">隐藏</span>');
$(obj).remove();
layer.msg('已隐藏!',{icon: 5,time:1000});
}else{
layer.msg('隐藏失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/*公告显示*/
function member_start(obj,id){
layer.confirm('确认要显示吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/board/MessageBoardServlet?m=updateActive&action=1&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn" onClick="member_stop(this,' + id +')" href="javascript:;" title="隐藏"><i class="icon-ok bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">显示</span>');
$(obj).remove();
layer.msg('已显示!',{icon: 6,time:1000});
}else{
layer.msg('显示失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
laydate({
elem: '#startTime',
event: 'focus'
});
laydate({
elem: '#endTime',
event: 'focus'
});
</script>

@ -0,0 +1,290 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索接受到的消息${search.receiver}</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage"
method="post">
<li><label class="l_f">发送人身份</label>
<select name="sender" value="${search.sender}">
<option value="">所有</option>
<option value="admin" ${search.sender eq "admin" ? "selected":""}>管理员</option>
<option value="doctor" ${search.sender eq "doctor" ? "selected":""}>咨询师</option>
<option value="client" ${search.sender eq "client" ? "selected":""}>来访者</option>
</select>
</li>
<li><label class="l_f">姓名</label><input name="senderName"
type="text" class="text_add" placeholder="发送者姓名"
value="${search.senderName }" /></li>
<li><label class="l_f">内容</label><input name="context"
type="text" class="text_add" placeholder="消息内容"
value="${search.context }" /></li>
<li>
<label class="l_f">是否已读</label>
<select name="isRead">
<option value="">全部</option>
<option value="1" ${search.isRead eq 1 ? "selected" : "" }>已读</option>
<option value="0" ${search.isRead eq 0 ? "selected" : "" }>未读</option>
</select>
</li>
<li><label class="l_f">发送时间:从</label><input
id="startSendTime" name="startSendTime"
type="text" class="inline laydate-icon" placeholder="从何时开始"
value="${search.startSendTime }" /></li>
<li><label class="l_f">到</label><input
id="endSendTime" name="endSendTime" type="text"
class="inline laydate-icon" placeholder="到何时止"
value="${search.endSendTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<!---->
<%-- <div class="border clearfix">
<span class="l_f"> <a href="javascript:void()"
id="member_add" class="btn btn-warning"><i class="icon-plus"></i>发送消息</a>
</span> <span class="r_f">共:<b>${listSize }</b>条
</span>
</div> --%>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width="100">消息发送人</th>
<th>内容</th>
<th width="110">发送时间</th>
<th width="70">是否已读</th>
<th width="250">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${messageList }" var="message">
<tr>
<td>${message.senderName}</td>
<td class="text-l">${message.context }</td>
<td>
<fmt:formatDate value="${message.sendTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<c:if test="${message.isRead eq 0}">
<td class="td-status"><span
class="label label-success radius">未读</span>
</td>
<td>
<a style="text-decoration:none"
onClick="toggleIsRead(this,'${message.messageId }')"
href="javascript:;" title="标为已读"
class="btn btn-xs btn-success">标为已读</a>
<a style="text-decoration:none"
onClick="sendMessage(this,'${message.senderId }','${message.senderName }','${message.sender }')"
href="javascript:;" title="回复"
class="btn btn-xs btn-success">回复</a>
</td>
</c:if>
<c:if test="${message.isRead eq 1}">
<td class="td-status"><span
class="label label-defaunt radius">已读</span></td>
<td>
<a style="text-decoration:none"
onClick="sendMessage(this,'${message.senderId }','${message.senderName }','${message.sender }')"
href="javascript:;" title="回复"
class="btn btn-xs btn-success">回复</a>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#announcementForm :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
/**
* 切换到已读
messageId 要切换的消息id
*/
function toggleIsRead(obj,messageId){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath }/message/MessageServlet?m=updateIsRead&messageId="+messageId,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已读</span>');
$(obj).remove();
}else{
layer.msg('失败,请刷新后重试! '+data['msg'],{icon: 0,time:1000});
}
}
});
}
laydate({
elem: '#startSendTime',
event: 'focus'
});
laydate({
elem: '#endSendTime',
event: 'focus'
});
</script>

@ -0,0 +1,259 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索发送过的消息${search.receiver}</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/message/MessageServlet?m=listSendMessage&reqeustUser=admin"
method="post">
<li><label class="l_f">接收人身份</label>
<select name="receiver" value="${search.receiver}">
<option value="">所有</option>
<option value="admin" ${search.receiver eq "admin" ? "selected":""}>管理员</option>
<option value="doctor" ${search.receiver eq "doctor" ? "selected":""}>咨询师</option>
<option value="client" ${search.receiver eq "client" ? "selected":""}>来访者</option>
</select>
</li>
<li><label class="l_f">姓名</label><input name="receiverName"
type="text" class="text_add" placeholder="接受者姓名"
value="${search.receiverName }" /></li>
<li><label class="l_f">内容</label><input name="context"
type="text" class="text_add" placeholder="消息内容"
value="${search.context }" /></li>
<li>
<label class="l_f">是否已读</label>
<select name="isRead">
<option value="">全部</option>
<option value="1" ${search.isRead eq 1 ? "selected" : "" }>已读</option>
<option value="0" ${search.isRead eq 0 ? "selected" : "" }>未读</option>
</select>
</li>
<li><label class="l_f">发送时间:从</label><input
id="startSendTime" name="startSendTime"
type="text" class="inline laydate-icon" placeholder="从何时开始"
value="${search.startSendTime }" /></li>
<li><label class="l_f">到</label><input
id="endSendTime" name="endSendTime" type="text"
class="inline laydate-icon" placeholder="到何时止"
value="${search.endSendTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<!---->
<%-- <div class="border clearfix">
<span class="l_f"> <a href="javascript:void()"
id="member_add" class="btn btn-warning"><i class="icon-plus"></i>发送消息</a>
</span> <span class="r_f">共:<b>${listSize }</b>条
</span>
</div> --%>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width="100">发送给</th>
<th>内容</th>
<th width="110">发送时间</th>
<th width="70">是否已读</th>
<th width="250">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${messageList }" var="message">
<tr>
<td>${message.receiverName}</td>
<td class="text-l">${message.context }</td>
<td>
<fmt:formatDate value="${message.sendTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<c:if test="${message.isRead eq 0}">
<td class="td-status"><span
class="label label-success radius">未读</span>
</td>
</c:if>
<c:if test="${message.isRead eq 1}">
<td class="td-status"><span
class="label label-defaunt radius">已读</span></td>
</c:if>
<td>
<a style="text-decoration:none"
onClick="sendMessage(this,'${message.receiverId }','${message.receiverName }','${message.receiver }')"
href="javascript:;" title="继续发送"
class="btn btn-xs btn-success">继续发送</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#announcementForm :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
laydate({
elem: '#startSendTime',
event: 'focus'
});
laydate({
elem: '#endSendTime',
event: 'focus'
});
</script>

@ -0,0 +1,625 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索题目</div>
<ul class="search_content clearfix">
<form action="${pageContext.request.contextPath }/question/QuestionServlet?m=listQuestion" method="post">
<li><label class="l_f">题目名</label><input name="context" type="text" class="text_add" placeholder="输入题目内容" value="${param.context }" /></li>
<li ><button type="submit" class="btn_search"><i class="icon-search"></i>查询</button></li>
</form>
</ul>
</div>
<!---->
<div class="border clearfix">
<span class="l_f">
<a href="javascript:void()" id="member_add" class="btn btn-warning"><i class="icon-plus"></i>添加题目</a>
<a href="javascript:void()" id="deleteList"class="btn btn-danger"><i class="icon-trash"></i>批量删除</a>
</span>
<span class="r_f">共:<b>${listSize }</b>条</span>
</div>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
<th >题号</th>
<th >题目内容</th>
<th >分值:是</th>
<th >分值:否</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${questionList }" var="question">
<tr>
<td><label><input type="checkbox" class="ace" value="${question.questionId }" checkedName="${question.questionNum }"><span class="lbl"></span></label></td>
<td>${question.questionNum }</td>
<td>${question.context }</td>
<td>${question.answerYesScore }</td>
<td>${question.answerNoScore }</td>
<td class="td-manage">
<a title="编辑" onclick="member_edit(${question.questionId })" href="javascript:;" class="btn btn-xs btn-info" ><i class="icon-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,${question.questionId })" class="btn btn-xs btn-warning" ><i class="icon-trash bigger-120"></i></a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
<form action="" method="post" id="questionEdit">
<ul class=" page-content">
<li ><label class="label_name">题号</label> <input
name="questionNum" id="questionNum" type="number" step="1" min="0" max="1000" style="width:60px;" />
</li>
<li><div class="prompt r_f" id="questionNumDiv"></div></li>
<li ><label class="label_name">"是"分值:</label> <span
class="add_name"> <input name="answerYesScore"
id="answerYesScore" type="number" step="1" min="0" style="width:60px;"
class="text_add" "/>
</span>
<div class="prompt r_f" id="answerYesScoreDiv"></div>
</li>
<li><label class="label_name">"否"分值:</label><span
class="add_name"><input name="answerNoScore" style="width:60px;"
id="answerNoScore" type="number" step="1" min="0" class="text_add" "/></span>
<div class="prompt r_f" id="answerNoScoreDiv"></div></li>
<li>题目内容<div class="prompt r_f" id="contextDiv"></div>
<textarea name="context" id="context" class="textarea"
onKeyUp="textarealength(this,100)" cols="30" rows="4"></textarea>
<p class="textarea-numberbar">
<em class="textarea-length">0</em>/100
</p>
</li>
</ul>
</form>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
"bStateSave": true,//状态保存
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#add_menber_style :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne(thisElement);
});
})
});
/*批量删除*/
$("#deleteList").on('click',function(){
var checkeds = "";
var checkedsName= "";
$("#sample-table").find("input[type='checkbox']:checked").each(function(){
checkeds += $(this).val() + ",";
checkedsName += $(this).attr("checkedName") + "题,";
});
checkeds = checkeds.slice(0, checkeds.length - 1);
layer.confirm('即将删除:' + checkedsName + ' 请确认!',function(index){
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/question/QuestionServlet?m=deletQuestion&checkeds=" + checkeds,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
//删除页面上的
var objs = $("#sample-table").find("input[type='checkbox']:checked");
for(var o = 0 ; o < objs.length; o++){
$(objs[o]).parents("tr").remove();
}
layer.msg('已删除!',{icon:1,time:1000});
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
layer.close(index);
});
});
/*用户-添加*/
$('#member_add').on('click', function(){
//清空上次的
removeForm();
layer.open({
type: 1,
title: '添加题目',
maxmin: true,
shadeClose: false, //点击遮罩关闭层
area : ['500px' , '400px'],
content:$('#add_menber_style'),
btn:['提交','取消'],
yes:function(index,layero){
var msg = "";
if(isAble()){
//如果数据合法
//ajax上传$("#SendMessageForm").serialize()
var formData = $($(layero).find('form')[0]).serialize();
$.ajax({
url: '${pageContext.request.contextPath }/question/QuestionServlet?m=updateQuestion' ,
type: 'POST',
data: formData,
dataType : "json",
success: function (data) {
layer.alert(data.msg,{
title: '提示框',
icon:1,
},function(){
window.location.reload();
});
layer.close(index);
},
});
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
});
/*题目-编辑*/
function member_edit(id){
//清空上次的
removeForm();
//先查到用户数据
selectedDoctor(id);
//显示编辑界面
layer.open({
type: 1,
title: '修改题目',
maxmin: true,
shadeClose:false, //点击遮罩关闭层
area : ['500px' , '400px'],
content:$('#add_menber_style'),
btn:['修改','取消'],
yes:function(index,layero){
var msg = "";
if(isAble()){
//如果数据合法
var msg = "";
//ajax上传
var formData = $($(layero).find('form')[0]).serialize();
$.ajax({
url: "${pageContext.request.contextPath }/question/QuestionServlet?m=updateQuestion&id="+id ,
type: 'POST',
data: formData,
cache: false,
dataType : "json",
success: function (data) {
layer.alert(data.msg,{
title: '提示框',
icon:1,
},function(){
window.location.reload();
});
layer.close(index);
},
});
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
}
/*题目-删除*/
function member_del(obj,id){
layer.confirm('确认要删除吗?',function(index){
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/question/QuestionServlet?m=deletQuestion&id="+id,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
//删除页面上的
$(obj).parents("tr").remove();
layer.msg('已删除!',{icon:1,time:1000});
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
//关闭确认框
layer.close(index);
});
}
/**
* 请求选中的Question内容
*/
function selectedDoctor(id){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/question/QuestionServlet?m=selecteQuestion&id="+id,
dataType : "json",
success : function(data) {
//成功查到
if (data['isSuccess'] == true) {
addDate(data.dataList[0]);
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
}
/**
* 给Question表单赋值
*/
function addDate(question){
$("#questionNum").val(question.questionNum);
$("#answerYesScore").val(question.answerYesScore);
$("#answerNoScore").val(question.answerNoScore);
$("#context").val(question.context);
}
/**
* 对表单验证合法性
*/
function isAble(){
var isOk = true;
$("#add_menber_style :input").each(function(){
//如果有一项不正确
if( !isAbleCheckOne($(this))){
isOk = false;
}
});
return isOk;
}
function isAbleCheckOne(thisElement){
var isOk = true;
//验证题目内容
if($(thisElement).is("#context")){
var nameVal = $.trim($(thisElement).val());
var msg = "";
if(nameVal == "" || nameVal.length > 100){
msg = " 题目内容为1-100个字符";
$("#contextDiv").attr("style","color:red");
isOk = false;
}else{
$("#contextDiv").attr("style","color:green");
msg = "通过";
}
$("#contextDiv").html(msg);
}
//验证题号
if($(thisElement).is("#questionNum")){
var nameVal = $.trim($(thisElement).val());
var msg = "";
if(nameVal < 1 || nameVal > 100){
var msg = " 题号为1-100的数字";
$("#questionNumDiv").attr("style","color:red");
isOk = false;
}else{
$("#questionNumDiv").attr("style","color:green");
msg = "通过";
}
$("#questionNumDiv").html(msg);
}
//验证"是"分值
if($(thisElement).is("#answerYesScore")){
var nameVal = $.trim($(thisElement).val());
var msg = "";
if(nameVal == ""){
var msg = "分值不能为空";
$("#answerYesScoreDiv").attr("style","color:red");
isOk = false;
}else{
$("#answerYesScoreDiv").attr("style","color:green");
msg = "通过";
}
$("#answerYesScoreDiv").html(msg);
}
//验证"否"分值
if($(thisElement).is("#answerNoScore")){
var nameVal = $.trim($(thisElement).val());
var msg = "";
if(nameVal == ""){
var msg = "分值不能为空";
$("#answerNoScoreDiv").attr("style","color:red");
isOk = false;
}else{
$("#answerNoScoreDiv").attr("style","color:green");
msg = "通过";
}
$("#answerNoScoreDiv").html(msg);
}
return isOk;
}
/**
* 清空表单里的内容
*/
function removeForm(){
$("#questionNum,#answerYesScore,#answerNoScore,#context").val("");
$('#add_menber_style').find("div[class='prompt r_f']").text("");
}
/* laydate({
elem: '#start',
event: 'focus'
}); */
</script>

@ -0,0 +1,203 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索公告</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/admin/AnnouncmentServlet?m=listAnnouncment"
method="post">
<li><label class="l_f">创建者</label><input name="creater"
type="text" class="text_add" placeholder="创建者"
value="${search.creater }" /></li>
<li><label class="l_f">标题</label><input name="title"
type="text" class="text_add" placeholder="公告标题"
value="${search.title }" /></li>
<li><label class="l_f">内容</label><input name="name"
type="text" class="text_add" placeholder="公告内容"
value="${search.context }" /></li>
<li><label class="l_f">创建时间:从</label><input
style="width: 120px;" id="startTime" name="startTime"
type="text" class="inline laydate-icon" placeholder="从何时创建"
value="${search.startTime }" /></li>
<li><label class="l_f">到</label><input style="width: 120px;"
id="endTime" name="endTime" type="text"
class="inline laydate-icon" placeholder="到何时"
value="${search.endTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width=>创建者</th>
<th width=>标题</th>
<th>内容</th>
<th width=>创建时间</th>
</tr>
</thead>
<tbody>
<c:forEach items="${announcementList }" var="announcement">
<c:if test="${announcement.isActive eq 1 }">
<tr>
<td>${announcement.admin.name }</td>
<td>${announcement.title }</td>
<td class="text-l">${announcement.context }</td>
<td>
<fmt:formatDate value="${announcement.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
laydate({
elem: '#startTime',
event: 'focus'
});
laydate({
elem: '#endTime',
event: 'focus'
});
</script>

@ -0,0 +1,294 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th >咨询师</th>
<th>申请时间</th>
<th>咨询开始时间</th>
<th>咨询结束时间</th>
<th>咨询记录文档</th>
<th>回访评价</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientArchiveList }" var="clientArchive">
<tr>
<td>${clientArchive.doctor.name }</td>
<td><fmt:formatDate value="${clientArchive.applyTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td><fmt:formatDate value="${clientArchive.startDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td><fmt:formatDate value="${clientArchive.endDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td>
<c:if test="${not empty clientArchive.docPath}">
<u style="cursor:pointer" class="text-primary" onclick="javascript:window.location='${pageContext.request.contextPath}/DownloadFile?m=downloadSubDoc&subDocPath=${clientArchive.docPath }&filename=${clientArchive.doctor.name}_${LOGIN_CLIENT.name }'">${clientArchive.doctor.name}_${LOGIN_CLIENT.name }</u>
</c:if>
<c:if test="${empty clientArchive.docPath }">
未上传,请联系咨询师!
</c:if>
</td>
<td>
${clientArchive.secondQuestionContext}
</td>
<td class="td-manage">
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="sendMessage(this,'${clientArchive.doctor.doctorId}','${clientArchive.doctor.name}','doctor')">联系咨询师</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="evaluateSub(${clientArchive.archivesId})">评价一下</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
<!--评价的弹出层 -->
<div class="add_menber" id="evaluateSubDiv" style="display:none">
<form id="evaluateSubForm">
<ul class=" page-content">
<li><label class="label_name">评价内容:</label> <textarea
name="context" id="context" class="textarea"
onKeyUp="textarealength(this,200)" cols="50" rows="8"></textarea>
<p class="textarea-numberbar">
<em class="textarea-length">0</em>/200
</p>
<div style="color:red" class="prompt r_f" id="evaluateSubFormDiv"></div></li>
</ul>
</form>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
function evaluateSub(archivesId){
layer.open({
type: 1,
title: '对本次咨询评价',
maxmin: true,
shadeClose: false, //点击遮罩关闭层
area : ['430px' , '390px'],
content:$('#evaluateSubDiv'),
btn:['确认','取消'],
yes:function(index,layero){
var msg = "";
if(isAble()){
//如果数据合法
//ajax上传
$.ajax({
url: '${pageContext.request.contextPath }/client/ClientSubServlet?m=evaluateSub&archivesId='+archivesId ,
type: 'POST',
dataType:'json',
data: $("#evaluateSubForm").serialize(),
cache: false,
success: function (data) {
if(data.isSuccess){
msg = "评价成功!";
$('#evaluateSubFormDiv').val("");
layer.alert(msg,
{title: '提示框',
icon:1, } ,
function(){
location.reload();
});
}else{
msg = data.msg;
layer.alert(msg,
{title: '提示框',
icon:1, }
);
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,
{title: '提示框',
icon:1, }
);
}
});
layer.close(index);
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
}
/**
* 对表单验证合法性
*/
function isAble(){
var isOk = true;
var text = $.trim($("#evaluateSubForm").find("#context").val());
if(text.length > 200 || text ==""){
isOk = false;
$("#evaluateSubFormDiv").html("消息长度为1-200字符");
}
return isOk;
}
</script>

@ -0,0 +1,230 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<title>个人信息管理</title>
</head>
<body>
<div class="clearfix">
<div class="admin_info_style">
<div class="admin_modify_style" id="Personal">
<div class="type_title">我的信息 </div>
<div class="xinxi">
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">用户名: </label>
<div class="col-sm-9"><input type="text" name="name" id="website-title" value="${LOGIN_CLIENT.name }" class="col-xs-7 text_info" disabled="disabled">
&nbsp;&nbsp;&nbsp;<a href="javascript:ovid()" onclick="change_Password()" class="btn btn-warning btn-xs">修改密码</a></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">性别: </label>
<div class="col-sm-9">
<span class="sex">${LOGIN_CLIENT.sex eq 1 ? "男":"女"}</span>
<div class="add_sex">
<label><input name="sex" type="radio" class="ace" value="1" ${LOGIN_CLIENT.sex eq 1 ? 'checked="checked"':'' }><span class="lbl">男</span></label>&nbsp;&nbsp;
<label><input name="sex" type="radio" class="ace" value="0" ${LOGIN_CLIENT.sex eq 0 ? 'checked="checked"':'' }><span class="lbl">女</span></label>
</div>
</div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">年龄: </label>
<div class="col-sm-9"><input type="text" name="age" id="website-title" value="${LOGIN_CLIENT.age }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电话: </label>
<div class="col-sm-9"><input type="text" name="phone" id="website-title" value="${LOGIN_CLIENT.phone }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电子邮箱: </label>
<div class="col-sm-9"><input type="text" name="email" id="website-title" value="${LOGIN_CLIENT.email }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="Button_operation clearfix">
<button onclick="modify();" class="btn btn-danger radius" type="submit">修改信息</button>
<button onclick="save_info();" class="btn btn-success radius" type="button">保存修改</button>
</div>
</div>
</div>
</div>
</div>
<!--修改密码样式-->
<div class="change_Pass_style" id="change_Pass">
<ul class="xg_style">
<li><label class="label_name">原&nbsp;&nbsp;密&nbsp;码</label><input name="原密码" type="password" class="" id="password"></li>
<li><label class="label_name">新&nbsp;&nbsp;密&nbsp;码</label><input name="新密码" type="password" class="" id="Nes_pas"></li>
<li><label class="label_name">确认密码</label><input name="再次确认密码" type="password" class="" id="c_mew_pas"></li>
</ul>
<!-- <div class="center"> <button class="btn btn-primary" type="button" id="submit">确认修改</button></div>-->
</div>
</body>
</html>
<script>
//按钮点击事件
function modify(){
$('.text_info').attr("disabled", false);
$('.text_info').addClass("add");
$('#Personal').find('.xinxi').addClass("hover");
$('#Personal').find('.btn-success').css({'display':'block'});
};
function save_info(){
var num=0;
var str="";
$(".xinxi input[type$='text']").each(function(n){
if($(this).val()=="")
{
layer.alert(str+=""+$(this).attr("name")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
num++;
return false;
}
});
if(num>0){ return false;}
else{
//ajax请求
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/client/base?m=updateBase",
data : {
"name" : $("input[name='name']").val(),
"sex" : $("input[name='sex']").val(),
"age" : $("input[name='age']").val(),
"phone" : $("input[name='phone']").val(),
"email" : $("input[name='email']").val(),
},
dataType : "json",
success : function(data) {
var i = 0;
if (data['result'] == true) {
i = 1;
}
layer.alert(data['msg'], {
title : '提示框',
icon : i,
});
}
});
$('#Personal').find('.xinxi').removeClass("hover");
$('#Personal').find('.text_info').removeClass("add").attr("disabled", true);
$('#Personal').find('.btn-success').css({'display':'none'});
}
};
//初始化宽度、高度
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
});
//修改密码
function change_Password() {
layer
.open({
type : 1,
title : '修改密码',
area : [ '300px', '300px' ],
shadeClose : true,
content : $('#change_Pass'),
btn : [ '确认修改' ],
yes : function(index, layero) {
if ($("#password").val() == "") {
layer.alert('原密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#Nes_pas").val() == "") {
layer.alert('新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#c_mew_pas").val() == "") {
layer.alert('确认新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if (!$("#c_mew_pas").val
|| $("#c_mew_pas").val() != $("#Nes_pas").val()) {
layer.alert('密码不一致!', {
title : '提示框',
icon : 0,
});
return false;
} else {
//修改密码
//ajax请求
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/client/base?m=updatePwd",
data : {
"newPwd" : $("#Nes_pas").val(),
"password" : $("#password").val()
},
dataType : "json",
success : function(data) {
var i = 0;
if (data['result'] == true) {
i = 1;
}
layer.alert(data['msg'], {
title : '提示框',
icon : i,
});
layer.close(index);
}
});
}
}
});
}
</script>

@ -0,0 +1,108 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="10;" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/dist/echarts.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<title>无标题文档</title>
</head>
<body>
<div class="page-content clearfix">
<div class="alert alert-block alert-success">
<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
<i class="icon-ok green"></i>欢迎使用<strong class="green">心理咨询预约系统</strong>
</div>
<!-- <div class="t_Record">
<div id="main" style="height:300px; overflow:hidden; width:100%; overflow:auto" ></div>
</div> -->
<div class="news_style">
<div class="title_name">最新消息</div>
<c:if test="${empty messageList }">无</c:if>
<ul class="list">
<c:forEach items="${messageList }" var="message">
<li><i class="icon-bell red"></i><a title="查看消息" href="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage">
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
&nbsp;
来自${message.senderName}的消息 &nbsp;${message.context }
</a></li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新公告</div>
<ul class="list">
<c:forEach items="${announcmentList }" var="announcment">
<li><i class="icon-bell red"></i>
<a title="公告管理" href="${pageContext.request.contextPath }/announcment/AnnouncmentServlet?m=listAnnouncment">
<b>${announcment.title}:</b>&nbsp;
${announcment.context}&nbsp;---${announcment.admin.name}&nbsp;
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a>
</li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新留言</div>
<ul class="list">
<c:forEach items="${newMessageBoardList }" var="messageBoard">
<li><i class="icon-bell red"></i><a title="留言管理" href="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard">
${messageBoard.context }&nbsp;&nbsp;
${messageBoard.client.name }
<fmt:formatDate value="${messageBoard.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a></li>
</c:forEach>
</ul>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".t_Record").width($(window).width()-320);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".t_Record").width($(window).width()-320);
});
});
</div>
</body>
</html>

@ -0,0 +1,373 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta charset="utf-8" />
<title>来访者端 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
</script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!--[if lte IE 8]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/excanvas.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-elements.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
$(function(){
var cid = $('#nav_list> li>.submenu');
cid.each(function(i){
$(this).attr('id',"Sort_link_"+i);
})
})
jQuery(document).ready(function(){
$.each($(".submenu"),function(){
var $aobjs=$(this).children("li");
var rowCount=$aobjs.size();
var divHeigth=$(this).height();
$aobjs.height(divHeigth/rowCount);
});
//初始化宽度、高度
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
});
$(".iframeurl").click(function(){
var cid = $(this).attr("name");
var cname = $(this).attr("title");
$("#iframe").attr("src",cid).ready();
$("#Bcrumbs").attr("href",cid).ready();
$(".Current_page a").attr('href',cid).ready();
$(".Current_page").attr('name',cid);
$(".Current_page").html(cname).css({"color":"#333333","cursor":"default"}).ready();
$("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display","none").ready();
$("#parentIfour").html(''). css("display","none").ready();
});
});
/*********************点击事件*********************/
$( document).ready(function(){
$('#nav_list').find('li.home').click(function(){
$('#nav_list').find('li.home').removeClass('active');
$(this).addClass('active');
});
//时间设置
function currentTime(){
var d=new Date(),str='';
str+=d.getFullYear()+'年';
str+=d.getMonth() + 1+'月';
str+=d.getDate()+'日';
str+=d.getHours()+'时';
str+=d.getMinutes()+'分';
str+= d.getSeconds()+'秒';
return str;
}
setInterval(function(){$('#time').html(currentTime)},1000);
//设置消息
setInterval(function(){
$.ajax({
url: '${pageContext.request.contextPath }/message/MessageServlet?m=newMessage&user=client' ,
type: 'GET',
dataType:'json',
success: function (data) {
if(data.isSuccess){
if(data.dataList[0]==0){
$('#newMessage').attr("style","color:green");
}else{
$('#newMessage').attr("style","color:red");
}
$('#newMessage').html("<i class=\"icon-bell-alt\"></i>[" + data.dataList[0] + "]");
}else{
console.log(data.msg);
}
}
});
},3000);
$('#Exit_system').on('click', function(){
layer.confirm('是否确定退出系统?',
function(){
location.href="${pageContext.request.contextPath}/client/ClientLoginServlet?m=logOutClient";
});
});
})
</script>
</head>
<body>
<div class="navbar navbar-default" id="navbar" style="background-image: url(${pageContext.request.contextPath }/mutualResource/myImg/background.png);background-size:cover;background-color: #eff5f8;">
<script type="text/javascript">
try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>
<div class="navbar-container" id="navbar-container">
<c:if test="${not empty LOGIN_CLIENT}">
<div class="navbar-header pull-left">
<small>
<img src="${pageContext.request.contextPath }/mutualResource/myImg/clientTop.png" height="65px">
</small>
</div><!-- /.navbar-header -->
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
<span class="time"><em id="time"></em></span><span class="user-info"><small>欢迎光临,</small>${LOGIN_CLIENT.name } </span>
</a>
<li><a href="javascript:void(0)" id="Exit_system" class="write" ><b>退出</b></a></li>
</ul>
</div>
</c:if>
<c:if test="${empty LOGIN_CLIENT }">
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a href="${pageContext.request.contextPath }/client/ClientLoginServlet">
请登录
</a>
</li>
</ul>
</div>
</c:if>
</div>
</div>
<div class="main-container" id="main-container">
<script type="text/javascript">
try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>
<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
<span class="menu-text"></span>
</a>
<div class="sidebar" id="sidebar">
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
</script>
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
来访者
</div>
<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
<span class="btn btn-success"></span>
<span class="btn btn-info"></span>
<span class="btn btn-warning"></span>
<span class="btn btn-danger"></span>
</div>
</div>
<!-- #sidebar-shortcuts -->
<ul class="nav nav-list" id="nav_list">
<li class="home"><a href="javascript:void(0)" name="${pageContext.request.contextPath }/client/base?m=clientIndex"
class="iframeurl" title=""><i class="icon-dashboard"></i><span
class="menu-text"> 首页 </span></a></li>
<li>
<a href="" class="dropdown-toggle"><i
class="icon-edit"></i><span class="menu-text"> 预约 </span><b
class="arrow icon-angle-down"></b></a>
<ul class="submenu">
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/client/ClientSubServlet?m=subDoctorList" title="可预约咨询师" class="iframeurl"><i
class="icon-double-angle-right"></i>可预约咨询师</a></li>
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/client/ClientSubServlet?m=subClientList" title="我的预约" class="iframeurl"><i
class="icon-double-angle-right"></i>我的预约</a></li>
</ul>
</li>
<li class="home"><a href="javascript:void(0)" name="${pageContext.request.contextPath }/client/ClientSubServlet?m=clientConsult"
class="iframeurl" title=""><i class="icon-dashboard"></i><span
class="menu-text"> 我的咨询 </span></a></li>
<li>
<a href="#" class="dropdown-toggle"><i
class="icon-edit"></i><span class="menu-text" id="newMessge"> 消息 </span>
<span id="newMessage" style="color:red"></span>
<b
class="arrow icon-angle-down"></b></a>
<ul class="submenu">
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage&reqeustUser" title="消息查看" class="iframeurl"><i
class="icon-double-angle-right"></i>收信箱</a></li>
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listSendMessage&reqeustUser" title="发送消息" class="iframeurl"><i
class="icon-double-angle-right"></i>发信箱</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard" title="留言"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 留言 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/announcment/AnnouncmentServlet?m=listAnnouncment" title="公告"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 公告 </span></a></li>
<li><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/client/base?m=clientInfo" title="个人信息"
class="iframeurl"><i class="icon-group"></i><span
class="menu-text"> 个人信息 </span></a></li>
</ul>
<div class="sidebar-collapse" id="sidebar-collapse">
<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
</script>
</div>
<div class="main-content">
<script type="text/javascript">
try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
</script>
<div class="breadcrumbs" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="icon-home home-icon"></i>
<a href="${pageContext.request.contextPath }/client/base?m=clientIndex">首页</a>
</li>
<li class="active"><span class="Current_page iframeurl"></span></li>
<li class="active" id="parentIframe"><span class="parentIframe iframeurl"></span></li>
<li class="active" id="parentIfour"><span class="parentIfour iframeurl"></span></li>
</ul>
</div>
<iframe id="iframe" style="border:0; width:100%; background-color:#FFF;"name="iframe" frameborder="0" src="${pageContext.request.contextPath }/client/base?m=clientIndex"> </iframe>
<!-- /.page-content -->
</div><!-- /.main-content -->
<div class="ace-settings-container" id="ace-settings-container">
<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
<i class="icon-cog bigger-150"></i>
</div>
<div class="ace-settings-box" id="ace-settings-box">
<div>
<div class="pull-left">
<select id="skin-colorpicker" class="hide">
<option data-skin="default" value="#438EB9">#438EB9</option>
<option data-skin="skin-1" value="#222A2D">#222A2D</option>
<option data-skin="skin-2" value="#C6487E">#C6487E</option>
<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
</select>
</div>
<span>&nbsp; 选择皮肤</span>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
<label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
<label class="lbl" for="ace-settings-rtl">切换到左边</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
<label class="lbl" for="ace-settings-add-container">
切换窄屏
<b></b>
</label>
</div>
</div>
</div><!-- /#ace-settings-container -->
</div><!-- /.main-container-inner -->
</div>
<!--底部样式-->
<div class="footer_style" id="footerstyle">
<p class="l_f">联系管理员:renshen052@126.com</p>
</div>
</body>
</html>

@ -0,0 +1,158 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<title>心理咨询预约系统登录</title>
</head>
<body class="login-layout" style="background-image: url(${pageContext.request.contextPath }/mutualResource/myImg/pencil2.jpg);background-size:cover;background-color: #eff5f8;">
<div class="loginbody">
<div class="login-container">
<div class="center">
<h1>
<i class="icon-leaf green"></i>
<span class="orange">心理咨询预约</span>
<span class="orange">系统</span>
</h1>
<h4 class="orange">为你来</h4>
</div>
<div class="space-6"></div>
<div class="position-relative" style="opacity:0.8">
<div id="login-box" class="login-box widget-box no-border visible" style="background-color: #A29990;">
<div class="widget-body">
<div class="widget-main" >
<h4 class="header blue lighter bigger">
<i class="icon-coffee green"></i>
来访者登录
</h4>
<%-- <div class="login_icon"><img src="${pageContext.request.contextPath }/mutualResource/myImg/pencil.jpg" /></div> --%>
<form action="${pageContext.request.contextPath }/client/ClientLoginServlet?m=saveLogin" method="post" >
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="text" class="form-control" placeholder="登录名" name="clientName" value="${param.clientName }"/>
<i class="icon-user"></i>
</span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="password" class="form-control" placeholder="密码" name="clientPwd">
<i class="icon-lock"></i>
</span>
</label>
<div class="space"></div>
<div class="clearfix">
<font style="color:red">${msg }</font><br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button type="button" class="width-30 btn btn-success" id="reg">
注册
</button>
<label class="inline">
<!-- <input type="checkbox" class="ace">
<span class="lbl">注册</span> -->
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</label>
<button type="submit" class="width-30 btn pull-right btn-sm btn-primary" id="login_btn">
<i class="icon-key"></i>
登陆
</button>
</div>
<div class="space-4"></div>
</fieldset>
</form>
<div class="social-or-login center">
<span class="bigger-110">通知</span>
</div>
<div class="social-login center">
支持通过电话号码登录
</div>
</div><!-- /widget-main -->
<div class="toolbar clearfix">
</div>
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div>
</body>
</html>
<script>
$(document).ready(function(){
$("#login_btn").on('click' ,function(){
var adminName = $("input[name=clientName]");
var adminPwd = $("input[name=clientPwd]");
if(adminName.val() == ""){
layer.alert(adminName.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}else if(adminPwd.val() == ""){
layer.alert(adminPwd.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}
$("#login_btn").submit();
});
$("#reg").click(function(){
window.location = "${pageContext.request.contextPath }/client/reg"
});
});
</script>

@ -0,0 +1,344 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<div class="search_style">
<div class="title_names">搜索留言</div>
<ul class="search_content clearfix">
<form
action="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard"
method="post">
<li><label class="l_f">创建者</label><input name="creater"
type="text" class="text_add" placeholder="创建者"
value="${search.creater }" /></li>
<li><label class="l_f">内容</label><input name="context"
type="text" class="text_add" placeholder="留言内容"
value="${search.context }" /></li>
<li><label class="l_f">创建时间:从</label><input
style="width: 120px;" id="startTime" name="startTime"
type="text" class="inline laydate-icon" placeholder="从何时创建"
value="${search.startTime }" /></li>
<li><label class="l_f">到</label><input style="width: 120px;"
id="endTime" name="endTime" type="text"
class="inline laydate-icon" placeholder="到何时"
value="${search.endTime }" />止</li>
<li><button type="submit" class="btn_search">
<i class="icon-search"></i>查询
</button></li>
</form>
</ul>
</div>
<!---->
<c:if test="${not empty LOGIN_CLIENT }">
<div class="border clearfix">
<span class="l_f"> <a href="javascript:void()"
id="member_add" class="btn btn-warning"><i class="icon-plus"></i>留言</a>
</span> <span class="r_f">共:<b>${listSize }</b>条
</span>
</div>
</c:if>
<!---->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover"
id="sample-table">
<thead>
<tr>
<th width=>留言创建者</th>
<th>内容</th>
<th width=>创建时间</th>
</tr>
</thead>
<tbody>
<c:forEach items="${messageBoardList }" var="messageBoard">
<c:if test="${messageBoard.isActive eq 1 }">
<tr>
<td>${messageBoard.client.name }</td>
<td class="text-l">${messageBoard.context }</td>
<td>
<fmt:formatDate value="${messageBoard.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
</td>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display: none">
<form id="messageBoardForm">
<ul class=" page-content">
<li><label class="label_name">留言内容:</label> <textarea
name="context" id="context" class="textarea"
onKeyUp="textarealength(this,1000)" cols="100" rows="10"></textarea>
<p class="textarea-numberbar">
<em class="textarea-length">0</em>/1000
</p>
<div class="prompt r_f" id="contextDiv"></div></li>
</ul>
</form>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
/**
*检查表单元素合法性
*/
$("#messageBoardForm :input").each(function(){
var thisElement = $(this);
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheck(thisElement);
});
})
});
/*留言-添加*/
$('#member_add').on('click', function(){
layer.open({
type: 1,
title: '留言',
maxmin: true,
shadeClose: false, //点击遮罩关闭层
area : ['800px' , '400px'],
content:$('#add_menber_style'),
btn:['创建','取消'],
yes:function(index,layero){
var msg = "";
if(isAbleCheck()){
//如果数据合法
//ajax上传
$.ajax({
url: '${pageContext.request.contextPath }/board/MessageBoardServlet?m=addMessageBoard' ,
type: 'POST',
dataType:'json',
data: $("#messageBoardForm").serialize(),
cache: false,
success: function (data) {
if(data.isSuccess){
//清空
$("#context").val("");
$('#add_menber_style').find("div[class='prompt r_f']").text("");
layer.alert(data.msg,
{title: '提示框',
icon:1, } ,
function(){
window.location.reload();
});
}else{
layer.alert(data.msg,
{title: '提示框',
icon:1, }
);
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,
{title: '提示框',
icon:1, }
);
}
});
layer.close(index);
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
});
function isAbleCheck(){
var len = $("#context").val().length;
if(len > 1000 || len < 1){
$("#contextDiv").html("<font style='color:red'>留言为1-1000个字符</fong>");
return false;
}else{
$("#contextDiv").html("<font style='color:green'>通过</fong>");
return true;
}
}
laydate({
elem: '#startTime',
event: 'focus'
});
laydate({
elem: '#endTime',
event: 'focus'
});
</script>

@ -0,0 +1,196 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th >咨询师</th>
<th>申请时间</th>
<th>期望时间</th>
<th>期望地点</th>
<th >状态</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientArchiveList }" var="clientArchive">
<tr>
<td>${clientArchive.doctor.name }</td>
<td class="text-l"><fmt:formatDate value="${clientArchive.applyTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td>${clientArchive.expectTime }</td>
<td>${clientArchive.expectPlace }</td>
<td>
<c:if test="${clientArchive.status eq 0 }"> <span class="btn btn-warning">待安排</span> </c:if>
<c:if test="${clientArchive.status eq 1 }"> <span class="btn btn-success">准备咨询</span> </c:if>
<c:if test="${clientArchive.status eq -1 }"> <span class="btn btn-danger">被取消</span> </c:if>
</td>
<td class="td-manage">
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="sendMessage(this,'${clientArchive.doctor.doctorId}','${clientArchive.doctor.name}','doctor')">联系咨询师</a>
<c:if test="${clientArchive.status > -1 }">
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="cancelSub(${clientArchive.archivesId})">取消预约</a>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<b>想要取消,请联系咨询师</b>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
function cancelSub(){
layer.msg('请联系咨询师撤销申请!');
}
laydate({
elem: '#startRegionTime',
event: 'focus'
});
laydate({
elem: '#endRegionTime',
event: 'focus'
});
</script>

File diff suppressed because one or more lines are too long

@ -0,0 +1,528 @@
/*-- Reset-Code --*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
ol,ul{list-style:none;margin:0px;padding:0px;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
table{border-collapse:collapse;border-spacing:0;}
a{text-decoration:none;}
.txt-rt{text-align:right;}/* text align right */
.txt-lt{text-align:left;}/* text align left */
.txt-center{text-align:center;}/* text align center */
.float-rt{float:right;}/* float right */
.float-lt{float:left;}/* float left */
.clear{clear:both;}/* clear float */
.pos-relative{position:relative;}/* Position Relative */
.pos-absolute{position:absolute;}/* Position Absolute */
.vertical-base{ vertical-align:baseline;}/* vertical align baseline */
.vertical-top{ vertical-align:top;}/* vertical align top */
nav.vertical ul li{ display:block;}/* vertical menu */
nav.horizontal ul li{ display: inline-block;}/* horizontal menu */
img{max-width:100%;}
body {
padding: 0;
margin: 0;
background: url(../images/2.jpg) no-repeat 0px 0px;
background-size: cover;
font-family: 'Raleway', sans-serif;
}
body a {
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
text-decoration: none;
letter-spacing:1px;
font-size:15px;
font-weight:600;
}
body a:hover {
text-decoration: none;
}
body a:focus, a:hover {
text-decoration: none;
}
input[type="button"], input[type="submit"] {
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
font-family: 'Raleway', sans-serif;
font-weight:600;
letter-spacing:1px;
}
.clear{
clear:both;
}
p {
margin: 0;
color:#777;
letter-spacing:1px;
line-height:1.8em;
font-size:14px;
font-weight:400;
}
.row{
margin:0px;
padding:0px;
}
ul {
margin: 0;
padding: 0;
}
label {
margin: 0;
}
a:focus, a:hover {
text-decoration: none;
outline: none;
}
img{
width:100%;
}
/*-- //Reset-Code --*/
.tlinks{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}
input[type="text"] {
font-size: 15px;
font-weight: 500;
text-align: left;
text-transform: capitalize;
letter-spacing: 1px;
padding: 12px 10px 12px 10px;
width:90%;
display:inline-block;
box-sizing: border-box;
border: none;
outline: none;
background: transparent;
font-family: 'Raleway', sans-serif;
}
input[type="email"] {
font-size: 15px;
font-weight: 500;
text-align: left;
letter-spacing: 1px;
padding: 12px 10px 12px 10px;
width:90%;
display:inline-block;
box-sizing: border-box;
border: none;
outline: none;
background: transparent;
font-family: 'Raleway', sans-serif;
}
input[type="Password"] {
font-size: 15px;
font-weight: 500;
text-align: left;
text-transform: capitalize;
letter-spacing: 1px;
padding: 12px 10px 12px 10px;
width:90%;
display:inline-block;
box-sizing: border-box;
border: none;
outline: none;
background: transparent;
font-family: 'Raleway', sans-serif;
}
.input-group {
margin-bottom: 15px;
padding: 0px 10px;
border: 1px solid #bbb;
}
.btn-block {
display: block;
width: 100%;
}
.btn:active {
outline: none;
}
.btn-danger {
color: #fff;
background-color: #01cd74;
margin-top: 15px;
outline:none;
padding:15px 12px;
cursor:pointer;
letter-spacing: 2px;
font-size: 15px;
font-weight: 600;
border: none;
text-transform: uppercase;
font-family: 'Raleway', sans-serif;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
}
.btn-danger:hover{
background-color:#333;
}
.w3_info h2 {
display: inline-block;
font-size: 26px;
margin-bottom: 10px;
color: #01cd74;
letter-spacing: 2px;
}
.w3_info h4 {
display: inline-block;
font-size: 15px;
padding: 8px 0px;
color: #444;
text-transform: capitalize;
}
span.fa.fa-facebook {
vertical-align: middle;
font-size: 20px;
padding-left: 20px;
}
::-webkit-input-placeholder {
color:#777 !important;
}
:-moz-placeholder { /* Firefox 18- */
color:#777 !important;
}
::-moz-placeholder { /* Firefox 19+ */
color:#777 !important;
letter-spacing:5px;
}
:-ms-input-placeholder {
color:#777 !important;
}
a.btn.btn-block.btn-social.btn-facebook {
display: block;
width: 100%;
padding: 10px 0px;
text-align: center;
font-size: 16px;
font-weight: 600;
letter-spacing: 1px;
font-family: 'Raleway', sans-serif;
}
h1 {
text-align: center;
font-size: 45px;
margin: 30px 0px;
letter-spacing: 3px;
color: #fff;
font-weight:500;
}
.w3_info {
flex-basis: 50%;
-webkit-flex-basis: 50%;
box-sizing: border-box;
padding: 4em;
background-color: #fff;
}
.left_grid_info {
padding: 10em 4em;
}
.left_grid_info h3 {
color: #fff;
font-size: 2.2em;
}
.left_grid_info h4 {
color: #fff;
font-size: 1.2em;
margin: 1em 0;
line-height: 28px;
font-weight: 500;
text-transform: capitalize;
}
.left_grid_info p {
color: #fff;
font-size: 14px;
margin: 1em 0;
line-height: 28px;
}
.agile_info {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Chrome */
display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
ul.social_section_1info li {
display: inline-block;
}
ul.social_section_1info {
margin-top: 25px;
}
ul.social_section_1info a {
color: #eee;
margin-right: 10px;
font-size: 15px;
}
ul.social_section_1info a:hover {
color: #01cd74;
}
.w3l_form {
padding: 0px;
flex-basis: 50%;
-webkit-flex-basis: 50%;
background:#333;
}
.w3_info p {
padding-bottom: 20px;
}
h3.w3ls {
margin: 10px 0px;
padding-left: 60px;
}
h3.agileits {
padding-left: 10px;
}
.container {
width: 65%;
margin: 0 auto;
}
i.fa.fa-user {
font-size: 16px;
vertical-align: middle;
color:#01cd74;
box-sizing:border-box;
float:left;
width:6%;
margin-top: 13px;
text-align: center;
}
i.fa.fa-envelope {
font-size: 16px;
vertical-align: middle;
color: #01cd74;
box-sizing:border-box;
float:left;
width:6%;
margin-top: 13px;
text-align: center;
}
i.fa.fa-lock {
font-size: 16px;
vertical-align: middle;
color: #01cd74;
box-sizing:border-box;
float:left;
width:6%;
margin-top: 13px;
text-align: center;
}
h5 {
text-align: center;
margin: 10px 0px;
font-size: 15px;
font-weight: 600;
color: #000;
}
.footer p {
color: #fff;
text-align: center;
margin: 40px 0px;
letter-spacing: 2px;
font-size: 15px;
}
.footer p a {
color:#fff;
}
.footer p a:hover {
color:#2d72d9;
}
/** Responsive **/
@media screen and (max-width: 1600px){
}
@media screen and (max-width: 1440px){
.container {
width: 70%;
margin: 0 auto;
}
}
@media screen and (max-width: 1280px){
.container {
width: 75%;
}
}
@media screen and (max-width: 1080px){
.container {
width: 80%;
}
.left_grid_info {
padding: 7em 3em;
}
.w3_info {
padding: 3em 3em;
}
.left_grid_info h4 {
font-size: 1.1em;
}
}
@media screen and (max-width: 1024px){
.left_grid_info h3 {
font-size: 2em;
}
.container {
width: 84%;
}
}
@media screen and (max-width: 991px){
.w3_info h2 {
font-size: 24px;
}
p {
font-size: 13px;
}
h1 {
font-size: 40px;
letter-spacing: 2px;
}
}
@media screen and (max-width: 900px){
.container {
width: 90%;
}
.left_grid_info h4 {
font-size: 1em;
}
}
@media screen and (max-width: 800px){
input[type="text"],input[type="email"],input[type="password"] {
font-size: 14px;
}
i.fa.fa-user,i.fa.fa-envelope,i.fa.fa-lock {
margin-top: 10px;
}
}
@media screen and (max-width: 768px){
.container {
width: 95%;
}
.left_grid_info {
padding: 6em 3em;
}
}
@media screen and (max-width: 736px){
.left_grid_info {
padding: 6em 2em;
}
.left_grid_info h3 {
font-size: 1.7em;
}
.w3_info h2 {
font-size: 22px;
}
.w3_info {
padding: 3em 2em;
}
.footer p {
font-size: 14px;
}
.w3_info h4 {
font-size: 14px;
}
.btn-danger {
padding: 13px 12px;
font-size: 14px;
}
}
@media screen and (max-width: 640px){
.w3l_form {
padding: 3em 4em;
float: none;
margin: 0 auto;
}
.left_grid_info {
padding: 0;
}
.w3_info {
padding: 3em 4em;
margin: 0 auto;
}
h1 {
font-size: 37px;
}
.agile_info {
flex-direction: column;
}
}
@media screen and (max-width: 480px){
.w3l_form {
padding: 3em;
}
.w3_info {
padding: 3em;
}
h1 {
font-size: 34px;
}
}
@media screen and (max-width: 414px){
.w3l_form {
padding: 3em 2em;
}
.w3_info {
padding: 2em;
}
h1 {
font-size: 28px;
letter-spacing: 1px;
}
.left_grid_info p {
font-size: 13px;
}
}
@media screen and (max-width: 384px){
.left_grid_info h4 {
font-size: .9em;
}
.left_grid_info p {
letter-spacing: .5px;
}
}
@media screen and (max-width: 375px){
.left_grid_info h3 {
font-size: 1.5em;
}
}
@media screen and (max-width: 320px){
h1 {
font-size: 25px;
letter-spacing: 1px;
}
.btn-danger {
padding: 13px 12px;
font-size: 13px;
}
input[type="text"], input[type="email"], input[type="password"] {
font-size: 13px;
}
.footer p {
font-size: 13px;
}
.footer p a{
font-size: 13px;
}
.w3_info h2 {
font-size: 20px;
letter-spacing: 1px;
}
}
/** /Responsive **/

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

@ -0,0 +1,172 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>注册</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="keywords" content="" />
<link href="${pageContext.request.contextPath }/web/client/reg/css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
<link href="${pageContext.request.contextPath }/web/client/reg/css/style.css" rel="stylesheet" type="text/css" media="all"/>
<link href="http://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,900" rel="stylesheet">
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
</head>
<body>
<c:if test="${!empty msg }">
<script>
$(document).ready(function(){
alert("${msg }");
})
</script>
</c:if>
<div class="signupform">
<h1>来访者注册</h1>
<div class="container">
<div class="agile_info">
<div class="w3l_form">
<div class="left_grid_info">
<h3>欢迎注册 !</h3>
<h4>心理咨询预约平台</h4>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
如果您需要心理咨询师帮助自己,在这里我们可以为您提供咨询预约的途径。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
在这里,可以预约您心仪的咨询师寻求帮助。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
请您在右侧留下一些必要信息方便我们安排咨询后,及时的联系您。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
注册成功后,请尽快完善您的个人信息。
</p>
</div>
</div>
<div class="w3_info">
<h2>必要信息</h2>
<p>包括您的姓名,电话(作为登录账户),电子邮件和密码</p>
<form action="${pageContext.request.contextPath }/client/reg?m=addClient" method="post" id="regForm">
<div class="input-group">
<input name="name" type="text" placeholder="姓名" required="">
</div>
<span id="phoneSpan" style="color:red;font-size: 12px;"></span>
<div class="input-group">
<input name="phone" id="phone" type="text" placeholder="电话" required="">
</div>
<div class="input-group">
<input name="email" type="email" placeholder="电子邮件" required="">
</div>
<span id="pwdSpan" style="color:red;font-size: 12px;"></span>
<div class="input-group">
<span><i class="fa fa-lock" aria-hidden="true"></i></span>
<input id="pwd" name="pwd" type="Password" placeholder="密码" required="">
</div>
<span id="confirmPwdSpan" style="color:red;font-size: 12px;"></span>
<div class="input-group">
<span><i class="fa fa-lock" aria-hidden="true"></i></span>
<input id="confirmPwd" name="confirmPwd" type="Password" placeholder="确认密码" required="">
</div>
<button class="btn btn-danger btn-block" type="sbumit">注&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;册</button >
</form>
</div>
<div class="clear"></div>
</div>
</div>
<div class="footer">
</div>
</div>
<script>
$(document).ready(function(){
$("form").submit( function () {
if( checkPhone() && checkPwd() ){
//$("#regForm").submit();
alert("注册成功!")
return true;
}else{
return false;
}
} );
});
function checkPwd(){
var pwd = $.trim($("#pwd").val());
var confirmPwd = $.trim($("#confirmPwd").val());
if(pwd!="" && confirmPwd!="" && pwd != confirmPwd){
$("#confirmPwdSpan").html("两次密码输入不一致!");
return false;
}
else {
return true;
}
}
function checkPhone(){
var result=false;
var phone = document.getElementById('phone').value;
if(!(/^1[3456789]\d{9}$/.test(phone))){
document.getElementById('phone').value="";
$("#phoneSpan").html("手机号码有误,请重填")
return false;
}else{
//ajax上传
result= $.ajax({
url: '${pageContext.request.contextPath }/client/reg?m=testPhone&phone='+phone,
type: 'GET',
dataType:'json',
cache: false,
success: function (data) {
if(data.isSuccess){
//可用
$("#phoneSpan").html("")
return true;
}else{
//不可用
$("#phoneSpan").html("该电话已经被注册过!");
}
}
});
}
return result;
}
</script>
</body>
</html>

@ -0,0 +1,334 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link href="${pageContext.request.contextPath }/mutualResource/Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
<title>预约</title>
</head>
<body>
<div class="clearfix" id="add_picture">
<div id="scrollsidebar" class="left_Treeview" style="text-align: center;">
<div class="show_btn" id="rightArrow"><span></span></div>
<div class="widget-box side_content" >
<div class="side_list">
<div class="widget-header header-color-green2">
<h4 class="lighter smaller">咨询师</h4>
</div>
<div class="product_info clearfix">
<c:if test="${ empty doctor.img }">
<img src="${pageContext.request.contextPath }/mutualResource/images/image.png" width="210px" height="200px"/>
</c:if>
<c:if test="${not empty doctor.img }">
<img src="/mind_upload/${doctor.img}" width="210px" height="200px"/>
</c:if>
<%-- <a href="#" class="img_link"><img src="/mind_upload/${doctor.img}" width="210" height="200"/></a> --%>
<span>
<b>${doctor.name }</b>
<p>性别:${doctor.sex eq 1 ? "男":"女" }</p>
<p>年龄:${doctor.age }</p>
<p>等级:${doctor.level }</p>
<p>擅长方向:${doctor.skill }</p>
<p> 一般咨询地点: ${doctor.place } </p>
<p>电话:${doctor.phone }</p>
<p>电子邮件:${doctor.email }</p>
<a style="text-decoration:none" onClick="sendMessage(this,'${doctor.doctorId}','${doctor.name}','doctor')"
href="javascript:;" title="预约"
class="btn btn-xs btn-success">发送消息</a>
</span>
</div>
</div>
</div>
</div>
<div class="page_right_style">
<div class="type_title">预约</div>
<form action="" method="post" class="form form-horizontal" id="form-article-add">
<div class="clearfix cl">
<label class="form-label col-2">咨询时间:</label>
<div class="formControls col-10"><input type="text" class="input-text" value="" placeholder="您期望的咨询时间2019年10月20日-2019年10月22日的下午...等等" id="expectTime" name="expectTime"></div>
<div class="formControls col-10"></div>
</div>
<div class=" clearfix cl">
<label class="form-label col-2">咨询地点:</label>
<div class="formControls col-10"><input type="text" class="input-text" value="" placeholder="您期望的咨询地点,用,隔开" id="expectPlace" name="expectPlace"></div>
<div class="formControls col-10"></div>
</div>
<div class=" clearfix cl">
<div class="formControls col-10"><span style="color:green">为了了解您的心理状况,我们将对您进行简单的问卷调查,请如实填写</span></div>
</div>
<div class="clearfix cl">
<label class="form-label col-2">主观描述</label>
<div class="formControls col-10">
<textarea id="context" name="clientDescription" cols="" rows="" class="textarea" placeholder="说点什么...对您自身目前状况的描述,如:我现在感觉如何?遇到的问题是什么?" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空!" onKeyUp="textarealength(this,300)"></textarea>
<p class="textarea-numberbar"><em class="textarea-length">0</em>/300</p>
</div>
<div class="form-label col-2"></div>
</div>
<div class="clearfix cl"><label class="form-label col-2">请选择:</label></div>
<c:set var="questionIds" value=""></c:set>
<c:forEach items="${questionList }" var="question" varStatus="statu">
<c:set var="questionIds" value="${questionIds }${question.questionId },"></c:set>
<input type="hidden" name="answerYesScore${question.questionId }" value="${question.answerYesScore }"/>
<input type="hidden" name="answerNoScore${question.questionId }" value="${question.answerNoScore }"/>
<div class="clearfix cl" >
<label class="form-label col-2">&nbsp;</label>
<div class="formControls col-10" id="question">
<span class="cont_style">
<span class="lbl">${statu.count}.${question.context }</span>
<input type="hidden" name="context${question.questionId }" value="${statu.count}.${question.context }"/>
&nbsp;&nbsp;
<input name="${question.questionId }" type="radio" class="ace" value="${question.answerYesScore }">
<span class="lbl">是</span>
&nbsp;&nbsp;&nbsp;
<input name="${question.questionId }" type="radio" class="ace" value="${question.answerNoScore }">
<span class="lbl">否</span>
</span>
<input type="hidden" name="doctorId" value="${doctor.doctorId}">
</div>
<div class="form-label col-2"></div>
</div>
</c:forEach>
<input type="hidden" name="doctorId" value="${doctor.doctorId}">
<input type="hidden" name="questionIds" value="${questionIds}">
<div class="clearfix cl">
<div class="Button_operation">
<button onClick="article_save_submit();" class="btn btn-primary radius" type="button"><i class="icon-save "></i>保存并提交</button>
<button class="btn btn-default radius" type="button" onclick="javascript:window.location='${pageContext.request.contextPath }/client/ClientSubServlet?m=subDoctorList'">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/Widget/icheck/jquery.icheck.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/js/lrtk.js" type="text/javascript" ></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script>
$( document).ready(function(){
//初始化宽度、高度
$(".widget-box").height($(window).height());
$(".page_right_style").height($(window).height());
$(".page_right_style").width($(window).width()-220);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".widget-box").height($(window).height());
$(".page_right_style").height($(window).height());
$(".page_right_style").width($(window).width()-220);
});
$("#form-article-add :input").each(function(){
//绑定验证事件
//当改变的时候,触发检查函数
$(this).change(function(){
isAbleCheckOne($(this));
});
});
});
/**
* 提交预约
*/
function article_save_submit(){
var msg = "";
if(isAbleOk()){
//如果数据合法
//ajax上传
$.ajax({
url: '${pageContext.request.contextPath }/client/ClientSubServlet?m=subStep2' ,
type: 'POST',
dataType:'json',
data: $("#form-article-add").serialize(),
cache: false,
success: function (data) {
if(data.isSuccess){
msg = "提交成功!";
layer.alert(msg,
{title: '提示框',
icon:1 },function(){
window.location="${pageContext.request.contextPath }/client/ClientSubServlet?m=subClientList";
});
}else{
msg = data.msg;
layer.alert(msg,
{title: '提示框',
icon:1, }
);
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,
{title: '提示框',
icon:1, }
);
}
});
}else{
layer.alert("请填写数据!",{
title: '提示框',
icon:1,
});
}
}
/**
* 验证表单内容是否正确
*/
function isAbleOk(){
var isOk = true;
$("#form-article-add :input").each(function(){
//如果有一项不正确
if( !isAbleCheckOne($(this))){
isOk = false;
}
});
return isOk;
}
function isAbleCheckOne(thisElement){
var isOk = true;
//验证期望地址和期望时间
if($(thisElement).is("#expectTime")|| $(thisElement).is("#expectPlace")){
var text = $.trim($(thisElement).val());
if(text == "" || text.length >100){
$(thisElement).parent().next().html("<span style='color:red'>1-100个字符</span>");
isOk = false;
}else{
$(thisElement).parent().next().html("");
}
}
//验证主观描述
if($(thisElement).is("#context")){
var text = $.trim($(thisElement).val());
if(text == "" || text.length >300){
$(thisElement).parent().next().html("<span style='color:red'>1-300个字符</span>");
isOk = false;
}else{
$(thisElement).parent().next().html("");
}
}
//验证问卷题目
if($(thisElement).is("input[type='radio']")){
var radio = $(thisElement).next().next();
//如果没有选中的
if(! $(thisElement).parent().find("input[type='radio']:checked").val()){
$(thisElement).parent().parent().next().html("<span style='color:red'>请选择!</span>");
isOk = false;
}else{
$(thisElement).parent().parent().next().html("");
}
}
return isOk;
}
</script>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>

@ -0,0 +1,83 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.easy-pie-chart.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/js/lrtk.js" type="text/javascript" ></script>
<title>咨询师列表</title>
</head>
<body>
<div class="margin clearfix">
<div class="Order_Details_style">
<div class="detailed_style">
<!--咨询师信息-->
<div class="product_style">
<div class="title_name">咨询师</div>
<div class="Info_style clearfix">
<c:forEach items="${doctorList }" var="doctor">
<div class="product_info clearfix" style="margin: 10px 6%;">
<c:if test="${ empty doctor.img }">
<a href="#" class="img_link"> <img src="${pageContext.request.contextPath }/mutualResource/images/image.png" width="200px" height="200px"/></a>
</c:if>
<c:if test="${not empty doctor.img }">
<a href="#" class="img_link"><img src="/mind_upload/${doctor.img}" width="200px" height="200px"/></a>
</c:if>
<%-- <a href="#" class="img_link"><img src="/mind_upload/${doctor.img}" width="200" height="200"/></a> --%>
<span>
<b>${doctor.name }</b>
<p>性别:${doctor.sex eq 1 ? "男":"女" }</p>
<p>年龄:${doctor.age }</p>
<p>等级:${doctor.level }</p>
<p>擅长方向:${doctor.skill }</p>
<p> 一般咨询地点: ${doctor.place } </p>
<p>电话:${doctor.phone }</p>
<p>电子邮件:${doctor.email }</p>
<a href="${pageContext.request.contextPath }/client/ClientSubServlet?m=subStep1&doctorId=${doctor.doctorId}" id="member_add" class="btn btn-warning">我要预约</a>
<a style="text-decoration:none" onClick="sendMessage(this,'${doctor.doctorId}','${doctor.name}','doctor')"
href="javascript:;" title="预约"
class="btn btn-xs btn-success">发送消息</a>
</span>
</div>
</c:forEach>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>

@ -0,0 +1,176 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th >咨询者</th>
<th>咨询开始时间</th>
<th>咨询结束时间</th>
<th>咨询地点</th>
<th >咨询文档</th>
<th>回访评价</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientArchiveList }" var="clientArchive">
<tr>
<td>${clientArchive.client.name }</td>
<td class="text-l"><fmt:formatDate value="${clientArchive.startDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td class="text-l"><fmt:formatDate value="${clientArchive.endDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td>${clientArchive.subPlace }</td>
<td>
<u style="cursor:pointer" class="text-primary" onclick="javascript:window.location='${pageContext.request.contextPath}/DownloadFile?m=downloadSubDoc&subDocPath=${clientArchive.docPath }&filename=${clientArchive.client.name}_${LOGIN_DOCTOR.name }'">${clientArchive.client.name}_${LOGIN_DOCTOR.name }</u>
</td>
<td>
<c:if test="${empty clientArchive.secondQuestionContext}">
该咨询者还未做出评价!
</c:if>
${clientArchive.secondQuestionContext}
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
</script>

@ -0,0 +1,188 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<title>个人信息管理</title>
</head>
<body>
<div class="clearfix">
<div class="admin_info_style">
<div class="admin_modify_style" id="Personal" style="text-align: center;">
<div class="type_title">我的信息 </div>
<img src="/mind_upload/${LOGIN_DOCTOR.img}" width="200" height="200"/>
<div class="xinxi">
</div>
<div class="xinxi">
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">用户名: </label>
<div class="col-sm-9"><input type="text" name="name" id="website-title" value="${LOGIN_DOCTOR.name }" class="col-xs-7 text_info" disabled="disabled">
&nbsp;&nbsp;&nbsp;<a href="javascript:ovid()" onclick="change_Password()" class="btn btn-warning btn-xs">修改密码</a></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">性别:</label>
<div class="col-sm-9">
<input type="text" name="level" id="website-title" value=${LOGIN_DOCTOR.sex eq 1 ? "男":"女"} class="col-xs-7 text_info" disabled="disabled">
</div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">年龄: </label>
<div class="col-sm-9"><input type="text" name="age" id="website-title" value="${LOGIN_DOCTOR.age }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">等级: </label>
<div class="col-sm-9"><input type="text" name="level" id="website-title" value="${LOGIN_DOCTOR.level }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">擅长方向: </label>
<div class="col-sm-9"><input type="text" name="skill" id="website-title" value="${LOGIN_DOCTOR.skill }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">一般咨询地点: </label>
<div class="col-sm-9"><input type="text" name="place" id="website-title" value="${LOGIN_DOCTOR.place }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电话: </label>
<div class="col-sm-9"><input type="text" name="phone" id="website-title" value="${LOGIN_DOCTOR.phone }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
<div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">电子邮箱: </label>
<div class="col-sm-9"><input type="text" name="email" id="website-title" value="${LOGIN_DOCTOR.email }" class="col-xs-7 text_info" disabled="disabled"></div>
</div>
</div>
</div>
</div>
</div>
<!--修改密码样式-->
<div class="change_Pass_style" id="change_Pass">
<ul class="xg_style">
<li><label class="label_name">原&nbsp;&nbsp;密&nbsp;码</label><input name="原密码" type="password" class="" id="password"></li>
<li><label class="label_name">新&nbsp;&nbsp;密&nbsp;码</label><input name="新密码" type="password" class="" id="Nes_pas"></li>
<li><label class="label_name">确认密码</label><input name="再次确认密码" type="password" class="" id="c_mew_pas"></li>
</ul>
<!-- <div class="center"> <button class="btn btn-primary" type="button" id="submit">确认修改</button></div>-->
</div>
</body>
</html>
<script>
//初始化宽度、高度
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".admin_modify_style").height($(window).height());
$(".recording_style").width($(window).width()-400);
});
//修改密码
function change_Password() {
layer
.open({
type : 1,
title : '修改密码',
area : [ '300px', '300px' ],
shadeClose : true,
content : $('#change_Pass'),
btn : [ '确认修改' ],
yes : function(index, layero) {
if ($("#password").val() == "") {
layer.alert('原密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#Nes_pas").val() == "") {
layer.alert('新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if ($("#c_mew_pas").val() == "") {
layer.alert('确认新密码不能为空!', {
title : '提示框',
icon : 0,
});
return false;
}
if (!$("#c_mew_pas").val
|| $("#c_mew_pas").val() != $("#Nes_pas").val()) {
layer.alert('密码不一致!', {
title : '提示框',
icon : 0,
});
return false;
} else {
//修改密码
//ajax请求
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/doctor/base?m=updatePwd",
data : {
"newPwd" : $("#Nes_pas").val(),
"password" : $("#password").val()
},
dataType : "json",
success : function(data) {
var i = 0;
if (data['result'] == true) {
i = 1;
window.location="${pageContext.request.contextPath}/doctor/DoctorLoginServlet";
}
layer.alert(data['msg'], {
title : '提示框',
icon : i,
});
layer.close(index);
}
});
}
}
});
}
</script>

@ -0,0 +1,109 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="10;" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/dist/echarts.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<title>无标题文档</title>
</head>
<body>
<div class="page-content clearfix">
<div class="alert alert-block alert-success">
<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
<i class="icon-ok green"></i>欢迎使用<strong class="green">心理咨询预约系统</strong>
</div>
<!-- <div class="t_Record">
<div id="main" style="height:300px; overflow:hidden; width:100%; overflow:auto" ></div>
</div> -->
<div class="news_style">
<div class="title_name">最新消息</div>
<ul class="list">
<c:if test="${empty messageList }">无</c:if>
<c:forEach items="${messageList }" var="message">
<li><i class="icon-bell red"></i><a title="查看消息" href="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage&reqeustUser=admin">
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
&nbsp;
来自${message.senderName}的消息 &nbsp;${message.context }
</a></li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新公告</div>
<ul class="list">
<c:forEach items="${announcmentList }" var="announcment">
<li><i class="icon-bell red"></i>
<a title="公告管理" href="${pageContext.request.contextPath }/admin/AnnouncmentServlet?m=listAnnouncment">
<b>${announcment.title}:</b>&nbsp;
${announcment.context}&nbsp;---${announcment.admin.name}&nbsp;
<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a>
</li>
</c:forEach>
</ul>
</div>
<div class="news_style">
<div class="title_name">最新留言</div>
<ul class="list">
<c:forEach items="${newMessageBoardList }" var="messageBoard">
<li><i class="icon-bell red"></i><a title="留言管理" href="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard">
${messageBoard.context }&nbsp;&nbsp;
${messageBoard.client.name }
<fmt:formatDate value="${messageBoard.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
</a></li>
</c:forEach>
</ul>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".t_Record").width($(window).width()-320);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".t_Record").width($(window).width()-320);
});
});
</div>
</body>
</html>

@ -0,0 +1,375 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta charset="utf-8" />
<title>咨询师端 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
</script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!--[if lte IE 8]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/excanvas.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-elements.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
$(function(){
var cid = $('#nav_list> li>.submenu');
cid.each(function(i){
$(this).attr('id',"Sort_link_"+i);
})
})
jQuery(document).ready(function(){
$.each($(".submenu"),function(){
var $aobjs=$(this).children("li");
var rowCount=$aobjs.size();
var divHeigth=$(this).height();
$aobjs.height(divHeigth/rowCount);
});
//初始化宽度、高度
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$("#main-container").height($(window).height()-76);
$("#iframe").height($(window).height()-140);
$(".sidebar").height($(window).height()-99);
var thisHeight = $("#nav_list").height($(window).outerHeight()-173);
$(".submenu").height();
$("#nav_list").children(".submenu").css("height",thisHeight);
});
$(".iframeurl").click(function(){
var cid = $(this).attr("name");
var cname = $(this).attr("title");
$("#iframe").attr("src",cid).ready();
$("#Bcrumbs").attr("href",cid).ready();
$(".Current_page a").attr('href',cid).ready();
$(".Current_page").attr('name',cid);
$(".Current_page").html(cname).css({"color":"#333333","cursor":"default"}).ready();
$("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display","none").ready();
$("#parentIfour").html(''). css("display","none").ready();
});
});
/*********************点击事件*********************/
$( document).ready(function(){
$('#nav_list').find('li.home').click(function(){
$('#nav_list').find('li.home').removeClass('active');
$(this).addClass('active');
});
//时间设置
function currentTime(){
var d=new Date(),str='';
str+=d.getFullYear()+'年';
str+=d.getMonth() + 1+'月';
str+=d.getDate()+'日';
str+=d.getHours()+'时';
str+=d.getMinutes()+'分';
str+= d.getSeconds()+'秒';
return str;
}
setInterval(function(){$('#time').html(currentTime)},1000);
//设置消息
setInterval(function(){
$.ajax({
url: '${pageContext.request.contextPath }/message/MessageServlet?m=newMessage&user=doctor' ,
type: 'GET',
dataType:'json',
success: function (data) {
if(data.isSuccess){
if(data.dataList[0]==0){
$('#newMessage').attr("style","color:green");
}else{
$('#newMessage').attr("style","color:red");
}
$('#newMessage').html("<i class=\"icon-bell-alt\"></i>[" + data.dataList[0] + "]");
}else{
console.log(data.msg);
}
}
});
},3000);
$('#Exit_system').on('click', function(index){
layer.confirm('是否确定退出系统?',
function(){
location.href="${pageContext.request.contextPath}/doctor/DoctorLoginServlet?m=logOutClient";
}
);
});
});
</script>
</head>
<body>
<div class="navbar navbar-default" id="navbar" style="background-image: url(${pageContext.request.contextPath }/mutualResource/myImg/background.png);background-size:cover;background-color: #eff5f8;">
<script type="text/javascript">
try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>
<div class="navbar-container" id="navbar-container">
<c:if test="${not empty LOGIN_DOCTOR}">
<div class="navbar-header pull-left">
<small>
<img src="${pageContext.request.contextPath }/mutualResource/myImg/doctorTop.png" height="75px" style="opacity:0.8">
</small>
</div><!-- /.navbar-header -->
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
<span class="time"><em id="time"></em></span><span class="user-info"><small>欢迎光临,</small>${LOGIN_DOCTOR.name } </span>
</a>
<li><a href="javascript:void(0)" id="Exit_system"><i class="icon-off"></i>退出</a></li>
</ul>
</div>
</c:if>
<c:if test="${empty LOGIN_DOCTOR }">
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<li class="light-blue">
<a href="${pageContext.request.contextPath }/doctor/DoctorLoginServlet">
请登录
</a>
</li>
</ul>
</div>
</c:if>
</div>
</div>
<div class="main-container" id="main-container">
<script type="text/javascript">
try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>
<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
<span class="menu-text"></span>
</a>
<div class="sidebar" id="sidebar">
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
</script>
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
咨询师
</div>
<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
<span class="btn btn-success"></span>
<span class="btn btn-info"></span>
<span class="btn btn-warning"></span>
<span class="btn btn-danger"></span>
</div>
</div>
<!-- #sidebar-shortcuts -->
<ul class="nav nav-list" id="nav_list">
<li class="home"><a href="javascript:void(0)" name="${pageContext.request.contextPath }/doctor/base?m=doctorIndex"
class="iframeurl" title=""><i class="icon-dashboard"></i><span
class="menu-text"> 首页 </span></a></li>
<li>
<a href="" class="dropdown-toggle"><i
class="icon-edit"></i><span class="menu-text"> 咨询工作 </span><b
class="arrow icon-angle-down"></b></a>
<ul class="submenu">
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/doctor/DoctorSubServlet?m=subClientList" title="咨询申请" class="iframeurl"><i
class="icon-double-angle-right"></i>咨询申请</a></li>
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/doctor/DoctorSubServlet?m=subOnList" title="咨询中" class="iframeurl"><i
class="icon-double-angle-right"></i>咨询中</a></li>
</ul>
</li>
<li class="home"><a href="javascript:void(0)" name="${pageContext.request.contextPath }/doctor/DoctorSubServlet?m=doctorConsult"
class="iframeurl" title=""><i class="icon-dashboard"></i><span
class="menu-text"> 咨询记录 </span></a></li>
<li>
<a href="#" class="dropdown-toggle"><i
class="icon-edit"></i><span class="menu-text"> 消息 </span>
<span id="newMessage" style="color:red"></span>
<b
class="arrow icon-angle-down"></b></a>
<ul class="submenu">
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listReceivMessage&reqeustUser=admin" title="消息查看" class="iframeurl"><i
class="icon-double-angle-right"></i>收信箱</a></li>
<li class="home"><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/message/MessageServlet?m=listSendMessage&reqeustUser=admin" title="发送消息" class="iframeurl"><i
class="icon-double-angle-right"></i>发信箱</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/board/MessageBoardServlet?m=listMessageBoard" title="留言"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 留言 </span></a></li>
<li><a href="javascript:void(0)" name="${pageContext.request.contextPath }/announcment/AnnouncmentServlet?m=listAnnouncment" title="公告"
class="iframeurl"><i class="icon-edit"></i><span
class="menu-text"> 公告 </span></a></li>
<li><a href="javascript:void(0)"
name="${pageContext.request.contextPath }/doctor/base?m=doctorInfo" title="个人信息"
class="iframeurl"><i class="icon-group"></i><span
class="menu-text"> 个人信息 </span></a></li>
</ul>
<div class="sidebar-collapse" id="sidebar-collapse">
<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>
<script type="text/javascript">
try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
</script>
</div>
<div class="main-content">
<script type="text/javascript">
try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
</script>
<div class="breadcrumbs" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="icon-home home-icon"></i>
<a href="${pageContext.request.contextPath }/doctor/base?m=doctorIndex">首页</a>
</li>
<li class="active"><span class="Current_page iframeurl"></span></li>
<li class="active" id="parentIframe"><span class="parentIframe iframeurl"></span></li>
<li class="active" id="parentIfour"><span class="parentIfour iframeurl"></span></li>
</ul>
</div>
<iframe id="iframe" style="border:0; width:100%; background-color:#FFF;"name="iframe" frameborder="0" src="${pageContext.request.contextPath }/doctor/base?m=doctorIndex"> </iframe>
<!-- /.page-content -->
</div><!-- /.main-content -->
<div class="ace-settings-container" id="ace-settings-container">
<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
<i class="icon-cog bigger-150"></i>
</div>
<div class="ace-settings-box" id="ace-settings-box">
<div>
<div class="pull-left">
<select id="skin-colorpicker" class="hide">
<option data-skin="default" value="#438EB9">#438EB9</option>
<option data-skin="skin-1" value="#222A2D">#222A2D</option>
<option data-skin="skin-2" value="#C6487E">#C6487E</option>
<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
</select>
</div>
<span>&nbsp; 选择皮肤</span>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
<label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
<label class="lbl" for="ace-settings-rtl">切换到左边</label>
</div>
<div>
<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
<label class="lbl" for="ace-settings-add-container">
切换窄屏
<b></b>
</label>
</div>
</div>
</div><!-- /#ace-settings-container -->
</div><!-- /.main-container-inner -->
</div>
<!--底部样式-->
<div class="footer_style" id="footerstyle">
<p class="l_f">版权所有XXXX</p>
</div>
</body>
</html>

@ -0,0 +1,143 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/ace-extra.min.js"></script>
<!--[if lt IE 9]>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/html5shiv.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/respond.min.js"></script>
<![endif]-->
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript"></script>
<title>咨询师登陆</title>
</head>
<body class="login-layout" style="background-image: url(${pageContext.request.contextPath }/mutualResource/myImg/chuan2.png);background-size:cover;background-color: #eff5f8;">
<div class="loginbody">
<div class="login-container">
<div class="center">
<h1>
<i class="icon-leaf green"></i>
<span class="orange">心理咨询预约</span>
<span class="white">系统</span>
</h1>
<h4 class="white">欢迎</h4>
</div>
<div class="space-6"></div>
<div class="position-relative" style="opacity:0.8">
<div id="login-box" class="login-box widget-box no-border visible">
<div class="widget-body">
<div class="widget-main">
<h4 class="header blue lighter bigger">
<i class="icon-coffee green"></i>
咨询师登录
</h4>
<%-- <div class="login_icon"><img src="${pageContext.request.contextPath }/mutualResource/images/login.png" /></div> --%>
<form action="${pageContext.request.contextPath }/doctor/DoctorLoginServlet?m=saveLogin" method="post" >
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="text" class="form-control" placeholder="登录名" name="doctorName" value="${param.doctorName }"/>
<i class="icon-user"></i>
</span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="password" class="form-control" placeholder="密码" name="doctorPwd">
<i class="icon-lock"></i>
</span>
</label>
<div class="space"></div>
<div class="clearfix">
<font style="color:red">${msg }</font><br/>
<button type="submit" class="width-35 pull-right btn btn-sm btn-primary" id="login_btn">
<i class="icon-key"></i>
登陆
</button>
</div>
<div class="space-4"></div>
</fieldset>
</form>
<div class="social-or-login center">
<span class="bigger-110">通知</span>
</div>
<div class="social-login center">
支持通过电话号码登录
</div>
</div><!-- /widget-main -->
<div class="toolbar clearfix">
</div>
</div><!-- /widget-body -->
</div><!-- /login-box -->
</div><!-- /position-relative -->
</div>
</div>
</body>
</html>
<script>
$(document).ready(function(){
$("#login_btn").on('click' ,function(){
var adminName = $("input[name=doctorName]");
var adminPwd = $("input[name=doctorPwd]");
if(adminName.val() == ""){
layer.alert(adminName.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}else if(adminPwd.val() == ""){
layer.alert(adminPwd.attr("placeholder")+"不能为空!\r\n",{
title: '提示框',
icon:0,
});
return false;
}
$("#login_btn").submit();
});
});
</script>

@ -0,0 +1,372 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th >申请者</th>
<th>申请时间</th>
<th>期望时间</th>
<th>期望地点</th>
<th>主观描述</th>
<th >问卷分数</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientArchiveList }" var="clientArchive">
<tr>
<td>${clientArchive.client.name }</td>
<td class="text-l"><fmt:formatDate value="${clientArchive.applyTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td>${clientArchive.expectTime }</td>
<td>${clientArchive.expectPlace }</td>
<td height="10px">
<span title="${clientArchive.clientDescription }" name="descrip" onclick="javascript:showD(this,'${clientArchive.clientDescription }')">
</span>
</td>
<td>${clientArchive.level }</td>
<td class="td-manage">
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="sendMessage(this,'${clientArchive.client.clientId}','${clientArchive.client.name}','client')">联系申请者</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="showSub('${clientArchive.archivesId}','${clientArchive.clientId}')">查看详情</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="consult(this,'${clientArchive.archivesId}','${clientArchive.client.clientId}')">安排咨询</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="cancelSub(this,'${clientArchive.archivesId}','${clientArchive.client.clientId}','${clientArchive.applyTime }')">驳回申请</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<b>安排咨询前请与来访者协商具体的时间地点</b>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
<!--添加用户图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
<form action="" method="post" id="sub">
<ul class=" page-content">
<li class="adderss">
<label class="label_name">咨询:</label>
<input style="width: 200px;" id="startDatetime" name="startDatetime" type="text" class="inline laydate-icon" placeholder="开始时间" />
<input style="width: 200px;" id="endDatetime" name="endDatetime" type="text" class="inline laydate-icon" placeholder="结束时间" />
<span id="dateTime"></span>
</li>
<li class="adderss"><label class="label_name">咨询地址:</label><span class="add_name"><input name="subPlace" style="width: 300px;" id="subPlace" type="text" class="text_add" /></span> <div class="prompt r_f"></div>
<span id="place"></span>
</li>
</ul>
</form>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
$("span[name='descrip']").each(function(){
this.click();
});
});
function showD(obj,clientDescription ){
var part = "";
if(clientDescription.length <= 5){
part = clientDescription;
}else{
part = clientDescription.substring(0,6);
part += "...";
}
obj.innerHTML = part;
}
function showSub(archivesId,clientId){
window.location = "${pageContext.request.contextPath }/doctor/DoctorSubServlet?m=subShow&archivesId="+archivesId+"&clientId="+clientId;
}
/**
* 驳回申请
*/
function cancelSub(obj,archivesId,clientId,applyTime){
layer.confirm('确认要驳回吗?',function(index){
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorSubServlet?m=updateStatusFalse&archivesId="+archivesId+"&clientId="+clientId+"&applyTime="+applyTime,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
layer.msg('已驳回!',{icon: 5,time:1000});
//删除页面上的
$(obj).parents("tr").remove();
}else{
layer.msg('驳回失败! '+data['msg'],{icon: 0,time:1000});
}
}
});
});
}
/**
* 安排咨询
*/
function consult(obj,archivesId,clientId){
//清空上次的
// removeForm();
layer.open({
type: 1,
title: '安排咨询',
maxmin: true,
area : ['800px' , ''],
content:$('#add_menber_style'),
btn:['安排','取消'],
yes:function(index,layero){
var msg = "";
if(isAble2()){
//如果数据合法
//ajax上传$("#xx").serialize()
var formData = $($(layero).find('form')[0]).serialize();
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorSubServlet?m=planSub&archivesId="+archivesId+"&clientId="+clientId,
dataType : "json",
data: formData,
success: function (data) {
if(data.isSuccess){
msg = "安排成功,请在\"咨询中\"查看!";
layer.alert(msg,{
title: '提示框',
icon:1,
});
//删除页面上的
$(obj).parents("tr").remove();
}else{
msg = data.msg;
layer.alert(msg,{
title: '提示框',
icon:1,
});
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,{
title: '提示框',
icon:1,
});
}
});
layer.close(index);
}else{
layer.alert("请填写正确的数据!",{
title: '提示框',
icon:1,
});
}
}
});
}
function isAble2(){
var isOk = true;
if($("#startDatetime").val()=="" || $("#endDatetime").val()==""){
$("#dateTime").html("<span class=\"msgErr\" style=\"color:red\">请选择咨询时间!</span>")
isOk = false;
}
if($.trim($("#subPlace").val())==""){
$("#place").html("<span class=\"msgErr\" style=\"color:red\">请填写咨询地点!</span>");
isOk = false;
}
return isOk;
}
laydate({
elem: '#startDatetime',
event: 'focus' ,
format: 'YYYY-MM-DD hh:mm:ss',
type: 'datetime',
istime: true, //必须填入时间
min: laydate.now(0,"YYYY-MM-DD hh:mm:ss") //设定最小日期为当前日期
});
laydate({
elem: '#endDatetime',
event: 'focus',
format: 'YYYY-MM-DD hh:mm:ss',
istime: true, //必须填入时间
type: 'datetime',
min: laydate.now(0,"YYYY-MM-DD hh:mm:ss") //设定最小日期为当前日期
});
</script>

@ -0,0 +1,312 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css"
rel="stylesheet" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/css/style.css" />
<link
href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css"
rel="stylesheet">
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet"
href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace-ie.min.css" />
<![endif]-->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath }/mutualResource/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<!-- page specific plugin scripts -->
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.min.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/js/jquery.dataTables.bootstrap.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js"
type="text/javascript"></script>
<script
src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js"
type="text/javascript"></script>
</head>
<body>
<div class="page-content clearfix">
<div id="Member_Ratings">
<div class="d_Confirm_Order_style">
<!-- 表格 -->
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th >咨询者</th>
<th>咨询开始时间</th>
<th>咨询结束时间</th>
<th>咨询地点</th>
<th >咨询文档</th>
<th >操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${clientArchiveList }" var="clientArchive">
<tr>
<td>${clientArchive.client.name }</td>
<td class="text-l"><fmt:formatDate value="${clientArchive.startDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td class="text-l"><fmt:formatDate value="${clientArchive.endDatetime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<td>${clientArchive.subPlace }</td>
<td id="doc">
<c:if test="${empty clientArchive.docPath}">
未上传
</c:if>
<c:if test="${not empty clientArchive.docPath}">
<u style="cursor:pointer" class="text-primary" onclick="javascript:window.location='${pageContext.request.contextPath}/DownloadFile?m=downloadSubDoc&subDocPath=${clientArchive.docPath }&filename=${clientArchive.client.name}_${LOGIN_DOCTOR.name }'">${clientArchive.client.name}_${LOGIN_DOCTOR.name }</u>
</c:if>
</td>
<td class="td-manage">
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="sendMessage(this,'${clientArchive.client.clientId}','${clientArchive.client.name}','client')">联系咨询者</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="uploadSubDoc(${clientArchive.archivesId})">上传文档</a>
<a style="text-decoration:none" class="btn btn-xs btn-success" onclick="finshSub(this,'${clientArchive.archivesId}','${clientArchive.client.clientId}')">完成咨询</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<b>完成咨询后请点击"完成",结束本次咨询,咨询文档可多次上传(之前的将被覆盖)</b><br/>
<b>允许上传文件的类型为txt,doc,docx,ppt,pptx,xls,xlsx,rar,zip最大50MB</b>
</div>
</div>
</div>
</div>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
<div class="add_menber" id="uploadSubDocFormDiv" style="display:none">
<form id="uploadSubDocForm" method="post" enctype="multipart/form-data" style="text-align: center;">
<input id="subDocId" name="subDoc" type="file" name="subDoc"/>
</form>
</div>
</body>
</html>
<script>
jQuery(function($) {
var oTable1 = $('#sample-table').dataTable( {
"bSort" : true, //是否启动各个字段的排序功能
"bStateSave": true,//状态保存
"bPaginate" : true,
"bInfo" : true, //是否显示页脚信息DataTables插件左下角显示记录数
"searching": true//搜索输入框显示
} );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
/**
* 完成咨询
*/
function finshSub(obj,archivesId,clientId,applyTime){
layer.confirm('请检查本次咨询所需工作已全部完成(咨询文档必须上传),如果您已经完成,请点击确定!',function(index){
if($.trim($("#doc").text()) == "未上传"){
layer.msg("您还未上传文档!",{icon: 0});
}else{
//ajax
$.ajax({
type : "GET",
url : "${pageContext.request.contextPath}/doctor/DoctorSubServlet?m=updateStatusFinish&archivesId="+archivesId+"&clientId="+clientId+"&applyTime="+applyTime,
dataType : "json",
success : function(data) {
if (data['isSuccess'] == true) {
layer.msg('咨询完成!请在咨询记录中查看!',{icon: 1,time:1000});
//删除页面上的
$(obj).parents("tr").remove();
}else{
layer.msg(data['msg'],{icon: 0,time:1000});
}
}
});
}
});
}
/**
* 上传文档
*/
function uploadSubDoc(archivesId){
$("#uploadSubDocFormDiv").removeAttr("style");
layer.open({
type: 1,
title: '上传文档',
maxmin: true,
area : ['300px' , '200'],
content:$("#uploadSubDocForm"),
btn:['上传','取消'],
yes:function(index,layero){
var msg = "";
if($($(layero).find('input')[0]).val() != ""){
//如果数据合法
//ajax上传$("#xx").serialize()
var formData = new FormData($(layero).find('form')[0]);
//var formData = $($(layero).find('input')[0]).val()
//var formData = $($(layero).find('form')[0]).serialize();
$.ajax({
type : "POST",
url : "${pageContext.request.contextPath}/doctor/DoctorSubServlet?m=uploadSubDoc&archivesId="+archivesId,
data: formData,
async: false,
cache: false,
contentType: false,
processData: false,
success: function (data) {
if(data.isSuccess){
msg = "上传成功!";
layer.alert(msg,{
title: '提示框',
icon:1,
});
window.location.reload();
}else{
layer.alert(data.msg,{
title: '提示框',
icon:1,
});
}
},
error: function (returndata) {
msg = "失败请刷新后重试";
layer.alert(msg,{
title: '提示框',
icon:1,
});
}
});
layer.close(index);
}else{
layer.alert("请填选择文件!",{
title: '提示框',
icon:1,
});
}
}
});
}
</script>

@ -0,0 +1,157 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/css/style.css"/>
<link href="${pageContext.request.contextPath }/mutualResource/assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/ace.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/mutualResource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<link href="${pageContext.request.contextPath }/mutualResource/Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
<title>查看申请详情</title>
</head>
<body>
<div class="clearfix" id="add_picture">
<div id="scrollsidebar" class="left_Treeview" style="text-align: center;">
<div class="show_btn" id="rightArrow"><span></span></div>
<div class="widget-box side_content" >
<div class="side_list">
<div class="widget-header header-color-green2">
<h4 class="lighter smaller">申请者</h4>
</div>
<div class="product_info clearfix">
<span>
<b>${client.name }</b>
<p>性别:${client.sex eq 1 ? "男":"女" }</p>
<p>年龄:${client.age }</p>
<p>电话:${client.phone }</p>
<p>电子邮件:${client.email }</p>
<a style="text-decoration:none" onClick="sendMessage(this,'${client.clientId}','${client.name}','client')"
href="javascript:;" title="发送消息"
class="btn btn-xs btn-success">发送消息</a>
</span>
</div>
</div>
</div>
</div>
<div class="page_right_style" >
<div class="type_title" >申请详情</div>
<div class="clearfix cl">
<div class="formControls col-10"><b>期望时间:</b>${clientArchive.expectTime}</div>
</div>
<div class=" clearfix cl">
<div class="formControls col-10"><b>期望地点:</b>${clientArchive.expectPlace}</div>
</div>
<div class=" clearfix cl">
<div class="formControls col-10"><span style="color:green">下面是申请者所做的问卷</span></div>
</div>
<div class="clearfix cl"></div>
<div class="clearfix cl">
<label class="formControls col-10"><b>主观描述:</b></label>
<div style="margin: 40px;">
<p>${clientArchive.clientDescription}
</div>
</div>
<div class="clearfix cl"><label class="formControls col-10">&nbsp;</div>
<div class="clearfix cl"><label class="form-label col-2"><b>题目:</b></label></div>
<div class="clearfix cl" id="question">
<div class="Button_operation">
<button class="btn btn-warning" type="button" onclick="javascript:window.location='${pageContext.request.contextPath }/doctor/DoctorSubServlet?m=subClientList'">&nbsp;&nbsp;查看完毕&nbsp;&nbsp;</button>
</div>
</div>
</div>
</div>
</div>
<script src="${pageContext.request.contextPath }/mutualResource/js/jquery-1.9.1.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/js/typeahead-bs2.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/layer/layer.js" type="text/javascript" ></script>
<script src="${pageContext.request.contextPath }/mutualResource/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/Widget/icheck/jquery.icheck.min.js"></script>
<script src="${pageContext.request.contextPath }/mutualResource/js/lrtk.js" type="text/javascript" ></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/js/H-ui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/mutualResource/js/H-ui.admin.js"></script>
<script>
$( document).ready(function(){
//初始化宽度、高度
$(".widget-box").height($(window).height());
$(".page_right_style").height($(window).height());
$(".page_right_style").width($(window).width()-220);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".widget-box").height($(window).height());
$(".page_right_style").height($(window).height());
$(".page_right_style").width($(window).width()-220);
});
/**
*题目
*/
var questionJson = jQuery.parseJSON('${clientArchive.questionContext}');
$.each(questionJson,function(n1, value){
var question = "<div class=\"clearfix cl\" >";
question += "<label class=\"form-label col-2\">&nbsp;</label>";
question += "<div class=\"formControls col-30\">";
question += "<span class=\"lbl\">" + value.context + "</span> ";
if(value.clientSelected == value.answer_yes_score){
question += "&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"lbl\" style='color:green'>是</span>";
}else {
question += "&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"lbl\" style='color:green'>否</span>";
}
question += "</div></div>";
$("#question").before(question);
});
});
</script>
<%@include file="/mutualResource/form/SendMessageForm.jsp"%>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

@ -0,0 +1,29 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<h2>
<a href="${pageContext.request.contextPath }/client/reg">来访者注册</a>
</h2>
<h2>
<a href="${pageContext.request.contextPath }/client/ClientLoginServlet">来访者登录</a>
</h2>
来访者测试账号15035141926<br/>
密码123456
<h2>
<a href="${pageContext.request.contextPath }/admin/login">管理员登录</a>
</h2>
管理员测试账号root <br/>
密码root
<h2>
<a href="${pageContext.request.contextPath }/doctor/DoctorLoginServlet">咨询师登录</a>
</h2>
咨询师测试账号15035141926<br/>
密码123456
<br/><br/>
ps:机器比较小,访问速度慢,见谅

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
clearStr: "Clear",
todayStr: "Today",
okStr: "OK",
updateStr: "OK",
timeStr: "Time",
quickStr: "Quick Selection",
err_1: 'MinDate Cannot be bigger than MaxDate!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u786E\u5B9A",
updateStr: "\u786E\u5B9A",
timeStr: "\u65F6\u95F4",
quickStr: "\u5FEB\u901F\u9009\u62E9",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u78BA\u5B9A",
updateStr: "\u78BA\u5B9A",
timeStr: "\u6642\u9593",
quickStr: "\u5FEB\u901F\u9078\u64C7",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!'
}

@ -0,0 +1,9 @@
.Wdate{
background:#fff url(datePicker.gif) no-repeat right;
}
.Wdate::-ms-clear{display:none;}
.WdateFmtErr{
font-weight:bold;
color:red;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1 @@
body,th,td,button,input,select,textarea{font-family:"Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,"WenQuanYi Micro Hei",Verdana,sans-serif,"\5B8B\4F53";font-size:12px;color: #333;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing:grayscale}.WdateDiv{width:180px;background-color:#fff;border:#bbb 1px solid;padding:2px}.WdateDiv2{width:360px}.WdateDiv *{font-size:9pt}.WdateDiv .NavImg a{display:block;cursor:pointer;height:16px;width:16px}.WdateDiv .NavImgll a{float:left;background:transparent url(img.gif) no-repeat scroll 0 0}.WdateDiv .NavImgl a{float:left;background:transparent url(img.gif) no-repeat scroll -16px 0}.WdateDiv .NavImgr a{float:right;background:transparent url(img.gif) no-repeat scroll -32px 0}.WdateDiv .NavImgrr a{float:right;background:transparent url(img.gif) no-repeat scroll -48px 0}.WdateDiv #dpTitle{height:24px;margin-bottom:2px;padding:1px}.WdateDiv .yminput{margin-top:2px;text-align:center;height:20px;border:0;width:50px;cursor:pointer}.WdateDiv .yminputfocus{margin-top:2px;text-align:center;font-weight:bold;height:20px;color:blue;border:#ccc 1px solid;width:50px}.WdateDiv .menuSel{z-index:1;position:absolute;background-color:#fff;border:#ddd 1px solid;display:none}.WdateDiv .menu{cursor:pointer;background-color:#fff}.WdateDiv .menuOn{cursor:pointer;background-color:#beebee}.WdateDiv .invalidMenu{color:#aaa}.WdateDiv .YMenu{margin-top:20px}.WdateDiv .MMenu{margin-top:20px;*width:62px}.WdateDiv .hhMenu{margin-top:-90px;margin-left:26px}.WdateDiv .mmMenu{margin-top:-46px;margin-left:26px}.WdateDiv .ssMenu{margin-top:-24px;margin-left:26px}.WdateDiv .Wweek{text-align:center;background:#daf3f5;border-right:#ddd 1px solid}.WdateDiv .MTitle{background-color:#5a98de;color:#fff}.WdateDiv .MTitle td{ color:#fff}.WdateDiv .WdayTable2{border-collapse:collapse;border:#c5d9e8 1px solid}.WdateDiv .WdayTable2 table{border:0}.WdateDiv .WdayTable{line-height:20px;border:#c5d9e8 1px solid}.WdateDiv .WdayTable td{text-align:center;}.WdateDiv .Wday{cursor:pointer}.WdateDiv .WdayOn{cursor:pointer;background-color:#5a98de;color:#fff}.WdateDiv .Wwday{cursor:pointer;color:#ff2f2f}.WdateDiv .WwdayOn{cursor:pointer;color:#fff;background-color:#5a98de}.WdateDiv .Wtoday{cursor:pointer;color:blue}.WdateDiv .Wselday{background-color:#5a98de;color:#fff}.WdateDiv .WspecialDay{background-color:#66f4df}.WdateDiv .WotherDay{cursor:pointer;color:#428bca}.WdateDiv .WotherDayOn{cursor:pointer;background-color:#5a98de;color:#fff}.WdateDiv .WinvalidDay{color:#aaa}.WdateDiv #dpTime{float:left;margin-top:3px;margin-right:30px}.WdateDiv #dpTime #dpTimeStr{margin-left:1px}.WdateDiv #dpTime input{width:18px;height:20px;text-align:center;border:#ccc 1px solid}.WdateDiv #dpTime .tB{border-right:0}.WdateDiv #dpTime .tE{border-left:0;border-right:0}.WdateDiv #dpTime .tm{width:7px;border-left:0;border-right:0}.WdateDiv #dpTime #dpTimeUp{height:10px;width:13px;border:0;background:url(img.gif) no-repeat -32px -16px}.WdateDiv #dpTime #dpTimeDown{height:10px;width:13px;border:0;background:url(img.gif) no-repeat -48px -16px}.WdateDiv #dpQS{float:left;margin-right:3px;margin-top:3px;background:url(img.gif) no-repeat 0 -16px;width:20px;height:20px;cursor:pointer}.WdateDiv #dpControl{text-align:right}.WdateDiv .dpButton{height:20px;width:45px;border:#ccc 1px solid;margin-top:2px;margin-right:1px}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -0,0 +1,339 @@
/*
* My97 DatePicker 4.8
* auther : zhangkun , hejianting(design)
* email : zhangkun_net@hotmail.com
* date : 2012-05-25
*/
.WdateDiv
{
position:relative;
padding:5px;
width:180px;
*width:190px;
font-size:12px;
color:#333;
border:solid 1px #DEDEDE;
background-color:#F2F0F1;
}
.WdateDiv2
{
width:360px;
}
.WdateDiv .NavImg a,.WdateDiv .yminput,.WdateDiv .yminputfocus,.WdateDiv #dpQS
{
background:url(img.gif) no-repeat;
}
.WdateDiv .NavImg a
{
float:left;
width:16px;
height:16px;
cursor:pointer;
}
.WdateDiv .NavImgll a
{
background-position:0px 5px;
}
.WdateDiv .NavImgl a
{
background-position:0px -10px;
}
.WdateDiv .NavImgr a
{
background-position:0px -25px;
float:right;
}
.WdateDiv .NavImgrr a
{
background-position:0px -40px;
float:right;
}
.WdateDiv #dpTitle
{
padding:3px 0px 0px 0px;
line-height:0px;
height:20px;
*height:23;
}
.WdateDiv .yminput,.WdateDiv .yminputfocus
{
margin-left:3px;
width:50px;
height:20px;
line-height:16px;
border:solid 1px #F2F0F1;
cursor:pointer;
background-position:35px -68px;
}
.WdateDiv .yminputfocus
{
background-color:#fff;
border:solid 1px #D8D8D8;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#A3C6C8 1px solid;
display:none;
}
.WdateDiv .menu
{
background:#fff;
}
.WdateDiv .menuOn
{
color:#fff;
background:#64A3F3;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .MMenu,.WdateDiv .YMenu
{
padding:2px;
margin-top:20px;
margin-left:-1px;
width:68px;
border:solid 1px #D9D9D9;
}
.WdateDiv .MMenu table,.WdateDiv .YMenu table
{
width:100%;
}
.WdateDiv .MMenu table td,.WdateDiv .YMenu table td
{
padding:0px;
line-height:20px;
text-align:center;
font-size:12px;
cursor: pointer;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv td
{
padding:1px;
line-height:20px;
font-size:12px;
color:#999999;
background:#fff;
cursor:pointer;
}
.WdateDiv .MTitle td
{
line-height:24px;
color:#7D7D7D;
background:#F2F0F1;
cursor: default;
}
.WdateDiv .WdayTable2
{
border-collapse:collapse;
border:#808080 1px solid;
}
.WdateDiv .WdayTable2 table
{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
color:#13777e;
background-color:#edfbfb;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday
{
color:#323232;
}
.WdateDiv .WdayOn
{
color:#fff;
background-color:#65A2F3;
}
.WdateDiv .Wwday
{
color:#65A4F3;
}
.WdateDiv .WwdayOn
{
color:#fff;
background-color:#65A2F3;
}
.WdateDiv .Wtoday
{
color:#FF6D10;
background:#E0EDFE;
}
.WdateDiv .Wselday
{
color:#fff;
background-color:#65A2F3;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay
{
color:#D4D4D4;
}
.WdateDiv .WotherDayOn
{
color:#fff;
background-color:#65A2F3;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime
{
position:relative;
margin-top:5px;
}
.WdateDiv #dpTime #dpTimeStr
{
display:inline-block;
width:28px;
*width:30px;
color:#7d7d7d;
}
.WdateDiv #dpTime input
{
padding:0px;
margin:0px;
width:25px;
height:20px;
line-height:20px;
text-align:center;
color:#333;
border:#D9D9D9 1px solid;
}
.WdateDiv #dpTime .tm
{
width:7px;
border:none;
background:#F2F0F1;
}
.WdateDiv #dpTime #dpTimeUp
{
display:none;
}
.WdateDiv #dpTime #dpTimeDown
{
display:none;
}
.WdateDiv #dpQS
{
float:left;
margin-right:3px;
margin-top:9px;
*margin-top:6px;
width:16px;
height:16px;
cursor:pointer;
background-position:0px -90px;
}
.WdateDiv #dpControl
{
text-align:right;
margin-top:3px;
}
.WdateDiv .dpButton
{
margin-left:2px;
line-height:18px;
*line-height:16px;
width:45px;
background-color:#C3C3C3;
*background-color:#64A3F3;
color:#fff;
border:none;
cursor: pointer;
}
.WdateDiv .dpButton:hover
{
background-color:#64A3F3;
}
.WdateDiv .hhMenu,
.WdateDiv .mmMenu,
.WdateDiv .ssMenu
{
position:absolute;
padding:3px;
font-size:12px;
color:#333;
border:solid 1px #DEDEDE;
background-color:#F2F0F1;
}
.WdateDiv #dpTime .menu,.WdateDiv #dpTime .menuOn
{
width:18px;
height:18px;
line-height:18px;
text-align:center;
background:#fff;
}
.WdateDiv #dpTime .menuOn
{
background:#65A2F3;
}
.WdateDiv #dpTime td
{
background:#F2F0F1;
}
.WdateDiv .hhMenu
{
top:-87px;
left:35px;
left:32px\9;
}
.WdateDiv .mmMenu
{
top:-47px;
left:35px;
left:32px\9;
}
.WdateDiv .ssMenu
{
top:-27px;
left:35px;
left:32px\9;
}

@ -0,0 +1 @@
.WdateDiv{position:relative;width:190px;font-size:12px;color:#333;border:solid 1px #DEDEDE;background-color:#F2F0F1;padding:5px;}.WdateDiv2{width:360px;}.WdateDiv .NavImg a,.WdateDiv .yminput,.WdateDiv .yminputfocus,.WdateDiv #dpQS{background:url(img.gif) no-repeat;}.WdateDiv .NavImg a{float:left;width:16px;height:16px;cursor:pointer;}.WdateDiv .NavImgll a{background-position:0 5px;}.WdateDiv .NavImgl a{background-position:0 -10px;}.WdateDiv .NavImgr a{background-position:0 -25px;float:right;}.WdateDiv .NavImgrr a{background-position:0 -40px;float:right;}.WdateDiv #dpTitle{line-height:0;height:23px;padding:3px 0 0;}.WdateDiv .yminput,.WdateDiv .yminputfocus{margin-left:3px;width:50px;height:20px;line-height:16px;border:solid 1px #F2F0F1;cursor:pointer;background-position:35px -68px;}.WdateDiv .yminputfocus{background-color:#fff;border:solid 1px #D8D8D8;}.WdateDiv .menuSel{z-index:1;position:absolute;background-color:#FFF;border:#A3C6C8 1px solid;display:none;}.WdateDiv .menu{background:#fff;}.WdateDiv .menuOn{color:#fff;background:#FFC600;}.WdateDiv .MMenu,.WdateDiv .YMenu{margin-top:20px;margin-left:-1px;width:68px;border:solid 1px #D9D9D9;padding:2px;}.WdateDiv .MMenu table,.WdateDiv .YMenu table{width:100%;}.WdateDiv .MMenu table td,.WdateDiv .YMenu table td{line-height:20px;text-align:center;font-size:14px;cursor:pointer;padding:0;}.WdateDiv .Wweek{text-align:center;background:#DAF3F5;border-right:#BDEBEE 1px solid;}.WdateDiv td{line-height:20px;font-size:12px;color:#999;background:#fff;cursor:pointer;padding:1px;}.WdateDiv .MTitle td{line-height:24px;color:#7D7D7D;background:#F2F0F1;cursor:default;}.WdateDiv .WdayTable2{border-collapse:collapse;border:gray 1px solid;}.WdateDiv .WdayTable2 table{border:0;}.WdateDiv .WdayTable{line-height:20px;color:#13777e;background-color:#edfbfb;}.WdateDiv .WdayTable td{text-align:center;}.WdateDiv .Wday{color:#323232;}.WdateDiv .Wwday{color:#FFC600;}.WdateDiv .Wtoday{color:#FF6D10;background:#E0EDFE;}.WdateDiv .WspecialDay{background-color:#66F4DF;}.WdateDiv .WotherDay{color:#D4D4D4;}.WdateDiv #dpTime{position:relative;margin-top:5px;}.WdateDiv #dpTime #dpTimeStr{display:inline-block;width:30px;color:#7d7d7d;}.WdateDiv #dpTime input{width:25px;height:20px;line-height:20px;text-align:center;color:#333;border:#D9D9D9 1px solid;margin:0;padding:0;}.WdateDiv #dpTime .tm{width:7px;border:none;background:#F2F0F1;}.WdateDiv #dpQS{float:left;margin-right:3px;margin-top:6px;width:16px;height:16px;cursor:pointer;background-position:0 -90px;}.WdateDiv #dpControl{text-align:right;margin-top:3px;}.WdateDiv .dpButton{margin-left:2px;line-height:16px;width:45px;background-color:#FFC600;color:#fff;border:none;cursor:pointer;}.WdateDiv .dpButton:hover{background-color:#FFC600;}.WdateDiv .hhMenu,.WdateDiv .mmMenu,.WdateDiv .ssMenu{position:absolute;font-size:12px;color:#333;border:solid 1px #DEDEDE;background-color:#F2F0F1;padding:3px;}.WdateDiv #dpTime .menu,.WdateDiv #dpTime .menuOn{width:18px;height:18px;line-height:18px;text-align:center;background:#fff;}.WdateDiv #dpTime .menuOn{background:#FFC600;}.WdateDiv #dpTime td{background:#F2F0F1;}.WdateDiv .hhMenu{top:-87px;left:32px;}.WdateDiv .mmMenu{top:-47px;left:32px;}.WdateDiv .ssMenu{top:-27px;left:32px;}.WdateDiv .invalidMenu,.WdateDiv .WinvalidDay{color:#aaa;}.WdateDiv .WdayOn,.WdateDiv .WwdayOn,.WdateDiv .Wselday,.WdateDiv .WotherDayOn{background-color:#FFC600;color:#fff;}.WdateDiv #dpTime #dpTimeUp,.WdateDiv #dpTime #dpTimeDown{display:none;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

@ -0,0 +1,256 @@
/*
* My97 DatePicker 4.8 Skin:whyGreen
*/
.WdateDiv{
width:180px;
background-color:#fff;
border:#C5E1E4 1px solid;
padding:2px;
}
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
.WdateDiv .NavImg a{
cursor:pointer;
display:block;
width:16px;
height:16px;
margin-top:1px;
}
.WdateDiv .NavImgll a{
float:left;
background:url(img.gif) no-repeat;
}
.WdateDiv .NavImgl a{
float:left;
background:url(img.gif) no-repeat -16px 0px;
}
.WdateDiv .NavImgr a{
float:right;
background:url(img.gif) no-repeat -32px 0px;
}
.WdateDiv .NavImgrr a{
float:right;
background:url(img.gif) no-repeat -48px 0px;
}
.WdateDiv #dpTitle{
height:24px;
padding:1px;
border:#c5d9e8 1px solid;
background:url(bg.jpg);
margin-bottom:2px;
}
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
border:0px;
height:20px;
width:50px;
color:#034c50;
background-color:transparent;
cursor:pointer;
}
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
border:#939393 1px solid;
font-weight:bold;
color:#034c50;
height:20px;
width:50px;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#A3C6C8 1px solid;
display:none;
}
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
color:#11777C;
}
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .YMenu{
margin-top:20px;
}
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv .MTitle{
color:#13777e;
background-color:#bdebee;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
color:#13777e;
background-color:#edfbfb;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday{
cursor:pointer;
}
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#74d2d9 ;
}
.WdateDiv .Wwday{
cursor:pointer;
color:#ab1e1e;
}
.WdateDiv .WwdayOn{
cursor:pointer;
background-color:#74d2d9;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A7E2E7;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay{
cursor:pointer;
color:#0099CC;
}
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
color:#497F7F;
}
.WdateDiv #dpTime input{
height:20px;
width:18px;
text-align:center;
color:#333;
border:#61CAD0 1px solid;
}
.WdateDiv #dpTime .tB{
border-right:0px;
}
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
margin-top:3px;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
margin-top:2px;
border:#38B1B9 1px solid;
background-color:#CFEBEE;
color:#08575B;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -0,0 +1,152 @@
/*! DataTables 1.10.0
* ©2008-2014 SpryMedia Ltd - datatables.net/license
*/
(function(za,N,l){var M=function(g){function S(a){var b,c,d={};g.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&S(a[e])});a._hungarianMap=d}function G(a,b,c){a._hungarianMap||S(a);var d;g.each(b,function(e){d=a._hungarianMap[e];if(d!==l&&(c||b[d]===l))"o"===d.charAt(0)?(b[d]||(b[d]={}),g.extend(!0,b[d],b[e]),G(a[d],b[d],c)):b[d]=b[e]})}function M(a){var b=p.defaults.oLanguage,c=a.sZeroRecords;
!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&D(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&D(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&bb(a)}function cb(a){w(a,"ordering","bSort");w(a,"orderMulti","bSortMulti");w(a,"orderClasses","bSortClasses");w(a,"orderCellsTop","bSortCellsTop");w(a,"order","aaSorting");w(a,"orderFixed","aaSortingFixed");w(a,"paging","bPaginate");
w(a,"pagingType","sPaginationType");w(a,"pageLength","iDisplayLength");w(a,"searching","bFilter")}function db(a){w(a,"orderable","bSortable");w(a,"orderData","aDataSort");w(a,"orderSequence","asSorting");w(a,"orderDataType","sortDataType")}function eb(a){var a=a.oBrowser,b=g("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(g("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(g('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),
c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==c.offset().left;b.remove()}function fb(a,b,c,d,e,f){var h,i=!1;c!==l&&(h=c,i=!0);for(;d!==e;)a.hasOwnProperty(d)&&(h=i?b(h,a[d],d,a):a[d],i=!0,d+=f);return h}function Aa(a,b){var c=p.defaults.column,d=a.aoColumns.length,c=g.extend({},p.models.oColumn,c,{nTh:b?b:N.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;
c[d]=g.extend({},p.models.oSearch,c[d]);fa(a,d,null)}function fa(a,b,c){var d=a.aoColumns[b],b=a.oClasses,e=g(d.nTh);if(!d.sWidthOrig){d.sWidthOrig=e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%])/);f&&(d.sWidthOrig=f[1])}c!==l&&null!==c&&(db(c),G(p.defaults.column,c),c.mDataProp!==l&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(d._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),g.extend(d,c),D(d,c,"sWidth","sWidthOrig"),"number"===typeof c.iDataSort&&
(d.aDataSort=[c.iDataSort]),D(d,c,"aDataSort"));var c=d.mData,h=T(c),i=d.mRender?T(d.mRender):null,f=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};d._bAttrSrc=g.isPlainObject(c)&&(f(c.sort)||f(c.type)||f(c.filter));d.fnGetData=function(a,b){var c=h(a,b);return d.mRender&&b&&""!==b?i(c,b,a):c};d.fnSetData=Ba(c);a.oFeatures.bSort||(d.bSortable=!1,e.addClass(b.sSortableNone));a=-1!==g.inArray("asc",d.asSorting);e=-1!==g.inArray("desc",d.asSorting);!d.bSortable||!a&&!e?(d.sSortingClass=
b.sSortableNone,d.sSortingClassJUI=""):a&&!e?(d.sSortingClass=b.sSortableAsc,d.sSortingClassJUI=b.sSortJUIAscAllowed):!a&&e?(d.sSortingClass=b.sSortableDesc,d.sSortingClassJUI=b.sSortJUIDescAllowed):(d.sSortingClass=b.sSortable,d.sSortingClassJUI=b.sSortJUI)}function U(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ca(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&V(a);t(a,null,"column-sizing",[a])}function ga(a,b){var c=W(a,"bVisible");
return"number"===typeof c[b]?c[b]:null}function X(a,b){var c=W(a,"bVisible"),c=g.inArray(b,c);return-1!==c?c:null}function Y(a){return W(a,"bVisible").length}function W(a,b){var c=[];g.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Da(a){var b=a.aoColumns,c=a.aoData,d=p.ext.type.detect,e,f,h,i,j,g,m,o,k;e=0;for(f=b.length;e<f;e++)if(m=b[e],k=[],!m.sType&&m._sManualType)m.sType=m._sManualType;else if(!m.sType){h=0;for(i=d.length;h<i;h++){j=0;for(g=c.length;j<g&&!(k[j]===l&&(k[j]=
A(a,j,e,"type")),o=d[h](k[j],a),!o||"html"===o);j++);if(o){m.sType=o;break}}m.sType||(m.sType="string")}}function gb(a,b,c,d){var e,f,h,i,j,n,m=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var o=n.targets!==l?n.targets:n.aTargets;g.isArray(o)||(o=[o]);f=0;for(h=o.length;f<h;f++)if("number"===typeof o[f]&&0<=o[f]){for(;m.length<=o[f];)Aa(a);d(o[f],n)}else if("number"===typeof o[f]&&0>o[f])d(m.length+o[f],n);else if("string"===typeof o[f]){i=0;for(j=m.length;i<j;i++)("_all"==o[f]||g(m[i].nTh).hasClass(o[f]))&&
d(i,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function H(a,b,c,d){var e=a.aoData.length,f=g.extend(!0,{},p.models.oRow,{src:c?"dom":"data"});f._aData=b;a.aoData.push(f);for(var b=a.aoColumns,f=0,h=b.length;f<h;f++)c&&Ea(a,e,f,A(a,e,f)),b[f].sType=null;a.aiDisplayMaster.push(e);a.oFeatures.bDeferRender||Fa(a,e,c,d);return e}function ha(a,b){var c;b instanceof g||(b=g(b));return b.map(function(b,e){c=ia(a,e);return H(a,c.data,e,c.cells)})}function A(a,b,c,d){var c=a.aoColumns[c],e=a.aoData[b]._aData,
f=c.fnGetData(e,d);if(f===l)return a.iDrawError!=a.iDraw&&null===c.sDefaultContent&&(O(a,0,"Requested unknown parameter "+("function"==typeof c.mData?"{function}":"'"+c.mData+"'")+" for row "+b,4),a.iDrawError=a.iDraw),c.sDefaultContent;if((f===e||null===f)&&null!==c.sDefaultContent)f=c.sDefaultContent;else if("function"===typeof f)return f();return null===f&&"display"==d?"":f}function Ea(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d)}function Ga(a){return g.map(a.match(/(\\.|[^\.])+/g),
function(a){return a.replace("\\.",".")})}function T(a){if(g.isPlainObject(a)){var b={};g.each(a,function(a,c){c&&(b[a]=T(c))});return function(a,c,f){var h=b[c]||b._;return h!==l?h(a,c,f):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f){return a(b,c,f)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var h,i;if(""!==f){i=Ga(f);for(var j=0,g=i.length;j<g;j++){f=i[j].match(Z);h=i[j].match(P);if(f){i[j]=
i[j].replace(Z,"");""!==i[j]&&(a=a[i[j]]);h=[];i.splice(0,j+1);i=i.join(".");j=0;for(g=a.length;j<g;j++)h.push(c(a[j],b,i));a=f[0].substring(1,f[0].length-1);a=""===a?h:h.join(a);break}else if(h){i[j]=i[j].replace(P,"");a=a[i[j]]();continue}if(null===a||a[i[j]]===l)return l;a=a[i[j]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function Ba(a){if(g.isPlainObject(a))return Ba(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,d){a(b,"set",
d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=Ga(e),f;f=e[e.length-1];for(var h,i,j=0,g=e.length-1;j<g;j++){h=e[j].match(Z);i=e[j].match(P);if(h){e[j]=e[j].replace(Z,"");a[e[j]]=[];f=e.slice();f.splice(0,j+1);h=f.join(".");i=0;for(g=d.length;i<g;i++)f={},b(f,d[i],h),a[e[j]].push(f);return}i&&(e[j]=e[j].replace(P,""),a=a[e[j]](d));if(null===a[e[j]]||a[e[j]]===l)a[e[j]]={};a=a[e[j]]}if(f.match(P))a[f.replace(P,"")](d);else a[f.replace(Z,
"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ha(a){return B(a.aoData,"_aData")}function ja(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0}function ka(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===l&&a.splice(d,1)}function la(a,b,c,d){var e=a.aoData[b],f;if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=ia(a,e).data;else{var h=e.anCells;if(h){c=0;for(f=h.length;c<f;c++)h[c].innerHTML=A(a,b,c,"display")}}e._aSortData=
null;e._aFilterData=null;a=a.aoColumns;if(d!==l)a[d].sType=null;else{c=0;for(f=a.length;c<f;c++)a[c].sType=null}Ia(e)}function ia(a,b){var c=[],d=[],e=b.firstChild,f,h,i,j=0,n,m=a.aoColumns,o=function(a,b,c){"string"===typeof a&&(b=a.indexOf("@"),-1!==b&&(a=a.substring(b+1),i["@"+a]=c.getAttribute(a)))},k=function(a){h=m[j];n=g.trim(a.innerHTML);h&&h._bAttrSrc?(i={display:n},o(h.mData.sort,i,a),o(h.mData.type,i,a),o(h.mData.filter,i,a),c.push(i)):c.push(n);d.push(a);j++};if(e)for(;e;)f=e.nodeName.toUpperCase(),
("TD"==f||"TH"==f)&&k(e),e=e.nextSibling;else{d=b.anCells;e=0;for(f=d.length;e<f;e++)k(d[e])}return{data:c,cells:d}}function Fa(a,b,c,d){var e=a.aoData[b],f=e._aData,h=[],i,j,g,m,o;if(null===e.nTr){i=c||N.createElement("tr");e.nTr=i;e.anCells=h;i._DT_RowIndex=b;Ia(e);m=0;for(o=a.aoColumns.length;m<o;m++){g=a.aoColumns[m];j=c?d[m]:N.createElement(g.sCellType);h.push(j);if(!c||g.mRender||g.mData!==m)j.innerHTML=A(a,b,m,"display");g.sClass&&(j.className+=" "+g.sClass);g.bVisible&&!c?i.appendChild(j):
!g.bVisible&&c&&j.parentNode.removeChild(j);g.fnCreatedCell&&g.fnCreatedCell.call(a.oInstance,j,A(a,b,m,"display"),f,b,m)}t(a,"aoRowCreatedCallback",null,[i,f,b])}e.nTr.setAttribute("role","row")}function Ia(a){var b=a.nTr,c=a._aData;if(b){c.DT_RowId&&(b.id=c.DT_RowId);if(c.DT_RowClass){var d=c.DT_RowClass.split(" ");a.__rowc=a.__rowc?Ja(a.__rowc.concat(d)):d;g(b).removeClass(a.__rowc.join(" ")).addClass(c.DT_RowClass)}c.DT_RowData&&g(b).data(c.DT_RowData)}}function hb(a){var b,c,d,e,f,h=a.nTHead,
i=a.nTFoot,j=0===g("th, td",h).length,n=a.oClasses,m=a.aoColumns;j&&(e=g("<tr/>").appendTo(h));b=0;for(c=m.length;b<c;b++)f=m[b],d=g(f.nTh).addClass(f.sClass),j&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Ka(a,f.nTh,b))),f.sTitle!=d.html()&&d.html(f.sTitle),La(a,"header")(a,d,f,n);j&&$(a.aoHeader,h);g(h).find(">tr").attr("role","row");g(h).find(">tr>th, >tr>td").addClass(n.sHeaderTH);g(i).find(">tr>th, >tr>td").addClass(n.sFooterTH);
if(null!==i){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=m[b],f.nTf=a[b].cell,f.sClass&&g(f.nTf).addClass(f.sClass)}}function I(a,b,c){var d,e,f,h=[],i=[],j=a.aoColumns.length,n;if(b){c===l&&(c=!1);d=0;for(e=b.length;d<e;d++){h[d]=b[d].slice();h[d].nTr=b[d].nTr;for(f=j-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&h[d].splice(f,1);i.push([])}d=0;for(e=h.length;d<e;d++){if(a=h[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=h[d].length;f<b;f++)if(n=j=1,i[d][f]===l){a.appendChild(h[d][f].cell);for(i[d][f]=
1;h[d+j]!==l&&h[d][f].cell==h[d+j][f].cell;)i[d+j][f]=1,j++;for(;h[d][f+n]!==l&&h[d][f].cell==h[d][f+n].cell;){for(c=0;c<j;c++)i[d+c][f+n]=1;n++}g(h[d][f].cell).attr("rowspan",j).attr("colspan",n)}}}}function J(a){var b=t(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==g.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,h=a.iInitDisplayStart,i="ssp"==z(a),j=a.aiDisplay;a.bDrawing=!0;h!==l&&-1!==h&&(a._iDisplayStart=i?h:h>=a.fnRecordsDisplay()?0:h,a.iInitDisplayStart=
-1);var h=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(i){if(!a.bDestroying&&!ib(a))return}else a.iDraw++;if(0!==j.length){f=i?a.aoData.length:n;for(i=i?0:h;i<f;i++){var m=j[i],o=a.aoData[m];null===o.nTr&&Fa(a,m);m=o.nTr;if(0!==e){var k=d[c%e];o._sRowStripe!=k&&(g(m).removeClass(o._sRowStripe).addClass(k),o._sRowStripe=k)}t(a,"aoRowCallback",null,[m,o._aData,c,i]);b.push(m);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==z(a)?c=f.sLoadingRecords:
f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=g("<tr/>",{"class":e?d[0]:""}).append(g("<td />",{valign:"top",colSpan:Y(a),"class":a.oClasses.sRowEmpty}).html(c))[0];t(a,"aoHeaderCallback","header",[g(a.nTHead).children("tr")[0],Ha(a),h,n,j]);t(a,"aoFooterCallback","footer",[g(a.nTFoot).children("tr")[0],Ha(a),h,n,j]);d=g(a.nTBody);d.children().detach();d.append(g(b));t(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function K(a,b){var c=a.oFeatures,d=c.bFilter;
c.bSort&&jb(a);d?aa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);J(a)}function kb(a){var b=a.oClasses,c=g(a.nTable),c=g("<div/>").insertBefore(c),d=a.oFeatures,e=g("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),h,i,j,n,m,o,k=0;k<f.length;k++){h=null;i=f[k];if("<"==i){j=g("<div/>")[0];n=f[k+1];if("'"==n||'"'==n){m=
"";for(o=2;f[k+o]!=n;)m+=f[k+o],o++;"H"==m?m=b.sJUIHeader:"F"==m&&(m=b.sJUIFooter);-1!=m.indexOf(".")?(n=m.split("."),j.id=n[0].substr(1,n[0].length-1),j.className=n[1]):"#"==m.charAt(0)?j.id=m.substr(1,m.length-1):j.className=m;k+=o}e.append(j);e=g(j)}else if(">"==i)e=e.parent();else if("l"==i&&d.bPaginate&&d.bLengthChange)h=lb(a);else if("f"==i&&d.bFilter)h=mb(a);else if("r"==i&&d.bProcessing)h=nb(a);else if("t"==i)h=ob(a);else if("i"==i&&d.bInfo)h=pb(a);else if("p"==i&&d.bPaginate)h=qb(a);else if(0!==
p.ext.feature.length){j=p.ext.feature;o=0;for(n=j.length;o<n;o++)if(i==j[o].cFeature){h=j[o].fnInit(a);break}}h&&(j=a.aanFeatures,j[i]||(j[i]=[]),j[i].push(h),e.append(h))}c.replaceWith(e)}function $(a,b){var c=g(b).children("tr"),d,e,f,h,i,j,n,m,o,k;a.splice(0,a.length);f=0;for(j=c.length;f<j;f++)a.push([]);f=0;for(j=c.length;f<j;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){m=1*e.getAttribute("colspan");o=1*e.getAttribute("rowspan");m=!m||
0===m||1===m?1:m;o=!o||0===o||1===o?1:o;h=0;for(i=a[f];i[h];)h++;n=h;k=1===m?!0:!1;for(i=0;i<m;i++)for(h=0;h<o;h++)a[f+h][n+i]={cell:e,unique:k},a[f+h].nTr=d}e=e.nextSibling}}}function ma(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],$(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,h=c[b].length;f<h;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function na(a,b,c){t(a,"aoServerParams","serverParams",[b]);if(b&&g.isArray(b)){var d={},e=/(.*?)\[\]$/;g.each(b,function(a,b){var c=
b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,h=a.ajax,i=a.oInstance;if(g.isPlainObject(h)&&h.data){f=h.data;var j=g.isFunction(f)?f(b):f,b=g.isFunction(f)&&j?j:g.extend(!0,b,j);delete h.data}j={data:b,success:function(b){var d=b.error||b.sError;d&&a.oApi._fnLog(a,0,d);a.json=b;t(a,null,"xhr",[a,b]);c(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=a.oApi._fnLog;"parsererror"==c?d(a,0,"Invalid JSON response",1):4===b.readyState&&
d(a,0,"Ajax error",7);C(a,!1)}};a.oAjaxData=b;t(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(i,a.sAjaxSource,g.map(b,function(a,b){return{name:b,value:a}}),c,a):a.sAjaxSource||"string"===typeof h?a.jqXHR=g.ajax(g.extend(j,{url:h||a.sAjaxSource})):g.isFunction(h)?a.jqXHR=h.call(i,b,c,a):(a.jqXHR=g.ajax(g.extend(j,h)),h.data=f)}function ib(a){if(a.bAjaxDataGet){a.iDraw++;C(a,!0);var b=rb(a);na(a,b,function(b){sb(a,b)},a);return!1}return!0}function rb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,
e=a.oPreviousSearch,f=a.aoPreSearchCols,h,i=[],j,n,m,o=Q(a);h=a._iDisplayStart;j=!1!==d.bPaginate?a._iDisplayLength:-1;var k=function(a,b){i.push({name:a,value:b})};k("sEcho",a.iDraw);k("iColumns",c);k("sColumns",B(b,"sName").join(","));k("iDisplayStart",h);k("iDisplayLength",j);var l={draw:a.iDraw,columns:[],order:[],start:h,length:j,search:{value:e.sSearch,regex:e.bRegex}};for(h=0;h<c;h++)n=b[h],m=f[h],j="function"==typeof n.mData?"function":n.mData,l.columns.push({data:j,name:n.sName,searchable:n.bSearchable,
orderable:n.bSortable,search:{value:m.sSearch,regex:m.bRegex}}),k("mDataProp_"+h,j),d.bFilter&&(k("sSearch_"+h,m.sSearch),k("bRegex_"+h,m.bRegex),k("bSearchable_"+h,n.bSearchable)),d.bSort&&k("bSortable_"+h,n.bSortable);d.bFilter&&(k("sSearch",e.sSearch),k("bRegex",e.bRegex));d.bSort&&(g.each(o,function(a,b){l.order.push({column:b.col,dir:b.dir});k("iSortCol_"+a,b.col);k("sSortDir_"+a,b.dir)}),k("iSortingCols",o.length));b=p.ext.legacy.ajax;return null===b?a.sAjaxSource?i:l:b?i:l}function sb(a,b){var c=
b.sEcho!==l?b.sEcho:b.draw,d=b.iTotalRecords!==l?b.iTotalRecords:b.recordsTotal,e=b.iTotalDisplayRecords!==l?b.iTotalDisplayRecords:b.recordsFiltered;if(c){if(1*c<a.iDraw)return;a.iDraw=1*c}ja(a);a._iRecordsTotal=parseInt(d,10);a._iRecordsDisplay=parseInt(e,10);c=oa(a,b);d=0;for(e=c.length;d<e;d++)H(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;J(a);a._bInitComplete||pa(a,b);a.bAjaxDataGet=!0;C(a,!1)}function oa(a,b){var c=g.isPlainObject(a.ajax)&&a.ajax.dataSrc!==l?a.ajax.dataSrc:
a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?T(c)(b):b}function mb(a){var b=a.oClasses,c=a.sTableId,d=a.oPreviousSearch,e=a.aanFeatures,f='<input type="search" class="input-text '+b.sFilterInput+'"/>',h=a.oLanguage.sSearch,h=h.match(/_INPUT_/)?h.replace("_INPUT_",f):h+f,b=g("<div/>",{id:!e.f?c+"_filter":null,"class":b.sFilter}).append(g("<label/>").append(h)),e=function(){var b=!this.value?"":this.value;b!=d.sSearch&&(aa(a,{sSearch:b,bRegex:d.bRegex,bSmart:d.bSmart,bCaseInsensitive:d.bCaseInsensitive}),
a._iDisplayStart=0,J(a))},i=g("input",b).val(d.sSearch.replace('"',"&quot;")).bind("keyup.DT search.DT input.DT paste.DT cut.DT","ssp"===z(a)?Ma(e,400):e).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);g(a.nTable).on("filter.DT",function(){try{i[0]!==N.activeElement&&i.val(d.sSearch)}catch(a){}});return b[0]}function aa(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};
Da(a);if("ssp"!=z(a)){tb(a,b.sSearch,c,b.bEscapeRegex!==l?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)ub(a,e[b].sSearch,b,e[b].bEscapeRegex!==l?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);vb(a)}else f(b);a.bFiltered=!0;t(a,null,"search",[a])}function vb(a){for(var b=p.ext.search,c=a.aiDisplay,d,e,f=0,h=b.length;f<h;f++)for(var i=c.length-1;0<=i;i--)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData)||c.splice(i,1)}function ub(a,b,c,d,
e,f){if(""!==b)for(var h=a.aiDisplay,d=Na(b,d,e,f),e=h.length-1;0<=e;e--)b=a.aoData[h[e]]._aFilterData[c],d.test(b)||h.splice(e,1)}function tb(a,b,c,d,e,f){var d=Na(b,d,e,f),e=a.oPreviousSearch.sSearch,f=a.aiDisplayMaster,h;0!==p.ext.search.length&&(c=!0);h=wb(a);if(0>=b.length)a.aiDisplay=f.slice();else{if(h||c||e.length>b.length||0!==b.indexOf(e)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)d.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Na(a,b,c,d){a=b?a:
Oa(a);c&&(a="^(?=.*?"+g.map(a.match(/"[^"]+"|[^ ]+/g)||"",function(a){return'"'===a.charAt(0)?a.match(/^"(.*)"$/)[1]:a}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function Oa(a){return a.replace(Sb,"\\$1")}function wb(a){var b=a.aoColumns,c,d,e,f,h,i,j,g,m=p.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(g=a.aoData[d],!g._aFilterData){i=[];e=0;for(h=b.length;e<h;e++)c=b[e],c.bSearchable?(j=A(a,d,e,"filter"),j=m[c.sType]?m[c.sType](j):null!==j?j:""):j="",j.indexOf&&-1!==j.indexOf("&")&&
(qa.innerHTML=j,j=Tb?qa.textContent:qa.innerText),j.replace&&(j=j.replace(/[\r\n]/g,"")),i.push(j);g._aFilterData=i;g._sFilterRow=i.join(" ");c=!0}return c}function pb(a){var b=a.sTableId,c=a.aanFeatures.i,d=g("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:xb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),g(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function xb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,
d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),h=a.fnRecordsDisplay(),i=h?c.sInfo:c.sInfoEmpty;h!==f&&(i+=" "+c.sInfoFiltered);i+=c.sInfoPostFix;i=yb(a,i);c=c.fnInfoCallback;null!==c&&(i=c.call(a.oInstance,a,d,e,f,h,i));g(b).html(i)}}function yb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),h=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,
c.call(a,f)).replace(/_PAGE_/g,c.call(a,h?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,h?1:Math.ceil(f/e)))}function ra(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;if(a.bInitialised){kb(a);hb(a);I(a,a.aoHeader);I(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ca(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=s(f.sWidth));K(a);e=z(a);"ssp"!=e&&("ajax"==e?na(a,[],function(c){var f=oa(a,c);for(b=0;b<f.length;b++)H(a,f[b]);a.iInitDisplayStart=d;K(a);C(a,!1);pa(a,c)},a):(C(a,
!1),pa(a)))}else setTimeout(function(){ra(a)},200)}function pa(a,b){a._bInitComplete=!0;b&&U(a);t(a,"aoInitComplete","init",[a,b])}function Pa(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Qa(a);t(a,null,"length",[a,c])}function lb(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=g.isArray(d[0]),f=e?d[0]:d,e=e?d[1]:d,d=g("<select/>",{name:c+"_length","aria-controls":c,"class":"select" +b.sLengthSelect}),h=0,i=f.length;h<i;h++)d[0][h]=new Option(e[h],f[h]);var j=g("<div><label/></div>").addClass(b.sLength);
a.aanFeatures.l||(j[0].id=c+"_length");b=a.oLanguage.sLengthMenu.split(/(_MENU_)/);j.children().append(1<b.length?[b[0],d,b[2]]:b[0]);g("select",j).val(a._iDisplayLength).bind("change.DT",function(){Pa(a,g(this).val());J(a)});g(a.nTable).bind("length.dt.DT",function(a,b,c){g("select",j).val(c)});return j[0]}function qb(a){var b=a.sPaginationType,c=p.ext.pager[b],d="function"===typeof c,e=function(a){J(a)},b=g("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=
a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,j=a._iDisplayLength,g=a.fnRecordsDisplay(),m=-1===j,b=m?0:Math.ceil(b/j),j=m?1:Math.ceil(g/j),g=c(b,j),o,m=0;for(o=f.p.length;m<o;m++)La(a,"pageButton")(a,f.p[m],m,g,b,j)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ra(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>
d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:O(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(t(a,null,"page",[a]),c&&J(a));return b}function nb(a){return g("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&g(a.aanFeatures.r).css("display",b?"block":"none");t(a,null,"processing",[a,b])}function ob(a){var b=
g(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,h=b.children("caption"),i=h.length?h[0]._captionSide:null,j=g(b[0].cloneNode(!1)),n=g(b[0].cloneNode(!1)),m=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");m.length||(m=null);c=g("<div/>",{"class":f.sScrollWrapper}).append(g("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:s(d):"100%"}).append(g("<div/>",
{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(j.removeAttr("id").css("margin-left",0).append(b.children("thead")))).append("top"===i?h:null)).append(g("<div/>",{"class":f.sScrollBody}).css({overflow:"auto",height:!e?null:s(e),width:!d?null:s(d)}).append(b));m&&c.append(g("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:s(d):"100%"}).append(g("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",
0).append(b.children("tfoot")))).append("bottom"===i?h:null));var b=c.children(),o=b[0],f=b[1],k=m?b[2]:null;d&&g(f).scroll(function(){var a=this.scrollLeft;o.scrollLeft=a;m&&(k.scrollLeft=a)});a.nScrollHead=o;a.nScrollBody=f;a.nScrollFoot=k;a.aoDrawCallback.push({fn:V,sName:"scrolling"});return c[0]}function V(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,f=b.iBarWidth,h=g(a.nScrollHead),i=h[0].style,j=h.children("div"),n=j[0].style,m=j.children("table"),j=a.nScrollBody,o=g(j),k=j.style,l=g(a.nScrollFoot).children("div"),
p=l.children("table"),r=g(a.nTHead),q=g(a.nTable),ba=q[0],L=ba.style,t=a.nTFoot?g(a.nTFoot):null,ca=a.oBrowser,v=ca.bScrollOversize,x,u,y,w,z,A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};q.children("thead, tfoot").remove();z=r.clone().prependTo(q);x=r.find("tr");y=z.find("tr");z.find("th, td").removeAttr("tabindex");t&&(w=t.clone().prependTo(q),u=t.find("tr"),w=w.find("tr"));c||(k.width="100%",h[0].style.width=
"100%");g.each(ma(a,z),function(b,c){D=ga(a,b);c.style.width=a.aoColumns[D].sWidth});t&&F(function(a){a.style.width=""},w);b.bCollapse&&""!==e&&(k.height=o[0].offsetHeight+r[0].offsetHeight+"px");h=q.outerWidth();if(""===c){if(L.width="100%",v&&(q.find("tbody").height()>j.offsetHeight||"scroll"==o.css("overflow-y")))L.width=s(q.outerWidth()-f)}else""!==d?L.width=s(d):h==o.width()&&o.height()<q.height()?(L.width=s(h-f),q.outerWidth()>h-f&&(L.width=s(h))):L.width=s(h);h=q.outerWidth();F(E,y);F(function(a){C.push(a.innerHTML);
A.push(s(g(a).css("width")))},y);F(function(a,b){a.style.width=A[b]},x);g(y).height(0);t&&(F(E,w),F(function(a){B.push(s(g(a).css("width")))},w),F(function(a,b){a.style.width=B[b]},u),g(w).height(0));F(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+C[b]+"</div>";a.style.width=A[b]},y);t&&F(function(a,b){a.innerHTML="";a.style.width=B[b]},w);if(q.outerWidth()<h){u=j.scrollHeight>j.offsetHeight||"scroll"==o.css("overflow-y")?h+f:h;if(v&&(j.scrollHeight>
j.offsetHeight||"scroll"==o.css("overflow-y")))L.width=s(u-f);(""===c||""!==d)&&O(a,1,"Possible column misalignment",6)}else u="100%";k.width=s(u);i.width=s(u);t&&(a.nScrollFoot.style.width=s(u));!e&&v&&(k.height=s(ba.offsetHeight+f));e&&b.bCollapse&&(k.height=s(e),b=c&&ba.offsetWidth>j.offsetWidth?f:0,ba.offsetHeight<j.offsetHeight&&(k.height=s(ba.offsetHeight+b)));b=q.outerWidth();m[0].style.width=s(b);n.width=s(b);m=q.height()>j.clientHeight||"scroll"==o.css("overflow-y");ca="padding"+(ca.bScrollbarLeft?
"Left":"Right");n[ca]=m?f+"px":"0px";t&&(p[0].style.width=s(b),l[0].style.width=s(b),l[0].style[ca]=m?f+"px":"0px");o.scroll();if(a.bSorted||a.bFiltered)j.scrollTop=0}function F(a,b,c){for(var d=0,e=0,f=b.length,h,i;e<f;){h=b[e].firstChild;for(i=c?c[e].firstChild:null;h;)1===h.nodeType&&(c?a(h,i,d):a(h,d),d++),h=h.nextSibling,i=c?i.nextSibling:null;e++}}function Ca(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX,h=d.sXInner,i=c.length,d=W(a,"bVisible"),j=g("th",a.nTHead),n=b.getAttribute("width"),
m=b.parentNode,o=!1,k,l;for(k=0;k<d.length;k++)l=c[d[k]],null!==l.sWidth&&(l.sWidth=zb(l.sWidthOrig,m),o=!0);if(!o&&!f&&!e&&i==Y(a)&&i==j.length)for(k=0;k<i;k++)c[k].sWidth=s(j.eq(k).width());else{i=g(b.cloneNode(!1)).css("visibility","hidden").removeAttr("id").append(g(a.nTHead).clone(!1)).append(g(a.nTFoot).clone(!1)).append(g("<tbody><tr/></tbody>"));i.find("tfoot th, tfoot td").css("width","");var p=i.find("tbody tr"),j=ma(a,i.find("thead")[0]);for(k=0;k<d.length;k++)l=c[d[k]],j[k].style.width=
null!==l.sWidthOrig&&""!==l.sWidthOrig?s(l.sWidthOrig):"";if(a.aoData.length)for(k=0;k<d.length;k++)o=d[k],l=c[o],g(Ab(a,o)).clone(!1).append(l.sContentPadding).appendTo(p);i.appendTo(m);f&&h?i.width(h):f?(i.css("width","auto"),i.width()<m.offsetWidth&&i.width(m.offsetWidth)):e?i.width(m.offsetWidth):n&&i.width(n);Bb(a,i[0]);if(f){for(k=h=0;k<d.length;k++)l=c[d[k]],e=g(j[k]).outerWidth(),h+=null===l.sWidthOrig?e:parseInt(l.sWidth,10)+e-g(j[k]).width();i.width(s(h));b.style.width=s(h)}for(k=0;k<d.length;k++)if(l=
c[d[k]],e=g(j[k]).width())l.sWidth=s(e);b.style.width=s(i.css("width"));i.remove()}n&&(b.style.width=s(n));if((n||f)&&!a._reszEvt)g(za).bind("resize.DT-"+a.sInstance,Ma(function(){U(a)})),a._reszEvt=!0}function Ma(a,b){var c=b||200,d,e;return function(){var b=this,h=+new Date,i=arguments;d&&h<d+c?(clearTimeout(e),e=setTimeout(function(){d=l;a.apply(b,i)},c)):d?(d=h,a.apply(b,i)):d=h}}function zb(a,b){if(!a)return 0;var c=g("<div/>").css("width",s(a)).appendTo(b||N.body),d=c[0].offsetWidth;c.remove();
return d}function Bb(a,b){var c=a.oScroll;if(c.sX||c.sY)c=!c.sX?c.iBarWidth:0,b.style.width=s(g(b).outerWidth()-c)}function Ab(a,b){var c=Cb(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?g("<td/>").html(A(a,c,b,"display"))[0]:d.anCells[b]}function Cb(a,b){for(var c,d=-1,e=-1,f=0,h=a.aoData.length;f<h;f++)c=A(a,f,b,"display")+"",c=c.replace(Ub,""),c.length>d&&(d=c.length,e=f);return e}function s(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function Db(){if(!p.__scrollbarWidth){var a=
g("<p/>").css({width:"100%",height:200,padding:0})[0],b=g("<div/>").css({position:"absolute",top:0,left:0,width:200,height:150,padding:0,overflow:"hidden",visibility:"hidden"}).append(a).appendTo("body"),c=a.offsetWidth;b.css("overflow","scroll");a=a.offsetWidth;c===a&&(a=b[0].clientWidth);b.remove();p.__scrollbarWidth=c-a}return p.__scrollbarWidth}function Q(a){var b,c,d=[],e=a.aoColumns,f,h,i,j;b=a.aaSortingFixed;c=g.isPlainObject(b);var n=[];f=function(a){a.length&&!g.isArray(a[0])?n.push(a):n.push.apply(n,
a)};g.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){j=n[a][0];f=e[j].aDataSort;b=0;for(c=f.length;b<c;b++)h=f[b],i=e[h].sType||"string",d.push({src:j,col:h,dir:n[a][1],index:n[a][2],type:i,formatter:p.ext.type.order[i+"-pre"]})}return d}function jb(a){var b,c,d=[],e=p.ext.type.order,f=a.aoData,h=0,i,g=a.aiDisplayMaster,n;Da(a);n=Q(a);b=0;for(c=n.length;b<c;b++)i=n[b],i.formatter&&h++,Eb(a,i.col);if("ssp"!=z(a)&&0!==n.length){b=0;for(c=g.length;b<c;b++)d[g[b]]=
b;h===n.length?g.sort(function(a,b){var c,e,h,g,i=n.length,j=f[a]._aSortData,l=f[b]._aSortData;for(h=0;h<i;h++)if(g=n[h],c=j[g.col],e=l[g.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===g.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):g.sort(function(a,b){var c,h,g,i,j=n.length,l=f[a]._aSortData,p=f[b]._aSortData;for(g=0;g<j;g++)if(i=n[g],c=l[i.col],h=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,h),0!==c)return c;c=d[a];h=d[b];return c<h?-1:c>h?1:0})}a.bSorted=!0}function Fb(a){for(var b,c,
d=a.aoColumns,e=Q(a),a=a.oLanguage.oAria,f=0,h=d.length;f<h;f++){c=d[f];var i=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var g=c.nTh;g.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(g.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=i[e[0].index+1]||i[0]):c=i[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);g.setAttribute("aria-label",b)}}function Sa(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,h=function(a){var b=a._idx;b===l&&(b=g.inArray(a[1],
f));return b+1>=f.length?0:b+1};c&&a.oFeatures.bSortMulti?(c=g.inArray(b,B(e,"0")),-1!==c?(b=h(e[c]),e[c][1]=f[b],e[c]._idx=b):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=h(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);K(a);"function"==typeof d&&d(a)}function Ka(a,b,c,d){var e=a.aoColumns[c];Ta(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Sa(a,c,b.shiftKey,d);"ssp"!==z(a)&&C(a,!1)},0)):Sa(a,
c,b.shiftKey,d))})}function sa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=Q(a),e=a.oFeatures,f,h;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)h=b[e].src,g(B(a.aoData,"anCells",h)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)h=d[e].src,g(B(a.aoData,"anCells",h)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Eb(a,b){var c=a.aoColumns[b],d=p.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,X(a,b)));for(var f,h=p.ext.type.order[c.sType+"-pre"],g=0,j=a.aoData.length;g<
j;g++)if(c=a.aoData[g],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[g]:A(a,g,b,"sort"),c._aSortData[b]=h?h(f):f}function ta(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={iCreate:+new Date,iStart:a._iDisplayStart,iLength:a._iDisplayLength,aaSorting:g.extend(!0,[],a.aaSorting),oSearch:g.extend(!0,{},a.oPreviousSearch),aoSearchCols:g.extend(!0,[],a.aoPreSearchCols),abVisCols:B(a.aoColumns,"bVisible")};t(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.fnStateSaveCallback.call(a.oInstance,
a,b)}}function Gb(a){var b,c,d=a.aoColumns;if(a.oFeatures.bStateSave){var e=a.fnStateLoadCallback.call(a.oInstance,a);if(e&&(b=t(a,"aoStateLoadParams","stateLoadParams",[a,e]),-1===g.inArray(!1,b)&&(b=a.iStateDuration,!(0<b&&e.iCreate<+new Date-1E3*b)&&d.length===e.aoSearchCols.length))){a.oLoadedState=g.extend(!0,{},e);a._iDisplayStart=e.iStart;a.iInitDisplayStart=e.iStart;a._iDisplayLength=e.iLength;a.aaSorting=g.map(e.aaSorting,function(a){return a[0]>=d.length?[0,a[1]]:a});g.extend(a.oPreviousSearch,
e.oSearch);g.extend(!0,a.aoPreSearchCols,e.aoSearchCols);var f=e.abVisCols;b=0;for(c=f.length;b<c;b++)d[b].bVisible=f[b];t(a,"aoStateLoaded","stateLoaded",[a,e])}}}function ua(a){var b=p.settings,a=g.inArray(a,B(b,"nTable"));return-1!==a?b[a]:null}function O(a,b,c,d){c="DataTables warning: "+(null!==a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)za.console&&console.log&&console.log(c);else if(a=p.ext,"alert"==(a.sErrMode||
a.errMode))alert(c);else throw Error(c);}function D(a,b,c,d){g.isArray(c)?g.each(c,function(c,d){g.isArray(d)?D(a,b,d[0],d[1]):D(a,b,d)}):(d===l&&(d=c),b[c]!==l&&(a[d]=b[c]))}function Hb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],g.isPlainObject(d)?(g.isPlainObject(a[e])||(a[e]={}),g.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&g.isArray(d)?d.slice():d);return a}function Ta(a,b,c){g(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&
(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function y(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function t(a,b,c,d){var e=[];b&&(e=g.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&g(a.nTable).trigger(c+".dt",d);return e}function Qa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;c===a.fnRecordsDisplay()&&(b=c-d);if(-1===d||0>b)b=0;a._iDisplayStart=b}function La(a,b){var c=a.renderer,d=p.ext.renderer[b];return g.isPlainObject(c)&&
c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function z(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Ua(a,b){var c=[],c=Ib.numbers_length,d=Math.floor(c/2);b<=c?c=R(0,b):a<=d?(c=R(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=R(b-(c-2),b):(c=R(a-1,a+2),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function bb(a){g.each({num:function(b){return va(b,a)},"num-fmt":function(b){return va(b,a,Va)},"html-num":function(b){return va(b,
a,wa)},"html-num-fmt":function(b){return va(b,a,wa,Va)}},function(b,c){u.type.order[b+a+"-pre"]=c})}function Jb(a){return function(){var b=[ua(this[p.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return p.ext.internal[a].apply(this,b)}}var p,u,q,r,x,Wa={},Kb=/[\r\n]/g,wa=/<.*?>/g,Vb=/^[\d\+\-a-zA-Z]/,Sb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Va=/[',$\u00a3\u20ac\u00a5%\u2009\u202F]/g,da=function(a){return!a||"-"===a?!0:!1},Lb=function(a){var b=
parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Mb=function(a,b){Wa[b]||(Wa[b]=RegExp(Oa(b),"g"));return"string"===typeof a?a.replace(/\./g,"").replace(Wa[b],"."):a},Xa=function(a,b,c){var d="string"===typeof a;b&&d&&(a=Mb(a,b));c&&d&&(a=a.replace(Va,""));return!a||"-"===a||!isNaN(parseFloat(a))&&isFinite(a)},Nb=function(a,b,c){return da(a)?!0:a&&"string"!==typeof a?null:Xa(a.replace(wa,""),b,c)?!0:null},B=function(a,b,c){var d=[],e=0,f=a.length;if(c!==l)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);
else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},xa=function(a,b,c,d){var e=[],f=0,h=b.length;if(d!==l)for(;f<h;f++)e.push(a[b[f]][c][d]);else for(;f<h;f++)e.push(a[b[f]][c]);return e},R=function(a,b){var c=[],d;b===l?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Ja=function(a){var b=[],c,d,e=a.length,f,h=0;d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<h;f++)if(b[f]===c)continue a;b.push(c);h++}return b},w=function(a,b,c){a[b]!==l&&(a[c]=a[b])},Z=/\[.*?\]$/,P=/\(\)$/,qa=g("<div>")[0],Tb=qa.textContent!==
l,Ub=/<.*?>/g;p=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new q(ua(this[u.iApiIndex])):new q(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=g.isArray(a)&&(g.isArray(a[0])||g.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===l||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===l||
a?b.draw(!1):(""!==d.sX||""!==d.sY)&&V(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===l||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],g=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,g);(c===l||c)&&d.draw();return g};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(!a)};this.fnFilter=function(a,b,c,d,e,g){e=this.api(!0);null===
b||b===l?e.search(a,c,d,g):e.column(b).search(a,c,d,g);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==l){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==l||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==l?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==
c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===l||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===l||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return ua(this[u.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};
this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var g=this.api(!0);c===l||null===c?g.row(b).data(a):g.cell(b,c).data(a);(e===l||e)&&g.columns.adjust();(d===l||d)&&g.draw();return 0};this.fnVersionCheck=u.fnVersionCheck;var b=this,c=a===l,d=this.length;c&&(a={});this.oApi=this.internal=u.internal;for(var e in p.ext.internal)e&&(this[e]=Jb(e));this.each(function(){var e={},h=1<d?Hb(e,a,!0):a,i=0,j,n=this.getAttribute("id"),e=!1,m=p.defaults;
if("table"!=this.nodeName.toLowerCase())O(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{cb(m);db(m.column);G(m,m,!0);G(m.column,m.column,!0);G(m,h);var o=p.settings,i=0;for(j=o.length;i<j;i++){if(o[i].nTable==this){j=h.bRetrieve!==l?h.bRetrieve:m.bRetrieve;if(c||j)return o[i].oInstance;if(h.bDestroy!==l?h.bDestroy:m.bDestroy){o[i].oInstance.fnDestroy();break}else{O(o[i],0,"Cannot reinitialise DataTable",3);return}}if(o[i].sTableId==this.id){o.splice(i,1);break}}if(null===n||""===
n)this.id=n="DataTables_Table_"+p.ext._unique++;var k=g.extend(!0,{},p.models.oSettings,{nTable:this,oApi:b.internal,oInit:h,sDestroyWidth:g(this)[0].style.width,sInstance:n,sTableId:n});o.push(k);k.oInstance=1===b.length?b:g(this).dataTable();cb(h);h.oLanguage&&M(h.oLanguage);h.aLengthMenu&&!h.iDisplayLength&&(h.iDisplayLength=g.isArray(h.aLengthMenu[0])?h.aLengthMenu[0][0]:h.aLengthMenu[0]);h=Hb(g.extend(!0,{},m),h);D(k.oFeatures,h,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));
D(k,h,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);D(k.oScroll,h,[["sScrollX","sX"],["sScrollXInner","sXInner"],
["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);D(k.oLanguage,h,"fnInfoCallback");y(k,"aoDrawCallback",h.fnDrawCallback,"user");y(k,"aoServerParams",h.fnServerParams,"user");y(k,"aoStateSaveParams",h.fnStateSaveParams,"user");y(k,"aoStateLoadParams",h.fnStateLoadParams,"user");y(k,"aoStateLoaded",h.fnStateLoaded,"user");y(k,"aoRowCallback",h.fnRowCallback,"user");y(k,"aoRowCreatedCallback",h.fnCreatedRow,"user");y(k,"aoHeaderCallback",h.fnHeaderCallback,"user");y(k,"aoFooterCallback",h.fnFooterCallback,
"user");y(k,"aoInitComplete",h.fnInitComplete,"user");y(k,"aoPreDrawCallback",h.fnPreDrawCallback,"user");n=k.oClasses;h.bJQueryUI?(g.extend(n,p.ext.oJUIClasses,h.oClasses),h.sDom===m.sDom&&"lfrtip"===m.sDom&&(k.sDom='<"H"lfr>t<"F"ip>'),k.renderer)?g.isPlainObject(k.renderer)&&!k.renderer.header&&(k.renderer.header="jqueryui"):k.renderer="jqueryui":g.extend(n,p.ext.classes,h.oClasses);g(this).addClass(n.sTable);if(""!==k.oScroll.sX||""!==k.oScroll.sY)k.oScroll.iBarWidth=Db();!0===k.oScroll.sX&&(k.oScroll.sX=
"100%");k.iInitDisplayStart===l&&(k.iInitDisplayStart=h.iDisplayStart,k._iDisplayStart=h.iDisplayStart);null!==h.iDeferLoading&&(k.bDeferLoading=!0,i=g.isArray(h.iDeferLoading),k._iRecordsDisplay=i?h.iDeferLoading[0]:h.iDeferLoading,k._iRecordsTotal=i?h.iDeferLoading[1]:h.iDeferLoading);""!==h.oLanguage.sUrl?(k.oLanguage.sUrl=h.oLanguage.sUrl,g.getJSON(k.oLanguage.sUrl,null,function(a){M(a);G(m.oLanguage,a);g.extend(true,k.oLanguage,h.oLanguage,a);ra(k)}),e=!0):g.extend(!0,k.oLanguage,h.oLanguage);
null===h.asStripeClasses&&(k.asStripeClasses=[n.sStripeOdd,n.sStripeEven]);var i=k.asStripeClasses,r=g("tbody tr:eq(0)",this);-1!==g.inArray(!0,g.map(i,function(a){return r.hasClass(a)}))&&(g("tbody tr",this).removeClass(i.join(" ")),k.asDestroyStripes=i.slice());var o=[],q,i=this.getElementsByTagName("thead");0!==i.length&&($(k.aoHeader,i[0]),o=ma(k));if(null===h.aoColumns){q=[];i=0;for(j=o.length;i<j;i++)q.push(null)}else q=h.aoColumns;i=0;for(j=q.length;i<j;i++)Aa(k,o?o[i]:null);gb(k,h.aoColumnDefs,
q,function(a,b){fa(k,a,b)});if(r.length){var s=function(a,b){return a.getAttribute("data-"+b)?b:null};g.each(ia(k,r[0]).cells,function(a,b){var c=k.aoColumns[a];if(c.mData===a){var d=s(b,"sort")||s(b,"order"),e=s(b,"filter")||s(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:l,type:d!==null?a+".@data-"+d:l,filter:e!==null?a+".@data-"+e:l};fa(k,a)}}})}var u=k.oFeatures;h.bStateSave&&(u.bStateSave=!0,Gb(k,h),y(k,"aoDrawCallback",ta,"state_save"));if(h.aaSorting===
l){o=k.aaSorting;i=0;for(j=o.length;i<j;i++)o[i][1]=k.aoColumns[i].asSorting[0]}sa(k);u.bSort&&y(k,"aoDrawCallback",function(){if(k.bSorted){var a=Q(k),b={};g.each(a,function(a,c){b[c.src]=c.dir});t(k,null,"order",[k,a,b]);Fb(k)}});y(k,"aoDrawCallback",function(){(k.bSorted||z(k)==="ssp"||u.bDeferRender)&&sa(k)},"sc");eb(k);i=g(this).children("caption").each(function(){this._captionSide=g(this).css("caption-side")});j=g(this).children("thead");0===j.length&&(j=g("<thead/>").appendTo(this));k.nTHead=
j[0];j=g(this).children("tbody");0===j.length&&(j=g("<tbody/>").appendTo(this));k.nTBody=j[0];j=g(this).children("tfoot");if(0===j.length&&0<i.length&&(""!==k.oScroll.sX||""!==k.oScroll.sY))j=g("<tfoot/>").appendTo(this);0===j.length||0===j.children().length?g(this).addClass(n.sNoFooter):0<j.length&&(k.nTFoot=j[0],$(k.aoFooter,k.nTFoot));if(h.aaData)for(i=0;i<h.aaData.length;i++)H(k,h.aaData[i]);else(k.bDeferLoading||"dom"==z(k))&&ha(k,g(k.nTBody).children("tr"));k.aiDisplay=k.aiDisplayMaster.slice();
k.bInitialised=!0;!1===e&&ra(k)}});b=null;return this};var Ob=[],v=Array.prototype,Wb=function(a){var b,c,d=p.settings,e=g.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=g.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=g(a):a instanceof g&&(c=a)}else return[];if(c)return c.map(function(){b=g.inArray(this,e);return-1!==b?d[b]:null}).toArray()};
p.Api=q=function(a,b){if(!this instanceof q)throw"DT API must be constructed as a new object";var c=[],d=function(a){(a=Wb(a))&&c.push.apply(c,a)};if(g.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=Ja(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null};q.extend(this,this,Ob)};q.prototype={concat:v.concat,context:[],each:function(a){if(v.forEach)v.forEach.call(this,a,this);else for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],
b,this);return this},eq:function(a){var b=this.context;return b.length>a?new q(b[a],this[a]):null},filter:function(a){var b=[];if(v.filter)b=v.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new q(this.context,b)},flatten:function(){var a=[];return new q(this.context,a.concat.apply(a,this.toArray()))},join:v.join,indexOf:v.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,
b,c){var d=[],e,f,h,g,j,n=this.context,m,o,k=this.selector;"string"===typeof a&&(c=b,b=a,a=!1);f=0;for(h=n.length;f<h;f++)if("table"===b)e=c(n[f],f),e!==l&&d.push(e);else if("columns"===b||"rows"===b)e=c(n[f],this[f],f),e!==l&&d.push(e);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){o=this[f];"column-rows"===b&&(m=Ya(n[f],k.opts));g=0;for(j=o.length;g<j;g++)e=o[g],e="cell"===b?c(n[f],e.row,e.column,f,g):c(n[f],e,f,g,m),e!==l&&d.push(e)}return d.length?(a=new q(n,a?d.concat.apply([],
d):d),b=a.selector,b.rows=k.rows,b.cols=k.cols,b.opts=k.opts,a):this},lastIndexOf:v.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(v.map)b=v.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new q(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:v.pop,push:v.push,reduce:v.reduce||function(a,b){return fb(this,a,b,0,this.length,1)},reduceRight:v.reduceRight||
function(a,b){return fb(this,a,b,this.length-1,-1,-1)},reverse:v.reverse,selector:null,shift:v.shift,sort:v.sort,splice:v.splice,toArray:function(){return v.slice.call(this)},to$:function(){return g(this)},toJQuery:function(){return g(this)},unique:function(){return new q(this.context,Ja(this))},unshift:v.unshift};q.extend=function(a,b,c){if(b&&(b instanceof q||b.__dt_wrapper)){var d,e,f,h=function(b,c){return function(){var d=b.apply(a,arguments);q.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<
e;d++)f=c[d],b[f.name]="function"===typeof f.val?h(f.val,f):g.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,q.extend(a,b[f.name],f.propExt)}};q.register=r=function(a,b){if(g.isArray(a))for(var c=0,d=a.length;c<d;c++)q.register(a[c],b);else{for(var e=a.split("."),f=Ob,h,i,c=0,d=e.length;c<d;c++){h=(i=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var j;a:{j=0;for(var n=f.length;j<n;j++)if(f[j].name===h){j=f[j];break a}j=null}j||(j={name:h,val:{},methodExt:[],propExt:[]},f.push(j));c===
d-1?j.val=b:f=i?j.methodExt:j.propExt}q.ready&&p.api.build()}};q.registerPlural=x=function(a,b,c){q.register(a,c);q.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof q?a.length?g.isArray(a[0])?new q(a.context,a[0]):a[0]:l:a})};r("tables()",function(a){var b;if(a){b=q;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=g.map(c,function(a){return a.nTable}),a=g(d).filter(a).map(function(){var a=g.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=
this;return b});r("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new q(b[0]):a});x("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable})});x("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody})});x("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead})});x("tables().footer()","table().footer()",function(){return this.iterator("table",
function(a){return a.nTFoot})});r("draw()",function(a){return this.iterator("table",function(b){K(b,!1===a)})});r("page()",function(a){return a===l?this.page.info().page:this.iterator("table",function(b){Ra(b,a)})});r("page.info()",function(){if(0===this.context.length)return l;var a=this.context[0],b=a._iDisplayStart,c=a._iDisplayLength,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d}});
r("page.len()",function(a){return a===l?0!==this.context.length?this.context[0]._iDisplayLength:l:this.iterator("table",function(b){Pa(b,a)})});var Pb=function(a,b,c){"ssp"==z(a)?K(a,b):(C(a,!0),na(a,[],function(c){ja(a);for(var c=oa(a,c),d=0,h=c.length;d<h;d++)H(a,c[d]);K(a,b);C(a,!1)}));if(c){var d=new q(a);d.one("draw",function(){c(d.ajax.json())})}};r("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});r("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});
r("ajax.reload()",function(a,b){return this.iterator("table",function(c){Pb(c,!1===b,a)})});r("ajax.url()",function(a){var b=this.context;if(a===l){if(0===b.length)return l;b=b[0];return b.ajax?g.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){g.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});r("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Pb(c,!1===b,a)})});var Za=function(a,b){var c=[],d,e,f,h,i,j;if(!a||"string"===typeof a||
a.length===l)a=[a];f=0;for(h=a.length;f<h;f++){e=a[f]&&a[f].split?a[f].split(","):[a[f]];i=0;for(j=e.length;i<j;i++)(d=b("string"===typeof e[i]?g.trim(e[i]):e[i]))&&d.length&&c.push.apply(c,d)}return c},$a=function(a){a||(a={});a.filter&&!a.search&&(a.search=a.filter);return{search:a.search||"none",order:a.order||"current",page:a.page||"all"}},ab=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ya=function(a,b){var c,
d,e,f=[],h=a.aiDisplay;c=a.aiDisplayMaster;var i=b.search;d=b.order;e=b.page;if("ssp"==z(a))return"removed"===i?[]:R(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(h[c])}else if("current"==d||"applied"==d)f="none"==i?c.slice():"applied"==i?h.slice():g.map(c,function(a){return-1===g.inArray(a,h)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==i?f.push(c):(e=g.inArray(c,h),(-1===e&&"removed"==i||1===e&&"applied"==i)&&f.push(c))}return f};
r("rows()",function(a,b){a===l?a="":g.isPlainObject(a)&&(b=a,a="");var b=$a(b),c=this.iterator("table",function(c){var e=b;return Za(a,function(a){var b=Lb(a);if(b!==null&&!e)return[b];var i=Ya(c,e);if(b!==null&&g.inArray(b,i)!==-1)return[b];if(!a)return i;for(var b=[],j=0,n=i.length;j<n;j++)b.push(c.aoData[i[j]].nTr);return a.nodeName&&g.inArray(a,b)!==-1?[a._DT_RowIndex]:g(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()})});c.selector.rows=a;c.selector.opts=b;return c});r("rows().nodes()",
function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||l})});r("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return xa(a.aoData,b,"_aData")})});x("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData})});x("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){la(b,c,a)})});x("rows().indexes()","row().index()",function(){return this.iterator("row",
function(a,b){return b})});x("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(b,c,d){var e=b.aoData;e.splice(c,1);for(var f=0,h=e.length;f<h;f++)null!==e[f].nTr&&(e[f].nTr._DT_RowIndex=f);g.inArray(c,b.aiDisplay);ka(b.aiDisplayMaster,c);ka(b.aiDisplay,c);ka(a[d],c,!1);Qa(b)})});r("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,h,g=[];f=0;for(h=a.length;f<h;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?g.push(ha(b,c)[0]):
g.push(H(b,c));return g}),c=this.rows(-1);c.pop();c.push.apply(c,b.toArray());return c});r("row()",function(a,b){return ab(this.rows(a,b))});r("row().data()",function(a){var b=this.context;if(a===l)return b.length&&this.length?b[0].aoData[this[0]]._aData:l;b[0].aoData[this[0]]._aData=a;la(b[0],this[0],"data");return this});r("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});r("row.add()",function(a){a instanceof g&&a.length&&(a=a[0]);var b=
this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ha(b,a)[0]:H(b,a)});return this.row(b[0])});var Qb=function(a){var b=this.context;if(b.length&&this.length){var c=b[0].aoData[this[0]];if(c._details){(c._detailsShow=a)?c._details.insertAfter(c.nTr):c._details.remove();var d=b[0],e=new q(d);e.off("draw.dt.DT_details column-visibility.dt.DT_details");0<B(d.aoData,"_details").length&&(e.on("draw.dt.DT_details",function(){e.rows({page:"current"}).eq(0).each(function(a){a=
d.aoData[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),e.on("column-visibility.dt.DT_details",function(a,b){for(var c,d=Y(b),e=0,g=b.aoData.length;e<g;e++)c=b.aoData[e],c._details&&c._details.children("td[colspan]").attr("colspan",d)}))}}return this};r("row().child()",function(a,b){var c=this.context;if(a===l)return c.length&&this.length?c[0].aoData[this[0]]._details:l;if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(a.nodeName&&"tr"===a.nodeName.toLowerCase())e.push(a);
else{var c=g("<tr><td/></tr>");g("td",c).addClass(b).html(a)[0].colSpan=Y(d);e.push(c[0])}};if(g.isArray(a)||a instanceof g)for(var h=0,i=a.length;h<i;h++)f(a[h],b);else f(a,b);c._details&&c._details.remove();c._details=g(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});r(["row().child.show()","row().child().show()"],function(){Qb.call(this,!0);return this});r(["row().child.hide()","row().child().hide()"],function(){Qb.call(this,!1);return this});r("row().child.isShown()",function(){var a=
this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var Xb=/^(.*):(name|visIdx|visible)$/;r("columns()",function(a,b){a===l?a="":g.isPlainObject(a)&&(b=a,a="");var b=$a(b),c=this.iterator("table",function(b){var c=a,f=b.aoColumns,h=B(f,"sName"),i=B(f,"nTh");return Za(c,function(a){var c=Lb(a);if(a==="")return R(f.length);if(c!==null)return[c>=0?c:f.length+c];var e=typeof a==="string"?a.match(Xb):"";if(e)switch(e[2]){case "visIdx":case "visible":a=parseInt(e[1],10);
if(a<0){c=g.map(f,function(a,b){return a.bVisible?b:null});return[c[c.length+a]]}return[ga(b,a)];case "name":return g.map(h,function(a,b){return a===e[1]?b:null})}else return g(i).filter(a).map(function(){return g.inArray(this,i)}).toArray()})});c.selector.cols=a;c.selector.opts=b;return c});x("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh})});x("columns().footer()","column().footer()",function(){return this.iterator("column",
function(a,b){return a.aoColumns[b].nTf})});x("columns().data()","column().data()",function(){return this.iterator("column-rows",function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(A(a,e[d],b,""));return c})});x("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return xa(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)})});x("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,
e){return xa(a.aoData,e,"anCells",b)})});x("columns().visible()","column().visible()",function(a){return this.iterator("column",function(b,c){var d;if(a===l)d=b.aoColumns[c].bVisible;else{var e=b.aoColumns;d=e[c];var f=b.aoData,h,i,j;if(a===l)d=d.bVisible;else{if(d.bVisible!==a){if(a){var n=g.inArray(!0,B(e,"bVisible"),c+1);h=0;for(i=f.length;h<i;h++)j=f[h].nTr,e=f[h].anCells,j&&j.insertBefore(e[c],e[n]||null)}else g(B(b.aoData,"anCells",c)).detach(),d.bVisible=!1,I(b,b.aoHeader),I(b,b.aoFooter),
ta(b);d.bVisible=a;I(b,b.aoHeader);I(b,b.aoFooter);U(b);(b.oScroll.sX||b.oScroll.sY)&&V(b);t(b,null,"column-visibility",[b,c,a]);ta(b)}d=void 0}}return d})});x("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?X(b,c):c})});r("columns.adjust()",function(){return this.iterator("table",function(a){U(a)})});r("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return ga(c,
b);if("fromData"===a||"toVisible"===a)return X(c,b)}});r("column()",function(a,b){return ab(this.columns(a,b))});r("cells()",function(a,b,c){g.isPlainObject(a)&&(a.row?(c=b,b=null):(c=a,a=null));g.isPlainObject(b)&&(c=b,b=null);if(null===b||b===l)return this.iterator("table",function(b){var d=a,e=$a(c),f=b.aoData,h=Ya(b,e),e=xa(f,h,"anCells"),i=g([].concat.apply([],e)),j,m=b.aoColumns.length,n,l,p,r;return Za(d,function(a){if(a){if(g.isPlainObject(a))return[a]}else{n=[];l=0;for(p=h.length;l<p;l++){j=
h[l];for(r=0;r<m;r++)n.push({row:j,column:r})}return n}return i.filter(a).map(function(a,b){j=b.parentNode._DT_RowIndex;return{row:j,column:g.inArray(b,f[j].anCells)}}).toArray()})});var d=this.columns(b,c),e=this.rows(a,c),f,h,i,j,n,m=this.iterator("table",function(a,b){f=[];h=0;for(i=e[b].length;h<i;h++){j=0;for(n=d[b].length;j<n;j++)f.push({row:e[b][h],column:d[b][j]})}return f});g.extend(m.selector,{cols:b,rows:a,opts:c});return m});x("cells().nodes()","cell().node()",function(){return this.iterator("cell",
function(a,b,c){return a.aoData[b].anCells[c]})});r("cells().data()",function(){return this.iterator("cell",function(a,b,c){return A(a,b,c)})});x("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]})});x("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:X(a,c)}})});r(["cells().invalidate()","cell().invalidate()"],function(a){var b=
this.selector;this.rows(b.rows,b.opts).invalidate(a);return this});r("cell()",function(a,b,c){return ab(this.cells(a,b,c))});r("cell().data()",function(a){var b=this.context,c=this[0];if(a===l)return b.length&&c.length?A(b[0],c[0].row,c[0].column):l;Ea(b[0],c[0].row,c[0].column,a);la(b[0],c[0].row,"data",c[0].column);return this});r("order()",function(a,b){var c=this.context;if(a===l)return 0!==c.length?c[0].aaSorting:l;"number"===typeof a?a=[[a,b]]:g.isArray(a[0])||(a=Array.prototype.slice.call(arguments));
return this.iterator("table",function(b){b.aaSorting=a.slice()})});r("order.listener()",function(a,b,c){return this.iterator("table",function(d){Ka(d,a,b,c)})});r(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];g.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});r("search()",function(a,b,c,d){var e=this.context;return a===l?0!==e.length?e[0].oPreviousSearch.sSearch:l:this.iterator("table",function(e){e.oFeatures.bFilter&&
aa(e,g.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});r(["columns().search()","column().search()"],function(a,b,c,d){return this.iterator("column",function(e,f){var h=e.aoPreSearchCols;if(a===l)return h[f].sSearch;e.oFeatures.bFilter&&(g.extend(h[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),aa(e,e.oPreviousSearch,1))})});p.versionCheck=p.fnVersionCheck=function(a){for(var b=
p.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};p.isDataTable=p.fnIsDataTable=function(a){var b=g(a).get(0),c=!1;g.each(p.settings,function(a,e){if(e.nTable===b||e.nScrollHead===b||e.nScrollFoot===b)c=!0});return c};p.tables=p.fnTables=function(a){return jQuery.map(p.settings,function(b){if(!a||a&&g(b.nTable).is(":visible"))return b.nTable})};p.camelToHungarian=G;r("$()",function(a,b){var c=this.rows(b).nodes(),
c=g(c);return g([].concat(c.filter(a).toArray(),c.find(a).toArray()))});g.each(["on","one","off"],function(a,b){r(b+"()",function(){var a=Array.prototype.slice.call(arguments);-1===a[0].indexOf(".dt")&&(a[0]+=".dt");var d=g(this.tables().nodes());d[b].apply(d,a);return this})});r("clear()",function(){return this.iterator("table",function(a){ja(a)})});r("settings()",function(){return new q(this.context,this.context)});r("data()",function(){return this.iterator("table",function(a){return B(a.aoData,
"_aData")}).flatten()});r("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,h=b.nTHead,i=b.nTFoot,j=g(e),f=g(f),n=g(b.nTableWrapper),m=g.map(b.aoData,function(a){return a.nTr}),l;b.bDestroying=!0;t(b,"aoDestroyCallback","destroy",[b]);a||(new q(b)).columns().visible(!0);n.unbind(".DT").find(":not(tbody *)").unbind(".DT");g(za).unbind(".DT-"+b.sInstance);e!=h.parentNode&&(j.children("thead").detach(),j.append(h));
i&&e!=i.parentNode&&(j.children("tfoot").detach(),j.append(i));j.detach();n.detach();b.aaSorting=[];b.aaSortingFixed=[];sa(b);g(m).removeClass(b.asStripeClasses.join(" "));g("th, td",h).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(g("th span."+d.sSortIcon+", td span."+d.sSortIcon,h).detach(),g("th, td",h).each(function(){var a=g("div."+d.sSortJUIWrapper,this);g(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(e,b.nTableReinsertBefore);
f.children().detach();f.append(m);j.css("width",b.sDestroyWidth).removeClass(d.sTable);(l=b.asDestroyStripes.length)&&f.children().each(function(a){g(this).addClass(b.asDestroyStripes[a%l])});c=g.inArray(b,p.settings);-1!==c&&p.settings.splice(c,1)})});p.version="1.10.0";p.settings=[];p.models={};p.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};p.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};p.models.oColumn=
{idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};p.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,
aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,
fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,
iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": 升序排列",sSortDescending:":降序排列"},oPaginate:{sFirst:"第一页",sLast:"最后一页",sNext:"下一页",sPrevious:"上一页"},sEmptyTable:"没有数据",sInfo:"显示 _START_ 到 _END_ ,共 _TOTAL_ 条",sInfoEmpty:"没有数据",sInfoFiltered:"(从 _MAX_ 条中过滤)",sInfoPostFix:"",sDecimal:"",
sThousands:",",sLengthMenu:"显示 _MENU_ 条",sLoadingRecords:"加载中...",sProcessing:"处理中...",sSearch:"从当前数据中检索:",sUrl:"",sZeroRecords:"没有找到匹配的记录"},oSearch:g.extend({},p.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};S(p.defaults);p.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,
mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};S(p.defaults.column);p.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,
bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,
nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:l,oAjaxData:l,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,
oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==z(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==z(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,
nScrollFoot:null,aLastSort:[],oPlugins:{}};p.ext=u={classes:{},errMode:"alert",feature:[],search:[],internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:p.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:p.version};g.extend(u,{afnFiltering:u.search,aTypes:u.type.detect,ofnSearch:u.type.search,oSort:u.type.order,afnSortData:u.order,aoFeatures:u.feature,oApi:u.internal,oStdClasses:u.classes,oPagination:u.pager});
g.extend(p.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",
sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
sJUIHeader:"",sJUIFooter:""});var ya="",ya="",E=ya+"ui-state-default",ea=ya+"css_right ui-icon ui-icon-",Rb=ya+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";g.extend(p.ext.oJUIClasses,p.ext.classes,{sPageButton:"fg-button ui-button "+E,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:E+" sorting_asc",sSortDesc:E+" sorting_desc",sSortable:E+" sorting",
sSortableAsc:E+" sorting_asc_disabled",sSortableDesc:E+" sorting_desc_disabled",sSortableNone:E+" sorting_disabled",sSortJUIAsc:ea+"triangle-1-n",sSortJUIDesc:ea+"triangle-1-s",sSortJUI:ea+"carat-2-n-s",sSortJUIAscAllowed:ea+"carat-1-n",sSortJUIDescAllowed:ea+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+E,sScrollFoot:"dataTables_scrollFoot "+E,sHeaderTH:E,sFooterTH:E,sJUIHeader:Rb+" ui-corner-tl ui-corner-tr",sJUIFooter:Rb+
" ui-corner-bl ui-corner-br"});var Ib=p.ext.pager;g.extend(Ib,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},simple_numbers:function(a,b){return["previous",Ua(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Ua(a,b),"next","last"]},_numbers:Ua,numbers_length:7});g.extend(!0,p.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var h=a.oClasses,i=a.oLanguage.oPaginate,j,l,m=0,o=function(b,d){var k,p,r,q,s=function(b){Ra(a,b.data.action,
true)};k=0;for(p=d.length;k<p;k++){q=d[k];if(g.isArray(q)){r=g("<"+(q.DT_el||"div")+"/>").appendTo(b);o(r,q)}else{l=j="";switch(q){case "ellipsis":b.append("<span>&hellip;</span>");break;case "first":j=i.sFirst;l=q+(e>0?"":" "+h.sPageButtonDisabled);break;case "previous":j=i.sPrevious;l=q+(e>0?"":" "+h.sPageButtonDisabled);break;case "next":j=i.sNext;l=q+(e<f-1?"":" "+h.sPageButtonDisabled);break;case "last":j=i.sLast;l=q+(e<f-1?"":" "+h.sPageButtonDisabled);break;default:j=q+1;l=e===q?h.sPageButtonActive:
""}if(j){r=g("<a>",{"class":h.sPageButton+" "+l,"aria-controls":a.sTableId,"data-dt-idx":m,tabindex:a.iTabIndex,id:c===0&&typeof q==="string"?a.sTableId+"_"+q:null}).html(j).appendTo(b);Ta(r,{action:q},s);m++}}}},k=g(N.activeElement).data("dt-idx");o(g(b).empty(),d);k!==null&&g(b).find("[data-dt-idx="+k+"]").focus()}}});var va=function(a,b,c,d){if(!a||"-"===a)return-Infinity;b&&(a=Mb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};g.extend(u.type.order,{"date-pre":function(a){return Date.parse(a)||
0},"html-pre":function(a){return!a?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return"string"===typeof a?a.toLowerCase():!a||!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});bb("");g.extend(p.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Xa(a,c)?"num"+c:null},function(a){if(a&&!Vb.test(a))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||da(a)?"date":
null},function(a,b){var c=b.oLanguage.sDecimal;return Xa(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Nb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Nb(a,c,!0)?"html-num-fmt"+c:null},function(a){return da(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);g.extend(p.ext.type.search,{html:function(a){return da(a)?"":"string"===typeof a?a.replace(Kb," ").replace(wa,""):""},string:function(a){return da(a)?"":"string"===typeof a?a.replace(Kb,
" "):a}});g.extend(!0,p.ext.renderer,{header:{_:function(a,b,c,d){g(a.nTable).on("order.dt.DT",function(a,f,g,i){a=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(i[a]=="asc"?d.sSortAsc:i[a]=="desc"?d.sSortDesc:c.sSortingClass)})},jqueryui:function(a,b,c,d){var e=c.idx;g("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(g("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);g(a.nTable).on("order.dt.DT",function(a,g,i,j){b.removeClass(d.sSortAsc+
" "+d.sSortDesc).addClass(j[e]=="asc"?d.sSortAsc:j[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(j[e]=="asc"?d.sSortJUIAsc:j[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)})}}});p.render={number:function(a,b,c,d){return{display:function(e){var e=parseFloat(e),f=parseInt(e,10),e=c?(b+(e-f).toFixed(c)).substring(2):"";return(d||"")+f.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
a)+e}}}};g.extend(p.ext.internal,{_fnExternApiFunc:Jb,_fnBuildAjax:na,_fnAjaxUpdate:ib,_fnAjaxParameters:rb,_fnAjaxUpdateDraw:sb,_fnAjaxDataSrc:oa,_fnAddColumn:Aa,_fnColumnOptions:fa,_fnAdjustColumnSizing:U,_fnVisibleToColumnIndex:ga,_fnColumnIndexToVisible:X,_fnVisbleColumns:Y,_fnGetColumns:W,_fnColumnTypes:Da,_fnApplyColumnDefs:gb,_fnHungarianMap:S,_fnCamelToHungarian:G,_fnLanguageCompat:M,_fnBrowserDetect:eb,_fnAddData:H,_fnAddTr:ha,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==l?b._DT_RowIndex:
null},_fnNodeToColumnIndex:function(a,b,c){return g.inArray(c,a.aoData[b].anCells)},_fnGetCellData:A,_fnSetCellData:Ea,_fnSplitObjNotation:Ga,_fnGetObjectDataFn:T,_fnSetObjectDataFn:Ba,_fnGetDataMaster:Ha,_fnClearTable:ja,_fnDeleteIndex:ka,_fnInvalidateRow:la,_fnGetRowElements:ia,_fnCreateTr:Fa,_fnBuildHead:hb,_fnDrawHead:I,_fnDraw:J,_fnReDraw:K,_fnAddOptionsHtml:kb,_fnDetectHeader:$,_fnGetUniqueThs:ma,_fnFeatureHtmlFilter:mb,_fnFilterComplete:aa,_fnFilterCustom:vb,_fnFilterColumn:ub,_fnFilter:tb,
_fnFilterCreateSearch:Na,_fnEscapeRegex:Oa,_fnFilterData:wb,_fnFeatureHtmlInfo:pb,_fnUpdateInfo:xb,_fnInfoMacros:yb,_fnInitialise:ra,_fnInitComplete:pa,_fnLengthChange:Pa,_fnFeatureHtmlLength:lb,_fnFeatureHtmlPaginate:qb,_fnPageChange:Ra,_fnFeatureHtmlProcessing:nb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:ob,_fnScrollDraw:V,_fnApplyToChildren:F,_fnCalculateColumnWidths:Ca,_fnThrottle:Ma,_fnConvertToWidth:zb,_fnScrollingWidthAdjust:Bb,_fnGetWidestNode:Ab,_fnGetMaxLenString:Cb,_fnStringToCss:s,_fnScrollBarWidth:Db,
_fnSortFlatten:Q,_fnSort:jb,_fnSortAria:Fb,_fnSortListener:Sa,_fnSortAttachListener:Ka,_fnSortingClasses:sa,_fnSortData:Eb,_fnSaveState:ta,_fnLoadState:Gb,_fnSettingsFromNode:ua,_fnLog:O,_fnMap:D,_fnBindAction:Ta,_fnCallbackReg:y,_fnCallbackFire:t,_fnLengthOverflow:Qa,_fnRenderer:La,_fnDataSource:z,_fnRowAttributes:Ia,_fnCalculateEnd:function(){}});g.fn.dataTable=p;g.fn.dataTableSettings=p.settings;g.fn.dataTableExt=p.ext;g.fn.DataTable=function(a){return g(this).dataTable(a).api()};g.each(p,function(a,
b){g.fn.DataTable[a]=b});return g.fn.dataTable};"function"===typeof define&&define.amd?define("datatables",["jquery"],M):"object"===typeof exports?M(require("jquery")):jQuery&&!jQuery.fn.dataTable&&M(jQuery)})(window,document);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,182 @@
/* iCheck.js Minimal skin
----------------------------------- */
.icheckbox,.iradio{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(minimal.png) no-repeat;border: none;cursor: pointer}
.icheckbox,.icheckbox.static:hover{background-position: 0 0}
.icheckbox.hover,.icheckbox:hover{background-position: -20px 0}
.icheckbox.checked{background-position: -40px 0}
.icheckbox.disabled{background-position: -60px 0;cursor: default}
.icheckbox.checked.disabled{background-position: -80px 0}
.iradio,.iradio.static:hover{background-position: -100px 0}
.iradio.hover,.iradio:hover{background-position: -120px 0}
.iradio.checked{background-position: -140px 0}
.iradio.disabled{background-position: -160px 0;cursor: default}
.iradio.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox,.iradio{background-image: url(minimal@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* red */
.icheckbox-red,.iradio-red{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(red.png) no-repeat;border: none;cursor: pointer}
.icheckbox-red,.icheckbox-red.static:hover{background-position: 0 0}
.icheckbox-red.hover,.icheckbox-red:hover{background-position: -20px 0}
.icheckbox-red.checked{background-position: -40px 0}
.icheckbox-red.disabled{background-position: -60px 0;cursor: default}
.icheckbox-red.checked.disabled{background-position: -80px 0}
.iradio-red,.iradio-red.static:hover{background-position: -100px 0}
.iradio-red.hover,.iradio-red:hover{background-position: -120px 0}
.iradio-red.checked{background-position: -140px 0}
.iradio-red.disabled{background-position: -160px 0;cursor: default}
.iradio-red.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-red,.iradio-red{background-image: url(red@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* green */
.icheckbox-green,.iradio-green{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(green.png) no-repeat;border: none;cursor: pointer}
.icheckbox-green,.icheckbox-green.static:hover{background-position: 0 0}
.icheckbox-green.hover,.icheckbox-green:hover{background-position: -20px 0}
.icheckbox-green.checked{background-position: -40px 0}
.icheckbox-green.disabled{background-position: -60px 0;cursor: default}
.icheckbox-green.checked.disabled{background-position: -80px 0}
.iradio-green,.iradio-green.static:hover{background-position: -100px 0}
.iradio-green.hover,.iradio-green:hover{background-position: -120px 0}
.iradio-green.checked{background-position: -140px 0}
.iradio-green.disabled{background-position: -160px 0;cursor: default}
.iradio-green.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-green,.iradio-green{background-image: url(green@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* blue */
.icheckbox-blue,.iradio-blue{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(blue.png) no-repeat;border: none;cursor: pointer}
.icheckbox-blue,.icheckbox-blue.static:hover{background-position: 0 0}
.icheckbox-blue.hover,.icheckbox-blue:hover{background-position: -20px 0}
.icheckbox-blue.checked{background-position: -40px 0}
.icheckbox-blue.disabled{background-position: -60px 0;cursor: default}
.icheckbox-blue.checked.disabled{background-position: -80px 0}
.iradio-blue,.iradio-blue.static:hover{background-position: -100px 0}
.iradio-blue.hover,.iradio-blue:hover{background-position: -120px 0}
.iradio-blue.checked{background-position: -140px 0}
.iradio-blue.disabled{background-position: -160px 0;cursor: default}
.iradio-blue.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-blue,.iradio-blue{background-image: url(blue@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* aero */
.icheckbox-aero,.iradio-aero{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(aero.png) no-repeat;border: none;cursor: pointer}
.icheckbox-aero,.icheckbox-aero.static:hover{background-position: 0 0}
.icheckbox-aero.hover,.icheckbox-aero:hover{background-position: -20px 0}
.icheckbox-aero.checked{background-position: -40px 0}
.icheckbox-aero.disabled{background-position: -60px 0;cursor: default}
.icheckbox-aero.checked.disabled{background-position: -80px 0}
.iradio-aero,.iradio-aero.static:hover{background-position: -100px 0}
.iradio-aero.hover,.iradio-aero:hover{background-position: -120px 0}
.iradio-aero.checked{background-position: -140px 0}
.iradio-aero.disabled{background-position: -160px 0;cursor: default}
.iradio-aero.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-aero,.iradio-aero{background-image: url(aero@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* grey */
.icheckbox-grey,.iradio-grey{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(grey.png) no-repeat;border: none;cursor: pointer}
.icheckbox-grey,.icheckbox-grey.static:hover{background-position: 0 0}
.icheckbox-grey.hover,.icheckbox-grey:hover{background-position: -20px 0}
.icheckbox-grey.checked{background-position: -40px 0}
.icheckbox-grey.disabled{background-position: -60px 0;cursor: default}
.icheckbox-grey.checked.disabled{background-position: -80px 0}
.iradio-grey,.iradio-grey.static:hover{background-position: -100px 0}
.iradio-grey.hover,.iradio-grey:hover{background-position: -120px 0}
.iradio-grey.checked{background-position: -140px 0}
.iradio-grey.disabled{background-position: -160px 0;cursor: default}
.iradio-grey.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-grey,.iradio-grey{background-image: url(grey@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* orange */
.icheckbox-orange,.iradio-orange{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(orange.png) no-repeat;border: none;cursor: pointer}
.icheckbox-orange,.icheckbox-orange.static:hover{background-position: 0 0}
.icheckbox-orange.hover,.icheckbox-orange:hover{background-position: -20px 0}
.icheckbox-orange.checked{background-position: -40px 0}
.icheckbox-orange.disabled{background-position: -60px 0;cursor: default}
.icheckbox-orange.checked.disabled{background-position: -80px 0}
.iradio-orange,.iradio-orange.static:hover{background-position: -100px 0}
.iradio-orange.hover,.iradio-orange:hover{background-position: -120px 0}
.iradio-orange.checked{background-position: -140px 0}
.iradio-orange.disabled{background-position: -160px 0;cursor: default}
.iradio-orange.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-orange,.iradio-orange{background-image: url(orange@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* yellow */
.icheckbox-yellow,.iradio-yellow{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(yellow.png) no-repeat;border: none;cursor: pointer}
.icheckbox-yellow,.icheckbox-yellow.static:hover{background-position: 0 0}
.icheckbox-yellow.hover,.icheckbox-yellow:hover{background-position: -20px 0}
.icheckbox-yellow.checked{background-position: -40px 0}
.icheckbox-yellow.disabled{background-position: -60px 0;cursor: default}
.icheckbox-yellow.checked.disabled{background-position: -80px 0}
.iradio-yellow,.iradio-yellow.static:hover{background-position: -100px 0}
.iradio-yellow.hover,.iradio-yellow:hover{background-position: -120px 0}
.iradio-yellow.checked{background-position: -140px 0}
.iradio-yellow.disabled{background-position: -160px 0;cursor: default}
.iradio-yellow.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-yellow,.iradio-yellow{background-image: url(yellow@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* pink */
.icheckbox-pink,.iradio-pink{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(pink.png) no-repeat;border: none;cursor: pointer}
.icheckbox-pink,.icheckbox-pink.static:hover{background-position: 0 0}
.icheckbox-pink.hover,.icheckbox-pink:hover{background-position: -20px 0}
.icheckbox-pink.checked{background-position: -40px 0}
.icheckbox-pink.disabled{background-position: -60px 0;cursor: default}
.icheckbox-pink.checked.disabled{background-position: -80px 0}
.iradio-pink,.iradio-pink.static:hover{background-position: -100px 0}
.iradio-pink.hover,.iradio-pink:hover{background-position: -120px 0}
.iradio-pink.checked{background-position: -140px 0}
.iradio-pink.disabled{background-position: -160px 0;cursor: default}
.iradio-pink.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-pink,.iradio-pink{background-image: url(pink@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}
/* purple */
.icheckbox-purple,.iradio-purple{display: block;margin: 0;padding: 0;width: 18px;height: 18px;background: url(purple.png) no-repeat;border: none;cursor: pointer}
.icheckbox-purple,.icheckbox-purple.static:hover{background-position: 0 0}
.icheckbox-purple.hover,.icheckbox-purple:hover{background-position: -20px 0}
.icheckbox-purple.checked{background-position: -40px 0}
.icheckbox-purple.disabled{background-position: -60px 0;cursor: default}
.icheckbox-purple.checked.disabled{background-position: -80px 0}
.iradio-purple,.iradio-purple.static:hover{background-position: -100px 0}
.iradio-purple.hover,.iradio-purple:hover{background-position: -120px 0}
.iradio-purple.checked{background-position: -140px 0}
.iradio-purple.disabled{background-position: -160px 0;cursor: default}
.iradio-purple.checked.disabled{background-position: -180px 0}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5){.icheckbox-purple,.iradio-purple{background-image: url(purple@2x.png);
-webkit-background-size: 200px 20px;
background-size: 200px 20px}
}

@ -0,0 +1,9 @@
// iCheck v0.7, http://git.io/uhUPMA
(function(b){function m(a,b,d,c){var e=a[0],l=a.parent(),j=/disable|enable/.test(d)?"disabled":"checked",f="update"==d?{checked:e.checked,disabled:e.disabled}:e[j];if(/^check|disable/.test(d)&&!f)n(a,!0,l,j);else if(/uncheck|enable/.test(d)&&f)p(a,!0,l,j);else if("update"==d)for(j in f)f[j]?n(a,!1,l,j,c):p(a,!1,l,j,c);else b||(!0==d&&!e.disabled&&a.trigger("is.Clicked"),f?n(a,!0,l,j):p(a,!0,l,j))}function n(a,k,d,c,e){k&&(a[0][c]=!0);!0!==d.data(c)&&("checked"==c&&("radio"==a[0].type&&a[0].name)&&
b("input[name="+a[0].name+"]").each(function(){this!==a[0]&&b(this).data("icheck")&&p(b(this),!0,b(this).parent(),c)}),(k||e)&&a.trigger("is.Changed"),k&&a.trigger("is."+c.replace("di","Di").replace("ch","Ch")),d.data(c,!0).addClass(r(a,c)))}function p(a,b,d,c,e){var l="disabled"==c?"Enabled":"Unchecked";b&&(a[0][c]=!1);!1!==d.data(c)&&((b||e)&&a.trigger("is.Changed"),b&&a.trigger("is."+l),d.data(c,!1).removeClass(r(a,c)))}function u(a,k){if(a.data("icheck")){var d=a[0].id,c=b("label[for="+d+"]");
a.parent().html(a.attr("style",a.data("icheck").style||"").trigger(k||""));a.removeData("icheck").unbind(".df").unwrap();d&&c.length&&c.unbind(".df")}}function r(a,b){if(a.data("icheck"))return a.data("icheck").options[b+"Class"]}b.fn.iCheck=function(a){if(/^(check|uncheck|disable|enable|update|destroy)$/.test(a))return this.each(function(){/destroy/.test(a)?u(b(this),"is.Destroyed"):m(b(this),!0,a)});if("object"==typeof a||!a){var k=navigator.userAgent,d=b.extend({},{checkboxClass:"icheckbox",radioClass:"iradio",
checkedClass:"checked",disabledClass:"disabled",hoverClass:"hover",focusClass:"focus",activeClass:"active",labelHover:!0,labelHoverClass:"hover"},a),c=/^(checkbox|radio)$/.test(d.handle)?":"+d.handle:":checkbox, :radio",e=(""+d.increaseArea).replace("%","")|0;-50>e&&(e=-50);return this.each(function(){(b(this).is(c)?b(this):b(this).find(c)).each(function(){u(b(this));var a=this,c=a.id,f={position:"absolute",top:-e+"%",left:-e+"%",display:"block",width:100+2*e+"%",height:100+2*e+"%",margin:0,padding:0,
background:"#fff",border:0,opacity:0},r=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini/i.test(k)?{position:"absolute",visibility:"hidden"}:e|0?f:{position:"absolute",opacity:0},w="checkbox"==a.type?d.checkboxClass:d.radioClass,h=b(this).data("icheck",{style:b(this).attr("style"),options:d}).css(r),q=b("label[for="+c+"]"),g=h.wrap('<div class="'+w+'"/>').trigger("is.Created").parent().append(d.insert),f=b("<ins/>").css(f).appendTo(g).click(function(){h.click();m(h,!1,!0)}),s=d.hoverClass,
t=d.labelHoverClass,v;!0==d.cursor&&f.css("cursor","pointer");!0==d.inheritClass&&g.addClass(a.className);!0==d.inheritID&&c&&g.attr("id","icheck-"+c);"static"==g.css("position")&&g.css("position","relative");m(h,!0,"update");c&&q.length&&q.bind("click.df mouseenter.df mouseleave.df touchbegin.df touchend.df",function(c){var e=c.type,f=b(this);"click"==e?(c.preventDefault(),h.click(),m(h,!1,!0)):!0==d.labelHover&&!a.disabled&&(/mouseenter|touchbegin/.test(e)?(g.addClass(s),f.addClass(t)):(g.removeClass(s),
f.removeClass(t)))});h.bind("focus.df blur.df keyup.df keydown.df keypress.df",function(c){var b=c.type,e=c.keyCode||c.charCode||c.which;c=/MSIE [5-8]/.test(k)?"keyup"==b&&"keypress"!==v:"keyup"==b;e="keypress"==b&&32==e;/focus|blur/.test(b)?"focus"==b?g.addClass(d.focusClass):g.removeClass(d.focusClass):"radio"==a.type?(c?m(h,!0,"update",!0):e&&!a.checked&&n(h,!1,g,"checked",!0),v=b):"checkbox"==a.type&&e&&(a.checked?p(h,!1,g,"checked",!0):n(h,!1,g,"checked",!0))});f.bind("mousedown mouseup mouseout mouseenter mouseleave touchbegin touchend",
function(b){b=b.type;var e=/mousedown|mouseup|mouseout/.test(b)?d.activeClass:s;a.disabled||(/mousedown|mouseenter|touchbegin/.test(b)?g.addClass(e):g.removeClass(e),c&&(q.length&&!0==d.labelHover&&e==s)&&(/mouseleave|touchend/.test(b)?q.removeClass(t):q.addClass(t)))})})})}return this}})(jQuery);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save