Commit 54e4ae16 by 罗绍泽

合并更新

parent 2eb7a776
......@@ -69,17 +69,17 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>http://localhost:8080/cas-test01/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
<param-value>http://cas.jfbrother.com:9003/cas-jfsso/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
</init-param>
<init-param>
<!-- 这里的server是服务端的IP -->
<param-name>serverName</param-name>
<param-value>http://localhost:8082</param-value><!-- 客户端服务器地址 http://IP:PORT -->
<param-value>http://fwqjk.jfbrother.com:9003</param-value><!-- 客户端服务器地址 http://IP:PORT -->
</init-param>
</filter>
<filter-mapping>
<filter-name>CASFilter</filter-name>
<url-pattern>/cas.jsp</url-pattern>
<url-pattern>/jfcas</url-pattern>
<!-- <url-pattern>/*</url-pattern> -->
</filter-mapping>
......@@ -89,16 +89,16 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://localhost:8080/cas-test01</param-value><!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
<param-value>http://cas.jfbrother.com:9003/cas-jfsso</param-value><!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8082</param-value><!-- 客户端服务器地址 http://IP:PORT -->
<param-value>http://fwqjk.jfbrother.com:9003</param-value><!-- 客户端服务器地址 http://IP:PORT -->
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/cas.jsp</url-pattern>
<url-pattern>/jfcas</url-pattern>
</filter-mapping>
<!-- 该过滤器负责实现HttpServletRequest请求的包裹,
......@@ -112,6 +112,20 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 单点注销监听器 -->
<listener>
<listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
</listener>
<!-- 单点注销过滤器 -->
<filter>
<filter-name>caslogoutFilter</filter-name>
<filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>caslogoutFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>struts2</filter-name>
<filter-class>com.gaowj.business.filter.myStrutsPrepareAndExecuteFilter</filter-class>
......
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="org.jasig.cas.client.authentication.AttributePrincipal" %>
<%@ page import="org.jasig.cas.client.util.AssertionHolder"%>
<%@ page import="com.gaowj.business.comp.BusinessManager" %>
<%@ page import="com.gaowj.business.SystemOpeBusiness" %>
<%@ page import="com.gaowj.business.util.Java_tool" %>
<%@ page import="java.util.*" %>
<%@ page import="java.util.Map" %>
<%
//解决在IE的frame/iframe环境下,跨域单点登录后,无法重定向的问题
response.setHeader("P3P","CP=CAO PSA OUR");
%>
<%
AttributePrincipal principal = (AttributePrincipal)request.getUserPrincipal();
Map<String, Object> attributes = principal.getAttributes();
String userID = attributes.get("userid").toString();
String userName = attributes.get("USER_NAME").toString();
System.out.println("-----1"+userID);
System.out.println("-----2"+userName);
System.out.println("-----3"+attributes.get("UNIT_ID"));
if(userID!=null){
String username = userID;
Java_tool jt = new Java_tool();
SystemOpeBusiness systemOpeBusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
Map query = new HashMap();
query.put("EMID", username);
Map<String,Object> userInfoI = systemOpeBusiness.listLoginUserInfo(query).get(0);
Map<String,Object> sessionUser = new HashMap<String,Object>();
String u_all_m = systemOpeBusiness.getUserAllModule(userInfoI.get("CODE").toString());
sessionUser.put("CODE",userInfoI.get("CODE"));
sessionUser.put("EMID",userInfoI.get("EMID"));
sessionUser.put("EMSEX",userInfoI.get("EMSEX"));
sessionUser.put("EMDEPARTNAME",userInfoI.get("EMDEPARTNAME"));
sessionUser.put("EMDEPART",userInfoI.get("EMDEPART"));
sessionUser.put("EMNAME",userInfoI.get("EMNAME"));
sessionUser.put("BEFORETIME",userInfoI.get("BEFORETIME"));
sessionUser.put("SESSIONID", request.getSession().getId());
sessionUser.put("CURRENTTIME", jt.now_datetime());
sessionUser.put("LOGINIP", request.getRemoteAddr());
sessionUser.put("SERVERIP", request.getLocalAddr());
sessionUser.put("QUANXIAN",u_all_m);
request.getSession().setAttribute("userInfo", sessionUser);
//增加登陆日志
Map<String,Object> log = new HashMap<String,Object>();
log.put("CODE", sessionUser.get("CODE"));log.put("EMNAME", sessionUser.get("EMNAME"));log.put("EMIP", sessionUser.get("LOGINIP"));
log.put("OPENAME", "登陆");log.put("OPETIME", jt.String3date((String)sessionUser.get("CURRENTTIME")));log.put("TYPE", userInfoI.get("TYPE"));
log.put("OPETYPE", "B/S登陆");
systemOpeBusiness.insert_log(log);
}
String strRedirecturl = request.getParameter("redirectUrl");
if(strRedirecturl != null && strRedirecturl.length() > 0) {
response.sendRedirect(strRedirecturl);
}else{
response.sendRedirect("index.jsp");
}
response.getWriter().println("123");
%>
\ No newline at end of file
<script type="text/javascript">
var WebContextPath = '<%=request.getContextPath() %>';
window.location = WebContextPath + "/jfcas";
</script>
\ No newline at end of file
.accordion {
overflow: hidden;
border-width: 1px;
border-style: solid;
}
.accordion .accordion-header {
border-width: 0 0 1px;
cursor: pointer;
}
.accordion .accordion-body {
border-width: 0 0 1px;
}
.accordion-noborder {
border-width: 0;
}
.accordion-noborder .accordion-header {
border-width: 0 0 1px;
}
.accordion-noborder .accordion-body {
border-width: 0 0 1px;
}
.accordion-collapse {
background: url('images/accordion_arrows.png') no-repeat 0 0;
}
.accordion-expand {
background: url('images/accordion_arrows.png') no-repeat -16px 0;
}
.accordion {
background: #ffffff;
border-color: #95B8E7;
}
.accordion .accordion-header {
background: #E0ECFF;
filter: none;
}
.accordion .accordion-header-selected {
background: #ffe48d;
}
.accordion .accordion-header-selected .panel-title {
color: #000000;
}
.calendar {
border-width: 1px;
border-style: solid;
padding: 1px;
overflow: hidden;
}
.calendar table {
table-layout: fixed;
border-collapse: separate;
font-size: 12px;
width: 100%;
height: 100%;
}
.calendar table td,
.calendar table th {
font-size: 12px;
}
.calendar-noborder {
border: 0;
}
.calendar-header {
position: relative;
height: 22px;
}
.calendar-title {
text-align: center;
height: 22px;
}
.calendar-title span {
position: relative;
display: inline-block;
top: 2px;
padding: 0 3px;
height: 18px;
line-height: 18px;
font-size: 12px;
cursor: pointer;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.calendar-prevmonth,
.calendar-nextmonth,
.calendar-prevyear,
.calendar-nextyear {
position: absolute;
top: 50%;
margin-top: -7px;
width: 14px;
height: 14px;
cursor: pointer;
font-size: 1px;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.calendar-prevmonth {
left: 20px;
background: url('images/calendar_arrows.png') no-repeat -18px -2px;
}
.calendar-nextmonth {
right: 20px;
background: url('images/calendar_arrows.png') no-repeat -34px -2px;
}
.calendar-prevyear {
left: 3px;
background: url('images/calendar_arrows.png') no-repeat -1px -2px;
}
.calendar-nextyear {
right: 3px;
background: url('images/calendar_arrows.png') no-repeat -49px -2px;
}
.calendar-body {
position: relative;
}
.calendar-body th,
.calendar-body td {
text-align: center;
}
.calendar-day {
border: 0;
padding: 1px;
cursor: pointer;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.calendar-other-month {
opacity: 0.3;
filter: alpha(opacity=30);
}
.calendar-disabled {
opacity: 0.6;
filter: alpha(opacity=60);
cursor: default;
}
.calendar-menu {
position: absolute;
top: 0;
left: 0;
width: 180px;
height: 150px;
padding: 5px;
font-size: 12px;
display: none;
overflow: hidden;
}
.calendar-menu-year-inner {
text-align: center;
padding-bottom: 5px;
}
.calendar-menu-year {
width: 40px;
text-align: center;
border-width: 1px;
border-style: solid;
margin: 0;
padding: 2px;
font-weight: bold;
font-size: 12px;
}
.calendar-menu-prev,
.calendar-menu-next {
display: inline-block;
width: 21px;
height: 21px;
vertical-align: top;
cursor: pointer;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.calendar-menu-prev {
margin-right: 10px;
background: url('images/calendar_arrows.png') no-repeat 2px 2px;
}
.calendar-menu-next {
margin-left: 10px;
background: url('images/calendar_arrows.png') no-repeat -45px 2px;
}
.calendar-menu-month {
text-align: center;
cursor: pointer;
font-weight: bold;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.calendar-body th,
.calendar-menu-month {
color: #4d4d4d;
}
.calendar-day {
color: #000000;
}
.calendar-sunday {
color: #CC2222;
}
.calendar-saturday {
color: #00ee00;
}
.calendar-today {
color: #0000ff;
}
.calendar-menu-year {
border-color: #95B8E7;
}
.calendar {
border-color: #95B8E7;
}
.calendar-header {
background: #E0ECFF;
}
.calendar-body,
.calendar-menu {
background: #ffffff;
}
.calendar-body th {
background: #F4F4F4;
padding: 2px 0;
}
.calendar-hover,
.calendar-nav-hover,
.calendar-menu-hover {
background-color: #eaf2ff;
color: #000000;
}
.calendar-hover {
border: 1px solid #b7d2ff;
padding: 0;
}
.calendar-selected {
background-color: #ffe48d;
color: #000000;
border: 1px solid #ffab3f;
padding: 0;
}
.combo {
display: inline-block;
white-space: nowrap;
margin: 0;
padding: 0;
border-width: 1px;
border-style: solid;
overflow: hidden;
vertical-align: middle;
}
.combo .combo-text {
font-size: 12px;
border: 0px;
margin: 0;
padding: 0px 2px;
vertical-align: baseline;
}
.combo-arrow {
width: 18px;
height: 20px;
overflow: hidden;
display: inline-block;
vertical-align: top;
cursor: pointer;
opacity: 0.6;
filter: alpha(opacity=60);
}
.combo-arrow-hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
.combo-panel {
overflow: auto;
}
.combo-arrow {
background: url('images/combo_arrow.png') no-repeat center center;
}
.combo-panel {
background-color: #ffffff;
}
.combo {
border-color: #95B8E7;
background-color: #fff;
}
.combo-arrow {
background-color: #E0ECFF;
}
.combo-arrow-hover {
background-color: #eaf2ff;
}
.combo-arrow:hover {
background-color: #eaf2ff;
}
.combo .textbox-icon-disabled:hover {
cursor: default;
}
.textbox-invalid {
border-color: #ffa8a8;
background-color: #fff3f3;
}
.combobox-item,
.combobox-group {
font-size: 12px;
padding: 3px;
padding-right: 0px;
}
.combobox-item-disabled {
opacity: 0.5;
filter: alpha(opacity=50);
}
.combobox-gitem {
padding-left: 10px;
}
.combobox-group {
font-weight: bold;
}
.combobox-item-hover {
background-color: #eaf2ff;
color: #000000;
}
.combobox-item-selected {
background-color: #ffe48d;
color: #000000;
}
.datagrid .panel-body {
overflow: hidden;
position: relative;
}
.datagrid-view {
position: relative;
overflow: hidden;
}
.datagrid-view1,
.datagrid-view2 {
position: absolute;
overflow: hidden;
top: 0;
}
.datagrid-view1 {
left: 0;
}
.datagrid-view2 {
right: 0;
}
.datagrid-mask {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.3;
filter: alpha(opacity=30);
display: none;
}
.datagrid-mask-msg {
position: absolute;
top: 50%;
margin-top: -20px;
padding: 10px 5px 10px 30px;
width: auto;
height: 16px;
border-width: 2px;
border-style: solid;
display: none;
}
.datagrid-sort-icon {
padding: 0;
}
.datagrid-toolbar {
height: auto;
padding: 1px 2px;
border-width: 0 0 1px 0;
border-style: solid;
}
.datagrid-btn-separator {
float: left;
height: 24px;
border-left: 1px solid #ccc;
border-right: 1px solid #fff;
margin: 2px 1px;
}
.datagrid .datagrid-pager {
display: block;
margin: 0;
border-width: 1px 0 0 0;
border-style: solid;
}
.datagrid .datagrid-pager-top {
border-width: 0 0 1px 0;
}
.datagrid-header {
overflow: hidden;
cursor: default;
border-width: 0 0 1px 0;
border-style: solid;
}
.datagrid-header-inner {
float: left;
width: 10000px;
}
.datagrid-header-row,
.datagrid-row {
height: 25px;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
border-width: 0 1px 1px 0;
border-style: dotted;
margin: 0;
padding: 0;
}
.datagrid-cell,
.datagrid-cell-group,
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
margin: 0;
padding: 0 4px;
white-space: nowrap;
word-wrap: normal;
overflow: hidden;
height: 18px;
line-height: 18px;
font-size: 12px;
}
.datagrid-header .datagrid-cell {
height: auto;
}
.datagrid-header .datagrid-cell span {
font-size: 12px;
}
.datagrid-cell-group {
text-align: center;
}
.datagrid-header-rownumber,
.datagrid-cell-rownumber {
width: 25px;
text-align: center;
margin: 0;
padding: 0;
}
.datagrid-body {
margin: 0;
padding: 0;
overflow: auto;
zoom: 1;
}
.datagrid-view1 .datagrid-body-inner {
padding-bottom: 20px;
}
.datagrid-view1 .datagrid-body {
overflow: hidden;
}
.datagrid-footer {
overflow: hidden;
}
.datagrid-footer-inner {
border-width: 1px 0 0 0;
border-style: solid;
width: 10000px;
float: left;
}
.datagrid-row-editing .datagrid-cell {
height: auto;
}
.datagrid-header-check,
.datagrid-cell-check {
padding: 0;
width: 27px;
height: 18px;
font-size: 1px;
text-align: center;
overflow: hidden;
}
.datagrid-header-check input,
.datagrid-cell-check input {
margin: 0;
padding: 0;
width: 15px;
height: 18px;
}
.datagrid-resize-proxy {
position: absolute;
width: 1px;
height: 10000px;
top: 0;
cursor: e-resize;
display: none;
}
.datagrid-body .datagrid-editable {
margin: 0;
padding: 0;
}
.datagrid-body .datagrid-editable table {
width: 100%;
height: 100%;
}
.datagrid-body .datagrid-editable td {
border: 0;
margin: 0;
padding: 0;
}
.datagrid-view .datagrid-editable-input {
margin: 0;
padding: 2px 4px;
border: 1px solid #95B8E7;
font-size: 12px;
outline-style: none;
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.datagrid-sort-desc .datagrid-sort-icon {
padding: 0 13px 0 0;
background: url('images/datagrid_icons.png') no-repeat -16px center;
}
.datagrid-sort-asc .datagrid-sort-icon {
padding: 0 13px 0 0;
background: url('images/datagrid_icons.png') no-repeat 0px center;
}
.datagrid-row-collapse {
background: url('images/datagrid_icons.png') no-repeat -48px center;
}
.datagrid-row-expand {
background: url('images/datagrid_icons.png') no-repeat -32px center;
}
.datagrid-mask-msg {
background: #ffffff url('images/loading.gif') no-repeat scroll 5px center;
}
.datagrid-header,
.datagrid-td-rownumber {
background-color: #efefef;
background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%);
background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%);
background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%);
background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0);
}
.datagrid-cell-rownumber {
color: #000000;
}
.datagrid-resize-proxy {
background: #aac5e7;
}
.datagrid-mask {
background: #ccc;
}
.datagrid-mask-msg {
border-color: #95B8E7;
}
.datagrid-toolbar,
.datagrid-pager {
background: #F4F4F4;
}
.datagrid-header,
.datagrid-toolbar,
.datagrid-pager,
.datagrid-footer-inner {
border-color: #dddddd;
}
.datagrid-header td,
.datagrid-body td,
.datagrid-footer td {
border-color: #ccc;
}
.datagrid-htable,
.datagrid-btable,
.datagrid-ftable {
color: #000000;
border-collapse: separate;
}
.datagrid-row-alt {
background: #fafafa;
}
.datagrid-row-over,
.datagrid-header td.datagrid-header-over {
background: #eaf2ff;
color: #000000;
cursor: default;
}
.datagrid-row-selected {
background: #ffe48d;
color: #000000;
}
.datagrid-row-editing .textbox,
.datagrid-row-editing .textbox-text {
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.datebox-calendar-inner {
height: 180px;
}
.datebox-button {
height: 18px;
padding: 2px 5px;
text-align: center;
}
.datebox-button a {
font-size: 12px;
font-weight: bold;
text-decoration: none;
opacity: 0.6;
filter: alpha(opacity=60);
}
.datebox-button a:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
.datebox-current,
.datebox-close {
float: left;
}
.datebox-close {
float: right;
}
.datebox .combo-arrow {
background-image: url('images/datebox_arrow.png');
background-position: center center;
}
.datebox-button {
background-color: #F4F4F4;
}
.datebox-button a {
color: #444;
}
.dialog-content {
overflow: auto;
}
.dialog-toolbar {
padding: 2px 5px;
}
.dialog-tool-separator {
float: left;
height: 24px;
border-left: 1px solid #ccc;
border-right: 1px solid #fff;
margin: 2px 1px;
}
.dialog-button {
padding: 5px;
text-align: right;
}
.dialog-button .l-btn {
margin-left: 5px;
}
.dialog-toolbar,
.dialog-button {
background: #F4F4F4;
border-width: 1px;
border-style: solid;
}
.dialog-toolbar {
border-color: #95B8E7 #95B8E7 #dddddd #95B8E7;
}
.dialog-button {
border-color: #dddddd #95B8E7 #95B8E7 #95B8E7;
}
.filebox .textbox-value {
vertical-align: top;
position: absolute;
top: 0;
left: -5000px;
}
.layout {
position: relative;
overflow: hidden;
margin: 0;
padding: 0;
z-index: 0;
}
.layout-panel {
position: absolute;
overflow: hidden;
}
.layout-panel-east,
.layout-panel-west {
z-index: 2;
}
.layout-panel-north,
.layout-panel-south {
z-index: 3;
}
.layout-expand {
position: absolute;
padding: 0px;
font-size: 1px;
cursor: pointer;
z-index: 1;
}
.layout-expand .panel-header,
.layout-expand .panel-body {
background: transparent;
filter: none;
overflow: hidden;
}
.layout-expand .panel-header {
border-bottom-width: 0px;
}
.layout-split-proxy-h,
.layout-split-proxy-v {
position: absolute;
font-size: 1px;
display: none;
z-index: 5;
}
.layout-split-proxy-h {
width: 5px;
cursor: e-resize;
}
.layout-split-proxy-v {
height: 5px;
cursor: n-resize;
}
.layout-mask {
position: absolute;
background: #fafafa;
filter: alpha(opacity=10);
opacity: 0.10;
z-index: 4;
}
.layout-button-up {
background: url('images/layout_arrows.png') no-repeat -16px -16px;
}
.layout-button-down {
background: url('images/layout_arrows.png') no-repeat -16px 0;
}
.layout-button-left {
background: url('images/layout_arrows.png') no-repeat 0 0;
}
.layout-button-right {
background: url('images/layout_arrows.png') no-repeat 0 -16px;
}
.layout-split-proxy-h,
.layout-split-proxy-v {
background-color: #aac5e7;
}
.layout-split-north {
border-bottom: 5px solid #E6EEF8;
}
.layout-split-south {
border-top: 5px solid #E6EEF8;
}
.layout-split-east {
border-left: 5px solid #E6EEF8;
}
.layout-split-west {
border-right: 5px solid #E6EEF8;
}
.layout-expand {
background-color: #E0ECFF;
}
.layout-expand-over {
background-color: #E0ECFF;
}
.l-btn {
text-decoration: none;
display: inline-block;
overflow: hidden;
margin: 0;
padding: 0;
cursor: pointer;
outline: none;
text-align: center;
vertical-align: middle;
}
.l-btn-plain {
border: 0;
padding: 1px;
}
.l-btn-left {
display: inline-block;
position: relative;
overflow: hidden;
margin: 0;
padding: 0;
vertical-align: top;
}
.l-btn-text {
display: inline-block;
vertical-align: top;
width: auto;
line-height: 24px;
font-size: 12px;
padding: 0;
margin: 0 4px;
}
.l-btn-icon {
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
position: absolute;
top: 50%;
margin-top: -8px;
font-size: 1px;
}
.l-btn span span .l-btn-empty {
display: inline-block;
margin: 0;
width: 16px;
height: 24px;
font-size: 1px;
vertical-align: top;
}
.l-btn span .l-btn-icon-left {
padding: 0 0 0 20px;
background-position: left center;
}
.l-btn span .l-btn-icon-right {
padding: 0 20px 0 0;
background-position: right center;
}
.l-btn-icon-left .l-btn-text {
margin: 0 4px 0 24px;
}
.l-btn-icon-left .l-btn-icon {
left: 4px;
}
.l-btn-icon-right .l-btn-text {
margin: 0 24px 0 4px;
}
.l-btn-icon-right .l-btn-icon {
right: 4px;
}
.l-btn-icon-top .l-btn-text {
margin: 20px 4px 0 4px;
}
.l-btn-icon-top .l-btn-icon {
top: 4px;
left: 50%;
margin: 0 0 0 -8px;
}
.l-btn-icon-bottom .l-btn-text {
margin: 0 4px 20px 4px;
}
.l-btn-icon-bottom .l-btn-icon {
top: auto;
bottom: 4px;
left: 50%;
margin: 0 0 0 -8px;
}
.l-btn-left .l-btn-empty {
margin: 0 4px;
width: 16px;
}
.l-btn-plain:hover {
padding: 0;
}
.l-btn-focus {
outline: #0000FF dotted thin;
}
.l-btn-large .l-btn-text {
line-height: 40px;
}
.l-btn-large .l-btn-icon {
width: 32px;
height: 32px;
line-height: 32px;
margin-top: -16px;
}
.l-btn-large .l-btn-icon-left .l-btn-text {
margin-left: 40px;
}
.l-btn-large .l-btn-icon-right .l-btn-text {
margin-right: 40px;
}
.l-btn-large .l-btn-icon-top .l-btn-text {
margin-top: 36px;
line-height: 24px;
min-width: 32px;
}
.l-btn-large .l-btn-icon-top .l-btn-icon {
margin: 0 0 0 -16px;
}
.l-btn-large .l-btn-icon-bottom .l-btn-text {
margin-bottom: 36px;
line-height: 24px;
min-width: 32px;
}
.l-btn-large .l-btn-icon-bottom .l-btn-icon {
margin: 0 0 0 -16px;
}
.l-btn-large .l-btn-left .l-btn-empty {
margin: 0 4px;
width: 32px;
}
.l-btn {
color: #444;
background: #fafafa;
background-repeat: repeat-x;
border: 1px solid #bbb;
background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.l-btn:hover {
background: #eaf2ff;
color: #000000;
border: 1px solid #b7d2ff;
filter: none;
}
.l-btn-plain {
background: transparent;
border: 0;
filter: none;
}
.l-btn-plain:hover {
background: #eaf2ff;
color: #000000;
border: 1px solid #b7d2ff;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.l-btn-disabled,
.l-btn-disabled:hover {
opacity: 0.5;
cursor: default;
background: #fafafa;
color: #444;
background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
}
.l-btn-disabled .l-btn-text,
.l-btn-disabled .l-btn-icon {
filter: alpha(opacity=50);
}
.l-btn-plain-disabled,
.l-btn-plain-disabled:hover {
background: transparent;
filter: alpha(opacity=50);
}
.l-btn-selected,
.l-btn-selected:hover {
background: #ddd;
filter: none;
}
.l-btn-plain-selected,
.l-btn-plain-selected:hover {
background: #ddd;
}
.menu {
position: absolute;
margin: 0;
padding: 2px;
border-width: 1px;
border-style: solid;
overflow: hidden;
}
.menu-item {
position: relative;
margin: 0;
padding: 0;
overflow: hidden;
white-space: nowrap;
cursor: pointer;
border-width: 1px;
border-style: solid;
}
.menu-text {
height: 20px;
line-height: 20px;
float: left;
padding-left: 28px;
}
.menu-icon {
position: absolute;
width: 16px;
height: 16px;
left: 2px;
top: 50%;
margin-top: -8px;
}
.menu-rightarrow {
position: absolute;
width: 16px;
height: 16px;
right: 0;
top: 50%;
margin-top: -8px;
}
.menu-line {
position: absolute;
left: 26px;
top: 0;
height: 2000px;
font-size: 1px;
}
.menu-sep {
margin: 3px 0px 3px 25px;
font-size: 1px;
}
.menu-active {
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.menu-item-disabled {
opacity: 0.5;
filter: alpha(opacity=50);
cursor: default;
}
.menu-text,
.menu-text span {
font-size: 12px;
}
.menu-shadow {
position: absolute;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
background: #ccc;
-moz-box-shadow: 2px 2px 3px #cccccc;
-webkit-box-shadow: 2px 2px 3px #cccccc;
box-shadow: 2px 2px 3px #cccccc;
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-rightarrow {
background: url('images/menu_arrows.png') no-repeat -32px center;
}
.menu-line {
border-left: 1px solid #ccc;
border-right: 1px solid #fff;
}
.menu-sep {
border-top: 1px solid #ccc;
border-bottom: 1px solid #fff;
}
.menu {
background-color: #fafafa;
border-color: #ddd;
color: #444;
}
.menu-content {
background: #ffffff;
}
.menu-item {
border-color: transparent;
_border-color: #fafafa;
}
.menu-active {
border-color: #b7d2ff;
color: #000000;
background: #eaf2ff;
}
.menu-active-disabled {
border-color: transparent;
background: transparent;
color: #444;
}
.m-btn-downarrow,
.s-btn-downarrow {
display: inline-block;
position: absolute;
width: 16px;
height: 16px;
font-size: 1px;
right: 0;
top: 50%;
margin-top: -8px;
}
.m-btn-active,
.s-btn-active {
background: #eaf2ff;
color: #000000;
border: 1px solid #b7d2ff;
filter: none;
}
.m-btn-plain-active,
.s-btn-plain-active {
background: transparent;
padding: 0;
border-width: 1px;
border-style: solid;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.m-btn .l-btn-left .l-btn-text {
margin-right: 20px;
}
.m-btn .l-btn-icon-right .l-btn-text {
margin-right: 40px;
}
.m-btn .l-btn-icon-right .l-btn-icon {
right: 20px;
}
.m-btn .l-btn-icon-top .l-btn-text {
margin-right: 4px;
margin-bottom: 14px;
}
.m-btn .l-btn-icon-bottom .l-btn-text {
margin-right: 4px;
margin-bottom: 34px;
}
.m-btn .l-btn-icon-bottom .l-btn-icon {
top: auto;
bottom: 20px;
}
.m-btn .l-btn-icon-top .m-btn-downarrow,
.m-btn .l-btn-icon-bottom .m-btn-downarrow {
top: auto;
bottom: 0px;
left: 50%;
margin-left: -8px;
}
.m-btn-line {
display: inline-block;
position: absolute;
font-size: 1px;
display: none;
}
.m-btn .l-btn-left .m-btn-line {
right: 0;
width: 16px;
height: 500px;
border-style: solid;
border-color: #aac5e7;
border-width: 0 0 0 1px;
}
.m-btn .l-btn-icon-top .m-btn-line,
.m-btn .l-btn-icon-bottom .m-btn-line {
left: 0;
bottom: 0;
width: 500px;
height: 16px;
border-width: 1px 0 0 0;
}
.m-btn-large .l-btn-icon-right .l-btn-text {
margin-right: 56px;
}
.m-btn-large .l-btn-icon-bottom .l-btn-text {
margin-bottom: 50px;
}
.m-btn-downarrow,
.s-btn-downarrow {
background: url('images/menu_arrows.png') no-repeat 0 center;
}
.m-btn-plain-active,
.s-btn-plain-active {
border-color: #b7d2ff;
background-color: #eaf2ff;
color: #000000;
}
.messager-body {
padding: 10px;
overflow: hidden;
}
.messager-button {
text-align: center;
padding-top: 10px;
}
.messager-button .l-btn {
width: 70px;
}
.messager-icon {
float: left;
width: 32px;
height: 32px;
margin: 0 10px 10px 0;
}
.messager-error {
background: url('images/messager_icons.png') no-repeat scroll -64px 0;
}
.messager-info {
background: url('images/messager_icons.png') no-repeat scroll 0 0;
}
.messager-question {
background: url('images/messager_icons.png') no-repeat scroll -32px 0;
}
.messager-warning {
background: url('images/messager_icons.png') no-repeat scroll -96px 0;
}
.messager-progress {
padding: 10px;
}
.messager-p-msg {
margin-bottom: 5px;
}
.messager-body .messager-input {
width: 100%;
padding: 1px 0;
border: 1px solid #95B8E7;
}
.numberbox {
border: 1px solid #95B8E7;
margin: 0;
padding: 0 2px;
vertical-align: middle;
}
.textbox {
padding: 0;
}
.pagination {
zoom: 1;
}
.pagination table {
float: left;
height: 30px;
}
.pagination td {
border: 0;
}
.pagination-btn-separator {
float: left;
height: 24px;
border-left: 1px solid #ccc;
border-right: 1px solid #fff;
margin: 3px 1px;
}
.pagination .pagination-num {
border-width: 1px;
border-style: solid;
margin: 0 2px;
padding: 2px;
width: 2em;
height: auto;
}
.pagination-page-list {
margin: 0px 6px;
padding: 1px 2px;
width: auto;
height: auto;
border-width: 1px;
border-style: solid;
}
.pagination-info {
float: right;
margin: 0 6px 0 0;
padding: 0;
height: 30px;
line-height: 30px;
font-size: 12px;
}
.pagination span {
font-size: 12px;
}
.pagination-link .l-btn-text {
width: 24px;
text-align: center;
margin: 0;
}
.pagination-first {
background: url('images/pagination_icons.png') no-repeat 0 center;
}
.pagination-prev {
background: url('images/pagination_icons.png') no-repeat -16px center;
}
.pagination-next {
background: url('images/pagination_icons.png') no-repeat -32px center;
}
.pagination-last {
background: url('images/pagination_icons.png') no-repeat -48px center;
}
.pagination-load {
background: url('images/pagination_icons.png') no-repeat -64px center;
}
.pagination-loading {
background: url('images/loading.gif') no-repeat center center;
}
.pagination-page-list,
.pagination .pagination-num {
border-color: #95B8E7;
}
.panel {
overflow: hidden;
text-align: left;
margin: 0;
border: 0;
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.panel-header,
.panel-body {
border-width: 1px;
border-style: solid;
}
.panel-header {
padding: 5px;
position: relative;
}
.panel-title {
background: url('images/blank.gif') no-repeat;
}
.panel-header-noborder {
border-width: 0 0 1px 0;
}
.panel-body {
overflow: auto;
border-top-width: 0;
padding: 0;
}
.panel-body-noheader {
border-top-width: 1px;
}
.panel-body-noborder {
border-width: 0px;
}
.panel-body-nobottom {
border-bottom-width: 0;
}
.panel-with-icon {
padding-left: 18px;
}
.panel-icon,
.panel-tool {
position: absolute;
top: 50%;
margin-top: -8px;
height: 16px;
overflow: hidden;
}
.panel-icon {
left: 5px;
width: 16px;
}
.panel-tool {
right: 5px;
width: auto;
}
.panel-tool a {
display: inline-block;
width: 16px;
height: 16px;
opacity: 0.6;
filter: alpha(opacity=60);
margin: 0 0 0 2px;
vertical-align: top;
}
.panel-tool a:hover {
opacity: 1;
filter: alpha(opacity=100);
background-color: #eaf2ff;
-moz-border-radius: 3px 3px 3px 3px;
-webkit-border-radius: 3px 3px 3px 3px;
border-radius: 3px 3px 3px 3px;
}
.panel-loading {
padding: 11px 0px 10px 30px;
}
.panel-noscroll {
overflow: hidden;
}
.panel-fit,
.panel-fit body {
height: 100%;
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
}
.panel-loading {
background: url('images/loading.gif') no-repeat 10px 10px;
}
.panel-tool-close {
background: url('images/panel_tools.png') no-repeat -16px 0px;
}
.panel-tool-min {
background: url('images/panel_tools.png') no-repeat 0px 0px;
}
.panel-tool-max {
background: url('images/panel_tools.png') no-repeat 0px -16px;
}
.panel-tool-restore {
background: url('images/panel_tools.png') no-repeat -16px -16px;
}
.panel-tool-collapse {
background: url('images/panel_tools.png') no-repeat -32px 0;
}
.panel-tool-expand {
background: url('images/panel_tools.png') no-repeat -32px -16px;
}
.panel-header,
.panel-body {
border-color: #95B8E7;
}
.panel-header {
background-color: #E0ECFF;
background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
}
.panel-body {
background-color: #ffffff;
color: #000000;
font-size: 12px;
}
.panel-title {
font-size: 12px;
font-weight: bold;
color: #0E2D5F;
height: 16px;
line-height: 16px;
}
.panel-footer {
border: 1px solid #95B8E7;
overflow: hidden;
background: #F4F4F4;
}
.panel-footer-noborder {
border-width: 1px 0 0 0;
}
.progressbar {
border-width: 1px;
border-style: solid;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
overflow: hidden;
position: relative;
}
.progressbar-text {
text-align: center;
position: absolute;
}
.progressbar-value {
position: relative;
overflow: hidden;
width: 0;
-moz-border-radius: 5px 0 0 5px;
-webkit-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
}
.progressbar {
border-color: #95B8E7;
}
.progressbar-text {
color: #000000;
font-size: 12px;
}
.progressbar-value .progressbar-text {
background-color: #ffe48d;
color: #000000;
}
.propertygrid .datagrid-view1 .datagrid-body td {
padding-bottom: 1px;
border-width: 0 1px 0 0;
}
.propertygrid .datagrid-group {
height: 21px;
overflow: hidden;
border-width: 0 0 1px 0;
border-style: solid;
}
.propertygrid .datagrid-group span {
font-weight: bold;
}
.propertygrid .datagrid-view1 .datagrid-body td {
border-color: #dddddd;
}
.propertygrid .datagrid-view1 .datagrid-group {
border-color: #E0ECFF;
}
.propertygrid .datagrid-view2 .datagrid-group {
border-color: #dddddd;
}
.propertygrid .datagrid-group,
.propertygrid .datagrid-view1 .datagrid-body,
.propertygrid .datagrid-view1 .datagrid-row-over,
.propertygrid .datagrid-view1 .datagrid-row-selected {
background: #E0ECFF;
}
.searchbox {
display: inline-block;
white-space: nowrap;
margin: 0;
padding: 0;
border-width: 1px;
border-style: solid;
overflow: hidden;
vertical-align: middle;
}
.searchbox .searchbox-text {
font-size: 12px;
border: 0;
margin: 0;
padding: 0 2px;
vertical-align: top;
}
.searchbox .searchbox-prompt {
font-size: 12px;
color: #ccc;
}
.searchbox-button {
width: 18px;
height: 20px;
overflow: hidden;
display: inline-block;
vertical-align: top;
cursor: pointer;
opacity: 0.6;
filter: alpha(opacity=60);
}
.searchbox-button-hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
.searchbox .l-btn-plain {
border: 0;
padding: 0;
vertical-align: top;
opacity: 0.6;
filter: alpha(opacity=60);
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.searchbox .l-btn-plain:hover {
border: 0;
padding: 0;
opacity: 1.0;
filter: alpha(opacity=100);
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.searchbox a.m-btn-plain-active {
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.searchbox .m-btn-active {
border-width: 0 1px 0 0;
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.searchbox .textbox-button-right {
border-width: 0 0 0 1px;
}
.searchbox .textbox-button-left {
border-width: 0 1px 0 0;
}
.searchbox-button {
background: url('images/searchbox_button.png') no-repeat center center;
}
.searchbox {
border-color: #95B8E7;
background-color: #fff;
}
.searchbox .l-btn-plain {
background: #E0ECFF;
}
.searchbox .l-btn-plain-disabled,
.searchbox .l-btn-plain-disabled:hover {
opacity: 0.5;
filter: alpha(opacity=50);
}
.textbox-invalid {
border-color: #ffa8a8;
background-color: #fff3f3;
}
.slider-disabled {
opacity: 0.5;
filter: alpha(opacity=50);
}
.slider-h {
height: 22px;
}
.slider-v {
width: 22px;
}
.slider-inner {
position: relative;
height: 6px;
top: 7px;
border-width: 1px;
border-style: solid;
border-radius: 5px;
}
.slider-handle {
position: absolute;
display: block;
outline: none;
width: 20px;
height: 20px;
top: 50%;
margin-top: -10px;
margin-left: -10px;
}
.slider-tip {
position: absolute;
display: inline-block;
line-height: 12px;
font-size: 12px;
white-space: nowrap;
top: -22px;
}
.slider-rule {
position: relative;
top: 15px;
}
.slider-rule span {
position: absolute;
display: inline-block;
font-size: 0;
height: 5px;
border-width: 0 0 0 1px;
border-style: solid;
}
.slider-rulelabel {
position: relative;
top: 20px;
}
.slider-rulelabel span {
position: absolute;
display: inline-block;
font-size: 12px;
}
.slider-v .slider-inner {
width: 6px;
left: 7px;
top: 0;
float: left;
}
.slider-v .slider-handle {
left: 50%;
margin-top: -10px;
}
.slider-v .slider-tip {
left: -10px;
margin-top: -6px;
}
.slider-v .slider-rule {
float: left;
top: 0;
left: 16px;
}
.slider-v .slider-rule span {
width: 5px;
height: 'auto';
border-left: 0;
border-width: 1px 0 0 0;
border-style: solid;
}
.slider-v .slider-rulelabel {
float: left;
top: 0;
left: 23px;
}
.slider-handle {
background: url('images/slider_handle.png') no-repeat;
}
.slider-inner {
border-color: #95B8E7;
background: #E0ECFF;
}
.slider-rule span {
border-color: #95B8E7;
}
.slider-rulelabel span {
color: #000000;
}
.spinner {
display: inline-block;
white-space: nowrap;
margin: 0;
padding: 0;
border-width: 1px;
border-style: solid;
overflow: hidden;
vertical-align: middle;
}
.spinner .spinner-text {
font-size: 12px;
border: 0px;
margin: 0;
padding: 0 2px;
vertical-align: baseline;
}
.spinner-arrow {
background-color: #E0ECFF;
display: inline-block;
overflow: hidden;
vertical-align: top;
margin: 0;
padding: 0;
opacity: 1.0;
filter: alpha(opacity=100);
width: 18px;
}
.spinner-arrow-up,
.spinner-arrow-down {
opacity: 0.6;
filter: alpha(opacity=60);
display: block;
font-size: 1px;
width: 18px;
height: 10px;
width: 100%;
height: 50%;
outline-style: none;
}
.spinner-arrow-hover {
background-color: #eaf2ff;
opacity: 1.0;
filter: alpha(opacity=100);
}
.spinner-arrow-up:hover,
.spinner-arrow-down:hover {
opacity: 1.0;
filter: alpha(opacity=100);
background-color: #eaf2ff;
}
.textbox-icon-disabled .spinner-arrow-up:hover,
.textbox-icon-disabled .spinner-arrow-down:hover {
opacity: 0.6;
filter: alpha(opacity=60);
background-color: #E0ECFF;
cursor: default;
}
.spinner .textbox-icon-disabled {
opacity: 0.6;
filter: alpha(opacity=60);
}
.spinner-arrow-up {
background: url('images/spinner_arrows.png') no-repeat 1px center;
}
.spinner-arrow-down {
background: url('images/spinner_arrows.png') no-repeat -15px center;
}
.spinner {
border-color: #95B8E7;
}
.s-btn:hover .m-btn-line,
.s-btn-active .m-btn-line,
.s-btn-plain-active .m-btn-line {
display: inline-block;
}
.l-btn:hover .s-btn-downarrow,
.s-btn-active .s-btn-downarrow,
.s-btn-plain-active .s-btn-downarrow {
border-style: solid;
border-color: #aac5e7;
border-width: 0 0 0 1px;
}
.tabs-container {
overflow: hidden;
}
.tabs-header {
border-width: 1px;
border-style: solid;
border-bottom-width: 0;
position: relative;
padding: 0;
padding-top: 2px;
overflow: hidden;
}
.tabs-header-plain {
border: 0;
background: transparent;
}
.tabs-scroller-left,
.tabs-scroller-right {
position: absolute;
top: auto;
bottom: 0;
width: 18px;
font-size: 1px;
display: none;
cursor: pointer;
border-width: 1px;
border-style: solid;
}
.tabs-scroller-left {
left: 0;
}
.tabs-scroller-right {
right: 0;
}
.tabs-tool {
position: absolute;
bottom: 0;
padding: 1px;
overflow: hidden;
border-width: 1px;
border-style: solid;
}
.tabs-header-plain .tabs-tool {
padding: 0 1px;
}
.tabs-wrap {
position: relative;
left: 0;
overflow: hidden;
width: 100%;
margin: 0;
padding: 0;
}
.tabs-scrolling {
margin-left: 18px;
margin-right: 18px;
}
.tabs-disabled {
opacity: 0.3;
filter: alpha(opacity=30);
}
.tabs {
list-style-type: none;
height: 26px;
margin: 0px;
padding: 0px;
padding-left: 4px;
width: 50000px;
border-style: solid;
border-width: 0 0 1px 0;
}
.tabs li {
float: left;
display: inline-block;
margin: 0 4px -1px 0;
padding: 0;
position: relative;
border: 0;
}
.tabs li a.tabs-inner {
display: inline-block;
text-decoration: none;
margin: 0;
padding: 0 10px;
height: 25px;
line-height: 25px;
text-align: center;
white-space: nowrap;
border-width: 1px;
border-style: solid;
-moz-border-radius: 5px 5px 0 0;
-webkit-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
}
.tabs li.tabs-selected a.tabs-inner {
font-weight: bold;
outline: none;
}
.tabs li.tabs-selected a:hover.tabs-inner {
cursor: default;
pointer: default;
}
.tabs li a.tabs-close,
.tabs-p-tool {
position: absolute;
font-size: 1px;
display: block;
height: 12px;
padding: 0;
top: 50%;
margin-top: -6px;
overflow: hidden;
}
.tabs li a.tabs-close {
width: 12px;
right: 5px;
opacity: 0.6;
filter: alpha(opacity=60);
}
.tabs-p-tool {
right: 16px;
}
.tabs-p-tool a {
display: inline-block;
font-size: 1px;
width: 12px;
height: 12px;
margin: 0;
opacity: 0.6;
filter: alpha(opacity=60);
}
.tabs li a:hover.tabs-close,
.tabs-p-tool a:hover {
opacity: 1;
filter: alpha(opacity=100);
cursor: hand;
cursor: pointer;
}
.tabs-with-icon {
padding-left: 18px;
}
.tabs-icon {
position: absolute;
width: 16px;
height: 16px;
left: 10px;
top: 50%;
margin-top: -8px;
}
.tabs-title {
font-size: 12px;
}
.tabs-closable {
padding-right: 8px;
}
.tabs-panels {
margin: 0px;
padding: 0px;
border-width: 1px;
border-style: solid;
border-top-width: 0;
overflow: hidden;
}
.tabs-header-bottom {
border-width: 0 1px 1px 1px;
padding: 0 0 2px 0;
}
.tabs-header-bottom .tabs {
border-width: 1px 0 0 0;
}
.tabs-header-bottom .tabs li {
margin: -1px 4px 0 0;
}
.tabs-header-bottom .tabs li a.tabs-inner {
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
}
.tabs-header-bottom .tabs-tool {
top: 0;
}
.tabs-header-bottom .tabs-scroller-left,
.tabs-header-bottom .tabs-scroller-right {
top: 0;
bottom: auto;
}
.tabs-panels-top {
border-width: 1px 1px 0 1px;
}
.tabs-header-left {
float: left;
border-width: 1px 0 1px 1px;
padding: 0;
}
.tabs-header-right {
float: right;
border-width: 1px 1px 1px 0;
padding: 0;
}
.tabs-header-left .tabs-wrap,
.tabs-header-right .tabs-wrap {
height: 100%;
}
.tabs-header-left .tabs {
height: 100%;
padding: 4px 0 0 4px;
border-width: 0 1px 0 0;
}
.tabs-header-right .tabs {
height: 100%;
padding: 4px 4px 0 0;
border-width: 0 0 0 1px;
}
.tabs-header-left .tabs li,
.tabs-header-right .tabs li {
display: block;
width: 100%;
position: relative;
}
.tabs-header-left .tabs li {
left: auto;
right: 0;
margin: 0 -1px 4px 0;
float: right;
}
.tabs-header-right .tabs li {
left: 0;
right: auto;
margin: 0 0 4px -1px;
float: left;
}
.tabs-header-left .tabs li a.tabs-inner {
display: block;
text-align: left;
-moz-border-radius: 5px 0 0 5px;
-webkit-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
}
.tabs-header-right .tabs li a.tabs-inner {
display: block;
text-align: left;
-moz-border-radius: 0 5px 5px 0;
-webkit-border-radius: 0 5px 5px 0;
border-radius: 0 5px 5px 0;
}
.tabs-panels-right {
float: right;
border-width: 1px 1px 1px 0;
}
.tabs-panels-left {
float: left;
border-width: 1px 0 1px 1px;
}
.tabs-header-noborder,
.tabs-panels-noborder {
border: 0px;
}
.tabs-header-plain {
border: 0px;
background: transparent;
}
.tabs-scroller-left {
background: #E0ECFF url('images/tabs_icons.png') no-repeat 1px center;
}
.tabs-scroller-right {
background: #E0ECFF url('images/tabs_icons.png') no-repeat -15px center;
}
.tabs li a.tabs-close {
background: url('images/tabs_icons.png') no-repeat -34px center;
}
.tabs li a.tabs-inner:hover {
background: #eaf2ff;
color: #000000;
filter: none;
}
.tabs li.tabs-selected a.tabs-inner {
background-color: #ffffff;
color: #0E2D5F;
background: -webkit-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
background: -moz-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
background: -o-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
background: linear-gradient(to bottom,#EFF5FF 0,#ffffff 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=0);
}
.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
background: -webkit-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
background: -moz-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
background: -o-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
background: linear-gradient(to bottom,#ffffff 0,#EFF5FF 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=0);
}
.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
background: -webkit-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
background: -moz-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
background: -o-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
background: linear-gradient(to right,#EFF5FF 0,#ffffff 100%);
background-repeat: repeat-y;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=1);
}
.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
background: -webkit-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
background: -moz-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
background: -o-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
background: linear-gradient(to right,#ffffff 0,#EFF5FF 100%);
background-repeat: repeat-y;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=1);
}
.tabs li a.tabs-inner {
color: #0E2D5F;
background-color: #E0ECFF;
background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
}
.tabs-header,
.tabs-tool {
background-color: #E0ECFF;
}
.tabs-header-plain {
background: transparent;
}
.tabs-header,
.tabs-scroller-left,
.tabs-scroller-right,
.tabs-tool,
.tabs,
.tabs-panels,
.tabs li a.tabs-inner,
.tabs li.tabs-selected a.tabs-inner,
.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner,
.tabs-header-left .tabs li.tabs-selected a.tabs-inner,
.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
border-color: #95B8E7;
}
.tabs-p-tool a:hover,
.tabs li a:hover.tabs-close,
.tabs-scroller-over {
background-color: #eaf2ff;
}
.tabs li.tabs-selected a.tabs-inner {
border-bottom: 1px solid #ffffff;
}
.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
border-top: 1px solid #ffffff;
}
.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
border-right: 1px solid #ffffff;
}
.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
border-left: 1px solid #ffffff;
}
.textbox {
position: relative;
border: 1px solid #95B8E7;
background-color: #fff;
vertical-align: middle;
display: inline-block;
overflow: hidden;
white-space: nowrap;
margin: 0;
padding: 0;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.textbox .textbox-text {
font-size: 12px;
border: 0;
margin: 0;
padding: 4px;
white-space: normal;
vertical-align: top;
outline-style: none;
resize: none;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.textbox .textbox-prompt {
font-size: 12px;
color: #aaa;
}
.textbox-button,
.textbox-button:hover {
position: absolute;
top: 0;
padding: 0;
vertical-align: top;
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.textbox-button-right,
.textbox-button-right:hover {
border-width: 0 0 0 1px;
}
.textbox-button-left,
.textbox-button-left:hover {
border-width: 0 1px 0 0;
}
.textbox-addon {
position: absolute;
top: 0;
}
.textbox-icon {
display: inline-block;
width: 18px;
height: 20px;
overflow: hidden;
vertical-align: top;
background-position: center center;
cursor: pointer;
opacity: 0.6;
filter: alpha(opacity=60);
text-decoration: none;
outline-style: none;
}
.textbox-icon-disabled,
.textbox-icon-readonly {
cursor: default;
}
.textbox-icon:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
.textbox-icon-disabled:hover {
opacity: 0.6;
filter: alpha(opacity=60);
}
.textbox-focused {
-moz-box-shadow: 0 0 3px 0 #95B8E7;
-webkit-box-shadow: 0 0 3px 0 #95B8E7;
box-shadow: 0 0 3px 0 #95B8E7;
}
.textbox-invalid {
border-color: #ffa8a8;
background-color: #fff3f3;
}
.tooltip {
position: absolute;
display: none;
z-index: 9900000;
outline: none;
opacity: 1;
filter: alpha(opacity=100);
padding: 5px;
border-width: 1px;
border-style: solid;
border-radius: 5px;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.tooltip-content {
font-size: 12px;
}
.tooltip-arrow-outer,
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
line-height: 0;
font-size: 0;
border-style: solid;
border-width: 6px;
border-color: transparent;
_border-color: tomato;
_filter: chroma(color=tomato);
}
.tooltip-right .tooltip-arrow-outer {
left: 0;
top: 50%;
margin: -6px 0 0 -13px;
}
.tooltip-right .tooltip-arrow {
left: 0;
top: 50%;
margin: -6px 0 0 -12px;
}
.tooltip-left .tooltip-arrow-outer {
right: 0;
top: 50%;
margin: -6px -13px 0 0;
}
.tooltip-left .tooltip-arrow {
right: 0;
top: 50%;
margin: -6px -12px 0 0;
}
.tooltip-top .tooltip-arrow-outer {
bottom: 0;
left: 50%;
margin: 0 0 -13px -6px;
}
.tooltip-top .tooltip-arrow {
bottom: 0;
left: 50%;
margin: 0 0 -12px -6px;
}
.tooltip-bottom .tooltip-arrow-outer {
top: 0;
left: 50%;
margin: -13px 0 0 -6px;
}
.tooltip-bottom .tooltip-arrow {
top: 0;
left: 50%;
margin: -12px 0 0 -6px;
}
.tooltip {
background-color: #ffffff;
border-color: #95B8E7;
color: #000000;
}
.tooltip-right .tooltip-arrow-outer {
border-right-color: #95B8E7;
}
.tooltip-right .tooltip-arrow {
border-right-color: #ffffff;
}
.tooltip-left .tooltip-arrow-outer {
border-left-color: #95B8E7;
}
.tooltip-left .tooltip-arrow {
border-left-color: #ffffff;
}
.tooltip-top .tooltip-arrow-outer {
border-top-color: #95B8E7;
}
.tooltip-top .tooltip-arrow {
border-top-color: #ffffff;
}
.tooltip-bottom .tooltip-arrow-outer {
border-bottom-color: #95B8E7;
}
.tooltip-bottom .tooltip-arrow {
border-bottom-color: #ffffff;
}
.tree {
margin: 0;
padding: 0;
list-style-type: none;
}
.tree li {
white-space: nowrap;
}
.tree li ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.tree-node {
height: 18px;
white-space: nowrap;
cursor: pointer;
}
.tree-hit {
cursor: pointer;
}
.tree-expanded,
.tree-collapsed,
.tree-folder,
.tree-file,
.tree-checkbox,
.tree-indent {
display: inline-block;
width: 16px;
height: 18px;
vertical-align: top;
overflow: hidden;
}
.tree-expanded {
background: url('images/tree_icons.png') no-repeat -18px 0px;
}
.tree-expanded-hover {
background: url('images/tree_icons.png') no-repeat -50px 0px;
}
.tree-collapsed {
background: url('images/tree_icons.png') no-repeat 0px 0px;
}
.tree-collapsed-hover {
background: url('images/tree_icons.png') no-repeat -32px 0px;
}
.tree-lines .tree-expanded,
.tree-lines .tree-root-first .tree-expanded {
background: url('images/tree_icons.png') no-repeat -144px 0;
}
.tree-lines .tree-collapsed,
.tree-lines .tree-root-first .tree-collapsed {
background: url('images/tree_icons.png') no-repeat -128px 0;
}
.tree-lines .tree-node-last .tree-expanded,
.tree-lines .tree-root-one .tree-expanded {
background: url('images/tree_icons.png') no-repeat -80px 0;
}
.tree-lines .tree-node-last .tree-collapsed,
.tree-lines .tree-root-one .tree-collapsed {
background: url('images/tree_icons.png') no-repeat -64px 0;
}
.tree-line {
background: url('images/tree_icons.png') no-repeat -176px 0;
}
.tree-join {
background: url('images/tree_icons.png') no-repeat -192px 0;
}
.tree-joinbottom {
background: url('images/tree_icons.png') no-repeat -160px 0;
}
.tree-folder {
background: url('images/tree_icons.png') no-repeat -208px 0;
}
.tree-folder-open {
background: url('images/tree_icons.png') no-repeat -224px 0;
}
.tree-file {
background: url('images/tree_icons.png') no-repeat -240px 0;
}
.tree-loading {
background: url('images/loading.gif') no-repeat center center;
}
.tree-checkbox0 {
background: url('images/tree_icons.png') no-repeat -208px -18px;
}
.tree-checkbox1 {
background: url('images/tree_icons.png') no-repeat -224px -18px;
}
.tree-checkbox2 {
background: url('images/tree_icons.png') no-repeat -240px -18px;
}
.tree-title {
font-size: 12px;
display: inline-block;
text-decoration: none;
vertical-align: top;
white-space: nowrap;
padding: 0 2px;
height: 18px;
line-height: 18px;
}
.tree-node-proxy {
font-size: 12px;
line-height: 20px;
padding: 0 2px 0 20px;
border-width: 1px;
border-style: solid;
z-index: 9900000;
}
.tree-dnd-icon {
display: inline-block;
position: absolute;
width: 16px;
height: 18px;
left: 2px;
top: 50%;
margin-top: -9px;
}
.tree-dnd-yes {
background: url('images/tree_icons.png') no-repeat -256px 0;
}
.tree-dnd-no {
background: url('images/tree_icons.png') no-repeat -256px -18px;
}
.tree-node-top {
border-top: 1px dotted red;
}
.tree-node-bottom {
border-bottom: 1px dotted red;
}
.tree-node-append .tree-title {
border: 1px dotted red;
}
.tree-editor {
border: 1px solid #ccc;
font-size: 12px;
height: 14px !important;
height: 18px;
line-height: 14px;
padding: 1px 2px;
width: 80px;
position: absolute;
top: 0;
}
.tree-node-proxy {
background-color: #ffffff;
color: #000000;
border-color: #95B8E7;
}
.tree-node-hover {
background: #eaf2ff;
color: #000000;
}
.tree-node-selected {
background: #ffe48d;
color: #000000;
}
.validatebox-invalid {
border-color: #ffa8a8;
background-color: #fff3f3;
color: #000;
}
.window {
overflow: hidden;
padding: 5px;
border-width: 1px;
border-style: solid;
}
.window .window-header {
background: transparent;
padding: 0px 0px 6px 0px;
}
.window .window-body {
border-width: 1px;
border-style: solid;
border-top-width: 0px;
}
.window .window-body-noheader {
border-top-width: 1px;
}
.window .panel-body-nobottom {
border-bottom-width: 0;
}
.window .window-header .panel-icon,
.window .window-header .panel-tool {
top: 50%;
margin-top: -11px;
}
.window .window-header .panel-icon {
left: 1px;
}
.window .window-header .panel-tool {
right: 1px;
}
.window .window-header .panel-with-icon {
padding-left: 18px;
}
.window-proxy {
position: absolute;
overflow: hidden;
}
.window-proxy-mask {
position: absolute;
filter: alpha(opacity=5);
opacity: 0.05;
}
.window-mask {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
filter: alpha(opacity=40);
opacity: 0.40;
font-size: 1px;
overflow: hidden;
}
.window,
.window-shadow {
position: absolute;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.window-shadow {
background: #ccc;
-moz-box-shadow: 2px 2px 3px #cccccc;
-webkit-box-shadow: 2px 2px 3px #cccccc;
box-shadow: 2px 2px 3px #cccccc;
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window,
.window .window-body {
border-color: #95B8E7;
}
.window {
background-color: #E0ECFF;
background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 20%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
}
.window-proxy {
border: 1px dashed #95B8E7;
}
.window-proxy-mask,
.window-mask {
background: #ccc;
}
.window .panel-footer {
border: 1px solid #95B8E7;
position: relative;
top: -1px;
}
......@@ -2,4 +2,11 @@
border:1px solid #95B8E7;
height:23px;
border-radius: 5px 5px 5px 5px;
padding-left:4px;
outline:none;
}
.tableInput-easyui:focus{
-moz-box-shadow: 0 0 3px 0 #95B8E7;
-webkit-box-shadow: 0 0 3px 0 #95B8E7;
box-shadow: 0 0 3px 0 #95B8E7;
}
\ No newline at end of file
......@@ -2,13 +2,15 @@
height:16px;
}
.tableStyle{
border-left:1px solid #95B8E7;
border-bottom:1px solid #95B8E7;
border-left:1px solid #e3e3e3;
border-bottom:1px solid #e3e3e3;
margin: 10px auto !important;
}
.tableStyle td{
border-top:1px solid #95B8E7;
border-right:1px solid #95B8E7;
padding-left:5px;
border-top:1px solid #e3e3e3;
border-right:1px solid #e3e3e3;
padding: 10px;
background-color: rgb(244, 245, 247,0.2);
}
.tableStyle .tableStyleLable{
color:#235c8d;
......@@ -16,7 +18,8 @@
font-family:"";
text-align:right;
font-size:12px;
background-color:rgb(244, 245, 247);
background-color:rgb(244, 245, 247,0.2);
min-width:74px;
}
.tableStyle .tableStylejg{
color:#ccc;
......
......@@ -1300,7 +1300,7 @@ function strToDateObj(str){
else if($(this).is(":checkbox")){
var field_id = $(this).attr("name");
var str="";
$("[name="+field_id+"]:checked").each(function(){
$("[name='"+field_id+"']:checked").each(function(){
if($(this).attr("checked")){
str += $(this).val()+",";
}
......@@ -1382,6 +1382,15 @@ function openUpload_imagedoc(uuid){
}
//打开上传页面
function openUpload(url,up_type,up_act,uuid){
var is_left = 160;
var is_top = 0;
//如果是自定义皮肤时,显示居中
if(custom_theme==true){
is_left = (ls_width - ls_width * 0.45)/2;
is_top = (ls_height - ls_height * 0.35)/2;
}
$('#upload').dialog( {
title : '文件上传',
iconCls : $.getJwWindowPic(),
......@@ -1390,8 +1399,8 @@ function openUpload(url,up_type,up_act,uuid){
closed : false,
cache : false,
maximizable:false,
left:160,
top:0,
left:is_left,
top:is_top,
href : url,
modal : true,
buttons : [ {
......@@ -1416,6 +1425,12 @@ function openUpload(url,up_type,up_act,uuid){
//打开上传页面
function openUploadWidth(url,up_type,up_act,uuid,is_width,is_height,is_left,is_top){
//如果是自定义皮肤时,显示居中---该页面比较特殊,子页面要去获得父页面的全局变量
if(parent.custom_theme==true){
is_left = (ls_width - ls_width * is_width)/2;
is_top = (ls_height - ls_height * is_height)/2;
}
$('#upload').dialog( {
title : '文件上传',
iconCls : $.getJwWindowPic(),
......@@ -1813,6 +1828,13 @@ function createOptionMenuTooltipTree(menuWidth) {
* @returns {Boolean}
*/
function openViewIframRow(opendiv,editUrl,is_row,is_title,is_max,is_width,is_height,is_left,is_top){
//如果是自定义皮肤时,显示居中
if(custom_theme==true){
is_left = (ls_width - ls_width * is_width)/2;
is_top = (ls_height - ls_height * is_height)/2;
}
$('#'+opendiv).dialog( {
title : is_title,
iconCls : $.getJwWindowPic(),
......@@ -1843,6 +1865,13 @@ function openViewIframRow(opendiv,editUrl,is_row,is_title,is_max,is_width,is_hei
* @returns {Boolean}
*/
function openViewIframGroup(opendiv,editUrl,is_row,is_title,is_max,is_width,is_height,is_left,is_top){
//如果是自定义皮肤时,显示居中
if(custom_theme==true){
is_left = (ls_width - ls_width * is_width)/2;
is_top = (ls_height - ls_height * is_height)/2;
}
$('#'+opendiv).dialog( {
title : is_title,
iconCls : $.getJwWindowPic(),
......@@ -2023,6 +2052,13 @@ function AddBox(is_row,Box_id,List_id){
* @returns {Boolean}
*/
function openEditRow(editUrl,is_row,is_title,is_max,is_width,is_height,is_left,is_top){
//如果是自定义皮肤时,显示居中
if(custom_theme==true){
is_left = (ls_width - ls_width * is_width)/2;
is_top = (ls_height - ls_height * is_height)/2;
}
$('#detail').dialog( {
title : is_title,
iconCls : $.getJwWindowPic(),
......@@ -2102,6 +2138,12 @@ function saveBox(Box_id,List_id) {
* @returns {Boolean}
*/
function openAdvsearchRow(advsearchUrl,is_row,is_title,is_max,is_width,is_height,is_left,is_top){
//如果是自定义皮肤时,显示居中
if(custom_theme==true){
is_left = (ls_width - ls_width * is_width)/2;
is_top = (ls_height - ls_height * is_height)/2;
}
$('#advsearch').dialog( {
title : is_title,
iconCls : $.getJwAdvsearchPic(),
......@@ -2284,3 +2326,34 @@ function disabledRightMenu(){
$(document).bind("contextmenu",function(){return false;});
$(document).bind("selectstart",function(){return false;});
}
//全局变量来判断是否是修改皮肤
var custom_theme;
$(function(){
//如果地址为换皮肤时
if(location.href.indexOf('theme=ztw')>=0){
//修改皮肤
var linkSpace='jquery-easyui-1.4.1/themes/';
$('link').each(function(index,element){
var index=$(element).attr('href').indexOf(linkSpace);
if(index!=-1){
$(element).attr('href',$(element).attr('href').substring(0,index)+linkSpace+'ztw'+'/easyui.css');
custom_theme = true;
return false;
}
})
}
else{
//如果直接link一个新的皮肤时
$('link').each(function(index,element){
var index = $(element).attr('href').indexOf('ztw');
if(index!=-1){
custom_theme = true;
return false;
}
})
}
})
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=
d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
\ No newline at end of file
#fancybox-buttons {
position: fixed;
left: 0;
width: 100%;
z-index: 8050;
}
#fancybox-buttons.top {
top: 10px;
}
#fancybox-buttons.bottom {
bottom: 10px;
}
#fancybox-buttons ul {
display: block;
width: 166px;
height: 30px;
margin: 0 auto;
padding: 0;
list-style: none;
border: 1px solid #111;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
-moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
background: rgb(50,50,50);
background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
}
#fancybox-buttons ul li {
float: left;
margin: 0;
padding: 0;
}
#fancybox-buttons a {
display: block;
width: 30px;
height: 30px;
text-indent: -9999px;
background-color: transparent;
background-image: url('fancybox_buttons.png');
background-repeat: no-repeat;
outline: none;
opacity: 0.8;
}
#fancybox-buttons a:hover {
opacity: 1;
}
#fancybox-buttons a.btnPrev {
background-position: 5px 0;
}
#fancybox-buttons a.btnNext {
background-position: -33px 0;
border-right: 1px solid #3e3e3e;
}
#fancybox-buttons a.btnPlay {
background-position: 0 -30px;
}
#fancybox-buttons a.btnPlayOn {
background-position: -30px -30px;
}
#fancybox-buttons a.btnToggle {
background-position: 3px -60px;
border-left: 1px solid #111;
border-right: 1px solid #3e3e3e;
width: 35px
}
#fancybox-buttons a.btnToggleOn {
background-position: -27px -60px;
}
#fancybox-buttons a.btnClose {
border-left: 1px solid #111;
width: 35px;
background-position: -56px 0px;
}
#fancybox-buttons a.btnDisabled {
opacity : 0.4;
cursor: default;
}
\ No newline at end of file
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for fancyBox object
var F = $.fancybox;
//Add helper object
F.helpers.buttons = {
defaults : {
skipSingle : false, // disables if gallery contains single image
position : 'top', // 'top' or 'bottom'
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'
},
list : null,
buttons: null,
beforeLoad: function (opts, obj) {
//Remove self if gallery do not have at least two items
if (opts.skipSingle && obj.group.length < 2) {
obj.helpers.buttons = false;
obj.closeBtn = true;
return;
}
//Increase top margin to give space for buttons
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
},
onPlayStart: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
}
},
onPlayEnd: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
}
},
afterShow: function (opts, obj) {
var buttons = this.buttons;
if (!buttons) {
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
buttons = {
prev : this.list.find('.btnPrev').click( F.prev ),
next : this.list.find('.btnNext').click( F.next ),
play : this.list.find('.btnPlay').click( F.play ),
toggle : this.list.find('.btnToggle').click( F.toggle ),
close : this.list.find('.btnClose').click( F.close )
}
}
//Prev
if (obj.index > 0 || obj.loop) {
buttons.prev.removeClass('btnDisabled');
} else {
buttons.prev.addClass('btnDisabled');
}
//Next / Play
if (obj.loop || obj.index < obj.group.length - 1) {
buttons.next.removeClass('btnDisabled');
buttons.play.removeClass('btnDisabled');
} else {
buttons.next.addClass('btnDisabled');
buttons.play.addClass('btnDisabled');
}
this.buttons = buttons;
this.onUpdate(opts, obj);
},
onUpdate: function (opts, obj) {
var toggle;
if (!this.buttons) {
return;
}
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
//Size toggle button
if (obj.canShrink) {
toggle.addClass('btnToggleOn');
} else if (!obj.canExpand) {
toggle.addClass('btnDisabled');
}
},
beforeClose: function () {
if (this.list) {
this.list.remove();
}
this.list = null;
this.buttons = null;
}
};
}(jQuery));
/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* media: {
* youtube : {
* params : {
* autoplay : 0
* }
* }
* }
* }
* });
*
* Or:
* $(".fancybox").fancybox({,
* helpers : {
* media: true
* },
* youtube : {
* autoplay: 0
* }
* });
*
* Supports:
*
* Youtube
* http://www.youtube.com/watch?v=opj24KnzrWo
* http://www.youtube.com/embed/opj24KnzrWo
* http://youtu.be/opj24KnzrWo
* http://www.youtube-nocookie.com/embed/opj24KnzrWo
* Vimeo
* http://vimeo.com/40648169
* http://vimeo.com/channels/staffpicks/38843628
* http://vimeo.com/groups/surrealism/videos/36516384
* http://player.vimeo.com/video/45074303
* Metacafe
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
* http://www.metacafe.com/watch/7635964/
* Dailymotion
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
* Twitvid
* http://twitvid.com/QY7MD
* Twitpic
* http://twitpic.com/7p93st
* Instagram
* http://instagr.am/p/IejkuUGxQn/
* http://instagram.com/p/IejkuUGxQn/
* Google maps
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
*/
(function ($) {
"use strict";
//Shortcut for fancyBox object
var F = $.fancybox,
format = function( url, rez, params ) {
params = params || '';
if ( $.type( params ) === "object" ) {
params = $.param(params, true);
}
$.each(rez, function(key, value) {
url = url.replace( '$' + key, value || '' );
});
if (params.length) {
url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
}
return url;
};
//Add helper object
F.helpers.media = {
defaults : {
youtube : {
matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
params : {
autoplay : 1,
autohide : 1,
fs : 1,
rel : 0,
hd : 1,
wmode : 'opaque',
enablejsapi : 1
},
type : 'iframe',
url : '//www.youtube.com/embed/$3'
},
vimeo : {
matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
params : {
autoplay : 1,
hd : 1,
show_title : 1,
show_byline : 1,
show_portrait : 0,
fullscreen : 1
},
type : 'iframe',
url : '//player.vimeo.com/video/$1'
},
metacafe : {
matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
params : {
autoPlay : 'yes'
},
type : 'swf',
url : function( rez, params, obj ) {
obj.swf.flashVars = 'playerVars=' + $.param( params, true );
return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
}
},
dailymotion : {
matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
params : {
additionalInfos : 0,
autoStart : 1
},
type : 'swf',
url : '//www.dailymotion.com/swf/video/$1'
},
twitvid : {
matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
params : {
autoplay : 0
},
type : 'iframe',
url : '//www.twitvid.com/embed.php?guid=$1'
},
twitpic : {
matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
type : 'image',
url : '//twitpic.com/show/full/$1/'
},
instagram : {
matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
type : 'image',
url : '//$1/p/$2/media/?size=l'
},
google_maps : {
matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
type : 'iframe',
url : function( rez ) {
return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
}
}
},
beforeLoad : function(opts, obj) {
var url = obj.href || '',
type = false,
what,
item,
rez,
params;
for (what in opts) {
if (opts.hasOwnProperty(what)) {
item = opts[ what ];
rez = url.match( item.matcher );
if (rez) {
type = item.type;
params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
break;
}
}
}
if (type) {
obj.href = url;
obj.type = type;
obj.autoHeight = false;
}
}
};
}(jQuery));
\ No newline at end of file
#fancybox-thumbs {
position: fixed;
left: 0;
width: 100%;
overflow: hidden;
z-index: 8050;
}
#fancybox-thumbs.bottom {
bottom: 2px;
}
#fancybox-thumbs.top {
top: 2px;
}
#fancybox-thumbs ul {
position: relative;
list-style: none;
margin: 0;
padding: 0;
}
#fancybox-thumbs ul li {
float: left;
padding: 1px;
opacity: 0.5;
}
#fancybox-thumbs ul li.active {
opacity: 0.75;
padding: 0;
border: 1px solid #fff;
}
#fancybox-thumbs ul li:hover {
opacity: 1;
}
#fancybox-thumbs ul li a {
display: block;
position: relative;
overflow: hidden;
border: 1px solid #222;
background: #111;
outline: none;
}
#fancybox-thumbs ul li img {
display: block;
position: relative;
border: 0;
padding: 0;
max-width: none;
}
\ No newline at end of file
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(function ($) {
//Shortcut for fancyBox object
var F = $.fancybox;
//Add helper object
F.helpers.thumbs = {
defaults : {
width : 50, // thumbnail width
height : 50, // thumbnail height
position : 'bottom', // 'top' or 'bottom'
source : function ( item ) { // function to obtain the URL of the thumbnail image
var href;
if (item.element) {
href = $(item.element).find('img').attr('src');
}
if (!href && item.type === 'image' && item.href) {
href = item.href;
}
return href;
}
},
wrap : null,
list : null,
width : 0,
init: function (opts, obj) {
var that = this,
list,
thumbWidth = opts.width,
thumbHeight = opts.height,
thumbSource = opts.source;
//Build list structure
list = '';
for (var n = 0; n < obj.group.length; n++) {
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
}
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
//Load each thumbnail
$.each(obj.group, function (i) {
var href = thumbSource( obj.group[ i ] );
if (!href) {
return;
}
$("<img />").load(function () {
var width = this.width,
height = this.height,
widthRatio, heightRatio, parent;
if (!that.list || !width || !height) {
return;
}
//Calculate thumbnail width/height and center it
widthRatio = width / thumbWidth;
heightRatio = height / thumbHeight;
parent = that.list.children().eq(i).find('a');
if (widthRatio >= 1 && heightRatio >= 1) {
if (widthRatio > heightRatio) {
width = Math.floor(width / heightRatio);
height = thumbHeight;
} else {
width = thumbWidth;
height = Math.floor(height / widthRatio);
}
}
$(this).css({
width : width,
height : height,
top : Math.floor(thumbHeight / 2 - height / 2),
left : Math.floor(thumbWidth / 2 - width / 2)
});
parent.width(thumbWidth).height(thumbHeight);
$(this).hide().appendTo(parent).fadeIn(300);
}).attr('src', href);
});
//Set initial width
this.width = this.list.children().eq(0).outerWidth(true);
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
},
beforeLoad: function (opts, obj) {
//Remove self if gallery do not have at least two items
if (obj.group.length < 2) {
obj.helpers.thumbs = false;
return;
}
//Increase bottom margin to give space for thumbs
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
},
afterShow: function (opts, obj) {
//Check if exists and create or update list
if (this.list) {
this.onUpdate(opts, obj);
} else {
this.init(opts, obj);
}
//Set active element
this.list.children().removeClass('active').eq(obj.index).addClass('active');
},
//Center list
onUpdate: function (opts, obj) {
if (this.list) {
this.list.stop(true).animate({
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
}, 150);
}
},
beforeClose: function () {
if (this.wrap) {
this.wrap.remove();
}
this.wrap = null;
this.list = null;
this.width = 0;
}
}
}(jQuery));
\ No newline at end of file
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
padding: 0;
margin: 0;
border: 0;
outline: none;
vertical-align: top;
}
.fancybox-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 8020;
}
.fancybox-skin {
position: relative;
background: #f9f9f9;
color: #444;
text-shadow: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.fancybox-opened {
z-index: 8030;
}
.fancybox-opened .fancybox-skin {
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fancybox-outer, .fancybox-inner {
position: relative;
}
.fancybox-inner {
overflow: hidden;
}
.fancybox-type-iframe .fancybox-inner {
-webkit-overflow-scrolling: touch;
}
.fancybox-error {
color: #444;
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
margin: 0;
padding: 15px;
white-space: nowrap;
}
.fancybox-image, .fancybox-iframe {
display: block;
width: 100%;
height: 100%;
}
.fancybox-image {
max-width: 100%;
max-height: 100%;
}
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('fancybox_sprite.png');
}
#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -22px;
margin-left: -22px;
background-position: 0 -108px;
opacity: 0.8;
cursor: pointer;
z-index: 8060;
}
#fancybox-loading div {
width: 44px;
height: 44px;
background: url('fancybox_loading.gif') center center no-repeat;
}
.fancybox-close {
position: absolute;
top: -18px;
right: -18px;
width: 36px;
height: 36px;
cursor: pointer;
z-index: 8040;
}
.fancybox-nav {
position: absolute;
top: 0;
width: 40%;
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url('blank.gif'); /* helps IE */
-webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 8040;
}
.fancybox-prev {
left: 0;
}
.fancybox-next {
right: 0;
}
.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -18px;
cursor: pointer;
z-index: 8040;
visibility: hidden;
}
.fancybox-prev span {
left: 10px;
background-position: 0 -36px;
}
.fancybox-next span {
right: 10px;
background-position: 0 -72px;
}
.fancybox-nav:hover span {
visibility: visible;
}
.fancybox-tmp {
position: absolute;
top: -99999px;
left: -99999px;
visibility: hidden;
max-width: 99999px;
max-height: 99999px;
overflow: visible !important;
}
/* Overlay helper */
.fancybox-lock {
overflow: hidden !important;
width: auto;
}
.fancybox-lock body {
/* overflow: hidden !important; */
}
.fancybox-lock-test {
overflow-y: hidden !important;
}
.fancybox-overlay {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
display: none;
z-index: 8010;
background: url('fancybox_overlay.png');
}
.fancybox-overlay-fixed {
position: fixed;
bottom: 0;
right: 0;
}
.fancybox-lock .fancybox-overlay {
overflow: auto;
overflow-y: scroll;
}
/* Title helper */
.fancybox-title {
visibility: hidden;
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
position: relative;
text-shadow: none;
z-index: 8050;
}
.fancybox-opened .fancybox-title {
visibility: visible;
}
.fancybox-title-float-wrap {
position: absolute;
bottom: 0;
right: 50%;
margin-bottom: -35px;
z-index: 8050;
text-align: center;
}
.fancybox-title-float-wrap .child {
display: inline-block;
margin-right: -100%;
padding: 2px 20px;
background: transparent; /* Fallback for web browsers that doesn't support RGBa */
background: rgba(0, 0, 0, 0.8);
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
text-shadow: 0 1px 2px #222;
color: #FFF;
font-weight: bold;
line-height: 24px;
white-space: nowrap;
}
.fancybox-title-outside-wrap {
position: relative;
margin-top: 10px;
color: #fff;
}
.fancybox-title-inside-wrap {
padding-top: 10px;
}
.fancybox-title-over-wrap {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
background: #000;
background: rgba(0, 0, 0, .8);
}
/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url('fancybox_sprite@2x.png');
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
}
#fancybox-loading div {
background-image: url('fancybox_loading@2x.gif');
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
}
}
\ No newline at end of file
(function($){
//定义公共的参数(变量,方法)
var defaults_options = {
tip:{
color:'#999',
fontFamily:'微软雅黑',
fontSize:'12px',
text:'请输入信息!'
}
}
//把默认的参数变成string型的,防止引用类型带来的问题
var defaults_options_str = JSON.stringify(defaults_options);
$.fn.inputTips = function(options){
//把参数转化为数json的
var defaults = JSON.parse(defaults_options_str);
//如果传进来是字符串时
if(typeof options == 'string'){
defaults.tip.text = options;
}
else{
//配置
if(options!=null){
$.each(options, function(i, val) {
if (typeof val == 'object' && defaults[i]){
$.extend(true,defaults[i], val);
}
else {
defaults[i] = val;
}
});
}
}
$(this).map(function(){
var $input = $(this);
//先判断下父容器是否是position:relative
if($input.parent().css('position')!='relative'){
$input.parent().css('position','relative');
}
//在input之后添加一个label标签
var $label;
var input_left = $input.offset().left - $input.parent().offset().left;
var input_top = $input.offset().top - $input.parent().offset().top;
if($input.next('label').length==0){
$label = $('<label></label>');
$label.css({
'position':'absolute',
'top':input_top,
'left':input_left+($input.css('paddingLeft').replace('px','')-0),
'cursor':'text',
'color':defaults.tip.color,
'fontFamily':defaults.tip.fontFamily,
'fontSize':defaults.tip.fontSize,
'height':$input.outerHeight(true)+'px',
'lineHeight':$input.outerHeight(true)+'px',
'display':'inlineBlock'
});
}
else{
$label=$input.next('label');
}
//如果input给了value值时
if($input.attr('tiptext')){
$label.text($input.attr('tiptext'));
}
else{
$label.text(defaults.tip.text)
}
$input.after($label);
//判断文本框是否有值,有值则隐藏label
if($input.val()!=''){
$label.hide();
}
/*var timeid = setInterval(function(){
if(!$input.val()==""){
$input.siblings("label").hide();
clearInterval(timeid);
}
},10);*/
$input.next('label').click(function(){
$(this).prev("input").focus();
});
$input.bind({
focus:function(){
//如果用户传进来的话就调用用户的
if(options!=null && typeof options.focus == 'function'){
options.focus(this);
return;
}
/*if (this.value == ""){
$(this).siblings("label").hide();
}*/
},
blur:function(){
//如果用户传进来的话就调用用户的
if(options!=null && typeof options.blur == 'function'){
options.blur(this);
return;
}
if (this.value == ""){
$(this).next("label").show();
}
},
input:function(){
//如果用户传进来的话就调用用户的
if(options!=null && typeof options.input == 'function'){
options.input(this);
return;
}
if (this.value == ""){
$(this).next("label").show();
}
else{
$(this).next("label").hide();
}
}
});
});
}//$.fn
})(jQuery);
\ No newline at end of file
......@@ -157,11 +157,5 @@
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU"
/>
<cache name="ehcache11"
maxElementsInMemory="10000"
eternal="true"
overflowToDisk="true"
/>
</ehcache>
......@@ -87,4 +87,10 @@
<action name="sendMail" class="com.gaowj.zabbix.action.actAction" method="sendMail">
</action>
</package>
<package name="caslogin" extends="struts-default,json-default">
<action name="jfcas" class="com.gaowj.system.login.CasAction">
</action>
</package>
</struts>
......@@ -814,7 +814,7 @@
<![CDATA[
select log.*,(select l.emname from c_t_sys_loginuser l where l.code = log.userid) username,
(select l.emid from c_t_sys_loginuser l where l.code = log.userid) useremid
from C_T_SYS_LOG_BUSINESS log
from c_t_sys_log_business log
where 1=1
]]>
<if test="BEGIN_DATE != null and BEGIN_DATE != ''">
......@@ -844,7 +844,7 @@
<select id="listLogBusinessCount" parameterType="map" resultType="int">
<![CDATA[
select count(*) c
from C_T_SYS_LOG_BUSINESS log
from c_t_sys_log_business log
where 1=1
]]>
<if test="BEGIN_DATE != null and BEGIN_DATE != ''">
......@@ -871,7 +871,7 @@
</select>
<insert id="insert_logBusiness" parameterType="map">
insert into C_T_SYS_LOG_BUSINESS(
insert into c_t_sys_log_business(
<trim prefix="" suffixOverrides=",">
<if test="UUID != null ">UUID, </if>
<if test="USERID != null ">USERID, </if>
......
package com.gaowj.system.login;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.jasig.cas.client.authentication.AttributePrincipal;
import com.gaowj.business.SystemOpeBusiness;
import com.gaowj.business.action.BasicAction;
import com.gaowj.business.comp.BusinessManager;
import com.gaowj.business.exception.BusinessException;
import com.gaowj.business.util.Java_tool;
public class CasAction extends BasicAction {
/**
*
*/
private static final long serialVersionUID = 4192673206777760091L;
public String execute() throws BusinessException {
response.setHeader("P3P","CP=CAO PSA OUR");
AttributePrincipal principal = (AttributePrincipal)request.getUserPrincipal();
Map<String, Object> attributes = principal.getAttributes();
String userID = attributes.get("userid").toString();
String userName = attributes.get("USER_NAME").toString();
System.out.println("-----1"+userID);
System.out.println("-----2"+userName);
System.out.println("-----3"+attributes.get("UNIT_ID"));
if(userID!=null){
String username = userID;
Java_tool jt = new Java_tool();
SystemOpeBusiness systemOpeBusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
Map<String,Object> query = new HashMap<String,Object>();
query.put("EMID", username);
Map<String,Object> userInfoI = systemOpeBusiness.listLoginUserInfo(query).get(0);
Map<String,Object> sessionUser = new HashMap<String,Object>();
String u_all_m = systemOpeBusiness.getUserAllModule(userInfoI.get("CODE").toString());
sessionUser.put("CODE",userInfoI.get("CODE"));
sessionUser.put("EMID",userInfoI.get("EMID"));
sessionUser.put("EMSEX",userInfoI.get("EMSEX"));
sessionUser.put("EMDEPARTNAME",userInfoI.get("EMDEPARTNAME"));
sessionUser.put("EMDEPART",userInfoI.get("EMDEPART"));
sessionUser.put("EMNAME",userInfoI.get("EMNAME"));
sessionUser.put("BEFORETIME",userInfoI.get("BEFORETIME"));
sessionUser.put("SESSIONID", request.getSession().getId());
sessionUser.put("CURRENTTIME", jt.now_datetime());
sessionUser.put("LOGINIP", request.getRemoteAddr());
sessionUser.put("SERVERIP", request.getLocalAddr());
sessionUser.put("QUANXIAN",u_all_m);
request.getSession().setAttribute("userInfo", sessionUser);
//增加登陆日志
Map<String,Object> log = new HashMap<String,Object>();
log.put("CODE", sessionUser.get("CODE"));log.put("EMNAME", sessionUser.get("EMNAME"));log.put("EMIP", sessionUser.get("LOGINIP"));
log.put("OPENAME", "登陆");log.put("OPETIME", jt.String3date((String)sessionUser.get("CURRENTTIME")));log.put("TYPE", userInfoI.get("TYPE"));
log.put("OPETYPE", "B/S登陆");
systemOpeBusiness.insert_log(log);
}
String strRedirecturl = request.getParameter("redirectUrl");
String toUrl = "";
if(strRedirecturl != null && strRedirecturl.length() > 0) {
toUrl = strRedirecturl;
}else{
toUrl = "index.jsp";
}
try {
response.sendRedirect(toUrl);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
}
......@@ -9,7 +9,6 @@ import java.util.Map;
import net.sf.json.JSONObject;
import com.gaowj.business.StudentBusiness;
import com.gaowj.business.TriggerBusiness;
import com.gaowj.business.action.BasicAction;
import com.gaowj.business.comp.BusinessManager;
import com.gaowj.business.exception.BusinessException;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment