Commit 663c43cf by 丁伟

1、迁移初始提交

parent 0c212758
......@@ -8,7 +8,7 @@
*
*/
package ccpit.admin;
package org.ccpit.admin;
import java.util.HashMap;
import java.util.Map;
......@@ -17,13 +17,13 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.ValidateCodeController;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import ccpit.base.user.UserService;
import ccpit.base.utils.PasswordHash;
import ccpit.base.utils.UserRolesUtil;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.ValidateCodeController;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.ccpit.base.user.UserService;
import org.ccpit.base.utils.PasswordHash;
import org.ccpit.base.utils.UserRolesUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -43,7 +43,7 @@ import org.springframework.web.servlet.ModelAndView;
*/
@Controller
@RequestMapping("/admin")
public class LoginController extends BaseController{
public class LoginController extends BaseController {
private static final Logger log = LoggerFactory.getLogger(LoginController.class);
@Autowired
......
......@@ -7,7 +7,7 @@
* Copyright (c) 2016, liyang@ccpit.org All Rights Reserved.
*
*/
package ccpit.base.controller;
package org.ccpit.base.controller;
import javax.servlet.http.HttpServletRequest;
......
package ccpit.base.controller;
package org.ccpit.base.controller;
import java.util.List;
......
package ccpit.base.controller;
package org.ccpit.base.controller;
import java.util.ArrayList;
import java.util.List;
......
package ccpit.base.controller;
package org.ccpit.base.controller;
/**
* Created by Administrator on 2015/8/13.
......
......@@ -8,17 +8,17 @@
*
*/
package ccpit.base.dao;
package org.ccpit.base.dao;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.utils.AssertUtil;
import ccpit.base.utils.ReadConfigUtil;
import ccpit.base.utils.StringUtil;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.utils.AssertUtil;
import org.ccpit.base.utils.ReadConfigUtil;
import org.ccpit.base.utils.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
......@@ -263,9 +263,9 @@ public class JdbcDaoHelper<T> implements IJdbcDao<T> {
/**
*
* TODO 查询结果分页显示,查询语句为sql
* @see ccpit.base.dao.IJdbcDao#queryPage(ccpit.base.controller.PageRequest, String, Object[], Class)
* @see IJdbcDao#queryPage(PageRequest, String, Object[], Class)
*/
public Page queryPage(PageRequest pageRequest, String sql, Object[] args,Class elementType) {
public Page queryPage(PageRequest pageRequest, String sql, Object[] args, Class elementType) {
AssertUtil.notNull(pageRequest, "pageRequest不能为空");
Page page = new Page(pageRequest);
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.logManage;
package org.ccpit.base.logManage;
import java.io.Serializable;
import java.util.Date;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.logManage;
package org.ccpit.base.logManage;
import java.util.HashMap;
import java.util.Map;
......@@ -17,9 +17,9 @@ import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONArray;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
......
......@@ -8,9 +8,9 @@
*
*/
package ccpit.base.logManage;
package org.ccpit.base.logManage;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.logManage;
package org.ccpit.base.logManage;
import java.text.SimpleDateFormat;
import java.util.Date;
......@@ -18,12 +18,12 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.transaction.Transactional;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.user.User;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.metadataManage;
package org.ccpit.base.metadataManage;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.metadataManage;
package org.ccpit.base.metadataManage;
import java.io.FileNotFoundException;
import java.io.IOException;
......@@ -34,10 +34,10 @@ import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.user.User;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.user.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -8,9 +8,9 @@
*
*/
package ccpit.base.metadataManage;
package org.ccpit.base.metadataManage;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.metadataManage;
package org.ccpit.base.metadataManage;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
......@@ -18,11 +18,11 @@ import java.util.Map;
import javax.transaction.Transactional;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.utils.TranslateDataUtil;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.utils.TranslateDataUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.orgManage;
package org.ccpit.base.orgManage;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
......@@ -23,13 +23,13 @@ import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.role.Role;
import ccpit.base.role.RoleService;
import ccpit.base.user.User;
import ccpit.base.user.UserService;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.role.Role;
import org.ccpit.base.role.RoleService;
import org.ccpit.base.user.User;
import org.ccpit.base.user.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -8,15 +8,15 @@
*
*/
package ccpit.base.orgManage;
package org.ccpit.base.orgManage;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import ccpit.base.dao.BaseDao;
import ccpit.base.role.Role;
import ccpit.base.user.User;
import org.ccpit.base.dao.BaseDao;
import org.ccpit.base.role.Role;
import org.ccpit.base.user.User;
import org.springframework.stereotype.Repository;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.orgManage;
package org.ccpit.base.orgManage;
import java.util.Date;
import java.util.HashSet;
......@@ -22,8 +22,8 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import ccpit.base.role.Role;
import ccpit.base.user.User;
import org.ccpit.base.role.Role;
import org.ccpit.base.user.User;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Where;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.orgManage;
package org.ccpit.base.orgManage;
import java.util.HashSet;
import java.util.List;
......@@ -16,11 +16,11 @@ import java.util.Set;
import javax.transaction.Transactional;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.role.Role;
import ccpit.base.role.RoleDao;
import ccpit.base.user.User;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.role.Role;
import org.ccpit.base.role.RoleDao;
import org.ccpit.base.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.privilegeManage;
package org.ccpit.base.privilegeManage;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.privilegeManage;
package org.ccpit.base.privilegeManage;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
......@@ -20,11 +20,11 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ccpit.base.role.Role;
import ccpit.base.role.RoleService;
import ccpit.base.role.RoleUrl;
import ccpit.base.user.User;
import ccpit.base.user.UserController;
import org.ccpit.base.role.Role;
import org.ccpit.base.role.RoleService;
import org.ccpit.base.role.RoleUrl;
import org.ccpit.base.user.User;
import org.ccpit.base.user.UserController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -8,11 +8,11 @@
*
*/
package ccpit.base.privilegeManage;
package org.ccpit.base.privilegeManage;
import java.util.List;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......@@ -26,7 +26,7 @@ import org.springframework.stereotype.Repository;
* @see
*/
@Repository
public class OperateDao extends BaseDao<Operate>{
public class OperateDao extends BaseDao<Operate> {
public List<Operate> getChildOrgById(long id) {
String hql = "from " + Operate.class.getName()+" where parentId=" + id;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.privilegeManage;
package org.ccpit.base.privilegeManage;
import java.util.List;
......
package ccpit.base.role;
package org.ccpit.base.role;
import java.util.List;
......
package ccpit.base.role;
package org.ccpit.base.role;
import java.util.ArrayList;
import java.util.List;
......@@ -12,9 +12,9 @@ import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import ccpit.base.modol.BaseEntity;
import ccpit.base.orgManage.OrgInfo;
import ccpit.base.user.User;
import org.ccpit.base.modol.BaseEntity;
import org.ccpit.base.orgManage.OrgInfo;
import org.ccpit.base.user.User;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Where;
......
package ccpit.base.role;
package org.ccpit.base.role;
import java.io.IOException;
import java.util.ArrayList;
......@@ -11,13 +11,13 @@ import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.orgManage.OrgInfo;
import ccpit.base.orgManage.OrgService;
import ccpit.base.user.User;
import ccpit.base.user.UserService;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.orgManage.OrgInfo;
import org.ccpit.base.orgManage.OrgService;
import org.ccpit.base.user.User;
import org.ccpit.base.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
......@@ -30,7 +30,7 @@ import org.springframework.web.servlet.ModelAndView;
*/
@Controller
@RequestMapping("/admin/role")
public class RoleController extends BaseController{
public class RoleController extends BaseController {
@Autowired
private RoleService roleService;
@Autowired
......
package ccpit.base.role;
package org.ccpit.base.role;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......
package ccpit.base.role;
package org.ccpit.base.role;
import org.apache.commons.lang.StringUtils;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.user.UserDao;
import ccpit.base.utils.UrlRolesMapper;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.utils.UrlRolesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
......
package ccpit.base.role;
package org.ccpit.base.role;
import ccpit.base.modol.BaseEntity;
import org.ccpit.base.modol.BaseEntity;
import org.hibernate.annotations.*;
import javax.persistence.*;
......
package ccpit.base.security;
package org.ccpit.base.security;
import java.io.IOException;
......@@ -16,7 +16,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import ccpit.base.controller.BaseController;
import org.ccpit.base.controller.BaseController;
/**
* 用户登录Filter 拦截后台所有请求
......
package ccpit.base.security;
package org.ccpit.base.security;
import org.apache.commons.lang.StringUtils;
import ccpit.base.user.User;
import ccpit.base.usergroup.UserGroup;
import ccpit.base.usergroup.UserGroupService;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.ccpit.base.user.User;
import org.ccpit.base.usergroup.UserGroup;
import org.ccpit.base.usergroup.UserGroupService;
/**
* Created by Administrator on 2015/9/7.
......
package ccpit.base.security;
package org.ccpit.base.security;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import ccpit.base.role.Role;
import ccpit.base.user.UserService;
import org.ccpit.base.role.Role;
import org.ccpit.base.user.UserService;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
......
package ccpit.base.security;
package org.ccpit.base.security;
import org.apache.commons.lang.StringUtils;
import ccpit.base.user.User;
import ccpit.base.usergroup.UserGroup;
import ccpit.base.usergroup.UserGroupService;
import org.ccpit.base.user.User;
import org.ccpit.base.usergroup.UserGroup;
import org.ccpit.base.usergroup.UserGroupService;
/**
* Created by Administrator on 2015/9/7.
......
package ccpit.base.security;
package org.ccpit.base.security;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import ccpit.base.role.Role;
import ccpit.base.user.UserService;
import org.ccpit.base.role.Role;
import org.ccpit.base.user.UserService;
import java.util.ArrayList;
import java.util.List;
......
package ccpit.base.security;
package org.ccpit.base.security;
import org.apache.commons.collections.CollectionUtils;
import ccpit.base.role.Role;
import ccpit.base.user.User;
import ccpit.base.utils.UrlRolesMapper;
import ccpit.base.utils.UserRolesUtil;
import org.ccpit.base.role.Role;
import org.ccpit.base.user.User;
import org.ccpit.base.utils.UrlRolesMapper;
import org.ccpit.base.utils.UserRolesUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
......
package ccpit.base.security;
package org.ccpit.base.security;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.collections.CollectionUtils;
import ccpit.base.role.Role;
import ccpit.base.utils.UrlRolesMapper;
import ccpit.base.utils.UserRolesUtil;
import org.ccpit.base.role.Role;
import org.ccpit.base.utils.UrlRolesMapper;
import org.ccpit.base.utils.UserRolesUtil;
import org.springframework.stereotype.Component;
/**
......
package ccpit.base.service;
package org.ccpit.base.service;
/**
* Created by Administrator on 2015/8/18.
......
package ccpit.base.user;
package org.ccpit.base.user;
/**
* Created by Administrator on 2015/9/2.
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils;
package org.ccpit.base.utils;
import java.io.BufferedReader;
import java.io.IOException;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils;
package org.ccpit.base.utils;
/**
* ClassName:OSinfoUtil <br/>
* Function: TODO 判断当前系统类型工具类. <br/>
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils;
package org.ccpit.base.utils;
import java.lang.reflect.Array;
import java.util.Arrays;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils;
package org.ccpit.base.utils;
import java.math.BigInteger;
import java.security.NoSuchAlgorithmException;
......
package ccpit.base.utils;
package org.ccpit.base.utils;
import java.io.InputStream;
import java.util.Enumeration;
......
package ccpit.base.utils.lucene;
package org.ccpit.base.utils.lucene;
import java.io.File;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import ccpit.base.utils.ReadConfigUtil;
import org.ccpit.base.utils.ReadConfigUtil;
import org.springframework.stereotype.Service;
import org.wltea.analyzer.lucene.IKAnalyzer;
......
......@@ -7,7 +7,7 @@
* Copyright (c) 2016, liyang@ccpit.org All Rights Reserved.
*
*/
package ccpit.base.utils.lucene;
package org.ccpit.base.utils.lucene;
import java.io.File;
import java.io.IOException;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils.mailUtil;
package org.ccpit.base.utils.mailUtil;
import java.io.Serializable;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.base.utils.mailUtil;
package org.ccpit.base.utils.mailUtil;
import java.io.File;
import java.io.UnsupportedEncodingException;
......
package ccpit.base.utils.page;
package org.ccpit.base.utils.page;
/**
* @author liyang 封装一个排序对象
......
package ccpit.base.utils.page;
package org.ccpit.base.utils.page;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
......
package ccpit.base.utils.page;
package org.ccpit.base.utils.page;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
......@@ -12,13 +12,11 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.utils.CommonUtils;
import ccpit.base.utils.MethodInterface;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.utils.CommonUtils;
import org.ccpit.base.utils.MethodInterface;
/**
......@@ -151,7 +149,7 @@ public class PageUtil {
return map;
}
public static <T> PageBo<T> convert(Page<T> page,MethodInterface method){
public static <T> PageBo<T> convert(Page<T> page, MethodInterface method){
if(null == page){
return null;
}
......
package ccpit.base.utils.page;
package org.ccpit.base.utils.page;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.newsManage;
package org.ccpit.business.newsManage;
import java.util.Date;
......@@ -20,7 +20,7 @@ import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import ccpit.base.user.User;
import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.newsManage;
package org.ccpit.business.newsManage;
import java.util.HashMap;
import java.util.Map;
......@@ -16,11 +16,11 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
......
......@@ -8,9 +8,9 @@
*
*/
package ccpit.business.newsManage;
package org.ccpit.business.newsManage;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.newsManage;
package org.ccpit.business.newsManage;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
......@@ -24,15 +24,15 @@ import net.sf.json.JSONArray;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.Field.Index;
import org.apache.lucene.document.Field.Store;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import ccpit.base.utils.DateConvert;
import ccpit.base.utils.StringUtil;
import ccpit.base.utils.page.PageUtil;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.ccpit.base.utils.DateConvert;
import org.ccpit.base.utils.StringUtil;
import org.ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -59,7 +59,7 @@ public class NewsInfoService {
public boolean addOrUpdateNewsInfo(NewsInfo newsInfo, String operate,
String newsInfoId, User user, HttpServletRequest request) {
String newsInfoId, User user, HttpServletRequest request) {
boolean flag = false;
if ("add".equals(operate)) {
newsInfo.setCreateTime(new Date());
......@@ -126,7 +126,7 @@ public class NewsInfoService {
}
public Page<NewsInfo> queryNewsInfos(PageRequest pageRequest, String title,
String newsType) {
String newsType) {
StringBuffer hql = new StringBuffer("from NewsInfo where 1=1");
if (title != null && !"".equals(title)) {
hql.append(" and title like '%" + title + "%'");
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.noticeManage;
package org.ccpit.business.noticeManage;
import java.util.Date;
......@@ -20,7 +20,7 @@ import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import ccpit.base.user.User;
import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;
/**
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.noticeManage;
package org.ccpit.business.noticeManage;
import java.util.HashMap;
import java.util.Map;
......@@ -16,11 +16,11 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -39,7 +39,7 @@ import org.springframework.web.servlet.ModelAndView;
*/
@RestController
@RequestMapping("/business/noticeManage")
public class NoticeController extends BaseController{
public class NoticeController extends BaseController {
@Autowired
private NoticeService noticeService;
......
......@@ -8,9 +8,9 @@
*
*/
package ccpit.business.noticeManage;
package org.ccpit.business.noticeManage;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......@@ -25,7 +25,7 @@ import org.springframework.stereotype.Repository;
*/
@Repository
public class NoticeDao extends BaseDao<Notice>{
public class NoticeDao extends BaseDao<Notice> {
}
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.noticeManage;
package org.ccpit.business.noticeManage;
import java.io.UnsupportedEncodingException;
import java.util.Date;
......@@ -21,14 +21,14 @@ import javax.transaction.Transactional;
import net.sf.json.JSONArray;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import ccpit.base.utils.StringUtil;
import ccpit.base.utils.page.PageUtil;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.ccpit.base.utils.StringUtil;
import org.ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -52,7 +52,7 @@ public class NoticeService {
private LogInfoService logInfoService;
public boolean addOrUpdateNotice(Notice Notice, String operate,
String NoticeId, User user, HttpServletRequest request) {
String NoticeId, User user, HttpServletRequest request) {
boolean flag = false;
if ("add".equals(operate)) {
Notice.setCreateTime(new Date());
......@@ -123,7 +123,7 @@ public class NoticeService {
}
public Page<Notice> queryNotices(PageRequest pageRequest, String noticeTitle,
String newsType) {
String newsType) {
StringBuffer hql = new StringBuffer("from Notice where 1=1");
if (noticeTitle != null && !"".equals(noticeTitle)) {
hql.append(" and noticeTitle like '%" + noticeTitle + "%'");
......@@ -143,7 +143,7 @@ public class NoticeService {
map.put("id", notice.getId());
map.put("noticeTitle", notice.getNoticeTitle());
map.put("noticeType", null == notice.getNoticeType() ? "" : 1 == notice.getNoticeType() ? "通知公告" : "政策法规");
map.put("createTime",StringUtil.DATE_FORMATE.format(notice.getCreateTime()));
map.put("createTime", StringUtil.DATE_FORMATE.format(notice.getCreateTime()));
map.put("clickVolume", notice.getClickVolume());
map.put("creator", notice.getCreator().getUsername());
......
package ccpit.business.questionsManage;
package org.ccpit.business.questionsManage;
import java.util.Date;
......@@ -10,7 +10,7 @@ import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import ccpit.base.user.User;
import org.ccpit.base.user.User;
import org.hibernate.annotations.Where;
@Entity
@Where(clause = "deleted='false'")
......
package ccpit.business.questionsManage;
package org.ccpit.business.questionsManage;
import java.util.HashMap;
import java.util.Map;
......@@ -6,11 +6,11 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ccpit.base.controller.BaseController;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import org.ccpit.base.controller.BaseController;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -19,7 +19,7 @@ import org.springframework.web.servlet.ModelAndView;
@RestController
@RequestMapping(value="/business/questionManage")
public class QuestionController extends BaseController{
public class QuestionController extends BaseController {
@Autowired
private QuestionService questionService;
......
package ccpit.business.questionsManage;
package org.ccpit.business.questionsManage;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
@Repository
public class QuestionDao extends BaseDao<Question>{
public class QuestionDao extends BaseDao<Question> {
}
package ccpit.business.questionsManage;
package org.ccpit.business.questionsManage;
import java.io.UnsupportedEncodingException;
import java.util.Date;
......@@ -11,14 +11,14 @@ import javax.transaction.Transactional;
import net.sf.json.JSONArray;
import ccpit.base.controller.Convert;
import ccpit.base.controller.Page;
import ccpit.base.controller.PageBo;
import ccpit.base.controller.PageRequest;
import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User;
import ccpit.base.utils.StringUtil;
import ccpit.base.utils.page.PageUtil;
import org.ccpit.base.controller.Convert;
import org.ccpit.base.controller.Page;
import org.ccpit.base.controller.PageBo;
import org.ccpit.base.controller.PageRequest;
import org.ccpit.base.logManage.LogInfoService;
import org.ccpit.base.user.User;
import org.ccpit.base.utils.StringUtil;
import org.ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -31,7 +31,7 @@ public class QuestionService {
private LogInfoService logInfoService;
public boolean addOrUpdateQuestion(Question question, String operate,
String questionId, User user, HttpServletRequest request) {
String questionId, User user, HttpServletRequest request) {
boolean flag = false;
if ("add".equals(operate)) {
question.setCreateTime(new Date());
......@@ -115,7 +115,7 @@ public class QuestionService {
}
map.put("id", question.getId());
map.put("title", question.getTitle());
map.put("createTime",StringUtil.DATE_FORMATE.format(question.getCreateTime()));
map.put("createTime", StringUtil.DATE_FORMATE.format(question.getCreateTime()));
map.put("clickVolume", question.getClickVolume());
map.put("creator", question.getCreator().getUsername());
......
/**
*
*/
package ccpit.business.serviceNetWork;
package org.ccpit.business.serviceNetWork;
import javax.persistence.Entity;
import javax.persistence.Id;
......
/**
*
*/
package ccpit.business.serviceNetWork;
package org.ccpit.business.serviceNetWork;
import ccpit.base.dao.BaseDao;
import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;
/**
......@@ -16,6 +16,6 @@ import org.springframework.stereotype.Repository;
*
*/
@Repository
public class ServiceNetWorkDao extends BaseDao<ServiceNetWork>{
public class ServiceNetWorkDao extends BaseDao<ServiceNetWork> {
}
/**
*
*/
package ccpit.business.serviceNetWork;
package org.ccpit.business.serviceNetWork;
import java.util.List;
......
......@@ -8,7 +8,7 @@
*
*/
package ccpit.business.smsManage;
package org.ccpit.business.smsManage;
import java.io.IOException;
import java.io.InputStream;
......
/**
*
*/
package ccpit.front.newsInfo;
package org.ccpit.front.newsInfo;
import java.util.HashMap;
import java.util.Map;
......@@ -9,9 +9,9 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import ccpit.base.controller.BaseController;
import ccpit.business.newsManage.NewsInfo;
import ccpit.business.newsManage.NewsInfoService;
import org.ccpit.base.controller.BaseController;
import org.ccpit.business.newsManage.NewsInfo;
import org.ccpit.business.newsManage.NewsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
......
package ccpit.ueditor;
package org.ccpit.ueditor;
import java.text.SimpleDateFormat;
import java.util.Date;
......
package ccpit.ueditor.define;
package org.ccpit.ueditor.define;
import java.util.HashMap;
import java.util.Map;
......
package ccpit.ueditor.define;
package org.ccpit.ueditor.define;
import java.util.ArrayList;
import java.util.HashMap;
......@@ -6,7 +6,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import ccpit.ueditor.Encoder;
import org.ccpit.ueditor.Encoder;
/**
......
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd">
http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
<!-- 发送邮件的线程池 -->
<bean id="taskExecutor"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="5" />
<property name="maxPoolSize" value="10" />
<property name="queueCapacity" value="25" />
</bean>
<bean id="multipartResolver" class="ccpit.base.controller.MyMultipartResolver">
<!-- url中带有example的http请求就不会被multipartResolver先解析-->
<property name="excludeUrls" value="uploadFile"/>
<property name="maxUploadSize" value="10485760"/>
</bean>
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:framework.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
<!-- <bean id="multipartResolver" class="org.ccpit.base.controller.MyMultipartResolver">
url中带有example的http请求就不会被multipartResolver先解析
<property name="excludeUrls" value="uploadFile"/>
<property name="maxUploadSize" value="10485760"/>
</bean> -->
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:framework.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
</bean>
</beans>
\ No newline at end of file
<%@ 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="security" uri="http://www.ccpit.org/" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
......
<%@ 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="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
......
<%@ 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="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
......
<%@ 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="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
......@@ -46,7 +47,7 @@
<table class="edittable" width="100%" border="0">
<tr>
<td align="right"><span>通知公告标题:</span></td>
<td align="left">
<td align="left" colspan="3">
<input id="titleId" name="noticeTitle" class="easyui-textbox" />
</td>
</tr>
......@@ -55,30 +56,32 @@
<td align="left">
<input id="noticeTypeId" name="noticeType" class="easyui-combobox" />
</td>
<td align="right" class="infotatusClass"><span>置顶:</span></td>
<td align="left" class="infotatusClass">
<input id="infotatusId" name="infotatus" class="easyui-combobox" />
</td>
</tr>
<tr>
<td width="15%" align="right"><span>通知公告内容:</span></td>
<td width="85%" align="left" >
<td width="85%" align="left" colspan="3">
<textarea id="noticeContentId" name="noticeContent" rows="15"></textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td></td>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="2" align="center">
<td colspan="4" align="center">
<a id="buttonId01" href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveData()">保存</a>
<a id="buttonId02" href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeWindow();">取消</a>
</td>
</tr>
<tr>
<td ></td>
<td></td>
<td colspan="4"></td>
</tr>
<tr>
<td ></td>
<td></td>
<td colspan="4"></td>
</tr>
</table>
</form>
......
<%@ 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="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
......
......@@ -2,7 +2,7 @@
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html lang="en">
<head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>中国国际贸易促进委员会原产地证申报系统</title>
<link href="/resource/front/css/bootstrap.min.css" rel="stylesheet">
<link href="/resource/front/css/style.css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
href="/resource/front/css/costom_css_tongzhigonggao.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>中国国际贸易促进委员会原产地证申报系统</title>
<link href="/resource/front/css/bootstrap.min.css" rel="stylesheet">
<link href="/resource/front/css/style.css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
href="/resource/front/css/costom_css_tongzhigonggao.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<jsp:include page="header.jsp"/>
<div class="row content">
<div class="col-sm-12 col-md-12 ">
<!-- <div class="thumbnail"> -->
<!-- <div class="caption"> -->
<img src="/resource/front/images/jinchukoumaoyi.png"
CLASS="costom_title_img_div" style="width: 100%">
<!-- </div> -->
<!-- </div> -->
</div>
</div>
<jsp:include page="header.jsp" />
<div class="row content">
<div class="col-sm-12 col-md-12 ">
<!-- <div class="thumbnail"> -->
<!-- <div class="caption"> -->
<img src="/resource/front/images/jinchukoumaoyi.png"
CLASS="costom_title_img_div" style="width: 100%">
<!-- </div> -->
<!-- </div> -->
</div>
</div>
<button type="button"
class="btn btn-lg costom_middle_button"
style="font-width: bold;cursor:default;color:#fff;">${id eq '1' ? '通知公告': '政策法规'}</button>
<button type="button"
class="btn btn-lg costom_middle_button"
style="font-width: bold;cursor:default;color:#fff;">${id eq '1' ? '通知公告': '政策法规'}</button>
<div class="row content">
<div class="col-sm-12 col-md-12">
<div class="thumbnail">
<div class="caption costom_table_captionDiv">
<input id="newsType" type="hidden" value="${id}" />
<table class="table table-striped costom_table">
<thead class="costom_table_thead">
<tr>
<th>${id eq '1' ? '通知公告': '政策法规'}</th>
<th>时间</th>
</tr>
</thead>
<tbody id="investCase" class="costom_table_tbody">
</tbody>
</table>
<div class="numeric-pagination animate-onscroll">
<ul class="pagination" id="pagination"></ul>
</div>
</div>
</div>
</div>
</div>
<div class="row content">
<div class="col-sm-12 col-md-12">
<div class="thumbnail">
<div class="caption costom_table_captionDiv">
<input id="newsType" type="hidden" value="${id}"/>
<table class="table table-striped costom_table">
<thead class="costom_table_thead">
<tr>
<th>${id eq '1' ? '通知公告': '政策法规'}</th>
<th>时间</th>
</tr>
</thead>
<tbody id="investCase" class="costom_table_tbody">
</tbody>
</table>
<div class="numeric-pagination animate-onscroll">
<ul class="pagination" id="pagination"></ul>
</div>
</div>
</div>
</div>
</div>
<!-- 客服文件 -->
<jsp:include page="customerService.jsp" />
<jsp:include page="footer.jsp"/>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/resource/front/js/jquery.min.js"></script>
<script src="/resource/front/commonUtils.js"></script>
<script src="/resource/front/jqPaginator.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/resource/front/js/bootstrap.min.js"></script>
<jsp:include page="footer.jsp" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/resource/front/js/jquery.min.js"></script>
<script src="/resource/front/commonUtils.js"></script>
<script src="/resource/front/jqPaginator.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/resource/front/js/bootstrap.min.js"></script>
<script rel="script" type="text/javascript">
/**
* Created by Administrator on 2017/4/21.
*/
$(document).ready(function () {
$("#search").click(function () {
$("#popsearch").slideDown("slow");
});
$("#popsearch .gb_btn").click(function () {
$("#popsearch").slideUp("slow");
});
var param = "";
initData(function (param) {
var newsType = $("#newsType").val();
param = '"noticeType":' + newsType;
return param;
}, '/front/aboutNotice', '/front/aboutNoticeContent');
});
$(function () {
$('[data-toggle="popover"]').popover()
})
</script>
<script src="/resource/front/js/aside_fade.js"></script>
<script rel="script" type="text/javascript">
/**
* Created by Administrator on 2017/4/21.
*/
$(document).ready(function() {
$("#search").click(function() {
$("#popsearch").slideDown("slow");
});
$("#popsearch .gb_btn").click(function() {
$("#popsearch").slideUp("slow");
});
var param = "";
initData(function(param) {
var newsType = $("#newsType").val();
param = '"noticeType":' + newsType;
return param;
}, '/front/aboutNotice', '/front/aboutNoticeContent');
});
$(function() {
$('[data-toggle="popover"]').popover()
})
</script>
<script src="/resource/front/js/aside_fade.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -2,7 +2,7 @@
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
......@@ -77,8 +77,8 @@
</div>
<!-- 客服文件 -->
<jsp:include page="customerService.jsp" />
<jsp:include page="footer.jsp" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
......
......@@ -2,7 +2,7 @@
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
......@@ -70,8 +70,8 @@
</div>
<!-- 客服文件 -->
<jsp:include page="customerService.jsp" />
<jsp:include page="footer.jsp" />
......
......@@ -2,7 +2,7 @@
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html lang="en">
<head>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
......@@ -11,7 +12,7 @@
<script src="<c:url value='/resource/login/js/jquery.js'/>" type="text/javascript"></script>
<script src="<c:url value='/resource/login/js/cloud.js '/>" type="text/javascript"></script>
<script src="<c:url value='/resource/login/js/login.js'/>"></script>
<title>中国贸促会原产地证官网系统</title>
<title>中国贸促会臺港澳企業服務中心官网系统</title>
<script language="javascript">
</script>
<style type="text/css">
......@@ -44,7 +45,7 @@
<div id="cloud2" class="cloud"></div>
</div>
<div class="logintop">
<span>欢迎登录中国贸促会原产地证官网系统官网系统</span>
<span>欢迎登录中国贸促会臺港澳企業服務中心官网系统</span>
<ul>
<li><a href="/">回首页</a></li>
<li><a href="#">帮助</a></li>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>2.0</jspversion>
<shortname>security</shortname>
<tag>
<name>url</name>
<tagclass>ccpit.base.security.SecurityUriTag</tagclass>
<bodycontent>jsp</bodycontent>
<tagclass>org.ccpit.base.security.SecurityUriTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>uri</name>
<required>true</required>
......@@ -17,8 +18,8 @@
<tag>
<name>allRole</name>
<tagclass>ccpit.base.security.SecurityAllRoleTag</tagclass>
<bodycontent>jsp</bodycontent>
<tagclass>org.ccpit.base.security.SecurityAllRoleTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>roles</name>
<required>true</required>
......@@ -28,8 +29,8 @@
<tag>
<name>anyRole</name>
<tagclass>ccpit.base.security.SecurityAnyRoleTag</tagclass>
<bodycontent>jsp</bodycontent>
<tagclass>org.ccpit.base.security.SecurityAnyRoleTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>roles</name>
<required>true</required>
......@@ -39,8 +40,8 @@
<tag>
<name>allGroup</name>
<tagclass>ccpit.base.security.SecurityAllGroupTag</tagclass>
<bodycontent>jsp</bodycontent>
<tagclass>org.ccpit.base.security.SecurityAllGroupTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>groups</name>
<required>true</required>
......@@ -49,14 +50,15 @@
</tag>
<tag>
<name>anyGroup</name>
<tagclass>ccpit.base.security.SecurityAnyGroupTag</tagclass>
<bodycontent>jsp</bodycontent>
<attribute>
<name>groups</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<name>anyGroup</name>
<tagclass>org.ccpit.base.security.SecurityAnyGroupTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>groups</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
......@@ -5,343 +5,354 @@ var dataGridHeight = "";
var bodyWidth = 0;
var bodyHeight = 0;
var editor = null;
var dataType_infoStatus = "通知类型";
var operation = "";
$(function () {
divHeight = $("#queryDiv2").height();
dataGridWidth = document.documentElement.clientWidth;
clientHeight = document.documentElement.clientHeight;
$("#addCentralNoticeWinId").window('close'); //添加会员基础信息窗口
initInputWidth();
$("#queryDiv").window('close');
initDataTable();
var dataType_infoStatus = "通知类型";
var infoStatus = "通知公告状态";
var operation="";
$(function() {
divHeight = $("#queryDiv2").height();
dataGridWidth = document.documentElement.clientWidth;
clientHeight = document.documentElement.clientHeight;
$("#addCentralNoticeWinId").window('close'); //添加会员基础信息窗口
initInputWidth();
$("#queryDiv").window('close');
initDataTable();
})
/**
* 初始化各输入框宽度
*/
function initInputWidth() {
editor = UE.getEditor('noticeContentId', {
initialFrameWidth: fixLongWidth(),
initialFrameHeight: 400
});
$("#titleId").attr("style", "width:" + (fixLongWidth() - 2) + "px");
$("#titleId00").attr("style", "width:" + fixShortWidth() + "px");
$("#noticeTypeId").combobox({
url: '/admin/metadataManage/getMetadatasList?dataType=' + encodeURI(encodeURI(dataType_infoStatus)),
width: fixShortWidth() + 4,
panelHeight: 'auto',
panelHeight: 'auto',
valueField: 'id',
textField: 'text',
onLoadSuccess: function () {
$("#infotatusId").combobox("select", "编辑中");
$("#infotatusId").combobox("setValue", 0);
}
});
function initInputWidth(){
editor = UE.getEditor('noticeContentId', {
initialFrameWidth : fixLongWidth(),
initialFrameHeight : 400
});
$("#titleId").attr("style","width:"+ (fixLongWidth()-2)+"px");
$("#titleId00").attr("style","width:"+ fixShortWidth()+"px");
$("#noticeTypeId").combobox({
url : '/admin/metadataManage/getMetadatasList?dataType='+encodeURI(encodeURI(dataType_infoStatus)),
width : fixShortWidth(),
panelHeight : 'auto',
panelHeight : 'auto',
valueField : 'id',
textField : 'text',
onLoadSuccess : function() {
$("#noticeTypeId").combobox("select", "通知公告");
$("#noticeTypeId").combobox("setValue", 1);
},
onChange:function(newValue,oldValue){
if("1"==newValue){
$(".infotatusClass").css("display","");
}else{
$(".infotatusClass").css("display","none");
}
}
});
$("#infotatusId").combobox({
url : '/admin/metadataManage/getMetadatasList?dataType='+encodeURI(encodeURI(infoStatus)),
width : fixShortWidth(),
panelHeight : 'auto',
panelHeight : 'auto',
valueField : 'id',
textField : 'text',
onLoadSuccess : function() {
$("#infotatusId").combobox("select", "普通");
$("#infotatusId").combobox("setValue", 0);
}
});
}
//js时间戳格式化成日期格式
function timestampformat(timestamp) {
var date = new Date(timestamp);
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
return year + "-" + month + "-" + day;
}
function initDataTable() {
$("#noticeTable").datagrid({
height: clientHeight - divHeight - 27,
nowrap: true,
striped: true,
pagination: true,
rownumbers: true,
pageList: [10, 20, 30, 40, 50],
autoRowHeight: false,
fitColumns: false,
singleSelect: false, //单选
checkOnSelect: true,
selectOnCheck: true,
remoteSort: true,
url: '/business/noticeManage/queryAllNotice',
columns: [[{
field: 'ck',
title: 'id',
width: 15,
checkbox: true
}, {
field: 'noticeTitle',
title: '标题',
width: '700',
align: 'center',
formatter: dataStyle
}, {
field: 'noticeType',
title: '类型',
width: '200',
align: 'center'
}, {
field: 'createTime',
title: '发布日期',
width: '200',
align: 'center'
}, {
field: 'creator',
title: '发布人',
width: '200',
align: 'center'
}, {
field: 'clickVolume',
title: '点击量',
width: '200',
align: 'center'
}
]]
});
}
//打开查看窗口 打开tab页
function viewData(id) {
$.getJSON("/business/noticeManage/queryNoticeById/" + id, function (data) {
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
});
$("#main_area").height((bodyHeight / 5) * 4);
$("#addCentralNoticeWinId").window({
title: '查看通知公告信息',
width: addWinWidth,
height: addWinHeight,
left: (dataGridWidth - addWinWidth) / 2,
top: (bodyHeight - addWinHeight) / 2,
closable: true, // 否显示关闭按钮
collapsible: false, // 是否显示折叠按钮
minimizable: false, // 是否显示最小化按钮
maximizable: false, // 是否显示最大化按钮
close: true, // 初始是否关闭
modal: true
});
$("#buttonId01").hide();
$("#buttonId02").hide();
$("#addCentralNoticeWinId").window('open');
}
function dataStyle(val, row) {
return '<a class="" href="#" onclick="viewData(\'' + row.id + '\')">' + row.noticeTitle + '</a>';
}
var date = new Date(timestamp);
var year = date.getFullYear();
var month = date.getMonth()+1;
var day = date.getDate();
return year+"-"+month+"-"+day;
}
function doSearch(value) {
var queryParams = null;
$("#CentralNoticeManageTable").datagrid({
queryParams: {
queryValue: value
}
});
}
function initDataTable(){
$("#noticeTable").datagrid({
height:clientHeight-divHeight-27,
nowrap : true,
striped : true,
pagination : true,
rownumbers : true,
pageList : [10,20,30,40,50],
autoRowHeight : false,
fitColumns : false,
singleSelect : false, //单选
checkOnSelect : true,
selectOnCheck : true,
remoteSort : true,
url : '/business/noticeManage/queryAllNotice',
columns : [ [ {
field : 'ck',
title : 'id',
width : 15,
checkbox : true
},{
field : 'noticeTitle',
title : '标题',
width : '700',
align : 'center',
formatter : dataStyle
},{
field : 'noticeType',
title : '类型',
width : '200',
align : 'center'
},{
field : 'createTime',
title : '发布日期',
width : '200',
align : 'center'
}, {
field : 'creator',
title : '发布人',
width : '200',
align : 'center'
},{
field : 'clickVolume',
title : '点击量',
width : '200',
align : 'center'
}
] ]
});
}
//打开查看窗口 打开tab页
function viewData(id){
$.getJSON("/business/noticeManage/queryNoticeById/" + id, function(data) {
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
});
$("#main_area").height((bodyHeight/5)*4);
$("#addCentralNoticeWinId").window({
title : '查看通知公告信息',
width : addWinWidth,
height : addWinHeight,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
maximizable : false, // 是否显示最大化按钮
close : true, // 初始是否关闭
modal : true
});
$("#buttonId01").hide();
$("#buttonId02").hide();
$("#addCentralNoticeWinId").window('open');
}
function dataStyle(val, row) {
return '<a class="" href="#" onclick="viewData(\'' + row.id + '\')">'+ row.noticeTitle + '</a>';
}
function doSearch(value){
var queryParams = null;
$("#CentralNoticeManageTable").datagrid({
queryParams : {
queryValue : value
}
});
}
/**
* 打开新增窗口 基本信息
*/
function openAddWin() {
initInputWidth();
operation = "add";
$("#main_area").height();
$("#addCentralNoticeWinId").window({
title: '新增通知公告信息',
width: addWinWidth,
height: addWinHeight,
left: (dataGridWidth - addWinWidth) / 2,
top: (bodyHeight - addWinHeight) / 2,
closable: true, // 否显示关闭按钮
collapsible: false, // 是否显示折叠按钮
minimizable: false, // 是否显示最小化按钮
maximizable: false, // 是否显示最大化按钮
close: true, // 初始是否关闭
modal: true
});
$("#addCentralNoticeForm").form('clear');
$("#buttonId01").show();
$("#buttonId02").show();
editor.setContent('');
$("#addCentralNoticeWinId").window('open');
function openAddWin(){
initInputWidth();
operation = "add";
$("#main_area").height();
$("#addCentralNoticeWinId").window({
title : '新增通知公告信息',
width : addWinWidth,
height : addWinHeight,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
maximizable : false, // 是否显示最大化按钮
close : true, // 初始是否关闭
modal : true
});
$("#addCentralNoticeForm").form('clear');
$("#buttonId01").show();
$("#buttonId02").show();
editor.setContent('');
$("#addCentralNoticeWinId").window('open');
}
/**
* 打开修改窗口 基本信息
*/
function openEditWin() {
$("#addCentralNoticeWinId").form('clear');
operation = "edit";
var rows = $('#noticeTable').datagrid('getSelections');
if (rows.length == 1) {
var row = $('#noticeTable').datagrid('getSelected');
$.getJSON("/business/noticeManage/queryNoticeById/" + row.id, function (data) {
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
});
$("#main_area").height((bodyHeight / 5) * 4);
$("#addCentralNoticeWinId").window({
title: '修改信息',
width: addWinWidth,
height: addWinHeight,
left: (dataGridWidth - addWinWidth) / 2,
top: (bodyHeight - addWinHeight) / 2,
closable: true, // 否显示关闭按钮
collapsible: false, // 是否显示折叠按钮
minimizable: false, // 是否显示最小化按钮
maximizable: false, // 是否显示最大化按钮
close: true, // 初始是否关闭
modal: true
});
$("#buttonId01").show();
$("#buttonId02").show();
$("#addCentralNoticeWinId").window('open');
} else {
$.messager.alert('提示', '请选中一条记录 ', 'info');
}
function openEditWin(){
$("#addCentralNoticeWinId").form('clear');
operation = "edit";
var rows = $('#noticeTable').datagrid('getSelections');
if(rows.length == 1){
var row = $('#noticeTable').datagrid('getSelected');
$.getJSON("/business/noticeManage/queryNoticeById/" + row.id, function(data) {
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
});
$("#main_area").height((bodyHeight/5)*4);
$("#addCentralNoticeWinId").window({
title : '修改信息',
width : addWinWidth,
height : addWinHeight,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
maximizable : false, // 是否显示最大化按钮
close : true, // 初始是否关闭
modal : true
});
$("#buttonId01").show();
$("#buttonId02").show();
$("#addCentralNoticeWinId").window('open');
}else {
$.messager.alert('提示', '请选中一条记录 ', 'info');
}
}
function openQueryWin(row) {
var data = row
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
$("#main_area").height((bodyHeight / 5) * 4);
$("#addCentralNoticeWinId").window({
title: '查看通知公告信息',
width: addWinWidth,
height: addWinHeight,
left: (dataGridWidth - addWinWidth) / 2,
top: (bodyHeight - addWinHeight) / 2,
closable: true, // 否显示关闭按钮
collapsible: false, // 是否显示折叠按钮
minimizable: false, // 是否显示最小化按钮
maximizable: false, // 是否显示最大化按钮
close: true, // 初始是否关闭
modal: true
});
$("#buttonId01").hide();
$("#buttonId02").show();
$("#addCentralNoticeWinId").window('open');
function openQueryWin(row){
var data = row
$("#addCentralNoticeForm").form('load', data);
editor.setContent(data.noticeContent);
$("#main_area").height((bodyHeight/5)*4);
$("#addCentralNoticeWinId").window({
title : '查看通知公告信息',
width : addWinWidth,
height : addWinHeight,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
maximizable : false, // 是否显示最大化按钮
close : true, // 初始是否关闭
modal : true
});
$("#buttonId01").hide();
$("#buttonId02").show();
$("#addCentralNoticeWinId").window('open');
}
$("#professorNameId").combobox({
width: fixShortWidth() + 4
width:fixShortWidth()+4
})
//保存数据
function saveData() {
var centralNoticeTitle = $("#titleId").val();
if ('add' == operation) {
$.getJSON("/business/noticeManage/isExistNotice?noticeTitle=" + encodeURI(encodeURI(centralNoticeTitle)), function (json) {
if (json.flag) {
$.messager.alert('提示', json.info, 'error');
} else {
url = "/business/noticeManage/addOrUpdateNotice?operate=" + operation;
$('#addCentralNoticeForm').form('submit', {
url: url,
onSubmit: function () {
return $(this).form('validate');
},
success: function (data) {
var data = eval("(" + data + ")");
if (data.flag) {
$.messager.alert('提示', data.info, 'ok');
closeWindow();
initDataTable();
} else {
$.messager.alert("提示", data.info, 'error');
}
}
});
}
})
}
if ('edit' == operation) {
var row = $('#noticeTable').datagrid('getSelected');
url = "/business/noticeManage/addOrUpdateNotice?operate=" + operation + "&noticeId=" + row.id;
$('#addCentralNoticeForm').form('submit', {
url: url,
onSubmit: function () {
return $(this).form('validate');
},
success: function (data) {
var data = eval("(" + data + ")")
if (data.flag) {
$.messager.alert('提示', data.info, 'ok');
closeWindow();
initDataTable();
} else {
$.messager.alert("提示", data.info, 'error');
}
}
});
}
function saveData(){
var centralNoticeTitle = $("#titleId").val();
if('add' == operation){
$.getJSON("/business/noticeManage/isExistNotice?noticeTitle="+encodeURI(encodeURI(centralNoticeTitle)),function(json){
if(json.flag){
$.messager.alert('提示', json.info, 'error');
}else {
url = "/business/noticeManage/addOrUpdateNotice?operate="+operation;
$('#addCentralNoticeForm').form('submit',{
url: url,
onSubmit: function(){
return $(this).form('validate');
},
success: function(data){
var data = eval("("+data+")");
if (data.flag){
$.messager.alert('提示', data.info, 'ok');
closeWindow();
initDataTable();
} else {
$.messager.alert("提示",data.info,'error');
}
}
});
}
})
}
if('edit' == operation){
var row = $('#noticeTable').datagrid('getSelected');
url = "/business/noticeManage/addOrUpdateNotice?operate="+operation+"&noticeId="+row.id;
$('#addCentralNoticeForm').form('submit',{
url: url,
onSubmit: function(){
return $(this).form('validate');
},
success: function(data){
var data = eval("("+data+")")
if (data.flag){
$.messager.alert('提示',data.info, 'ok');
closeWindow();
initDataTable();
} else {
$.messager.alert("提示",data.info,'error');
}
}
});
}
}
//删除
function deleteNotice() {
var rows = $('#noticeTable').datagrid('getChecked');
if (rows.length != 0) {
var jsonIds = arrayTojson(rows);
$.messager.confirm("删除", "确定删除?", function (r) {
if (r) {
var postUrl = '/business/noticeManage/deleteNotices';
$.post(postUrl, {
"ids": jsonIds
}, function (result) {
if (result.flag) {
$.messager.alert('提示', result.info, 'ok');
initDataTable();
} else {
$.messager.alert('提示', result.info, 'error');
initDataTable();
return;
}
}, 'json');
}
});
} else {
$.messager.alert('提示', '请选中一条要删除记录', 'info');
}
function deleteNotice(){
var rows = $('#noticeTable').datagrid('getChecked');
if (rows.length !=0 ){
var jsonIds = arrayTojson(rows);
$.messager.confirm("删除","确定删除?",function(r){
if (r){
var postUrl = '/business/noticeManage/deleteNotices';
$.post(postUrl,{
"ids":jsonIds},function(result){
if (result.flag){
$.messager.alert('提示',result.info,'ok');
initDataTable();
} else {
$.messager.alert('提示',result.info,'error');
initDataTable();
return;
}
},'json');
}
});
}else{
$.messager.alert('提示', '请选中一条要删除记录', 'info');
}
}
//关闭窗口 基础信息
function closeWindow() {
$("#addCentralNoticeWinId").window('close');
function closeWindow(){
$("#addCentralNoticeWinId").window('close');
}
/**
* id数组转换为json字符串
*/
function arrayTojson(arr) {
var jsonIds = "[";
for (var i = 0; i < arr.length; i++) {
if (i == arr.length - 1) {
jsonIds += arr[i].id;
} else {
jsonIds += arr[i].id + ",";
}
}
jsonIds += "]";
function arrayTojson(arr) {
var jsonIds = "[";
for ( var i = 0; i < arr.length; i++) {
if (i == arr.length - 1) {
jsonIds += arr[i].id;
} else {
jsonIds += arr[i].id + ",";
}
}
jsonIds += "]";
return jsonIds;
return jsonIds;
}
//查询
//查询
function queryData() {
var noticeTitle = $("#titleId00").val();
var queryParams = null;
$("#noticeTable").datagrid({
queryParams: {
noticeTitle: noticeTitle
}
});
var noticeTitle = $("#titleId00").val();
var queryParams = null;
$("#noticeTable").datagrid({
queryParams : {
noticeTitle : noticeTitle
}
});
}
// 清空查询条件框
function clearQueryForm() {
$("#queryFormId2").form('clear');
queryData();
$("#queryFormId2").form('clear');
queryData();
}
\ No newline at end of file
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.scripts,t=e[e.length-1],i=t.src;if(!t.getAttribute("merge"))return i.substring(0,i.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"]},r={v:"3.0.3",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):r.link("skin/"+e.extend),this):this},link:function(t,n,a){if(r.path){var o=i("head")[0],s=document.createElement("link");"string"==typeof n&&(a=n);var l=(a||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,i("#"+f)[0]||o.appendChild(s),"function"==typeof n&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(i("#"+f).css("width"))?n():setTimeout(u,100))}()}},ready:function(e){var t="skinlayercss",i="303";return a?layui.addcss("modules/layer/default/layer.css?v="+r.v+i,e,t):r.link("skin/default/layer.css?v="+r.v+i,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(f?r.title[1]:"")+'">'+(f?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,t([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+a+'" times="'+a+'" style="'+("z-index:"+(s-1)+"; background-color:"+(r.shade[1]||"#000")+"; opacity:"+(r.shade[0]||r.shade)+"; filter:alpha(opacity="+(100*r.shade[0]||100*r.shade)+");")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+o.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+a+'" type="'+o.type[r.type]+'" times="'+a+'" showtime="'+r.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(e&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&e?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var e=c?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(e+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),e}()+"</span>"+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t<i;t++)e+='<a class="'+l[6]+t+'">'+r.btn[t]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+e+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,i('<div class="layui-layer-move"></div>')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='<iframe scrolling="'+(t.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+a+'" name="'+l[4]+a+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+t.content[0]+'"></iframe>';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'<i class="layui-layer-TipsG"></i>',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]&&e.layero.addClass(l.anim[t.anim]),t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){function t(e){e=s.find(e),e.height(f[1]-c-u-2*(0|parseFloat(e.css("padding-top"))))}var a=this,o=a.config,s=i("#"+l[0]+e);""===o.area[0]&&o.maxWidth>0&&(r.ie&&r.ie<8&&o.btn&&s.width(s.innerWidth()),s.outerWidth()>o.maxWidth&&s.width(o.maxWidth));var f=[s.innerWidth(),s.innerHeight()],c=s.find(l[1]).outerHeight()||0,u=s.find("."+l[6]).outerHeight()||0;switch(o.type){case 2:t("iframe");break;default:""===o.area[1]?o.fixed&&f[1]>=n.height()&&(f[1]=n.height(),t("."+l[5])):t("."+l[5])}return a},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;a<c.stX&&(a=c.stX),a>f&&(a=f),o<c.stY&&(o=c.stY),o>u&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass(a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'<textarea class="layui-layer-input"'+a+">"+(e.value||"")+"</textarea>":function(){return'<input type="'+(1==e.formType?"password":"text")+'" class="layui-layer-input" value="'+(e.value||"")+'">'}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(e){s=e.find(".layui-layer-input"),s.focus(),"function"==typeof f&&f(e)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(e.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,n="";if(e>0)for(n='<span class="layui-layer-tabnow">'+t[0].title+"</span>";i<e;i++)n+="<span>"+t[i].title+"</span>";return n}(),content:'<ul class="layui-layer-tabmain">'+function(){var e=t.length,i=1,n="";if(e>0)for(n='<li class="layui-layer-tabli xubox_tab_layer">'+(t[0].content||"no content")+"</li>";i<e;i++)n+='<li class="layui-layer-tabli">'+(t[i].content||"no content")+"</li>";return n}()+"</ul>",success:function(t){var a=t.find(".layui-layer-title").children(),o=t.find(".layui-layer-tabmain").children();a.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var n=i(this),a=n.index();n.addClass("layui-layer-tabnow").siblings().removeClass("layui-layer-tabnow"),o.eq(a).show().siblings().hide(),"function"==typeof e.change&&e.change(a)}),"function"==typeof n&&n(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]<r[1]&&(a[0]=a[0]/r[1],a[1]=a[1]/r[1])}return[a[0]+"px",a[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+c("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[d].src+'" alt="'+(u[d].alt||"")+'" layer-pid="'+u[d].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(a?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[d].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.jquery),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["main/webapp/resource/front/js/lay/modules/jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);
\ No newline at end of file
;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.scripts,t=e[e.length-1],i=t.src;if(!t.getAttribute("merge"))return i.substring(0,i.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"]},r={v:"3.0.3",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):r.link("skin/"+e.extend),this):this},link:function(t,n,a){if(r.path){var o=i("head")[0],s=document.createElement("link");"string"==typeof n&&(a=n);var l=(a||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,i("#"+f)[0]||o.appendChild(s),"function"==typeof n&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(i("#"+f).css("width"))?n():setTimeout(u,100))}()}},ready:function(e){var t="skinlayercss",i="303";return a?layui.addcss("modules/layer/default/layer.css?v="+r.v+i,e,t):r.link("skin/default/layer.css?v="+r.v+i,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(f?r.title[1]:"")+'">'+(f?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,t([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+a+'" times="'+a+'" style="'+("z-index:"+(s-1)+"; background-color:"+(r.shade[1]||"#000")+"; opacity:"+(r.shade[0]||r.shade)+"; filter:alpha(opacity="+(100*r.shade[0]||100*r.shade)+");")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+o.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+a+'" type="'+o.type[r.type]+'" times="'+a+'" showtime="'+r.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(e&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&e?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var e=c?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(e+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),e}()+"</span>"+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t<i;t++)e+='<a class="'+l[6]+t+'">'+r.btn[t]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+e+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,i('<div class="layui-layer-move"></div>')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='<iframe scrolling="'+(t.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+a+'" name="'+l[4]+a+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+t.content[0]+'"></iframe>';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'<i class="layui-layer-TipsG"></i>',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]&&e.layero.addClass(l.anim[t.anim]),t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){function t(e){e=s.find(e),e.height(f[1]-c-u-2*(0|parseFloat(e.css("padding-top"))))}var a=this,o=a.config,s=i("#"+l[0]+e);""===o.area[0]&&o.maxWidth>0&&(r.ie&&r.ie<8&&o.btn&&s.width(s.innerWidth()),s.outerWidth()>o.maxWidth&&s.width(o.maxWidth));var f=[s.innerWidth(),s.innerHeight()],c=s.find(l[1]).outerHeight()||0,u=s.find("."+l[6]).outerHeight()||0;switch(o.type){case 2:t("iframe");break;default:""===o.area[1]?o.fixed&&f[1]>=n.height()&&(f[1]=n.height(),t("."+l[5])):t("."+l[5])}return a},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;a<c.stX&&(a=c.stX),a>f&&(a=f),o<c.stY&&(o=c.stY),o>u&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass(a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'<textarea class="layui-layer-input"'+a+">"+(e.value||"")+"</textarea>":function(){return'<input type="'+(1==e.formType?"password":"text")+'" class="layui-layer-input" value="'+(e.value||"")+'">'}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(e){s=e.find(".layui-layer-input"),s.focus(),"function"==typeof f&&f(e)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(e.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,n="";if(e>0)for(n='<span class="layui-layer-tabnow">'+t[0].title+"</span>";i<e;i++)n+="<span>"+t[i].title+"</span>";return n}(),content:'<ul class="layui-layer-tabmain">'+function(){var e=t.length,i=1,n="";if(e>0)for(n='<li class="layui-layer-tabli xubox_tab_layer">'+(t[0].content||"no content")+"</li>";i<e;i++)n+='<li class="layui-layer-tabli">'+(t[i].content||"no content")+"</li>";return n}()+"</ul>",success:function(t){var a=t.find(".layui-layer-title").children(),o=t.find(".layui-layer-tabmain").children();a.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var n=i(this),a=n.index();n.addClass("layui-layer-tabnow").siblings().removeClass("layui-layer-tabnow"),o.eq(a).show().siblings().hide(),"function"==typeof e.change&&e.change(a)}),"function"==typeof n&&n(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]<r[1]&&(a[0]=a[0]/r[1],a[1]=a[1]/r[1])}return[a[0]+"px",a[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+c("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[d].src+'" alt="'+(u[d].alt||"")+'" layer-pid="'+u[d].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(a?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[d].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.jquery),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);
\ No newline at end of file
......@@ -2383,7 +2383,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2427,7 +2427,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2486,7 +2486,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2529,7 +2529,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2613,7 +2613,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2694,7 +2694,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2743,7 +2743,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2818,7 +2818,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2857,7 +2857,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2882,7 +2882,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2918,7 +2918,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -2969,7 +2969,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3010,7 +3010,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3052,7 +3052,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3088,7 +3088,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3165,7 +3165,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3237,7 +3237,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3254,7 +3254,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3313,7 +3313,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3361,7 +3361,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3400,7 +3400,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3478,7 +3478,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3513,7 +3513,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3563,7 +3563,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......@@ -3603,7 +3603,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
;(function()
{
// CommonJS
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('main/webapp/resource/ueditor1_4_2/third-party/SyntaxHighlighter/shCore').SyntaxHighlighter : null);
SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
function Brush()
{
......
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd">
http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
<!-- 发送邮件的线程池 -->
<bean id="taskExecutor"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="5" />
<property name="maxPoolSize" value="10" />
<property name="queueCapacity" value="25" />
</bean>
<bean id="multipartResolver" class="ccpit.base.controller.MyMultipartResolver">
<!-- url中带有example的http请求就不会被multipartResolver先解析-->
<property name="excludeUrls" value="uploadFile"/>
<property name="maxUploadSize" value="10485760"/>
</bean>
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:framework.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
<!-- <bean id="multipartResolver" class="org.ccpit.base.controller.MyMultipartResolver">
url中带有example的http请求就不会被multipartResolver先解析
<property name="excludeUrls" value="uploadFile"/>
<property name="maxUploadSize" value="10485760"/>
</bean> -->
<bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath:framework.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
</bean>
</beans>
\ No newline at end of file
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