code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
package com.znzx.system.tools; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("SystemServiceImpl") public class SystemServiceImpl implements ISystemService { private ISystemDao systemDao; @Override public List getModuleTree(Map param) { return this.systemDao.getModuleTree(param); } @Override public Map loginGetUser(Map param) { return this.systemDao.loginGetUser(param); } public ISystemDao getSystemDao() { return systemDao; } @Resource(name="SystemDaoImpl") public void setSystemDao(ISystemDao systemDao) { this.systemDao = systemDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/tools/SystemServiceImpl.java
Java
oos
712
package com.znzx.system.tools; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("SystemDaoImpl") public class SystemDaoImpl extends BaseSqlMapClientDaoSupport implements ISystemDao { @Override public List getModuleTree(Map param) { return this.queryForList("getModuleTree", param); } @Override public Map loginGetUser(Map param) { return (Map) this.queryForObject("loginGetUser", param); } public List getUserModule(Map param) { String sqlKey = (String) param.get("sqlKey"); return this.queryForList(sqlKey, param); } }
zzbasepro
trunk/basepro/src/com/znzx/system/tools/SystemDaoImpl.java
Java
oos
745
package com.znzx.system.user; import java.util.List; import java.util.Map; public interface ISysUserService { /** * 添加用户 * @param param * @return */ boolean addUser(Map param); /** * 修改用户 * @param param * @return */ boolean updateUser(Map param); /** * 删除用户 * @param param * @return */ boolean delUser(Map param); /** * 获得用户详情 * @param param * @return */ Map getUserInfo(Map param); /** * 获得用户列表 * @param param * @return */ List getUserList(Map param); /** * 获得所有用户列表 * @param param * @return */ List getAllUserList(Map param); /** * 获得所有权限列表 * @param param * @return */ List getUserRoleList(Map param); /** * 保存用户与角色关系 * @param param * @return */ boolean saveUserRole(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/user/ISysUserService.java
Java
oos
918
package com.znzx.system.user; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseAction; import com.znzx.util.StrUtil; @Scope("prototype") @Component("SysUserAction") public class SysUserAction extends BaseAction { private ISysUserService sysUserService; /** * 新增用户 * @return */ public String addUser() { boolean flag = this.sysUserService.addUser(this.getParam()); return this.refresh("保存",flag); } /** * 删除用户 * @return */ public String delUser() { boolean flag = true; String ids = this.getParam().get("uids"); if(ids != null && !"".equals(ids.trim())){ String idStr = StrUtil.strArrToStr(ids.split(","),"','","'"); this.getParam().put("strId", idStr); flag = this.sysUserService.delUser(this.getParam()); } return this.re(flag); } /** * 获得用户详情 * @return */ public String getUserInfo() { Map userMap = this.sysUserService.getUserInfo(this.getParam()); this.getrParam().put("userMap", userMap); return this.re(true); } /** * 更新用户 * @return */ public String updateUser() { boolean flag = this.sysUserService.updateUser(this.getParam()); return this.refresh("成功!"); } /** * 获得用户列表 * @return */ public String getUserList() { List userList = this.sysUserService.getUserList(this.getParam()); this.getrParam().put("userList", userList); return this.re(true); } /** * 获得所有用户列表 * @return */ public String getUserTree(){ List userList = this.sysUserService.getAllUserList(this.getParam()); this.getrParam().put("userList", userList); return this.re(true); } /** * 得到所有角色列表 * @return */ public String getUserRoleList(){ List roleList = this.sysUserService.getUserRoleList(this.getParam()); this.getrParam().put("roleList", roleList); return this.re(true); } public String saveUserRole(){ boolean flag = this.sysUserService.saveUserRole(this.getParam()); return this.re(flag); } public ISysUserService getSysUserService() { return sysUserService; } @Resource(name="SysUserServiceImpl") public void setSysUserService(ISysUserService sysUserService) { this.sysUserService = sysUserService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/user/SysUserAction.java
Java
oos
2,477
package com.znzx.system.user; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("SysUserServiceImpl") public class SysUserServiceImpl implements ISysUserService { private ISysUserDao sysUserDao; @Override public boolean addUser(Map param) { return this.sysUserDao.addUser(param); } @Override public boolean delUser(Map param) { return this.sysUserDao.delUser(param); } @Override public Map getUserInfo(Map param) { return this.sysUserDao.getUserInfo(param); } @Override public boolean updateUser(Map param) { return this.sysUserDao.updateUser(param); } @Override public List getUserList(Map param) { return this.sysUserDao.getUserList(param); } @Override public List getAllUserList(Map param) { return this.sysUserDao.getAllUserList(param); } @Override public List getUserRoleList(Map param) { return this.sysUserDao.getUserRoleList(param); } @Override public boolean saveUserRole(Map param) { return this.sysUserDao.saveUserRole(param); } public ISysUserDao getSysUserDao() { return sysUserDao; } @Resource(name="SysUserDaoImpl") public void setSysUserDao(ISysUserDao sysUserDao) { this.sysUserDao = sysUserDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/user/SysUserServiceImpl.java
Java
oos
1,354
package com.znzx.system.user; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("SysUserDaoImpl") public class SysUserDaoImpl extends BaseSqlMapClientDaoSupport implements ISysUserDao { @Override public boolean addUser(Map param) { this.insert("addUser", param, new String[]{"id"}, new String[]{"create_time"}); return true; } @Override public boolean delUser(Map param) { return this.deleteB("delUser", param); } @Override public Map getUserInfo(Map param) { return (Map)this.queryForObject("getUserInfo",param); } @Override public boolean updateUser(Map param) { return this.updateB("updateUser", param); } @Override public List getUserList(Map param) { return this.queryForListPage(param); } @Override public List getAllUserList(Map param) { return this.queryForList(param); } @Override public List getUserRoleList(Map param) { return this.queryForList(param); } @Override public boolean saveUserRole(Map param) { this.deleteB("delUserRole", param); String rids = (String)param.get("rids"); if(rids != null && !"".equals(rids.trim())){ String [] rArr = rids.split(","); for(String str : rArr){ param.put("role_id", str.trim()); this.insert("addUserRole", param, new String[]{"id"}, new String[]{"create_time"}); } } return true; } }
zzbasepro
trunk/basepro/src/com/znzx/system/user/SysUserDaoImpl.java
Java
oos
1,549
package com.znzx.system.user; import java.util.List; import java.util.Map; public interface ISysUserDao { /** * 添加用户 * @param param * @return */ boolean addUser(Map param); /** * 修改用户 * @param param * @return */ boolean updateUser(Map param); /** * 删除用户 * @param param * @return */ boolean delUser(Map param); /** * 获得用户详情 * @param param * @return */ Map getUserInfo(Map param); /** * 获得用户列表 * @param param * @return */ List getUserList(Map param); /** * 获得所有用户列表 * @param param * @return */ List getAllUserList(Map param); /** * 获得所有权限列表 * @param param * @return */ List getUserRoleList(Map param); /** * 保存用户与角色关系 * @param param * @return */ boolean saveUserRole(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/user/ISysUserDao.java
Java
oos
914
package com.znzx.system.module; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseAction; import com.znzx.common.tree.ITreeTool; import com.znzx.common.tree.TreeToolAllModule; import com.znzx.constant.Constant; import com.znzx.util.DateUtil; import com.znzx.util.StrUtil; @Scope("prototype") @Component("SysModuleAction") public class SysModuleAction extends BaseAction { private ISysModuleService sysModuleService; /** * 添加模块 * @return */ public String addModule() { Map mp = this.sysModuleService.getModuleChildMaxCode(this.getParam()); if(mp.get("module_code") == null || "".equals(mp.get("module_code").toString().trim())){ this.getParam().put("module_code", this.getParam().get("module_code")+"001"); }else{ this.getParam().put("module_code", StrUtil.StringAdd(mp.get("module_code").toString(), 3)); } this.getParam().put("create_time", DateUtil.getCurrentDateTime()); boolean flag = this.sysModuleService.addModule(this.getParam()); return this.refresh("添加模块", flag); } /** * 删除模块 * @return */ public String delModule() { this.splitIds("mids", "strId"); boolean flag = this.sysModuleService.delModule(this.getParam()); return this.re(flag); } /** * 得到所有模块,并生成树结构的xml或json数据 * @return */ @SuppressWarnings("unchecked") public String getAllModule() { List list = this.sysModuleService.getAllModule(this.getParam()); ITreeTool treeTool = new TreeToolAllModule(); String xmlBody = treeTool.createTreeXml(list, this.getParam().get("openStr")); try { this.getResponse().getWriter().write(Constant.XML_HEAD+xmlBody); } catch (IOException e) { throw new RuntimeException(e); } return null; } /** * 得到模块信息 * @return */ @SuppressWarnings({ "static-access", "unchecked" }) public String getModuleInfo() { Map moduleInfo = this.sysModuleService.getModuleInfo(this.getParam()); this.put("moduleInfo", moduleInfo); return this.re(true); } /** * 获得模块下子模块 * @return */ public String getChildModuleList(){ List moduleList = this.sysModuleService.getChildModuleList(this.getParam()); this.put("moduleList", moduleList); return this.SUCCESS; } /** * 获得模块下页面列表 * @return */ public String getModulePageList(){ List pageList = this.sysModuleService.getModulePageList(this.getParam()); this.put("pageList", pageList); return this.SUCCESS; } /** * 更新模块顺序 * @return */ public String updateOrderModule() { boolean flag = this.sysModuleService.updateOrderModule(this.getParam()); return this.re(flag); } /** * 更新模块信息 * @return */ public String updateModule() { boolean flag = this.sysModuleService.updateModule(this.getParam()); return this.refresh("模块修改",flag); } /** * 添加页面 * @return */ public String addPage(){ boolean flag = this.sysModuleService.addPage(this.getParam()); return this.refresh("添加页面", flag); } /** * 获得页面信息 * @return */ public String getPageInfo(){ Map pageInfo = this.sysModuleService.getPageInfo(this.getParam()); this.put("pageInfo", pageInfo); return this.re(true); } /** * 更新页面 * @return */ public String updatePage(){ boolean flag = this.sysModuleService.updatePage(this.getParam()); return this.refresh("修改页面",flag); } /** * 删除页面 * @return */ public String delPage() { this.splitIds("pids", "strId"); boolean flag = this.sysModuleService.delPage(this.getParam()); return this.re(flag); } /** * 更新默认页面 * @return */ public String updateDefaultPage(){ boolean flag = this.sysModuleService.updateDefaultPage(this.getParam()); return this.re(flag); } public ISysModuleService getSysModuleService() { return sysModuleService; } @Resource(name="SysModuleServiceImpl") public void setSysModuleService(ISysModuleService sysModuleService) { this.sysModuleService = sysModuleService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/module/SysModuleAction.java
Java
oos
4,396
package com.znzx.system.module; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("SysModuleDaoImpl") public class SysModuleDaoImpl extends BaseSqlMapClientDaoSupport implements ISysModuleDao { @SuppressWarnings("unchecked") @Override public boolean addModule(Map param) { this.insert("addModule", param, new String[]{"id"}); return true; } @SuppressWarnings("unchecked") @Override public boolean delModule(Map param) { return this.updateB("delModule", param); } @SuppressWarnings("unchecked") @Override public List getAllModule(Map param) { return this.queryForList("getAllModule", param); } @SuppressWarnings("unchecked") @Override public List getChildModuleList(Map param) { return this.queryForListPage("getChildModuleList", param); } @SuppressWarnings("unchecked") @Override public boolean updateOrderModule(Map param) { return this.updateB("orderModule", param); } @SuppressWarnings("unchecked") @Override public boolean updateModule(Map param) { return this.updateB("updateModule", param); } @SuppressWarnings("unchecked") @Override public List getModulePageList(Map param) { return this.queryForListPage("getModulePageList", param); } @SuppressWarnings("unchecked") @Override public Map getModuleInfo(Map param) { return (Map)this.queryForObject("getModuleInfo", param); } @SuppressWarnings("unchecked") @Override public Map getModuleChildMaxCode(Map param) { return (Map)this.queryForObject("getModuleChildMaxCode", param); } @SuppressWarnings("unchecked") @Override public boolean addPage(Map param) { Map mp = (Map)this.queryForObject("getDefaultPageCount", param); String isDefault = "0"; if("0".equals(String.valueOf(mp.get("num")))){ isDefault = "1"; } param.put("isdefault", isDefault); int sort = Integer.parseInt(mp.get("sort").toString()) + 1; param.put("sort", sort); this.insert("addPage", param, new String[]{"id"}); return true; } @SuppressWarnings("unchecked") @Override public boolean updatePage(Map param) { return this.updateB("updatePage", param); } @SuppressWarnings("unchecked") @Override public Map getPageInfo(Map param) { return (Map)this.queryForObject(param); } @SuppressWarnings("unchecked") @Override public boolean delPage(Map param) { return this.deleteB("delPage", param); } @SuppressWarnings("unchecked") @Override public boolean updateDefaultPage(Map param) { this.update("updateUnDefaultPage", param); this.updateB("updateDefaultPage", param); return true; } }
zzbasepro
trunk/basepro/src/com/znzx/system/module/SysModuleDaoImpl.java
Java
oos
2,810
package com.znzx.system.module; import java.util.List; import java.util.Map; public interface ISysModuleDao { /** * 添加模块 * @param param * @return */ boolean addModule(Map param); /** * 修改模块 * @param param * @return */ boolean updateModule(Map param); /** * 删除模块 * @param param * @return */ boolean delModule(Map param); /** * 获得模块 * @param param * @return */ List getAllModule(Map param); /** * 获得子模块列表 * @param param * @return */ List getChildModuleList(Map param); /** * 模块排序 * @param param * @return */ boolean updateOrderModule(Map param); /** * 获得模块写页面列表 * @param param * @return */ List getModulePageList(Map param); /** * 获得模块信息 * @param param * @return */ Map getModuleInfo(Map param); /** * 获得子模块最大模块编号 * @param param * @return */ Map getModuleChildMaxCode(Map param); /** * 添加页面 * @param param * @return */ boolean addPage(Map param); /** * 修改页面 * @param param * @return */ boolean updatePage(Map param); /** * 获得页面详情 * @param param * @return */ Map getPageInfo(Map param); /** * 删除页面 * @param param * @return */ boolean delPage(Map param); /** * 更新默认页面 * @param param * @return */ boolean updateDefaultPage(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/module/ISysModuleDao.java
Java
oos
1,525
package com.znzx.system.module; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("SysModuleServiceImpl") public class SysModuleServiceImpl implements ISysModuleService { private ISysModuleDao sysModuleDao; @Override public boolean addModule(Map param) { return this.sysModuleDao.addModule(param); } @Override public boolean delModule(Map param) { return this.sysModuleDao.delModule(param); } @Override public List getAllModule(Map param) { return this.sysModuleDao.getAllModule(param); } @Override public List getChildModuleList(Map param) { return this.sysModuleDao.getChildModuleList(param); } @Override public boolean updateOrderModule(Map param) { return this.sysModuleDao.updateOrderModule(param); } @Override public boolean updateModule(Map param) { return this.sysModuleDao.updateModule(param); } @Override public List getModulePageList(Map param) { return this.sysModuleDao.getModulePageList(param); } @Override public Map getModuleInfo(Map param) { return this.sysModuleDao.getModuleInfo(param); } @Override public Map getModuleChildMaxCode(Map param) { return this.sysModuleDao.getModuleChildMaxCode(param); } @Override public boolean addPage(Map param) { return this.sysModuleDao.addPage(param); } @Override public boolean updatePage(Map param) { return this.sysModuleDao.updatePage(param); } @Override public Map getPageInfo(Map param) { return this.sysModuleDao.getPageInfo(param); } @Override public boolean delPage(Map param) { return this.sysModuleDao.delPage(param); } @Override public boolean updateDefaultPage(Map param) { return this.sysModuleDao.updateDefaultPage(param); } public ISysModuleDao getSysModuleDao() { return sysModuleDao; } @Resource(name="SysModuleDaoImpl") public void setSysModuleDao(ISysModuleDao sysModuleDao) { this.sysModuleDao = sysModuleDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/module/SysModuleServiceImpl.java
Java
oos
2,058
package com.znzx.system.module; import java.util.List; import java.util.Map; public interface ISysModuleService { /** * 添加模块 * @param param * @return */ boolean addModule(Map param); /** * 修改模块 * @param param * @return */ boolean updateModule(Map param); /** * 删除模块 * @param param * @return */ boolean delModule(Map param); /** * 获得模块 * @param param * @return */ List getAllModule(Map param); /** * 获得子模块列表 * @param param * @return */ List getChildModuleList(Map param); /** * 模块排序 * @param param * @return */ boolean updateOrderModule(Map param); /** * 获得模块写页面列表 * @param param * @return */ List getModulePageList(Map param); /** * 获得模块信息 * @param param * @return */ Map getModuleInfo(Map param); /** * 获得子模块最大模块编号 * @param param * @return */ Map getModuleChildMaxCode(Map param); /** * 添加页面 * @param param * @return */ boolean addPage(Map param); /** * 修改页面 * @param param * @return */ boolean updatePage(Map param); /** * 获得页面详情 * @param param * @return */ Map getPageInfo(Map param); /** * 删除页面 * @param param * @return */ boolean delPage(Map param); /** * 更新默认页面 * @param param * @return */ boolean updateDefaultPage(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/module/ISysModuleService.java
Java
oos
1,526
package com.znzx.system.tree; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("SysTreeServiceImpl") public class SysTreeServiceImpl implements ISysTreeService { private ISysTreeDao sysTreeDao; @Override public List getTreeByRole(Map param) { return this.sysTreeDao.getTreeByRole(param); } public ISysTreeDao getSysTreeDao() { return sysTreeDao; } @Resource(name="SysTreeDaoImpl") public void setSysTreeDao(ISysTreeDao sysTreeDao) { this.sysTreeDao = sysTreeDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/tree/SysTreeServiceImpl.java
Java
oos
606
package com.znzx.system.tree; import java.util.List; import java.util.Map; public interface ISysTreeDao { /** * 根据权限列表创建菜单树 * @param list * @return */ List getTreeByRole(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/tree/ISysTreeDao.java
Java
oos
231
package com.znzx.system.tree; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.thoughtworks.xstream.XStream; import com.znzx.common.BaseAction; import com.znzx.constant.Constant; import com.znzx.pojo.tree.TreeInfo; import com.znzx.pojo.tree.TreeRoot; @Scope("prototype") @Component("SysTreeAction") public class SysTreeAction extends BaseAction { private ISysTreeService sysTreeService; public String getTreeByRole() { Map session = this.getSession(); List roleList = (List)session.get("roleList"); List moduleList = this.sysTreeService.getTreeByRole(new HashMap()); TreeRoot treeRoot = this.getTreeModule(roleList, moduleList); String xmlBody = this.getXmlByModule(treeRoot); try { this.getResponse().getWriter().write(Constant.XML_HEAD+xmlBody); } catch (IOException e) { e.printStackTrace(); } return this.SUCCESS; } public TreeRoot getTreeModule(List roleList, List moduleList){ TreeRoot treeRoot = new TreeRoot(); return treeRoot; } public String getXmlByModule(TreeRoot treeRoot){ XStream xstream = new XStream(); xstream.processAnnotations(TreeRoot.class); xstream.processAnnotations(TreeInfo.class); String xml = xstream.toXML(treeRoot); return xml; } public ISysTreeService getSysTreeService() { return sysTreeService; } @Resource(name="SysTreeServiceImpl") public void setSysTreeService(ISysTreeService sysTreeService) { this.sysTreeService = sysTreeService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/tree/SysTreeAction.java
Java
oos
1,709
package com.znzx.system.tree; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("SysTreeDaoImpl") public class SysTreeDaoImpl extends BaseSqlMapClientDaoSupport implements ISysTreeDao { @Override public List getTreeByRole(Map param) { return this.getSqlMapClientTemplate().queryForList("getTreeByRole", param); } }
zzbasepro
trunk/basepro/src/com/znzx/system/tree/SysTreeDaoImpl.java
Java
oos
517
package com.znzx.system.tree; import java.util.List; import java.util.Map; public interface ISysTreeService { /** * 根据权限列表创建菜单树 * @param list * @return */ List getTreeByRole(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/tree/ISysTreeService.java
Java
oos
235
package com.znzx.system.type; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; import com.znzx.system.tree.ISysTreeDao; @Component("SysTypeServiceImpl") public class SysTypeServiceImpl implements ISysTypeService { private ISysTypeDao sysTypeDao; @Override public List getTypeList(Map param) { return this.sysTypeDao.getTypeList(param); } @Override public boolean addType(Map param) { return this.sysTypeDao.addType(param); } @Override public Map getTypeInfo(Map param) { return this.sysTypeDao.getTypeInfo(param); } @Override public boolean updateType(Map param) { return this.sysTypeDao.updateType(param); } @Override public boolean updateTypeOrder(Map param) { return this.sysTypeDao.updateTypeOrder(param); } @Override public boolean updateTypeState(Map param) { return this.sysTypeDao.updateTypeState(param); } @Override public boolean delType(Map param) { String [] td = ((String)param.get("tcodes")).split(","); for(int i = 0; i < td.length; i++){ param.put("type_code", td[i] + "%"); this.sysTypeDao.delType(param); } return true; } @Override public Map getTypeChildMaxCode(Map param) { return this.sysTypeDao.getTypeChildMaxCode(param); } public ISysTypeDao getSysTypeDao() { return sysTypeDao; } @Resource(name="SysTypeDaoImpl") public void setSysTypeDao(ISysTypeDao sysTypeDao) { this.sysTypeDao = sysTypeDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/type/SysTypeServiceImpl.java
Java
oos
1,550
package com.znzx.system.type; import java.util.List; import java.util.Map; public interface ISysTypeService { /** * 获得类型列表 * @return */ public List getTypeList(Map param); /** * 添加类型 * @return */ public boolean addType(Map param); /** * 更新类型 * @return */ public boolean updateType(Map param); /** * 获得类型详情 * @return */ public Map getTypeInfo(Map param); /** * 更新类型状态 * @return */ public boolean updateTypeState(Map param); /** * 类型排序 * @return */ public boolean updateTypeOrder(Map param); /** * 获得类型的code最大类型信息 * @param param * @return */ public Map getTypeChildMaxCode(Map param); /** * 删除栏目 * @param param * @return */ public boolean delType(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/type/ISysTypeService.java
Java
oos
868
package com.znzx.system.type; import java.util.List; import java.util.Map; public interface ISysTypeDao { /** * 获得类型列表 * @return */ public List getTypeList(Map param); /** * 添加类型 * @return */ public boolean addType(Map param); /** * 更新类型 * @return */ public boolean updateType(Map param); /** * 获得类型详情 * @return */ public Map getTypeInfo(Map param); /** * 更新类型状态 * @return */ public boolean updateTypeState(Map param); /** * 类型排序 * @return */ public boolean updateTypeOrder(Map param); /** * 获得类型的code最大类型信息 * @param param * @return */ public Map getTypeChildMaxCode(Map param); /** * 删除栏目 * @param param * @return */ public boolean delType(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/type/ISysTypeDao.java
Java
oos
867
package com.znzx.system.type; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseAction; import com.znzx.util.StrUtil; @Scope("prototype") @Component("SysTypeAction") public class SysTypeAction extends BaseAction { private ISysTypeService sysTypeService; /** * 获得类型列表 * @return */ public String getTypeList(){ List typeList = this.sysTypeService.getTypeList(this.getParam()); this.put("typeList", typeList); return this.re(true); } /** * 添加类型 * @return */ public String addType(){ Map<String, String> mp = this.sysTypeService.getTypeChildMaxCode(this.getParam()); if(mp.get("type_code") == null || "".equals(mp.get("type_code").toString().trim())){ this.getParam().put("type_code", this.getParam().get("upcode")+StrUtil.StringAddChild(3)); }else{ this.getParam().put("type_code", StrUtil.StringAdd(mp.get("type_code").toString(), 3)); } boolean flag = this.sysTypeService.addType(this.getParam()); return this.refresh("添加", flag); } /** * 更新类型 * @return */ public String updateType(){ boolean flag = this.sysTypeService.updateType(this.getParam()); return this.refresh("修改", flag); } /** * 获得类型详情 * @return */ public String getTypeInfo(){ Map mp = this.sysTypeService.getTypeInfo(this.getParam()); this.put("typeInfo", mp); return this.re(true); } /** * 更新类型状态 * @return */ public String updateTypeState(){ this.sysTypeService.updateTypeState(this.getParam()); return this.re(true); } /** * 删除类型 * @return */ public String delType(){ this.sysTypeService.delType(this.getParam()); return this.re(true); } /** * 类型排序 * @return */ public String updateTypeOrder(){ return this.re(true); } public ISysTypeService getSysTypeService() { return sysTypeService; } @Resource(name="SysTypeServiceImpl") public void setSysTypeService(ISysTypeService sysTypeService) { this.sysTypeService = sysTypeService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/type/SysTypeAction.java
Java
oos
2,260
package com.znzx.system.type; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("SysTypeDaoImpl") public class SysTypeDaoImpl extends BaseSqlMapClientDaoSupport implements ISysTypeDao { @Override public List getTypeList(Map param) { return this.queryForList(param); } @Override public boolean addType(Map param) { this.insert(param, new String[]{"id"}, new String[]{"create_time"}); return true; } @Override public Map getTypeInfo(Map param) { return (Map)this.queryForObject(param); } @Override public boolean updateType(Map param) { return this.updateB(param); } @Override public boolean updateTypeOrder(Map param) { return this.updateB(param); } @Override public boolean updateTypeState(Map param) { return this.updateB(param); } @Override public Map getTypeChildMaxCode(Map param) { return (Map)this.queryForObject(param); } @Override public boolean delType(Map param) { return this.updateB(param); } }
zzbasepro
trunk/basepro/src/com/znzx/system/type/SysTypeDaoImpl.java
Java
oos
1,187
package com.znzx.system.role; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseAction; import com.znzx.common.grid.IGridTool; import com.znzx.common.grid.SimpleGridTool; import com.znzx.constant.Constant; import com.znzx.pojo.grid.ColType; import com.znzx.util.StrUtil; @Scope("prototype") @Component("SysRoleAction") public class SysRoleAction extends BaseAction { private ISysRoleService sysRoleService; /** * 获得角色详情 * @return */ public String getRoleInfo(){ Map mp = this.sysRoleService.getRoleInfo(this.getParam()); this.put("roleInfo", mp); return this.re(true); } /** * 添加角色 * @return */ public String addRole(){ boolean flag = this.sysRoleService.addRole(this.getParam()); return this.refresh("添加", flag); } /** * 修改角色 * @return */ public String updateRole(){ boolean flag = this.sysRoleService.updateRole(this.getParam()); return this.refresh("修改", flag); } /** * 删除角色 * @return */ public String delRole(){ this.splitIds("rids", "strId"); boolean flag = this.sysRoleService.delRole(this.getParam()); return this.re(flag); } /** * 获得角色列表XML形式 * @return */ public String getRoleXmlList(){ List roleList = this.sysRoleService.getRoleList(this.getParam()); IGridTool gridTool = new SimpleGridTool(); List<ColType> typeList = new ArrayList<ColType>(); ColType colType = new ColType("role_name"); typeList.add(colType); colType = new ColType("create_time"); typeList.add(colType); colType = new ColType("rids",Constant.CHECKBOX,"id"); typeList.add(colType); colType = new ColType("id",false); colType.setId(true); typeList.add(colType); String xmlBody = gridTool.createGridXml(roleList, typeList, true); try { this.getResponse().getWriter().write(Constant.XML_HEAD+xmlBody); } catch (IOException e) { throw new RuntimeException(e); } return null; } /** * 得到角色列表返回List * @return */ public String getRoleList(){ List roleList = this.sysRoleService.getRoleList(this.getParam()); this.put("roleList", roleList); return this.SUCCESS; } /** * 获得角色权限关联信息 * @return */ public String getRoleRightList(){ List roleRightList = this.sysRoleService.getRoleRightList(this.getParam()); this.put("roleRightList", roleRightList); return this.re(true); } /** * 更新角色与权限关系 * @return */ public String updateRoleRight(){ boolean flag = this.sysRoleService.updateRoleRight(this.getParam()); return this.re(flag); } public ISysRoleService getSysRoleService() { return sysRoleService; } @Resource(name="SysRoleServiceImpl") public void setSysRoleService(ISysRoleService sysRoleService) { this.sysRoleService = sysRoleService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/role/SysRoleAction.java
Java
oos
3,158
package com.znzx.system.role; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("SysRoleServiceImpl") public class SysRoleServiceImpl implements ISysRoleService { private ISysRoleDao sysRoleDao; @Override public boolean addRole(Map param) { return this.sysRoleDao.addRole(param); } @Override public boolean delRole(Map param) { return this.sysRoleDao.delRole(param); } @Override public List getRoleList(Map param) { return this.sysRoleDao.getRoleList(param); } @Override public List getRoleRightList(Map param) { return this.sysRoleDao.getRoleRightList(param); } @Override public boolean updateRole(Map param) { return this.sysRoleDao.updateRole(param); } @Override public boolean updateRoleRight(Map param) { return this.sysRoleDao.updateRoleRight(param); } @Override public Map getRoleInfo(Map param) { return this.sysRoleDao.getRoleInfo(param); } public ISysRoleDao getSysRoleDao() { return sysRoleDao; } @Resource(name="SysRoleDaoImpl") public void setSysRoleDao(ISysRoleDao sysRoleDao) { this.sysRoleDao = sysRoleDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/role/SysRoleServiceImpl.java
Java
oos
1,246
package com.znzx.system.role; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; import com.znzx.util.StrUtil; @Repository() @Component("SysRoleDaoImpl") public class SysRoleDaoImpl extends BaseSqlMapClientDaoSupport implements ISysRoleDao { @Override public boolean addRole(Map param) { this.insert("addRole", param, new String[]{"id"}, new String[]{"create_time"}); return true; } @Override public boolean delRole(Map param) { return this.updateB(param); } @Override public List getRoleList(Map param) { return this.queryForListPage("getRoleList", param); } @Override public List getRoleRightList(Map param) { return this.queryForList("getRoleRightList", param); } @Override public boolean updateRole(Map param) { return this.updateB("updateRole", param); } @Override public boolean updateRoleRight(Map param) { String rightIds =(String) param.get("rids"); String[] arrRightId = rightIds.split(","); this.deleteB("delRoleRight", param); // int i = 0; for(String right_id : arrRightId){ // i++; // if(i == 2){ // throw new RuntimeException(); // } param.put("right_id", right_id.trim()); this.insert("addRoleRight", param, new String[]{"id"}, new String[]{"create_time"}); } return true; } @Override public Map getRoleInfo(Map param) { return (Map)this.queryForObject(param); } }
zzbasepro
trunk/basepro/src/com/znzx/system/role/SysRoleDaoImpl.java
Java
oos
1,584
package com.znzx.system.role; import java.util.List; import java.util.Map; public interface ISysRoleDao { /** * 添加角色 * @param param * @return */ boolean addRole(Map param); /** * 修改角色 * @param param * @return */ boolean updateRole(Map param); /** * 删除角色 * @param param * @return */ boolean delRole(Map param); /** * 获得角色列表 * @param param * @return */ List getRoleList(Map param); /** * 得到角色下权限列表 * @param param * @return */ List getRoleRightList(Map param); /** * 更新角色与权限关系表 * @param param * @return */ boolean updateRoleRight(Map param); /** * 获得角色详情 * @param param * @return */ public Map getRoleInfo(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/role/ISysRoleDao.java
Java
oos
824
package com.znzx.system.role; import java.util.List; import java.util.Map; public interface ISysRoleService { /** * 添加角色 * @param param * @return */ boolean addRole(Map param); /** * 修改角色 * @param param * @return */ boolean updateRole(Map param); /** * 删除角色 * @param param * @return */ boolean delRole(Map param); /** * 获得角色列表 * @param param * @return */ List getRoleList(Map param); /** * 得到角色下权限列表 * @param param * @return */ List getRoleRightList(Map param); /** * 更新角色与权限关系表 * @param param * @return */ boolean updateRoleRight(Map param); /** * 获得角色详情 * @param param * @return */ public Map getRoleInfo(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/role/ISysRoleService.java
Java
oos
834
package com.znzx.system.acquisition.job; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseSpringBean; import com.znzx.job.service.IJobDetailService; import com.znzx.job.service.IJobService; import com.znzx.system.acquisition.IAcquisitionService; @Scope("prototype") @Component("AcquisitionJobDetailServiceImpl") public class AcquisitionJobDetailServiceImpl implements IJobDetailService { protected final Log logger = LogFactory.getLog(AcquisitionJobDetailServiceImpl.class); @SuppressWarnings("unchecked") @Override public Object init(Object obj) { logger.info("----采集任务查询----"); Map<String, String> mp = (Map)obj; IAcquisitionService acquisitionService = (IAcquisitionService) BaseSpringBean.getSpringBean("AcquisitionServiceImpl"); Map map = acquisitionService.getAcquisitionInfoByDetailId(mp); return map; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/job/AcquisitionJobDetailServiceImpl.java
Java
oos
1,064
package com.znzx.system.acquisition.job.thread; import java.util.Map; import java.util.concurrent.Callable; import com.znzx.system.acquisition.job.AcquisitionToolImpl; public class ImageCallable<T> implements Callable { private AcquisitionToolImpl ati = null; private String localPath = null; private String imgUrl = null; public ImageCallable(AcquisitionToolImpl ati, String localPath, String imgUrl){ this.ati = ati; this.localPath = localPath; this.imgUrl = imgUrl; } @SuppressWarnings("unused") private ImageCallable(){} @Override public T call() { Map<String,String> imgMap = ati.getPageImg(this.localPath, this.imgUrl); return (T) imgMap; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/job/thread/ImageCallable.java
Java
oos
714
package com.znzx.system.acquisition.job; import java.util.Map; public interface IAcquisitionTool { void AcquisitionMain(Map jobMap); }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/job/IAcquisitionTool.java
Java
oos
150
package com.znzx.system.acquisition.job; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import javax.annotation.Resource; import javax.imageio.ImageIO; import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.params.HttpMethodParams; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.constant.Constant; import com.znzx.pojo.KeySortEntity; import com.znzx.system.acquisition.IAcquisitionService; import com.znzx.system.acquisition.job.thread.ImageCallable; import com.znzx.util.DateUtil; import com.znzx.util.IOTool; import com.znzx.util.RegTool; import com.znzx.util.StrUtil; import com.znzx.util.UUIDGenerator; @Scope("prototype") @Component("AcquisitionToolImpl") public class AcquisitionToolImpl implements IAcquisitionTool { protected final Log logger = LogFactory.getLog(AcquisitionToolImpl.class); private String encoding; private int encodingNum = -1; private int encodingMaxNum = -1; private boolean flagFristListPageUrl = false; private String path = null; private String referer = null; private IAcquisitionService acquisitionService; public AcquisitionToolImpl() { if (Constant.ACQUISITION_ENCODING_NUM != null && !"".equals(Constant.ACQUISITION_ENCODING_NUM.trim())) { encodingNum = 0; encodingMaxNum = Integer .parseInt(Constant.ACQUISITION_ENCODING_NUM); } } /** * 读取url的body内容(返回byte[]类型) * * @param url * @return */ public byte[] getUrlContent(String url) { byte[] responseBody = null; GetMethod getMethod = null; HttpClient httpClient = new HttpClient(); httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(60000); httpClient.getHttpConnectionManager().getParams().setSoTimeout(60000); try { url = url.trim(); if(url.indexOf("\"") != -1){ url = url.substring(0, url.indexOf("\"")); } if(url.indexOf("'") != -1){ url = url.substring(0, url.indexOf("'")); } if(url.indexOf(" ") != -1){ url = url.substring(0, url.indexOf(" ")); } getMethod = new GetMethod(url); if(this.referer != null && !"".equals(referer.trim())){ getMethod.addRequestHeader("referer", this.referer); } getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler()); int statusCode = httpClient.executeMethod(getMethod); if (statusCode == HttpStatus.SC_NOT_FOUND || statusCode == HttpStatus.SC_FORBIDDEN) { return responseBody; } if (statusCode == HttpStatus.SC_MOVED_PERMANENTLY) { logger.info("Method failed: " + getMethod.getStatusLine()); } if (statusCode == HttpStatus.SC_MOVED_PERMANENTLY || statusCode == HttpStatus.SC_MOVED_TEMPORARILY) { Header locationHeader = getMethod.getResponseHeader("location"); String location = null; if (locationHeader != null) { location = locationHeader.getValue(); logger.info("网页重定向到:" + location); } else { logger.error("页面为空"); } } responseBody = getMethod.getResponseBody(); } catch (HttpException e) { logger.error("描述在处理 HTTP 请求期间发生的异常。", e); } catch (IOException e) { logger.error("IO异常", e); } finally { if(getMethod != null){ getMethod.releaseConnection(); } } return responseBody; } /** * 读取url的body内容(返回String类型) * * @param url * @return */ public String getUrlContentStr(String url) { String contentStr = null; byte[] responseBody = this.getUrlContent(url); if (responseBody != null) { try { if (this.encoding != null && !"".equals(this.encoding)) { contentStr = new String(responseBody, this.encoding); } else { contentStr = new String(responseBody); if (encodingNum == -1 || encodingNum < encodingMaxNum) { for (String encodingTmp : Constant.ACQUISITION_ENCODING) { int i = StrUtil.indexOf(contentStr, encodingTmp); if (i != -1) { this.encoding = encodingTmp; contentStr = new String(responseBody, this.encoding); break; } } } } } catch (UnsupportedEncodingException e) { } } return contentStr; } /** * 将图片保存到对应的目录下 * * @param path * 保存的目录路径 * @param url * 图片url * @return */ public Map<String, String> getPageImg(String path, String url) { Map<String,String> mp = null; BufferedImage sourceImg = null; FileOutputStream output = null; try { byte[] responseBody = this.getUrlContent(url); if (responseBody != null) { File storeFile = IOTool.getFolderAndFile(path); output = new FileOutputStream(storeFile); output.write(responseBody); sourceImg = ImageIO.read(storeFile); mp = new HashMap<String,String>(); if(sourceImg != null){ mp.put("source_img_url", url); mp.put("local_img_path", path); mp.put("img_height", String.valueOf(sourceImg.getHeight())); mp.put("img_width", String.valueOf(sourceImg.getWidth())); mp.put("img_size", String.valueOf(responseBody.length)); } } else { logger.error("图片不存在: " + url); } } catch (IOException e) { e.printStackTrace(); } finally { try { if(sourceImg != null){ sourceImg.flush(); } if (output != null) { output.flush(); output.close(); } } catch (IOException e) { e.printStackTrace(); } } return mp; } /** * 采集详情页面入口 * * @param jobMap * @param mp */ @SuppressWarnings("unchecked") public void pageMain(Map<?, ?> jobMap, Map<String, String> mp) { String pageB = (String) jobMap.get("pageb"); String pageE = (String) jobMap.get("pagee"); String pageBLink = jobMap.get("pageblink") == null ? "" : (String) jobMap.get("pageblink"); String pageUrl = (String) mp.get("pageUrl"); //logger.info("开始采集内容页-B:===:" + pageUrl); String content = this.getUrlContentStr(pageUrl); //logger.info("开始采集内容页-E:===:" + pageUrl); HashMap<String, Object> saveData = new HashMap<String, Object>(); if (content != null) { // 获得列表ID String acquisitionDataId = (String) mp.get("data_id"); int bNum = content.indexOf(pageB); int eNum = content.indexOf(pageE); if (bNum != -1 && eNum != -1) { String tmpContent = content.substring(bNum + pageB.length(), eNum); // /////////////采集图片开始////////////// String pageImgLink = (String) jobMap.get("pageimglink"); if (pageImgLink != null && !"".equals(pageImgLink)) { //logger.info("采集图片---开始"); List<String> list = RegTool.findRegContent(tmpContent, pageImgLink, "{img}"); if (list != null && list.size() > 0) { List<Map<String, String>> imgList = new ArrayList<Map<String,String>>(list.size()); String pUuid = UUIDGenerator.getUUID(); ExecutorService exec = Executors.newCachedThreadPool(); ArrayList<Future<Map<String, String>>> results = new ArrayList<Future<Map<String, String>>>(); for (String s : list) { String uuid = UUIDGenerator.getUUID(); String[] lz = s.split("\\."); String imgUrl = pageBLink + s; String localPath = this.path + File.separator + pUuid + File.separator + uuid + "." + lz[lz.length - 1]; //logger.info("开始采集图片-B:===:" + imgUrl); // Map<String,String> imgMap = this.getPageImg(localPath, imgUrl); results.add(exec.submit(new ImageCallable<Map<String,String>>(this, localPath, imgUrl))); //logger.info("开始采集图片-E:===:" + imgUrl); } try{ for(Future<Map<String, String>> fs : results){ Map imgData = fs.get();//可以调用很多方法,包括是否工作等等 if (imgData != null) { imgData.put("data_id", acquisitionDataId); imgList.add(imgData); } } }catch(Exception e){ logger.error("获得线程返回值出错", e); e.printStackTrace(); }finally{ exec.shutdown(); } saveData.put("imgList", imgList); } else { logger.error("采集内容页面未取得图片详情地址"); } //logger.info("采集图片---结束"); } // /////////////采集图片结束////////////// // /////////////采集标题开始////////////// String title = (String) jobMap.get("title"); if (title != null && !"".equals(title)) { String rTitle = RegTool.findRegContentFirst(tmpContent, title, "{title}"); //logger.info("title:[" + rTitle + "]"); saveData.put("title", rTitle); } // /////////////采集标题结束////////////// // /////////////采集作者开始////////////// String author = (String) jobMap.get("author"); if (author != null && !"".equals(author)) { String rAuthor = RegTool.findRegContentFirst(tmpContent, author, "{author}"); //logger.info("source_author:[" + rAuthor + "]"); saveData.put("source_author", rAuthor); } // /////////////采集作者结束////////////// // /////////////采集时间开始////////////// String time = (String) jobMap.get("time"); if (time != null && !"".equals(time)) { String rTime = RegTool.findRegContentFirst(tmpContent, time, "{time}"); //logger.info("source_time:[" + rTime + "]"); saveData.put("source_time", rTime); } // /////////////采集时间结束////////////// // /////////////采集内容开始////////////// String contentStr = (String) jobMap.get("content"); if (contentStr != null && !"".equals(contentStr)) { String rContentStr = RegTool.findRegContentFirst(tmpContent, contentStr, "{content}"); //logger.info("source_content:[" + rContentStr + "]"); saveData.put("source_content", rContentStr); } // /////////////采集内容结束////////////// saveData.put("data_id", acquisitionDataId); this.acquisitionService.saveAcquisitionDataChild(saveData); //logger.info(pageUrl + "-内容页采集结束"); String lastHtml = (String) jobMap.get("pagesplit"); if (lastHtml != null && !"".equals(lastHtml)) { int index = pageUrl.lastIndexOf(lastHtml); String leftStr = pageUrl.substring(0, index); int len = leftStr.length(); String nowNum = ""; for (int i = len - 1; i >= 0; i--) { String s = String.valueOf(leftStr.charAt(i)); if (StrUtil.isNumeric(s)) { if ("".equals(nowNum)) { nowNum = s; } else { nowNum = s + nowNum; } } else { len = i + 1; break; } } int newNum = 1 + Integer.parseInt(nowNum); leftStr = leftStr.substring(0, len); pageUrl = leftStr + newNum + lastHtml; mp.put("pageUrl", pageUrl); this.pageMain(jobMap, mp); } } else { logger.error("内容页开始部分或结束部分不存在: bNum=" + bNum + " eNum=" + eNum + " pageB=" + pageB + ";pageE=" + pageE); } this.encodingNum++; } else { logger.error("内容页不存在: " + pageUrl); } } /** * 采集列表也开始入口 * * @param jobMap * @param num * @return */ public boolean listMain(Map<?, ?> jobMap, int num) { String listPage = (String) jobMap.get("listpage"); String listBLink = (String) jobMap.get("listblink"); String listPageENum = (String) jobMap.get("listpageenum"); //logger.info("listPageENum:===:"+listPageENum); if (listPageENum != null && !"".equals(listPageENum.trim())) { if (Integer.parseInt(listPageENum) < num) { return true; } } String listPageTemp = ""; if (flagFristListPageUrl) { listPageTemp = (String) jobMap.get("fristlistpage"); flagFristListPageUrl = false; } else { listPageTemp = listPage.replace("{index}", String.valueOf(num)); } logger.info("开始采集列表页:===:" + listPageTemp); String content = this.getUrlContentStr(listPageTemp); if (content != null) { String listB = (String) jobMap.get("listb"); String listE = (String) jobMap.get("liste"); int bNum = content.indexOf(listB); int eNum = content.indexOf(listE); if (bNum != -1 && eNum != -1) { String tmpContent = content.substring(bNum + listB.length(), eNum); String listLink = (String) jobMap.get("listlink"); String[] keyArr = new String[] {"{page}","{title}"}; List<KeySortEntity> keyList = KeySortEntity.CreateKeySortList(keyArr); List<List<String>> rListLink = RegTool.findRegContentList(tmpContent, listLink, keyList); Collections.sort(keyList); if (rListLink != null && rListLink.size() > 0) { for (int i = 0; i < rListLink.size(); i++) { List<String> li = rListLink.get(i); Map<String, String> listMap = new HashMap<String, String>(); KeySortEntity kse = keyList.get(0); String url = ""; if("{page}".equals(kse.getKey())){ url = li.get(0); listMap.put("source_title", li.get(1)); }else{ url = li.get(1); listMap.put("source_title", li.get(0)); } url = listBLink + url; listMap.put("source_url", url); boolean isRepeat = this.acquisitionService.isRepeatAcquisitionPageUrl(listMap); if(isRepeat){ logger.error("采集内容页重复:[" + url + "]"); continue; } String acquisitionId = (String)jobMap.get("id"); listMap.put("acquisition_id", acquisitionId); String dataTypeId = (String) jobMap.get("data_type_id"); listMap.put("data_type_id", dataTypeId); // 保存采集列表信息 boolean flag = this.acquisitionService .saveAcquisitionData(listMap); if (flag) { Map<String,String> tmpMap = new HashMap<String,String>(); tmpMap.put("pageUrl", url); tmpMap.put("data_id", listMap.get("id")); this.pageMain(jobMap, tmpMap); } } } else { logger.error("采集列表页面未取得详情页面地址地址"); } } else { logger.error("列表页开始部分或结束部分不存在: bNum=" + bNum + " eNum=" + eNum + " listB=" + listB + ";listE=" + listE); } //logger.info(listPageTemp + "-列表页采集结束"); this.listMain(jobMap, 1 + num); } else { logger.error("列表页不存在: " + listPageTemp); } this.encodingNum++; return true; } /** * 采集入口 * * @param jobMap */ @SuppressWarnings({"unchecked" }) public void AcquisitionMain(Map jobMap) { Date bDate= DateUtil.getDateObj(); logger.info("采集开始 "); String tmpReferer = (String)jobMap.get("referer"); if(tmpReferer != null && !"".equals(tmpReferer.trim())){ this.referer = tmpReferer; } String encodingTmp = (String) jobMap.get("encoding"); if (encodingTmp != null && !"".equals(encodingTmp.trim())) { this.encoding = encodingTmp; } String fristListPage = (String) jobMap.get("fristlistpage"); String listPageBNum = (String) jobMap.get("listpagebnum"); int pageNum = 0; if (listPageBNum != null && !"".equals(listPageBNum.trim())) { pageNum = Integer.parseInt(listPageBNum); } if (fristListPage != null && !"".equals(fristListPage.trim())) { flagFristListPageUrl = true; } if (this.path == null) { String listPage = (String) jobMap.get("listpage"); if (listPage.contains("://")) { String[] urlArr = listPage.split("://"); if (urlArr[1].contains("/")) { int num = urlArr[1].indexOf("/"); String url = urlArr[1].substring(0, num); this.path = IOTool.getResourcePath(Constant.UPLOAD_PATH + url); } }else{ if (listPage.contains("/")) { int num = listPage.indexOf("/"); String url = listPage.substring(0, num); this.path = IOTool.getResourcePath(Constant.UPLOAD_PATH + url); } } } //logger.info("this.path====["+this.path+"]"); this.listMain(jobMap, pageNum); logger.info("采集结束"); Date eDate= DateUtil.getDateObj(); long l = DateUtil.getDiff(bDate, eDate); logger.info("采集用时:[" + DateUtil.getHour(l) + "]"); } public IAcquisitionService getAcquisitionService() { return acquisitionService; } @Resource(name = "AcquisitionServiceImpl") public void setAcquisitionService(IAcquisitionService acquisitionService) { this.acquisitionService = acquisitionService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/job/AcquisitionToolImpl.java
Java
oos
17,733
package com.znzx.system.acquisition.job; import java.util.Iterator; import java.util.Map; import java.util.Set; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import com.znzx.common.BaseSpringBean; import com.znzx.system.acquisition.IAcquisitionService; public class AcquisitionJobExecutives implements Job { @Override public void execute(JobExecutionContext jec) throws JobExecutionException { System.out.println("<<<定时任务采集任务 - 开始执行>>>"); Map jobMap = (Map) jec.getJobDetail().getJobDataMap().get("_JOB_DETAIL"); IAcquisitionTool acquisitionTool = (IAcquisitionTool) BaseSpringBean.getSpringBean("AcquisitionToolImpl"); acquisitionTool.AcquisitionMain(jobMap); } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/job/AcquisitionJobExecutives.java
Java
oos
789
package com.znzx.system.acquisition; import java.util.List; import java.util.Map; public interface IAcquisitionDao { /** * 保存采集规则内容 * @param param * @return */ boolean saveAcquisition(Map param); /** * 更新采集规则内容 * @param param * @return */ boolean updateAcquisition(Map param); /** * 得到采集列表 * @param param * @return */ List getAcquisitionList(Map param); /** * 得到采集详情 * @param param * @return */ Map getAcquisitionInfo(Map param); /** * 删除采集 * @param param * @return */ boolean delAcquisition(Map param); /** * 根据任务细节ID得到对应的采集信息 * @param param * @return */ Map getAcquisitionInfoByDetailId(Map param); /** * 复制采集规则 * @param param * @return */ boolean copyAcquisition(Map param); /** * 保存采集列表信息 * @param param * @return */ boolean saveAcquisitionData(Map param); /** * 保存采集子信息(内容,子标题,图片) * @param param * @return */ boolean saveAcquisitionDataChild(Map param); /** * 判断采集详情页是否重复 * @param url * @return true重复;false不重复 */ boolean isRepeatAcquisitionPageUrl(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/IAcquisitionDao.java
Java
oos
1,319
package com.znzx.system.acquisition; import java.util.List; import java.util.Map; public interface IAcquisitionService { /** * 保存采集规则内容 * @param param * @return */ boolean saveAcquisition(Map param); /** * 更新采集规则内容 * @param param * @return */ boolean updateAcquisition(Map param); /** * 得到采集列表 * @param param * @return */ List getAcquisitionList(Map param); /** * 得到采集详情 * @param param * @return */ Map getAcquisitionInfo(Map param); /** * 删除采集 * @param param * @return */ boolean delAcquisition(Map param); /** * 根据任务细节ID得到对应的采集信息 * @param param * @return */ Map getAcquisitionInfoByDetailId(Map param); /** * 复制采集规则 * @param param * @return */ boolean copyAcquisition(Map param); /** * 保存采集列表信息 * @param param * @return */ boolean saveAcquisitionData(Map param); /** * 保存采集子信息(内容,子标题,图片) * @param param * @return */ boolean saveAcquisitionDataChild(Map param); /** * 判断采集详情页是否重复 * @param url * @return true重复;false不重复 */ boolean isRepeatAcquisitionPageUrl(Map param); }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/IAcquisitionService.java
Java
oos
1,326
package com.znzx.system.acquisition; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import com.znzx.common.BaseAction; import com.znzx.job.SchedulerUtil; @Scope("prototype") @Component("AcquisitionAction") public class AcquisitionAction extends BaseAction { private IAcquisitionService acquisitionService; /** * 新增采集信息 * @return */ public String saveAcquisition(){ boolean flag = this.acquisitionService.saveAcquisition(this.getParam()); return this.refresh("保存",flag); } /** * 修改采集信息 * @return */ public String updateAcquisition(){ boolean flag = this.acquisitionService.updateAcquisition(this.getParam()); SchedulerUtil.updateJobByInfoId(this.get("id")); return this.refresh("成功!"); } /** * 获得采集信息列表 * @return */ public String getAcquisitionList(){ List acquisitionList = this.acquisitionService.getAcquisitionList(this.getParam()); this.put("acquisitionList", acquisitionList); return this.re(true); } /** * 获取采集详情 * @return */ public String getAcquisitionInfo(){ Map acquisitionMap = this.acquisitionService.getAcquisitionInfo(this.getParam()); this.put("acquisitionMap", acquisitionMap); return this.re(true); } /** * 删除采集 * @return */ public String delAcquisition(){ boolean flag = true; String ids = this.getParam().get("aids"); if(ids != null && !"".equals(ids.trim())){ this.splitIds("aids"); flag = this.acquisitionService.delAcquisition(this.getParam()); SchedulerUtil.updateJobByInfoId(this.get("strId")); } return this.re(flag); } /** * 复制采集规则 * @return */ public String copyAcquisition(){ boolean flag = this.acquisitionService.copyAcquisition(this.getParam()); return this.re(flag); } public IAcquisitionService getAcquisitionService() { return acquisitionService; } @Resource(name="AcquisitionServiceImpl") public void setAcquisitionService(IAcquisitionService acquisitionService) { this.acquisitionService = acquisitionService; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/AcquisitionAction.java
Java
oos
2,301
package com.znzx.system.acquisition; import java.sql.SQLException; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; @Repository() @Component("AcquisitionDaoImpl") public class AcquisitionDaoImpl extends BaseSqlMapClientDaoSupport implements IAcquisitionDao { @Override public boolean delAcquisition(Map param) { return this.updateB("delAcquisition", param); } @Override public Map getAcquisitionInfo(Map param) { return (Map)this.queryForObject("getAcquisitionInfo",param); } @Override public List getAcquisitionList(Map param) { return this.queryForListPage(param); } @Override public boolean saveAcquisition(Map param) { this.insert("saveAcquisition",param, new String[]{"id"}, new String[]{"createtime"}); return true; } @Override public boolean updateAcquisition(Map param) { this.update("updateAcquisition", param); return false; } @Override public Map getAcquisitionInfoByDetailId(Map param) { return (Map)this.queryForObject("getAcquisitionInfoByDetailId",param); } @Override public boolean copyAcquisition(Map param) { Map mp =this.getAcquisitionInfo(param); String acquisitionName = (String)param.get("acquisition_name"); mp.put("acquisition_name", acquisitionName); this.saveAcquisition(mp); return true; } @Override public boolean saveAcquisitionData(Map param) { this.insert("saveAcquisitionData", param, new String[]{"id"}, new String[]{"create_time"}); return true; } @Override public boolean saveAcquisitionDataChild(Map param) { this.insert("saveAcquisitionDataContent", param, new String[]{"id"}); String contentId = (String)param.get("id"); List<Map<String, String>> list = (List)param.get("imgList"); if(list != null && list.size() > 0){ for(Map<String, String> mp : list){ mp.put("data_content_id", contentId); this.insert("saveAcquisitionDataImg", mp, new String[]{"id"}); } } return true; } @Override public boolean isRepeatAcquisitionPageUrl(Map param) { Map<String, Long> mp = (Map<String, Long>)this.queryForObject(param); boolean flag = false; if(0 != mp.get("nums").longValue()){ flag = true; } return flag; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/AcquisitionDaoImpl.java
Java
oos
2,394
package com.znzx.system.acquisition; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Component; @Component("AcquisitionServiceImpl") public class AcquisitionServiceImpl implements IAcquisitionService { private IAcquisitionDao acquisitionDao; @Override public boolean delAcquisition(Map param) { return this.acquisitionDao.delAcquisition(param); } @Override public Map getAcquisitionInfo(Map param) { return this.acquisitionDao.getAcquisitionInfo(param); } @Override public List getAcquisitionList(Map param) { return this.acquisitionDao.getAcquisitionList(param); } @Override public boolean saveAcquisition(Map param) { return this.acquisitionDao.saveAcquisition(param); } @Override public boolean updateAcquisition(Map param) { return this.acquisitionDao.updateAcquisition(param); } @Override public Map getAcquisitionInfoByDetailId(Map param) { return this.acquisitionDao.getAcquisitionInfoByDetailId(param); } @Override public boolean saveAcquisitionData(Map param) { return this.acquisitionDao.saveAcquisitionData(param); } @Override public boolean saveAcquisitionDataChild(Map param) { return this.acquisitionDao.saveAcquisitionDataChild(param); } @Override public boolean copyAcquisition(Map param) { return this.acquisitionDao.copyAcquisition(param); } @Override public boolean isRepeatAcquisitionPageUrl(Map param) { return this.acquisitionDao.isRepeatAcquisitionPageUrl(param); } public IAcquisitionDao getAcquisitionDao() { return acquisitionDao; } @Resource(name="AcquisitionDaoImpl") public void setAcquisitionDao(IAcquisitionDao acquisitionDao) { this.acquisitionDao = acquisitionDao; } }
zzbasepro
trunk/basepro/src/com/znzx/system/acquisition/AcquisitionServiceImpl.java
Java
oos
1,822
package com.znzx.util; import java.io.Serializable; import java.text.ParseException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; /** * 日期操作工具类,主要实现了日期的常用操作。 * <p> * 在工具类中经常使用到工具类的格式化描述,这个主要是一个日期的操作类,所以日志格式主要使用 SimpleDateFormat的定义格式. * <p> * 格式的意义如下: 日期和时间模式 <br> * 日期和时间格式由日期和时间模式字符串指定。在日期和时间模式字符串中,未加引号的字母 'A' 到 'Z' 和 'a' 到 'z' * 被解释为模式字母,用来表示日期或时间字符串元素。文本可以使用单引号 (') 引起来,以免进行解释。"''" * 表示单引号。所有其他字符均不解释;只是在格式化时将它们简单复制到输出字符串,或者在分析时与输入字符串进行匹配。 * <p> * 定义了以下模式字母(所有其他字符 'A' 到 'Z' 和 'a' 到 'z' 都被保留): <br> * <table> * <tr> * <td>字母</td> * <td>日期或时间元素</td> * <td>表示</td> * <td>示例</td> * <td> * </tr> * <tr> * <td>G</td> * <td>Era</td> * <td>标志符</td> * <td>Text</td> * <td>AD</td> * <td> * </tr> * <tr> * <td>y</td> * <td>年</td> * <td>Year</td> * <td>1996;</td> * <td>96</td> * <td> * </tr> * <tr> * <td>M</td> * <td>年中的月份</td> * <td>Month</td> * <td>July;</td> * <td>Jul;</td> * <td>07 * </tr> * <tr> * <td>w</td> * <td>年中的周数</td> * <td>Number</td> * <td>27</td> * <td> * </tr> * <tr> * <td>W</td> * <td>月份中的周数</td> * <td>Number</td> * <td>2</td> * <td> * </tr> * <tr> * <td>D</td> * <td>年中的天数</td> * <td>Number</td> * <td>189</td> * <td> * </tr> * <tr> * <td>d</td> * <td>月份中的天数</td> * <td>Number</td> * <td>10</td> * <td> * </tr> * <tr> * <td>F</td> * <td>月份中的星期</td> * <td>Number</td> * <td>2</td> * <td> * </tr> * <tr> * <td>E</td> * <td>星期中的天数</td> * <td>Text</td> * <td>Tuesday;</td> * <td>Tue * </tr> * <tr> * <td>a</td> * <td>Am/pm</td> * <td>标记</td> * <td>Text</td> * <td>PM</td> * <td> * </tr> * <tr> * <td>H</td> * <td>一天中的小时数(0-23)</td> * <td>Number</td> * <td>0 * </tr> * <tr> * <td>k</td> * <td>一天中的小时数(1-24)</td> * <td>Number</td> * <td>24</td> * <td> * </tr> * <tr> * <td>K</td> * <td>am/pm</td> * <td>中的小时数(0-11)</td> * <td>Number</td> * <td>0</td> * <td> * </tr> * <tr> * <td>h</td> * <td>am/pm</td> * <td>中的小时数(1-12)</td> * <td>Number</td> * <td>12</td> * <td> * </tr> * <tr> * <td>m</td> * <td>小时中的分钟数</td> * <td>Number</td> * <td>30</td> * <td> * </tr> * <tr> * <td>s</td> * <td>分钟中的秒数</td> * <td>Number</td> * <td>55</td> * <td> * </tr> * <tr> * <td>S</td> * <td>毫秒数</td> * <td>Number</td> * <td>978</td> * <td> * </tr> * <tr> * <td>z</td> * <td>时区</td> * <td>General</td> * <td>time</td> * <td>zone</td> * <td>Pacific</td> * <td>Standard</td> * <td>Time;</td> * <td>PST;</td> * <td>GMT-08:00 * </tr> * <tr> * <td>Z</td> * <td>时区</td> * <td>RFC</td> * <td>822</td> * <td>time</td> * <td>zone</td> * <td>-0800</td> * <td> * </tr> * </table> * * 模式字母通常是重复的,其数量确定其精确表示: * */ public final class DateUtil implements Serializable { /** * */ private static final long serialVersionUID = -3098985139095632110L; private DateUtil() { } /** * 格式化日期显示格式 * * @param sdate * 原始日期格式 s - 表示 "yyyy-mm-dd" 形式的日期的 String 对象 * @param format * 格式化后日期格式 * @return 格式化后的日期显示 */ public static String dateFormat(String sdate, String format) { SimpleDateFormat formatter = new SimpleDateFormat(format); java.sql.Date date = java.sql.Date.valueOf(sdate); String dateString = formatter.format(date); return dateString; } /** * 求两个日期相差天数 * * @param sd * 起始日期,格式yyyy-MM-dd * @param ed * 终止日期,格式yyyy-MM-dd * @return 两个日期相差天数 */ public static long getIntervalDays(String sd, String ed) { return ((java.sql.Date.valueOf(ed)).getTime() - (java.sql.Date .valueOf(sd)).getTime()) / (3600 * 24 * 1000); } /** * 起始年月yyyy-MM与终止月yyyy-MM之间跨度的月数。 * * @param beginMonth * 格式为yyyy-MM * @param endMonth * 格式为yyyy-MM * @return 整数。 */ public static int getInterval(String beginMonth, String endMonth) { int intBeginYear = Integer.parseInt(beginMonth.substring(0, 4)); int intBeginMonth = Integer.parseInt(beginMonth.substring(beginMonth .indexOf("-") + 1)); int intEndYear = Integer.parseInt(endMonth.substring(0, 4)); int intEndMonth = Integer.parseInt(endMonth.substring(endMonth .indexOf("-") + 1)); return ((intEndYear - intBeginYear) * 12) + (intEndMonth - intBeginMonth) + 1; } /** * 根据给定的分析位置开始分析日期/时间字符串。例如,时间文本 "07/10/96 4:5 PM, PDT" 会分析成等同于 * Date(837039928046) 的 Date。 * * @param sDate * @param dateFormat * @return */ public static Date getDate(String sDate, String dateFormat) { SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); ParsePosition pos = new ParsePosition(0); return fmt.parse(sDate, pos); } /** * 取得当前日期的年份,以yyyy格式返回. * * @return 当年 yyyy */ public static String getCurrentYear() { return getFormatCurrentTime("yyyy"); } /** * 自动返回上一年。例如当前年份是2007年,那么就自动返回2006 * * @return 返回结果的格式为 yyyy */ public static String getBeforeYear() { String currentYear = getFormatCurrentTime("yyyy"); int beforeYear = Integer.parseInt(currentYear) - 1; return "" + beforeYear; } /** * 取得当前日期的月份,以MM格式返回. * * @return 当前月份 MM */ public static String getCurrentMonth() { return getFormatCurrentTime("MM"); } /** * 取得当前日期的天数,以格式"dd"返回. * * @return 当前月中的某天dd */ public static String getCurrentDay() { return getFormatCurrentTime("dd"); } /** * 返回当前时间字符串。 * <p> * 格式:yyyy-MM-dd * * @return String 指定格式的日期字符串. */ public static String getCurrentDate() { return getFormatDateTime(new Date(), "yyyy-MM-dd"); } /** * 返回当前指定的时间戳。格式为yyyy-MM-dd HH:mm:ss * * @return 格式为yyyy-MM-dd HH:mm:ss,总共19位。 */ public static String getCurrentDateTime() { return getFormatDateTime(new Date(), "yyyy-MM-dd HH:mm:ss"); } /** * 返回给定时间字符串。 * <p> * 格式:yyyy-MM-dd * * @param date * 日期 * @return String 指定格式的日期字符串. */ public static String getFormatDate(Date date) { return getFormatDateTime(date, "yyyy-MM-dd"); } /** * 根据制定的格式,返回日期字符串。例如2007-05-05 * * @param format * "yyyy-MM-dd" 或者 "yyyy/MM/dd",当然也可以是别的形式。 * @return 指定格式的日期字符串。 */ public static String getFormatDate(String format) { return getFormatDateTime(new Date(), format); } /** * 返回当前时间字符串。 * <p> * 格式:yyyy-MM-dd HH:mm:ss * * @return String 指定格式的日期字符串. */ public static String getCurrentTime() { return getFormatDateTime(new Date(), "yyyy-MM-dd HH:mm:ss"); } /** * 返回给定时间字符串。 * <p> * 格式:yyyy-MM-dd HH:mm:ss * * @param date * 日期 * @return String 指定格式的日期字符串. */ public static String getFormatTime(Date date) { return getFormatDateTime(date, "yyyy-MM-dd HH:mm:ss"); } /** * 根据给定的格式,返回时间字符串。 * <p> * 格式参照类描绘中说明.和方法getFormatDate是一样的。 * * @param format * 日期格式字符串 * @return String 指定格式的日期字符串. */ public static String getFormatCurrentTime(String format) { return getFormatDateTime(new Date(), format); } /** * 根据给定的格式与时间(Date类型的),返回时间字符串。最为通用。<br> * * @param date * 指定的日期 * @param format * 日期格式字符串 * @return String 指定格式的日期字符串. */ public static String getFormatDateTime(Date date, String format) { SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(date); } /** * 根据给定的格式与时间(String类型的),返回时间字符串。最为通用。<br> * * @param sDate * 指定的日期 * @param format * 日期格式字符串 * @return Date 指定格式的日期字符串. */ public static Date getFormatStringDateTime(String sDate, String format) { SimpleDateFormat sdf = new SimpleDateFormat(format); Date date = null; try { date = sdf.parse(sDate); } catch (ParseException e) { e.printStackTrace(); } return date; } /** * 取得指定年月日的日期对象. * * @param year * 年 * @param month * 月注意是从1到12 * @param day * 日 * @return 一个java.util.Date()类型的对象 */ public static Date getDateObj(int year, int month, int day) { Calendar c = new GregorianCalendar(); c.set(year, month - 1, day); return c.getTime(); } /** * 获取指定日期的下一天。 * * @param date * yyyy/MM/dd * @return yyyy/MM/dd */ public static String getDateTomorrow(String date) { Date tempDate = null; if (date.indexOf("/") > 0) tempDate = getDateObj(date, "[/]"); if (date.indexOf("-") > 0) tempDate = getDateObj(date, "[-]"); tempDate = getDateAdd(tempDate, 1); return getFormatDateTime(tempDate, "yyyy/MM/dd"); } /** * 获取与指定日期相差指定天数的日期。 * * @param date * yyyy/MM/dd * @param offset * 正整数 * @return yyyy/MM/dd */ public static String getDateOffset(String date, int offset) { // Date tempDate = getDateObj(date, "[/]"); Date tempDate = null; if (date.indexOf("/") > 0) tempDate = getDateObj(date, "[/]"); if (date.indexOf("-") > 0) tempDate = getDateObj(date, "[-]"); tempDate = getDateAdd(tempDate, offset); return getFormatDateTime(tempDate, "yyyy/MM/dd"); } /** * 取得指定分隔符分割的年月日的日期对象. * * @param argsDate * 格式为"yyyy-MM-dd" * @param split * 时间格式的间隔符,例如“-”,“/”,要和时间一致起来。 * @return 一个java.util.Date()类型的对象 */ public static Date getDateObj(String argsDate, String split) { String[] temp = argsDate.split(split); int year = new Integer(temp[0]).intValue(); int month = new Integer(temp[1]).intValue(); int day = new Integer(temp[2]).intValue(); return getDateObj(year, month, day); } /** * 取得给定字符串描述的日期对象,描述模式采用pattern指定的格式. * * @param dateStr * 日期描述 从给定字符串的开始分析文本,以生成一个日期。该方法不使用给定字符串的整个文本。 有关日期分析的更多信息,请参阅 * parse(String, ParsePosition) 方法。一个 String,应从其开始处进行分析 * * @param pattern * 日期模式 * @return 给定字符串描述的日期对象。 */ public static Date getDateFromString(String dateStr, String pattern) { SimpleDateFormat sdf = new SimpleDateFormat(pattern); Date resDate = null; try { resDate = sdf.parse(dateStr); } catch (Exception e) { e.printStackTrace(); } return resDate; } /** * 取得当前Date对象. * * @return Date 当前Date对象. */ public static Date getDateObj() { Calendar c = new GregorianCalendar(); return c.getTime(); } /** * * @return 当前月份有多少天; */ public static int getDaysOfCurMonth() { int curyear = new Integer(getCurrentYear()).intValue(); // 当前年份 int curMonth = new Integer(getCurrentMonth()).intValue();// 当前月份 int mArray[] = new int[] { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 判断闰年的情况 ,2月份有29天; if ((curyear % 400 == 0) || ((curyear % 100 != 0) && (curyear % 4 == 0))) { mArray[1] = 29; } return mArray[curMonth - 1]; // 如果要返回下个月的天数,注意处理月份12的情况,防止数组越界; // 如果要返回上个月的天数,注意处理月份1的情况,防止数组越界; } /** * 根据指定的年月 返回指定月份(yyyy-MM)有多少天。 * * @param time * yyyy-MM * @return 天数,指定月份的天数。 */ public static int getDaysOfCurMonth(final String time) { if (time.length() != 7) { throw new NullPointerException("参数的格式必须是yyyy-MM"); } String[] timeArray = time.split("-"); int curyear = new Integer(timeArray[0]).intValue(); // 当前年份 int curMonth = new Integer(timeArray[1]).intValue();// 当前月份 if (curMonth > 12) { throw new NullPointerException("参数的格式必须是yyyy-MM,而且月份必须小于等于12。"); } int mArray[] = new int[] { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 判断闰年的情况 ,2月份有29天; if ((curyear % 400 == 0) || ((curyear % 100 != 0) && (curyear % 4 == 0))) { mArray[1] = 29; } if (curMonth == 12) { return mArray[0]; } return mArray[curMonth - 1]; // 如果要返回下个月的天数,注意处理月份12的情况,防止数组越界; // 如果要返回上个月的天数,注意处理月份1的情况,防止数组越界; } /** * 返回指定为年度为year月度month的月份内,第weekOfMonth个星期的第dayOfWeek天是当月的几号。<br> * 00 00 00 01 02 03 04 <br> * 05 06 07 08 09 10 11<br> * 12 13 14 15 16 17 18<br> * 19 20 21 22 23 24 25<br> * 26 27 28 29 30 31 <br> * 2006年的第一个周的1到7天为:05 06 07 01 02 03 04 <br> * 2006年的第二个周的1到7天为:12 13 14 08 09 10 11 <br> * 2006年的第三个周的1到7天为:19 20 21 15 16 17 18 <br> * 2006年的第四个周的1到7天为:26 27 28 22 23 24 25 <br> * 2006年的第五个周的1到7天为:02 03 04 29 30 31 01 。本月没有就自动转到下个月了。 * * @param year * 形式为yyyy <br> * @param month * 形式为MM,参数值在[1-12]。<br> * @param weekOfMonth * 在[1-6],因为一个月最多有6个周。<br> * @param dayOfWeek * 数字在1到7之间,包括1和7。1表示星期天,7表示星期六<br> * -6为星期日-1为星期五,0为星期六 <br> * @return <type>int</type> */ public static int getDayofWeekInMonth(String year, String month, String weekOfMonth, String dayOfWeek) { Calendar cal = new GregorianCalendar(); // 在具有默认语言环境的默认时区内使用当前时间构造一个默认的 GregorianCalendar。 int y = new Integer(year).intValue(); int m = new Integer(month).intValue(); cal.clear();// 不保留以前的设置 cal.set(y, m - 1, 1);// 将日期设置为本月的第一天。 cal.set(Calendar.DAY_OF_WEEK_IN_MONTH, new Integer(weekOfMonth).intValue()); cal.set(Calendar.DAY_OF_WEEK, new Integer(dayOfWeek).intValue()); // System.out.print(cal.get(Calendar.MONTH)+" "); // System.out.print("当"+cal.get(Calendar.WEEK_OF_MONTH)+"\t"); // WEEK_OF_MONTH表示当天在本月的第几个周。不管1号是星期几,都表示在本月的第一个周 return cal.get(Calendar.DAY_OF_MONTH); } /** * 根据指定的年月日小时分秒,返回一个java.Util.Date对象。 * * @param year * 年 * @param month * 月 0-11 * @param date * 日 * @param hourOfDay * 小时 0-23 * @param minute * 分 0-59 * @param second * 秒 0-59 * @return 一个Date对象。 */ public static Date getDate(int year, int month, int date, int hourOfDay, int minute, int second) { Calendar cal = new GregorianCalendar(); cal.set(year, month, date, hourOfDay, minute, second); return cal.getTime(); } /** * 根据指定的年、月、日返回当前是星期几。1表示星期天、2表示星期一、7表示星期六。 * * @param year * @param month * month是从1开始的12结束 * @param day * @return 返回一个代表当期日期是星期几的数字。1表示星期天、2表示星期一、7表示星期六。 */ public static int getDayOfWeek(String year, String month, String day) { Calendar cal = new GregorianCalendar(new Integer(year).intValue(), new Integer(month).intValue() - 1, new Integer(day).intValue()); return cal.get(Calendar.DAY_OF_WEEK); } /** * 根据指定的年、月、日返回当前是星期几。1表示星期天、2表示星期一、7表示星期六。 * * @param date * "yyyy/MM/dd",或者"yyyy-MM-dd" * @return 返回一个代表当期日期是星期几的数字。1表示星期天、2表示星期一、7表示星期六。 */ public static int getDayOfWeek(String date) { String[] temp = null; if (date.indexOf("/") > 0) { temp = date.split("/"); } if (date.indexOf("-") > 0) { temp = date.split("-"); } return getDayOfWeek(temp[0], temp[1], temp[2]); } /** * 返回当前日期是星期几。例如:星期日、星期一、星期六等等。 * * @param date * 格式为 yyyy/MM/dd 或者 yyyy-MM-dd * @return 返回当前日期是星期几 */ public static String getChinaDayOfWeek(String date) { String[] weeks = new String[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; int week = getDayOfWeek(date); return weeks[week - 1]; } /** * 根据指定的年、月、日返回当前是星期几。1表示星期天、2表示星期一、7表示星期六。 * * @param date * * @return 返回一个代表当期日期是星期几的数字。1表示星期天、2表示星期一、7表示星期六。 */ public static int getDayOfWeek(Date date) { Calendar cal = new GregorianCalendar(); cal.setTime(date); return cal.get(Calendar.DAY_OF_WEEK); } /** * 返回制定日期所在的周是一年中的第几个周。<br> * created by wangmj at 20060324.<br> * * @param year * @param month * 范围1-12<br> * @param day * @return int */ public static int getWeekOfYear(String year, String month, String day) { Calendar cal = new GregorianCalendar(); cal.clear(); cal.set(new Integer(year).intValue(), new Integer(month).intValue() - 1, new Integer(day).intValue()); return cal.get(Calendar.WEEK_OF_YEAR); } /** * 取得给定日期加上一定天数后的日期对象. * * @param date * 给定的日期对象 * @param amount * 需要添加的天数,如果是向前的天数,使用负数就可以. * @return Date 加上一定天数以后的Date对象. */ public static Date getDateAdd(Date date, int amount) { Calendar cal = new GregorianCalendar(); cal.setTime(date); cal.add(GregorianCalendar.DATE, amount); return cal.getTime(); } /** * 取得给定日期加上一定天数后的日期对象. * * @param date * 给定的日期对象 * @param amount * 需要添加的天数,如果是向前的天数,使用负数就可以. * @param format * 输出格式. * @return Date 加上一定天数以后的Date对象. */ public static String getFormatDateAdd(Date date, int amount, String format) { Calendar cal = new GregorianCalendar(); cal.setTime(date); cal.add(GregorianCalendar.DATE, amount); return getFormatDateTime(cal.getTime(), format); } /** * 获得当前日期固定间隔天数的日期,如前60天dateAdd(-60) * * @param amount * 距今天的间隔日期长度,向前为负,向后为正 * @param format * 输出日期的格式. * @return java.lang.String 按照格式输出的间隔的日期字符串. */ public static String getFormatCurrentAdd(int amount, String format) { Date d = getDateAdd(new Date(), amount); return getFormatDateTime(d, format); } /** * 取得给定格式的昨天的日期输出 * * @param format * 日期输出的格式 * @return String 给定格式的日期字符串. */ public static String getFormatYestoday(String format) { return getFormatCurrentAdd(-1, format); } /** * 返回指定日期的前一天。<br> * * @param sourceDate * @param format * yyyy MM dd hh mm ss * @return 返回日期字符串,形式和formcat一致。 */ public static String getYestoday(String sourceDate, String format) { return getFormatDateAdd(getDateFromString(sourceDate, format), -1, format); } /** * 返回明天的日期,<br> * * @param format * @return 返回日期字符串,形式和formcat一致。 */ public static String getFormatTomorrow(String format) { return getFormatCurrentAdd(1, format); } /** * 返回指定日期的后一天。<br> * * @param sourceDate * @param format * @return 返回日期字符串,形式和formcat一致。 */ public static String getFormatDateTommorrow(String sourceDate, String format) { return getFormatDateAdd(getDateFromString(sourceDate, format), 1, format); } /** * 根据主机的默认 TimeZone,来获得指定形式的时间字符串。 * * @param dateFormat * @return 返回日期字符串,形式和formcat一致。 */ public static String getCurrentDateString(String dateFormat) { Calendar cal = Calendar.getInstance(TimeZone.getDefault()); SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); sdf.setTimeZone(TimeZone.getDefault()); return sdf.format(cal.getTime()); } // /** // * @deprecated 不鼓励使用。 返回当前时间串 格式:yyMMddhhmmss,在上传附件时使用 // * // * @return String // */ // public static String getCurDate() { // GregorianCalendar gcDate = new GregorianCalendar(); // int year = gcDate.get(GregorianCalendar.YEAR); // int month = gcDate.get(GregorianCalendar.MONTH) + 1; // int day = gcDate.get(GregorianCalendar.DAY_OF_MONTH); // int hour = gcDate.get(GregorianCalendar.HOUR_OF_DAY); // int minute = gcDate.get(GregorianCalendar.MINUTE); // int sen = gcDate.get(GregorianCalendar.SECOND); // String y; // String m; // String d; // String h; // String n; // String s; // y = new Integer(year).toString(); // // if (month < 10) { // m = "0" + new Integer(month).toString(); // } else { // m = new Integer(month).toString(); // } // // if (day < 10) { // d = "0" + new Integer(day).toString(); // } else { // d = new Integer(day).toString(); // } // // if (hour < 10) { // h = "0" + new Integer(hour).toString(); // } else { // h = new Integer(hour).toString(); // } // // if (minute < 10) { // n = "0" + new Integer(minute).toString(); // } else { // n = new Integer(minute).toString(); // } // // if (sen < 10) { // s = "0" + new Integer(sen).toString(); // } else { // s = new Integer(sen).toString(); // } // // return "" + y + m + d + h + n + s; // } /** * 根据给定的格式,返回时间字符串。 和getFormatDate(String format)相似。 * * @param format * yyyy MM dd hh mm ss * @return 返回一个时间字符串 */ public static String getCurTimeByFormat(String format) { Date newdate = new Date(System.currentTimeMillis()); SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(newdate); } /** * 获取两个时间串时间的差值,单位为秒 * * @param startTime * 开始时间 yyyy-MM-dd HH:mm:ss * @param endTime * 结束时间 yyyy-MM-dd HH:mm:ss * @return 两个时间的差值(秒) */ public static long getDiff(String startTime, String endTime) { long diff = 0; SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { Date startDate = ft.parse(startTime); Date endDate = ft.parse(endTime); diff = DateUtil.getDiff(startDate, endDate); } catch (ParseException e) { e.printStackTrace(); } return diff; } /** * 获取两个时间(Date)时间的差值,单位为秒 * * @param startTime * 开始时间 Date * @param endTime * 结束时间 Date * @return 两个时间的差值(秒) */ public static long getDiff(Date startTime, Date endTime) { long diff = 0; diff = startTime.getTime() - endTime.getTime(); diff = diff / 1000; return diff; } /** * 获取小时/分钟/秒 * * @param second * 秒 * @return 包含小时、分钟、秒的时间字符串,例如3小时23分钟13秒。 */ public static String getHour(long second) { long hour = second / 60 / 60; long minute = (second - hour * 60 * 60) / 60; long sec = (second - hour * 60 * 60) - minute * 60; return hour + "小时" + minute + "分钟" + sec + "秒"; } /** * 返回指定时间字符串。 * <p> * 格式:yyyy-MM-dd HH:mm:ss * * @return String 指定格式的日期字符串. */ public static String getDateTime(long microsecond) { return getFormatDateTime(new Date(microsecond), "yyyy-MM-dd HH:mm:ss"); } /** * 返回当前时间加实数小时后的日期时间。 * <p> * 格式:yyyy-MM-dd HH:mm:ss * * @return Float 加几实数小时. */ public static String getDateByAddFltHour(float flt) { int addMinute = (int) (flt * 60); Calendar cal = new GregorianCalendar(); cal.setTime(new Date()); cal.add(GregorianCalendar.MINUTE, addMinute); return getFormatDateTime(cal.getTime(), "yyyy-MM-dd HH:mm:ss"); } /** * 返回指定时间加指定小时数后的日期时间。 * <p> * 格式:yyyy-MM-dd HH:mm:ss * * @return 时间. */ public static String getDateByAddHour(String datetime, int minute) { String returnTime = null; Calendar cal = new GregorianCalendar(); SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date; try { date = ft.parse(datetime); cal.setTime(date); cal.add(GregorianCalendar.MINUTE, minute); returnTime = getFormatDateTime(cal.getTime(), "yyyy-MM-dd HH:mm:ss"); } catch (ParseException e) { e.printStackTrace(); } return returnTime; } /** * 获取两个时间串时间的差值,单位为小时 * * @param startTime * 开始时间 yyyy-MM-dd HH:mm:ss * @param endTime * 结束时间 yyyy-MM-dd HH:mm:ss * @return 两个时间的差值(秒) */ public static int getDiffHour(String startTime, String endTime) { long diff = 0; SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { Date startDate = ft.parse(startTime); Date endDate = ft.parse(endTime); diff = startDate.getTime() - endDate.getTime(); diff = diff / (1000 * 60 * 60); } catch (ParseException e) { e.printStackTrace(); } return new Long(diff).intValue(); } /** * 返回年份的下拉框。 * * @param selectName * 下拉框名称 * @param value * 当前下拉框的值 * @param startYear * 开始年份 * @param endYear * 结束年份 * @return 年份下拉框的html */ public static String getYearSelect(String selectName, String value, int startYear, int endYear) { int start = startYear; int end = endYear; if (startYear > endYear) { start = endYear; end = startYear; } StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\">"); for (int i = start; i <= end; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 返回年份的下拉框。 * * @param selectName * 下拉框名称 * @param value * 当前下拉框的值 * @param startYear * 开始年份 * @param endYear * 结束年份 * 例如开始年份为2001结束年份为2005那么下拉框就有五个值。(2001、2002、2003、2004、2005)。 * @return 返回年份的下拉框的html。 */ public static String getYearSelect(String selectName, String value, int startYear, int endYear, boolean hasBlank) { int start = startYear; int end = endYear; if (startYear > endYear) { start = endYear; end = startYear; } StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = start; i <= end; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 返回年份的下拉框。 * * @param selectName * 下拉框名称 * @param value * 当前下拉框的值 * @param startYear * 开始年份 * @param endYear * 结束年份 * @param js * 这里的js为js字符串。例如 " onchange=\"changeYear()\" " * ,这样任何js的方法就可以在jsp页面中编写,方便引入。 * @return 返回年份的下拉框。 */ public static String getYearSelect(String selectName, String value, int startYear, int endYear, boolean hasBlank, String js) { int start = startYear; int end = endYear; if (startYear > endYear) { start = endYear; end = startYear; } StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\" " + js + ">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = start; i <= end; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 返回年份的下拉框。 * * @param selectName * 下拉框名称 * @param value * 当前下拉框的值 * @param startYear * 开始年份 * @param endYear * 结束年份 * @param js * 这里的js为js字符串。例如 " onchange=\"changeYear()\" " * ,这样任何js的方法就可以在jsp页面中编写,方便引入。 * @return 返回年份的下拉框。 */ public static String getYearSelect(String selectName, String value, int startYear, int endYear, String js) { int start = startYear; int end = endYear; if (startYear > endYear) { start = endYear; end = startYear; } StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\" " + js + ">"); for (int i = start; i <= end; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 获取月份的下拉框 * * @param selectName * @param value * @param hasBlank * @return 返回月份的下拉框。 */ public static String getMonthSelect(String selectName, String value, boolean hasBlank) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 12; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 获取月份的下拉框 * * @param selectName * @param value * @param hasBlank * @param js * @return 返回月份的下拉框。 */ public static String getMonthSelect(String selectName, String value, boolean hasBlank, String js) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\" " + js + ">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 12; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 获取天的下拉框,默认的为1-31。 注意:此方法不能够和月份下拉框进行联动。 * * @param selectName * @param value * @param hasBlank * @return 获得天的下拉框 */ public static String getDaySelect(String selectName, String value, boolean hasBlank) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 31; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 获取天的下拉框,默认的为1-31 * * @param selectName * @param value * @param hasBlank * @param js * @return 获取天的下拉框 */ public static String getDaySelect(String selectName, String value, boolean hasBlank, String js) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\" " + js + ">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 31; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 计算两天之间有多少个周末(这个周末,指星期六和星期天,一个周末返回结果为2,两个为4,以此类推。) (此方法目前用于统计司机用车记录。) * 注意开始日期和结束日期要统一起来。 * * @param startDate * 开始日期 ,格式"yyyy/MM/dd" 或者"yyyy-MM-dd" * @param endDate * 结束日期 ,格式"yyyy/MM/dd"或者"yyyy-MM-dd" * @return int */ public static int countWeekend(String startDate, String endDate) { int result = 0; Date sdate = null; Date edate = null; if (startDate.indexOf("/") > 0 && endDate.indexOf("/") > 0) { sdate = getDateObj(startDate, "/"); // 开始日期 edate = getDateObj(endDate, "/");// 结束日期 } if (startDate.indexOf("-") > 0 && endDate.indexOf("-") > 0) { sdate = getDateObj(startDate, "-"); // 开始日期 edate = getDateObj(endDate, "-");// 结束日期 } // 首先计算出都有那些日期,然后找出星期六星期天的日期 int sumDays = Math.abs(getDiffDays(startDate, endDate)); int dayOfWeek = 0; for (int i = 0; i <= sumDays; i++) { dayOfWeek = getDayOfWeek(getDateAdd(sdate, i)); // 计算每过一天的日期 if (dayOfWeek == 1 || dayOfWeek == 7) { // 1 星期天 7星期六 result++; } } return result; } /** * 返回两个日期之间相差多少天。 注意开始日期和结束日期要统一起来。 * * @param startDate * 格式"yyyy/MM/dd" 或者"yyyy-MM-dd" * @param endDate * 格式"yyyy/MM/dd" 或者"yyyy-MM-dd" * @return 整数。 */ public static int getDiffDays(String startDate, String endDate) { long diff = 0; SimpleDateFormat ft = null; if (startDate.indexOf("/") > 0 && endDate.indexOf("/") > 0) { ft = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); } if (startDate.indexOf("-") > 0 && endDate.indexOf("-") > 0) { ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } try { Date sDate = ft.parse(startDate + " 00:00:00"); Date eDate = ft.parse(endDate + " 00:00:00"); diff = eDate.getTime() - sDate.getTime(); diff = diff / 86400000;// 1000*60*60*24; } catch (ParseException e) { e.printStackTrace(); } return (int) diff; } /** * 返回两个日期之间的详细日期数组(包括开始日期和结束日期)。 例如:2007/07/01 到2007/07/03 ,那么返回数组 * {"2007/07/01","2007/07/02","2007/07/03"} 注意开始日期和结束日期要统一起来。 * * @param startDate * 格式"yyyy/MM/dd"或者 yyyy-MM-dd * @param endDate * 格式"yyyy/MM/dd"或者 yyyy-MM-dd * @return 返回一个字符串数组对象 */ public static String[] getArrayDiffDays(String startDate, String endDate) { int LEN = 0; // 用来计算两天之间总共有多少天 // 如果结束日期和开始日期相同 if (startDate.equals(endDate)) { return new String[] { startDate }; } Date sdate = null; if (startDate.indexOf("/") > 0 && endDate.indexOf("/") > 0) { sdate = getDateObj(startDate, "/"); // 开始日期 } if (startDate.indexOf("-") > 0 && endDate.indexOf("-") > 0) { sdate = getDateObj(startDate, "-"); // 开始日期 } LEN = getDiffDays(startDate, endDate); String[] dateResult = new String[LEN + 1]; dateResult[0] = startDate; for (int i = 1; i < LEN + 1; i++) { if (startDate.indexOf("/") > 0 && endDate.indexOf("/") > 0) { dateResult[i] = getFormatDateTime(getDateAdd(sdate, i), "yyyy/MM/dd"); } if (startDate.indexOf("-") > 0 && endDate.indexOf("-") > 0) { dateResult[i] = getFormatDateTime(getDateAdd(sdate, i), "yyyy-MM-dd"); } } return dateResult; } /** * 判断一个日期是否在开始日期和结束日期之间。 * * @param srcDate * 目标日期 yyyy/MM/dd 或者 yyyy-MM-dd * @param startDate * 开始日期 yyyy/MM/dd 或者 yyyy-MM-dd * @param endDate * 结束日期 yyyy/MM/dd 或者 yyyy-MM-dd * @return 大于等于开始日期小于等于结束日期,那么返回true,否则返回false */ public static boolean isInStartEnd(String srcDate, String startDate, String endDate) { if (startDate.compareTo(srcDate) <= 0 && endDate.compareTo(srcDate) >= 0) { return true; } else { return false; } } /** * 获取天的下拉框,默认的为1-4。 注意:此方法不能够和月份下拉框进行联动。 * * @param selectName * @param value * @param hasBlank * @return 获得季度的下拉框 */ public static String getQuarterSelect(String selectName, String value, boolean hasBlank) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 4; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 获取季度的下拉框,默认的为1-4 * * @param selectName * @param value * @param hasBlank * @param js * @return 获取季度的下拉框 */ public static String getQuarterSelect(String selectName, String value, boolean hasBlank, String js) { StringBuffer sb = new StringBuffer(""); sb.append("<select name=\"" + selectName + "\" " + js + ">"); if (hasBlank) { sb.append("<option value=\"\"></option>"); } for (int i = 1; i <= 4; i++) { if (!value.trim().equals("") && i == Integer.parseInt(value)) { sb.append("<option value=\"" + i + "\" selected>" + i + "</option>"); } else { sb.append("<option value=\"" + i + "\">" + i + "</option>"); } } sb.append("</select>"); return sb.toString(); } /** * 将格式为yyyy或者yyyy.MM或者yyyy.MM.dd的日期转换为yyyy/MM/dd的格式。位数不足的,都补01。<br> * 例如.1999 = 1999/01/01 再如:1989.02=1989/02/01 * * @param argDate * 需要进行转换的日期。格式可能为yyyy或者yyyy.MM或者yyyy.MM.dd * @return 返回格式为yyyy/MM/dd的字符串 */ public static String changeDate(String argDate) { if (argDate == null || argDate.trim().equals("")) { return ""; } String result = ""; // 如果是格式为yyyy/MM/dd的就直接返回 if (argDate.length() == 10 && argDate.indexOf("/") > 0) { return argDate; } String[] str = argDate.split("[.]"); // .比较特殊 int LEN = str.length; for (int i = 0; i < LEN; i++) { if (str[i].length() == 1) { if (str[i].equals("0")) { str[i] = "01"; } else { str[i] = "0" + str[i]; } } } if (LEN == 1) { result = argDate + "/01/01"; } if (LEN == 2) { result = str[0] + "/" + str[1] + "/01"; } if (LEN == 3) { result = str[0] + "/" + str[1] + "/" + str[2]; } return result; } /** * 将格式为yyyy或者yyyy.MM或者yyyy.MM.dd的日期转换为yyyy/MM/dd的格式。位数不足的,都补01。<br> * 例如.1999 = 1999/01/01 再如:1989.02=1989/02/01 * * @param argDate * 需要进行转换的日期。格式可能为yyyy或者yyyy.MM或者yyyy.MM.dd * @return 返回格式为yyyy/MM/dd的字符串 */ public static String changeDateWithSplit(String argDate, String split) { if (argDate == null || argDate.trim().equals("")) { return ""; } if (split == null || split.trim().equals("")) { split = "-"; } String result = ""; // 如果是格式为yyyy/MM/dd的就直接返回 if (argDate.length() == 10 && argDate.indexOf("/") > 0) { return argDate; } // 如果是格式为yyyy-MM-dd的就直接返回 if (argDate.length() == 10 && argDate.indexOf("-") > 0) { return argDate; } String[] str = argDate.split("[.]"); // .比较特殊 int LEN = str.length; for (int i = 0; i < LEN; i++) { if (str[i].length() == 1) { if (str[i].equals("0")) { str[i] = "01"; } else { str[i] = "0" + str[i]; } } } if (LEN == 1) { result = argDate + split + "01" + split + "01"; } if (LEN == 2) { result = str[0] + split + str[1] + split + "01"; } if (LEN == 3) { result = str[0] + split + str[1] + split + str[2]; } return result; } /** * 返回指定日期的的下一个月的天数。 * * @param argDate * 格式为yyyy-MM-dd或者yyyy/MM/dd * @return 下一个月的天数。 */ public static int getNextMonthDays(String argDate) { String[] temp = null; if (argDate.indexOf("/") > 0) { temp = argDate.split("/"); } if (argDate.indexOf("-") > 0) { temp = argDate.split("-"); } Calendar cal = new GregorianCalendar(new Integer(temp[0]).intValue(), new Integer(temp[1]).intValue() - 1, new Integer(temp[2]).intValue()); int curMonth = cal.get(Calendar.MONTH); cal.set(Calendar.MONTH, curMonth + 1); int curyear = cal.get(Calendar.YEAR);// 当前年份 curMonth = cal.get(Calendar.MONTH);// 当前月份,0-11 int mArray[] = new int[] { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 判断闰年的情况 ,2月份有29天; if ((curyear % 400 == 0) || ((curyear % 100 != 0) && (curyear % 4 == 0))) { mArray[1] = 29; } return mArray[curMonth]; } public static void main(String[] args) { System.out.println(DateUtil.getCurrentDateTime()); System.out.println("first=" + changeDateWithSplit("2000.1", "")); System.out.println("second=" + changeDateWithSplit("2000.1", "/")); String[] t = getArrayDiffDays("2008/02/15", "2008/02/19"); for (int i = 0; i < t.length; i++) { System.out.println(t[i]); } t = getArrayDiffDays("2008-02-15", "2008-02-19"); for (int i = 0; i < t.length; i++) { System.out.println(t[i]); } System.out.println(getNextMonthDays("2008/02/15") + "||" + getCurrentMonth() + "||" + DateUtil.changeDate("1999")); System.out.println(DateUtil.changeDate("1999.1")); System.out.println(DateUtil.changeDate("1999.11")); System.out.println(DateUtil.changeDate("1999.1.2")); System.out.println(DateUtil.changeDate("1999.11.12")); } }
zzbasepro
trunk/basepro/src/com/znzx/util/DateUtil.java
Java
oos
47,123
package com.znzx.util; import java.util.UUID; public class UUIDGenerator { public UUIDGenerator() { } public static String getUUID() { String s = UUID.randomUUID().toString(); return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23) + s.substring(24); } public static void main(String[] args) { System.out.println(UUIDGenerator.getUUID()); } }
zzbasepro
trunk/basepro/src/com/znzx/util/UUIDGenerator.java
Java
oos
413
package com.znzx.util; import java.io.File; public class IOTool { public static File getFolder(String folderPath) { File dirFile = new File(folderPath); if (dirFile.exists()) { //System.out.println(folderPath + "-文件夹已存在"); } else { //System.out.println(folderPath + "-文件夹不存在"); boolean bFile = dirFile.mkdir(); if (!bFile) { // System.out.println(folderPath + "-文件夹创建失败"); dirFile = null; } } return dirFile; } public static File getFolderAndFile(String folderPath) { File file = null; if(folderPath != null && !"".equals(folderPath)){ folderPath = folderPath.replace("\\", "|*|"); folderPath = folderPath.replace("/", "|*|"); String [] folderPaths = folderPath.split("\\|\\*\\|"); String path = folderPaths[0]; for(int i= 1; i < folderPaths.length; i++){ path = path + File.separator + folderPaths[i]; if(i != folderPaths.length -1){ file = getFolder(path); }else{ file = getFile(path); } } } return file; } public static File getFile(String folderPath) { File file = new File(folderPath); return file; } public static String getResourcePath(String relativePath){ String newPath = ""; String path = Thread.currentThread().getContextClassLoader().getResource("").getPath(); path = path.replace("\\", "/"); int num = relativePath.lastIndexOf("../") + 3; String tmpPath = ""; String lastPath = ""; if(num != -1){ tmpPath = relativePath.substring(0, num); lastPath = relativePath.substring(num, relativePath.length()); int n = tmpPath.length()/3; int lastTmp = path.lastIndexOf("/"); if(lastTmp == path.length() -1){ path = path.substring(0,lastTmp); } int fristTmp = path.indexOf("/"); if(fristTmp == 0){ path = path.substring(1); } for(int i = 0; i < n; i++){ path = path.substring(0,path.lastIndexOf("/")); } newPath = path + File.separator +lastPath; if(!"/".equals(File.separator)){ newPath = newPath.replace("/", "\\"); } } return newPath; } public static void main(String[] args) { //getResourcePath("../../cjtest/ddee/ffrr"); } }
zzbasepro
trunk/basepro/src/com/znzx/util/IOTool.java
Java
oos
2,261
package com.znzx.util; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Map; import sun.misc.BASE64Encoder; /* * 所属模块: 工具包 * 说明:常用字符串及数组操作 */ public class StrUtil { /** * 判断字符串是否为Null或空字符串 * * @param String * 要判断的字符串 * @return String true-是空字符串,false-不是空字符串 */ public static boolean nil(String s) { if (s == null || s.equals("")) { return true; } return false; } /** * 字符串数组转换为字符串,使用逗号分隔 */ public static String split(String[] s, String spliter) { if (StrUtil.nil(s)) return ""; if (s.length == 1) return s[0]; StringBuffer sb = new StringBuffer(); for (int i = 0; i < s.length; i++) { sb.append(s[i]).append(spliter); } sb.deleteCharAt(sb.lastIndexOf(spliter)); return sb.toString(); } /** * 如果第一个字符串不为空则返回该字符串,否则返回第二个 */ public static String nil(String s, String _default) { if (StrUtil.nil(s)) return _default; else return s; } /** * 判断字符串数组是否为空 */ public static boolean nil(String[] s) { return (s == null || s.length == 0); } /** * 如果数组为空,则返回空数组 */ public static String[] notNil(String[] s) { if (s == null || s.length == 0) { return new String[0]; } return s; } /** * 改变字符串编码到gbk */ public static String toGBK(String src) { if (nil(src)) return ""; String s = null; try { s = new String(src.getBytes("ISO-8859-1"), "GBK"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return s; } /** * 改变字符串编码到utf8 */ public static String toUTF8(String src) { if (nil(src)) return ""; String s = null; try { s = new String(src.getBytes("ISO-8859-1"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return s; } /** * 转换String到boolean */ public static boolean parseBoolean(String flag) { if (nil(flag)) return false; else if (flag.equals("true") || flag.equals("1") || flag.equals("是") || flag.equals("yes")) return true; else if (flag.equals("false") || flag.equals("0") || flag.equals("否") || flag.equals("no")) return false; return false; } /** * 转换String到int <br> * null或空字符,返回0 <br> * true返回1 <br> * false返回0 */ public static int parseInt(String flag) { if (nil(flag)) return 0; else if (flag.equals("true")) return 1; else if (flag.equals("false")) return 0; return Integer.parseInt(flag); } /** * 转换String到long */ public static long parseLong(String flag) { if (nil(flag)) return 0; return Long.parseLong(flag); } /** * 字符填充 * * @param source * 源字符串 * @param filler * 填充字符,如0或*等 * @param length * 最终填充后字符串的长度 * @return 最终填充后字符串 */ public static String fill(String source, String filler, int length) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < length - source.length(); i++) { sb.append(filler); } sb.append(source); return sb.toString(); } /** * 从开头到spliter字符,截取字符串数组中的每一项 * * @param arr * 源字符串数组 * @param spliter * 切割符 * @return 切割后的字符串数组 */ public static String[] subStrBefore(String[] arr, String spliter) { for (int i = 0; i < arr.length; i++) { arr[i] = arr[i].substring(0, arr[i].indexOf(spliter)); } return arr; } /** * * 将字串转成日期,字串格式: yyyy-MM-dd * * @param string * String * @return Date */ public static Date parseDate(String string) { try { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); return (Date) formatter.parse(string); } catch (Exception ex) { ex.printStackTrace(); return null; } } /** * 字符串数组中是否包含指定的字符串。 * * @param strings * 字符串数组 * @param string * 字符串 * @param caseSensitive * 是否大小写敏感 * @return 包含时返回true,否则返回false */ public static boolean contains(String[] strings, String string, boolean caseSensitive) { for (int i = 0; i < strings.length; i++) { if (caseSensitive == true) { if (strings[i].equals(string)) { return true; } } else { if (strings[i].equalsIgnoreCase(string)) { return true; } } } return false; } /** * 字符串数组中是否包含指定的字符串。大小写敏感。 * * @param strings * 字符串数组 * @param string * 字符串 * @return 包含时返回true,否则返回false */ public static boolean contains(String[] strings, String string) { return contains(strings, string, true); } /** * 不区分大小写判定字符串数组中是否包含指定的字符串。 * * @param strings * 字符串数组 * @param string * 字符串 * @return 包含时返回true,否则返回false */ public static boolean containsIgnoreCase(String[] strings, String string) { return contains(strings, string, false); } /** * 返回一个整数数组 * * @param s * String[] * @return int[] */ public static int[] parseInt(String[] s) { if (s == null) { return (new int[0]); } int[] result = new int[s.length]; try { for (int i = 0; i < s.length; i++) { result[i] = Integer.parseInt(s[i]); } } catch (NumberFormatException ex) { } return result; } /** * 返回一个整数数组 * * @param s * String * @return int[] */ public static int[] split(String s) { if (nil(s)) return new int[0]; if (s.indexOf(",") > -1) { return StrUtil.split(s, ","); } else { int[] i = new int[1]; i[0] = Integer.parseInt(s); return i; } } /** * 返回一个整数数组 * * @param s * String * @param spliter * 分隔符如逗号 * @return int[] */ public static int[] split(String s, String spliter) { if (s == null || s.indexOf(spliter) == -1) { return (new int[0]); } String[] ary = s.split(spliter); int[] result = new int[ary.length]; try { for (int i = 0; i < ary.length; i++) { result[i] = Integer.parseInt(ary[i]); } } catch (NumberFormatException ex) { } return result; } /** * 将整型数组合并为用字符分割的字符串 * * @param int[] * @return String */ public static String join(int[] arr) { if (arr == null || arr.length == 0) return ""; StringBuffer sb = new StringBuffer(); for (int i = 0, len = arr.length; i < len; i++) { sb.append(",").append(arr[i]); } sb.deleteCharAt(0); return sb.toString(); } /** * 将字符串的第一个字母大写 * * @param s * String * @return String */ public static String firstCharToUpperCase(String s) { if (s == null || s.length() < 1) { return ""; } char[] arrC = s.toCharArray(); arrC[0] = Character.toUpperCase(arrC[0]); return String.copyValueOf(arrC); } /** * 根据当前字节长度取出加上当前字节长度不超过最大字节长度的子串 * * @param str * @param currentLen * @param MAX_LEN * @return */ public static String getSubStr(String str, int currentLen, int MAX_LEN) { int i; for (i = 0; i < str.length(); i++) { if (str.substring(0, i + 1).getBytes().length + currentLen > MAX_LEN) { break; } } if (i == 0) { return ""; } else { return str.substring(0, i); } } /** * 根据传入数组组成字符串 * @param strArr 数组 * @param key 间隔符 * @param be 开头结尾符 * @return */ public static String strArrToStr(String [] strArr,String key,String be){ String strs = ""; for(String str : strArr){ if("".equals(strs)){ strs = str.trim(); }else{ strs += key + str.trim(); } } strs = be + strs + be; return strs.trim(); } /** * 根据传入List组成字符串 * @param list * @param mkey 需要组装的KEY(Map的KEY) * @param key 间隔符 * @param be 开头结尾符 * @return */ public static String listToStr(List<Map<String, String>> list,String mkey, String key, String be){ String strs = ""; for(Map<String, String> mp : list){ String str = mp.get(mkey); if("".equals(strs)){ strs = str.trim(); }else{ strs += key + str.trim(); } } strs = be + strs + be; return strs.trim(); } public static String EncoderByMd5(String str) throws NoSuchAlgorithmException, UnsupportedEncodingException{ //确定计算方法 MessageDigest md5=MessageDigest.getInstance("MD5"); BASE64Encoder base64en = new BASE64Encoder(); //加密后的字符串 String newstr=base64en.encode(md5.digest(str.getBytes("utf-8"))); return newstr; } /** * 追加code型字符串如str=100 num=3 结果是101 * @param str 依赖的字符串(数字型) * @param num 间隔位数 * @return */ public static String StringAdd(String str, int num){ String rstr = ""; String beforeStr = str.substring(0, str.length()-num); String afterStr = str.substring(str.length()-num, str.length()); int tempNum = Integer.parseInt(afterStr)+1; int leg = String.valueOf(tempNum).length(); String tempStr = ""; for(int i = 0; i < num - leg; i ++){ tempStr += "0"; } rstr = beforeStr + tempStr + tempNum; return rstr; } /** * 追加code型字符串如num=3 结果是001 * @param num 间隔位数 * @return */ public static String StringAddChild(int num){ String rstr = ""; for(int i = 1; i < num; i ++){ rstr += "0"; } return rstr + "1"; } /** * 不区分大小写indexOf * @param sourceStr * @param str * @return */ public static int indexOf(String sourceStr, String str){ String sourceStrTmp = sourceStr.toLowerCase(); String strTmp = str.toLowerCase(); int i = sourceStrTmp.indexOf(strTmp); return i; } /** * 判断是否是数字 * @param str * @return */ public static boolean isNumeric(String str){ for (int i = str.length(); --i >= 0;){ if (!Character.isDigit(str.charAt(i))){ return false; } } return true; } public static void main(String[] args) { String a = StrUtil.StringAdd("000010000205678", 5); System.out.println(a); } }
zzbasepro
trunk/basepro/src/com/znzx/util/StrUtil.java
Java
oos
11,335
package com.znzx.util; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** *用来加载类classpath下的资源文件,属性文件等。 * *getExtendResource(StringrelativePath)方法,可以使用../符号来加载classpath外部的资源。 */ public class ClassLoaderUtil { private static Log log = LogFactory.getLog(ClassLoaderUtil.class); /** * *Thread.currentThread().getContextClassLoader().getResource("") */ /** * *加载Java类。 使用全限定类名 * *@paramclassName * *@return */ public static Class loadClass(String className) { try { return getClassLoader().loadClass(className); } catch (ClassNotFoundException e) { throw new RuntimeException("class not found '" + className + "'", e); } } /** * *得到类加载器 * *@return */ public static ClassLoader getClassLoader() { return ClassLoaderUtil.class.getClassLoader(); } /** * *提供相对于classpath的资源路径,返回文件的输入流 * *@paramrelativePath必须传递资源的相对路径。是相对于classpath的路径。如果需要查找classpath外部的资源,需要使用../来查找 * *@return 文件输入流 * *@throwsIOException * *@throwsMalformedURLException */ public static InputStream getStream(String relativePath) throws MalformedURLException, IOException { if (!relativePath.contains("../")) { return getClassLoader().getResourceAsStream(relativePath); } else { return ClassLoaderUtil.getStreamByExtendResource(relativePath); } } /** * * * *@paramurl * *@return * *@throwsIOException */ public static InputStream getStream(URL url) throws IOException { if (url != null) { return url.openStream(); } else { return null; } } /** * * * *@paramrelativePath必须传递资源的相对路径。是相对于classpath的路径。如果需要查找classpath外部的资源,需要使用../来查找 * *@return * *@throwsMalformedURLException * *@throwsIOException */ public static InputStream getStreamByExtendResource(String relativePath) throws MalformedURLException, IOException { return ClassLoaderUtil.getStream(ClassLoaderUtil .getExtendResource(relativePath)); } /** * *提供相对于classpath的资源路径,返回属性对象,它是一个散列表 * *@paramresource * *@return */ public static Properties getProperties(String resource) { Properties properties = new Properties(); try { properties.load(getStream(resource)); } catch (IOException e) { throw new RuntimeException("couldn't load properties file '" + resource + "'", e); } return properties; } /** * *得到本Class所在的ClassLoader的Classpat的绝对路径。 * *URL形式的 * *@return */ public static String getAbsolutePathOfClassLoaderClassPath() { ClassLoaderUtil.log.info(ClassLoaderUtil.getClassLoader().getResource( "").toString()); return ClassLoaderUtil.getClassLoader().getResource("").toString(); } /** * * * *@paramrelativePath * 必须传递资源的相对路径。是相对于classpath的路径。如果需要查找classpath外部的资源,需要使用. * ./来查找 * *@return资源的绝对URL * *@throwsMalformedURLException */ public static URL getExtendResource(String relativePath) throws MalformedURLException { ClassLoaderUtil.log.info("传入的相对路径:" + relativePath); // ClassLoaderUtil.log.info(Integer.valueOf(relativePath.indexOf("../"))) // ; if (!relativePath.contains("../")) { return ClassLoaderUtil.getResource(relativePath); } String classPathAbsolutePath = ClassLoaderUtil .getAbsolutePathOfClassLoaderClassPath(); if (relativePath.substring(0, 1).equals("/")) { relativePath = relativePath.substring(1); } ClassLoaderUtil.log.info(Integer.valueOf(relativePath .lastIndexOf("../"))); String wildcardString = relativePath.substring(0, relativePath .lastIndexOf("../") + 3); relativePath = relativePath .substring(relativePath.lastIndexOf("../") + 3); int containSum = ClassLoaderUtil.containSum(wildcardString, "../"); classPathAbsolutePath = ClassLoaderUtil.cutLastString( classPathAbsolutePath, "/", containSum); String resourceAbsolutePath = classPathAbsolutePath + relativePath; ClassLoaderUtil.log.info("绝对路径:" + resourceAbsolutePath); URL resourceAbsoluteURL = new URL(resourceAbsolutePath); return resourceAbsoluteURL; } /** * * * *@paramsource * *@paramdest * *@return */ private static int containSum(String source, String dest) { int containSum = 0; int destLength = dest.length(); while (source.contains(dest)) { containSum = containSum + 1; source = source.substring(destLength); } return containSum; } /** * * * *@paramsource * *@paramdest * *@paramnum * *@return */ private static String cutLastString(String source, String dest, int num) { String cutSource=null; return source; } /** * * * *@paramresource * *@return */ public static URL getResource(String resource) { ClassLoaderUtil.log.info("传入的相对于classpath的路径:" + resource); return ClassLoaderUtil.getClassLoader().getResource(resource); } /** * *@paramargs * *@throwsMalformedURLException */ public static void main(String[] args) throws MalformedURLException { // ClassLoaderUtil.getExtendResource("../spring/dao.xml"); // ClassLoaderUtil.getExtendResource("../../../src/log4j.properties"); ClassLoaderUtil.getExtendResource("log4j.properties"); System.out.println(ClassLoaderUtil.getClassLoader().getResource( "log4j.properties").toString()); } }
zzbasepro
trunk/basepro/src/com/znzx/util/ClassLoaderUtil.java
Java
oos
6,428
package com.znzx.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.pojo.KeySortEntity; public class RegTool { public static final String REGEX_STR = "(.+?)"; public static final String [] REGEX_CONVERT_ARR = {"(",")"}; /** * 提取满足正则表达式的内容(用于多组且多种不同内容查找) * @param content 被内容原文 * @param regex 正则表达式(占位符形式) * @param keyList 占位符名称列表 * @return */ public static List<List<String>> findRegContentList(String content, String regex, List<KeySortEntity> keyList) { String reg = RegTool.replaceKeyToReg(regex, keyList); return RegTool.findRegContentList(content,reg); } /** * 提取满足正则表达式的内容(用于多组且多种不同内容查找) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static List<List<String>> findRegContentList(String content, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(content); List<List<String>> list = new ArrayList<List<String>>(); while(matcher.find()){ int size = matcher.groupCount() + 1; List<String> li = new ArrayList<String>(); for(int i = 1; i < size; i++){ li.add(matcher.group(i)); } list.add(li); } return list; } /** * 提取满足正则表达式的内容(用于多组内容查找) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static List<String> findRegContent(String content, String regex, String key) { String reg = regex.replace(key, RegTool.REGEX_STR); return RegTool.findRegContent(content, reg); } /** * 提取满足正则表达式的内容(用于多组内容查找) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static List<String> findRegContent(String content, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(content); List<String> list = new ArrayList<String>(); while(matcher.find()){ list.add(matcher.group(1)); } return list; } /** * 提取满足正则表达式的内容(用于第一组且多种不同内容查找) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static List<String> findRegContentFirstList(String content, String regex, List<KeySortEntity> keyList) { String reg = RegTool.replaceKeyToReg(regex, keyList); return RegTool.findRegContentFirstList(content, reg); } /** * 提取满足正则表达式的内容(用于第一组且多种不同内容查找) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static List<String> findRegContentFirstList(String content, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(content); List<String> list = new ArrayList<String>(); if(matcher.find()){ int size = matcher.groupCount() + 1; for(int i = 1; i < size; i++){ list.add(matcher.group(i)); } } return list; } /** * 提取满足正则表达式的内容(用于单个内容查找返回第一个匹配的内容) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static String findRegContentFirst(String content, String regex, String key) { String reg = regex.replace(key, RegTool.REGEX_STR); return RegTool.findRegContentFirst(content, reg); } /** * 提取满足正则表达式的内容(用于单个内容查找返回第一个匹配的内容) * @param content 被内容原文 * @param regex 正则表达式 * @return */ public static String findRegContentFirst(String content, String regex) { Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(content); String str = null; if(matcher.find()){ str = matcher.group(1); } return str; } /** * 将占位符转换为正则表达式(用于单个内容查找返回第一个匹配的内容) * @param regex 正则表达式(占位符形式) * @param keyList 占位符名称列表 * @return */ public static String replaceKeyToReg(String regex, List<KeySortEntity> keyList){ String result = regex; for(String str : RegTool.REGEX_CONVERT_ARR){ result = result.replace(str, "\\" + str); } Log logger = LogFactory.getLog(RegTool.class); for(KeySortEntity kse : keyList){ if(kse.getKey() != null){ kse.setSort(regex.indexOf(kse.getKey())); result = result.replace(kse.getKey(), RegTool.REGEX_STR); }else{ logger.error("正则表达式占位符为:null"); } } return result; } // public static List getReg(String str,String reg){ // PatternCompiler compiler = new Perl5Compiler(); // Pattern pattern = null; // try { // pattern = compiler.compile(reg, Perl5Compiler.CASE_INSENSITIVE_MASK); // } catch (MalformedPatternException e) { // e.printStackTrace(); // } // PatternMatcherInput input = new PatternMatcherInput(str); // PatternMatcher matcher = new Perl5Matcher(); // List list = new ArrayList(); // while(matcher.contains(input, pattern)){ // MatchResult result = matcher.getMatch(); // List li = new ArrayList(); // for(int i = 1; i < result.length(); i++){ // String tmpStr = result.group(i); // if(tmpStr != null){ // li.add(result.group(i)); // } // } // list.add(li); // } // // return list; // } // // public static String getRegStr(String str,String reg){ // PatternCompiler compiler = new Perl5Compiler(); // Pattern pattern = null; // try { // pattern = compiler.compile(reg, Perl5Compiler.CASE_INSENSITIVE_MASK); // } catch (MalformedPatternException e) { // e.printStackTrace(); // } // PatternMatcherInput input = new PatternMatcherInput(str); // PatternMatcher matcher = new Perl5Matcher(); // String tmpStr = null; // if(matcher.contains(input, pattern)){ // MatchResult result = matcher.getMatch(); // tmpStr = result.group(1); // } // // return tmpStr; // } // // public void th(String str,String reg,String subReg){ // PatternCompiler compiler = new Perl5Compiler(); // Pattern pattern = null; // try { // pattern = compiler.compile(reg, Perl5Compiler.CASE_INSENSITIVE_MASK); // } catch (MalformedPatternException e) { // e.printStackTrace(); // } // // PatternMatcher matcher = new Perl5Matcher(); // // Perl5Substitution perSub = new Perl5Substitution(subReg); // String reStr = Util.substitute(matcher, pattern, perSub, str, Util.SUBSTITUTE_ALL); // System.out.println(reStr); // } /** * @param args */ public static void main(String[] args) { String a = "abcdefg-higklmnop-abcdefg-higklmnop-abcdefg-higklmnop-"; //String r = "ab(.+?)fg-"; String r = "ab{日你大爷}fg-h{站}k{法克鱿}op-"; List list = new ArrayList(); list.add(new KeySortEntity("{日你大爷}")); list.add(new KeySortEntity("{法克鱿}")); list.add(new KeySortEntity("{站}")); for(int i = 0; i < list.size(); i++){ KeySortEntity kse = (KeySortEntity)list.get(i); System.out.println(kse.getKey() + "==" + kse.getSort()); } List li = RegTool.findRegContentList(a, r, list); Collections.sort(list); for(int i = 0; i < list.size(); i++){ KeySortEntity kse = (KeySortEntity)list.get(i); System.out.println(kse.getKey() + "==" + kse.getSort()); } for(int i = 0; i < li.size(); i++){ List l = (List)li.get(i); for(int j = 0; j < l.size(); j++){ System.out.print(l.get(j) + "***"); } System.out.println(); } // RegTool z = new RegTool(); // z.getReg("a=\"A\" b=\"B\" c=\"C\"", "([a-z]+)\\s*=\\s*\"([^\\\"]+)\""); //z.th("aaaaaa?bbdd", "aaaaaa\\?(\\w*)", "bbbb?$1"); // String testHtml = "<li style='text-align: center'><p><a href='/gif/2006/3-9/2251206203.html' target='_blank'><img alt='��Ȼ�羰' src='http://img2.3lian.com/img2009/09/3lian12/221.jpg' width='200' height='120' border='0' onload='showPic(this)'></a></p>" // +" <p style='text-align: center'><a href='/gif/2006/3-9/2251206203.html' target='_blank'>��Ȼ�羰</a></p>" // +" </li></ul>" // +" <ul>" // +" <li style='text-align: center'><p><a href='/gif/2006/3-9/22531437002.html' target='_blank'><img alt='�羰�ز�' src='http://img2.3lian.com/img2009/09/3lian12/173.jpg' width='200' height='120' border='0' onload='showPic(this)'></a></p>" // +" <p style='text-align: center'><a href='/gif/2006/3-9/22531437002.html' target='_blank'>�羰�ز�</a></p>" // +" </li></ul>" // +" <ul>" // +" <li style='text-align: center'><p><a href='/gif/2006/3-9/22540298484.html' target='_blank'><img alt='�羰�ز�' src='http://img2.3lian.com/img2009/09/3lian12/197.jpg' width='200' height='120' border='0' onload='showPic(this)'></a></p>" // +" <p style='text-align: center'><a href='/gif/2006/3-9/22540298484.html' target='_blank'>�羰�ز�</a></p>" // +" </li>"; // z.getReg(testHtml,"\\w*<p><a href=\"[^\"]\""); } }
zzbasepro
trunk/basepro/src/com/znzx/util/RegTool.java
Java
oos
9,520
package com.znzx.tag.pagesplit.service; import java.util.List; public class PageInfo { // 每页行数 private String pageSize; // 当前页数 private String nowPage; // 一共多少行 private String counts; // 计算出总页数 private String countPage; // 上一页页码 private String upPage; // 下一页页码 private String downPage; // 模板字符串 private String htmlStr; // 当前url private String url; // 参数 private List paramList; public String getPageSize() { return pageSize; } public void setPageSize(String pageSize) { this.pageSize = pageSize; } public String getNowPage() { return nowPage; } public void setNowPage(String nowPage) { this.nowPage = nowPage; } public String getCounts() { return counts; } public void setCounts(String counts) { this.counts = counts; } public String getCountPage() { return countPage; } public void setCountPage(String countPage) { this.countPage = countPage; } public String getUpPage() { return upPage; } public void setUpPage(String upPage) { this.upPage = upPage; } public String getDownPage() { return downPage; } public void setDownPage(String downPage) { this.downPage = downPage; } public String getHtmlStr() { return htmlStr; } public void setHtmlStr(String htmlStr) { this.htmlStr = htmlStr; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public List getParamList() { return paramList; } public void setParamList(List paramList) { this.paramList = paramList; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagesplit/service/PageInfo.java
Java
oos
1,690
package com.znzx.tag.pagesplit.service; import java.util.Map; public interface IPageService { String generatePageSplit(PageInfo pageInfo, Map param); }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagesplit/service/IPageService.java
Java
oos
162
package com.znzx.tag.pagesplit.service; import java.text.MessageFormat; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.constant.Constant; import com.znzx.util.UUIDGenerator; public class PageServiceDefaultImpl implements IPageService { private Log logger = LogFactory.getLog(this.getClass()); @Override public String generatePageSplit(PageInfo pageInfo, Map param) { String countPage = pageInfo.getCountPage(); String counts = pageInfo.getCounts(); String nowPage = pageInfo.getNowPage(); String pageSize = pageInfo.getPageSize(); String upPage = pageInfo.getUpPage(); String downPage = pageInfo.getDownPage(); String url = pageInfo.getUrl(); List<Map<String, String>> paramList = pageInfo.getParamList(); String urlParamStr = this.combinationUrlParam(param, paramList); String paramStr = this.combinationParam(paramList); String htmlStr = pageInfo.getHtmlStr(); if (paramStr == null || "".equals(paramStr.trim())) { paramStr = ""; } else { paramStr = "&" + paramStr; } if (urlParamStr == null || "".equals(urlParamStr.trim())) { urlParamStr = ""; } else { urlParamStr = "&" + urlParamStr; } String newUrl = url + "?param._s=" + pageSize + paramStr + urlParamStr; String fristUrl = newUrl + "&param._b=1"; String upUrl = newUrl + "&param._b=" + upPage; String downUrl = newUrl + "&param._b=" + downPage; String lastUrl = newUrl + "&param._b=" + countPage; String textId = Constant.BEFORE_UUID + UUIDGenerator.getUUID(); MessageFormat mf = new MessageFormat(htmlStr); Object[] pageArgs = { countPage, counts, pageSize, nowPage, countPage, fristUrl, upUrl, downUrl, lastUrl, textId, textId, newUrl + "&param._b=" }; String pageStr = mf.format(pageArgs); return pageStr; } protected String combinationParam(List<Map<String, String>> paramList) { String paramStr = ""; // 循环添加参数 int size = paramList.size(); if (paramList != null && size != 0) { for (int i = 0; i < size; i++) { String name = paramList.get(i).get("name"); String value = paramList.get(i).get("value"); if (name != null && !"".equals(name.trim()) && value != null && !"".equals(value.trim())) { if (i == 0) { paramStr = name + "=" + value; } else { paramStr = paramStr + "&" + name + "=" + value; } } } } return paramStr; } protected String combinationUrlParam(Map<String, String> param, List<Map<String, String>> paramList) { Iterator iterator = param.keySet().iterator(); String urlParamStr = ""; while (iterator.hasNext()) { String paramKey = (String) iterator.next(); if ("_b".equals(paramKey) || "_s".equals(paramKey)) { break; } else { String paramValue = param.get(paramKey); if ("".equals(urlParamStr)) { urlParamStr = "param."+ paramKey + "=" + paramValue; } else { urlParamStr += "&param." + paramKey + "=" + paramValue; } } } return urlParamStr; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagesplit/service/PageServiceDefaultImpl.java
Java
oos
3,236
package com.znzx.tag.pagesplit; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.constant.Constant; import com.znzx.tag.BaseTage; import com.znzx.tag.pagesplit.service.IPageService; import com.znzx.tag.pagesplit.service.PageInfo; import com.znzx.tag.pagesplit.service.PageServiceDefaultImpl; /** * 列表分页标签类. * * @author 宗旭. * */ public class PageTag extends BaseTage { private Log logger = LogFactory.getLog(getClass()); // 连接地址 private String url = ""; // 参数集合 private List<Map<String, String>> paramList = new ArrayList<Map<String, String>>(); /* * (非 Javadoc) * * @see javax.servlet.jsp.tagext.TagSupport#doEndTag() */ @Override public int doEndTag() throws JspException { HttpServletRequest request = ((HttpServletRequest) pageContext .getRequest()); Map<String, String> param = (Map<String, String>) request .getAttribute("param"); // 当前页数 long nowPage = Long.parseLong(param.get("_b")); // 当前页如果是0则设置成第一页 if (nowPage == 0) { nowPage = 1; } // 每页行数 long pageSize = Long.parseLong(param.get("_s")); // 一共多少行 long counts = Long.parseLong(param.get("_count")); // 计算出总页数 long countPage = (counts + ((counts % pageSize == 0) ? 0 : (pageSize - counts % pageSize))) / pageSize; if (countPage == 0) { countPage = 1; } // 上一页页码 long upPage = 1; if (nowPage > 1) { upPage = nowPage - 1; } // 下一页页码 long downPage = countPage; if (nowPage < countPage) { downPage = nowPage + 1; } // 判断分页显示模板是否设置如果未设置则用默认模板 if (this.pagehtmlpath == null || "".equals(this.pagehtmlpath.trim())) { this.pagehtmlpath = Constant.PAGE_SPLIT_TEMPLET; } // 判断连接是否为空否则获得当前地址 if (this.url == null || "".equals(this.url.trim())) { this.url = (String) request.getAttribute("struts.request_uri"); // (Applicable to Servlet 2.4 containers) // If the request was forwarded, the attribute below will be set // with the original URL if (this.url == null) { this.url = (String) request .getAttribute("javax.servlet.forward.request_uri"); } // If neither request attributes were found, default to the value in // the request object if (this.url == null) { this.url = request.getRequestURI(); this.url = request.getRequestURL().toString(); } } // 得到分页模板内容 String htmlStr = this.getHtmlStr(this.pagehtmlpath); PageInfo pageInfo = new PageInfo(); pageInfo.setCountPage(String.valueOf(countPage)); pageInfo.setCounts(String.valueOf(counts)); pageInfo.setDownPage(String.valueOf(downPage)); pageInfo.setNowPage(String.valueOf(nowPage)); pageInfo.setHtmlStr(htmlStr); pageInfo.setPageSize(String.valueOf(pageSize)); pageInfo.setUpPage(String.valueOf(upPage)); pageInfo.setUrl(this.url); pageInfo.setParamList(this.paramList); IPageService pageService = new PageServiceDefaultImpl(); String newHtmlStr = pageService.generatePageSplit(pageInfo, param); try { pageContext.getOut().print(newHtmlStr); } catch (IOException e) { throw new RuntimeException(e); } this.paramList.clear(); this.url = ""; this.pagehtmlpath = ""; return BodyTagSupport.EVAL_BODY_INCLUDE; } /** * @return url */ public String getUrl() { return url; } /** * @param url * 要设置的 url */ public void setUrl(String url) { this.url = url; } /** * @return paramList */ public List<Map<String, String>> getParamList() { return paramList; } /** * @param paramList * 要设置的 paramList */ public void setParamList(List<Map<String, String>> paramList) { this.paramList = paramList; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagesplit/PageTag.java
Java
oos
4,299
package com.znzx.tag.pagesplit; import java.util.HashMap; import java.util.Map; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.Tag; import javax.servlet.jsp.tagext.TagSupport; /** * 列表分页标签参数类. * * @author 宗旭. * */ public class PageParam extends TagSupport { // 参数名称 private String name = ""; // 参数值 private String value = ""; /** * {@inheritDoc} */ @Override public int doStartTag() throws JspException { return super.doStartTag(); } /* * (非 Javadoc) * * @see javax.servlet.jsp.tagext.TagSupport#doEndTag() */ @SuppressWarnings("unchecked") @Override public int doEndTag() throws JspException { Tag t = getParent(); PageTag parent = (PageTag) t; Map mp = new HashMap(); mp.put("name", name); mp.put("value", value); parent.getParamList().add(mp); return super.doEndTag(); } /** * @return name */ public String getName() { return name; } /** * @param name * 要设置的 name */ public void setName(String name) { this.name = name; } /** * @return value */ public String getValue() { return value; } /** * @param value * 要设置的 value */ public void setValue(String value) { this.value = value; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagesplit/PageParam.java
Java
oos
1,371
package com.znzx.tag; import java.io.IOException; import java.text.MessageFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.constant.Constant; public class ButtonTag extends BaseTage{ private Log logger = LogFactory.getLog(getClass()); // title提示内容 private String title; // id private String id; // name private String name; // 单击事件 private String onClick; // css private String cssClass; // 按钮内容 private String txt; // 验证 private String command; // 其他属性(a="a" b="b") private String other; @Override public int doAfterBody() throws JspException { String val = getBodyContent().getString(); if(val != null){ val = val.trim(); } HttpServletRequest request = ((HttpServletRequest) pageContext .getRequest()); // 判断显示模板是否设置如果未设置则用默认模板 if (this.pagehtmlpath == null || "".equals(this.pagehtmlpath.trim())) { this.pagehtmlpath = Constant.BUTTON_TEMPLET; } // 得到模板内容 String htmlStr = this.getHtmlStr(this.pagehtmlpath); if (logger.isDebugEnabled()) { logger.debug("读取原始模版内容===:" + htmlStr); } MessageFormat mf = new MessageFormat(htmlStr); String tmpId = ""; if(this.id != null ){ tmpId = "id='"+this.id+"'"; } String tmpName = ""; if(this.name != null){ tmpName = "name='"+this.name+"'"; } String tmpCssClass = ""; if(this.cssClass != null){ tmpCssClass = "class='"+this.cssClass+"'"; } String tmpOnClick = ""; if(this.onClick != null){ tmpOnClick = this.onClick; } String tmpTitle = ""; if(this.title != null){ tmpTitle = "title='"+this.title+"'"; } String tmpImg = ""; if(val != null && !"".equals(val)){ tmpImg = "<img src='"+val+"' />"; } String tmpTxt = ""; if(this.txt != null){ tmpTxt = this.txt; } String tmpCommand = ""; if(this.command != null){ tmpCommand = "command='"+this.command+"'"; } if(this.other == null){ this.other = ""; } Object[] pageArgs = {tmpId, tmpName, tmpCssClass, tmpOnClick, tmpTitle, tmpImg, tmpTxt, tmpCommand, this.other}; try { if (logger.isDebugEnabled()) { logger.debug("读取替换后模版内容===:" + mf.format(pageArgs)); } this.getPreviousOut().print(mf.format(pageArgs)); //pageContext.getOut().print(mf.format(pageArgs)); } catch (IOException e) { throw new RuntimeException(e); } return BodyTagSupport.SKIP_BODY; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getOnClick() { return onClick; } public void setOnClick(String onClick) { this.onClick = onClick; } public String getCssClass() { return cssClass; } public void setCssClass(String cssClass) { this.cssClass = cssClass; } public String getTxt() { return txt; } public void setTxt(String txt) { this.txt = txt; } public String getCommand() { return command; } public void setCommand(String command) { this.command = command; } public String getOther() { return other; } public void setOther(String other) { this.other = other; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/ButtonTag.java
Java
oos
3,727
package com.znzx.tag.pagehelper; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.common.BaseSpringBean; import com.znzx.tag.pagehelper.dao.ITagDao; import com.znzx.tag.pagehelper.impl.CheckboxCreateHTMLImpl; import com.znzx.tag.pagehelper.impl.RadioCreateHTMLImpl; import com.znzx.tag.pagehelper.impl.SelectCreateHTMLImpl; public class PageHelper extends BodyTagSupport { private Log logger = LogFactory.getLog(getClass()); private String id = ""; private String name = ""; private String css = ""; private String table; private String type = "select"; private String key = "id"; private String col = ""; private String order = ""; private String where; private Object value; private String br; private String dvalue = ""; private String dcontent = "=请选择="; private String gapnum = ""; private String ascOrDesc = ""; private String style = ""; private String plainText = ""; private ICreateHTML ch; public int doEndTag() throws JspException { List list = this.getContentList(); String strHtml = this.createHtml(list); try { pageContext.getOut().print(strHtml); } catch (IOException e) { throw new RuntimeException(); } return BodyTagSupport.EVAL_BODY_INCLUDE; } @SuppressWarnings("unchecked") private String createHtml(List list){ if("select".equalsIgnoreCase(this.type)){ ch = new SelectCreateHTMLImpl(); }else if("radio".equalsIgnoreCase(this.type)){ ch = new RadioCreateHTMLImpl(); }else if("checkbox".equalsIgnoreCase(this.type)){ ch = new CheckboxCreateHTMLImpl(); }else{ throw new RuntimeException(); } Map mp = new HashMap(); mp.put("id", this.id); mp.put("name", this.name); mp.put("css", this.css); mp.put("list", list); mp.put("value", this.value); mp.put("br", this.br); mp.put("dvalue", this.dvalue); mp.put("dcontent", this.dcontent); mp.put("gapnum", this.gapnum); mp.put("style", style); mp.put("plainText", plainText); String tmpStr = ch.createHtml(mp); return tmpStr; } private List getContentList(){ Map<String, String> map = new HashMap<String, String>(); map.put("key", this.key); map.put("col", this.col); map.put("table", this.table); map.put("where", this.where); map.put("order", this.order); map.put("ascOrDesc", this.ascOrDesc); ITagDao td = (ITagDao)BaseSpringBean.getSpringBean("TagDaoImpl"); List list = td.getTagCodeList(map); // String sql = "select " + this.key + " KEY, " + this.col + " VAL from "+ this.table; // // String sqlWhere = ""; // if(this.where != null && !"".equals(this.where.trim())){ // // sqlWhere = " where " + this.where; // } // // String sqlOrder = ""; // if(this.order != null && !"".equals(this.order.trim())){ // sqlOrder = " order by " + this.order + " " + this.ascOrDesc; // } // // sql += sqlWhere + sqlOrder; // // List list = qd.queryToList(sql); return list; } /** * @return col */ public String getCol() { return col; } /** * @param col 要设置的 col */ public void setCol(String col) { this.col = col; } /** * @return key */ public String getKey() { return key; } /** * @param key 要设置的 key */ public void setKey(String key) { this.key = key; } /** * @return logger */ public Log getLogger() { return logger; } /** * @param logger 要设置的 logger */ public void setLogger(Log logger) { this.logger = logger; } /** * @return order */ public String getOrder() { return order; } /** * @param order 要设置的 order */ public void setOrder(String order) { this.order = order; } /** * @return type */ public String getType() { return type; } /** * @param type 要设置的 type */ public void setType(String type) { this.type = type; } /** * @return value */ public Object getValue() { return value; } /** * @param value 要设置的 value */ public void setValue(Object value) { this.value = value; } /** * @return where */ public String getWhere() { return where; } /** * @param where 要设置的 where */ public void setWhere(String where) { this.where = where; } /** * @return table */ public String getTable() { return table; } /** * @param table 要设置的 table */ public void setTable(String table) { this.table = table; } /** * @return css */ public String getCss() { return css; } /** * @param css 要设置的 css */ public void setCss(String css) { this.css = css; } /** * @return id */ public String getId() { return id; } /** * @param id 要设置的 id */ public void setId(String id) { this.id = id; } /** * @return name */ public String getName() { return name; } /** * @param name 要设置的 name */ public void setName(String name) { this.name = name; } /** * @return br */ public String getBr() { return br; } /** * @param br 要设置的 br */ public void setBr(String br) { this.br = br; } /** * @return dcontent */ public String getDcontent() { return dcontent; } /** * @param dcontent 要设置的 dcontent */ public void setDcontent(String dcontent) { this.dcontent = dcontent; } /** * @return dvalue */ public String getDvalue() { return dvalue; } /** * @param dvalue 要设置的 dvalue */ public void setDvalue(String dvalue) { this.dvalue = dvalue; } /** * @return gapnum */ public String getGapnum() { return gapnum; } /** * @param gapnum 要设置的 gapnum */ public void setGapnum(String gapnum) { this.gapnum = gapnum; } public String getAscOrDesc() { return ascOrDesc; } public void setAscOrDesc(String ascOrDesc) { this.ascOrDesc = ascOrDesc; } public String getStyle() { return style; } public void setStyle(String style) { this.style = style; } public String getPlainText() { return plainText; } public void setPlainText(String plainText) { this.plainText = plainText; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/PageHelper.java
Java
oos
6,759
package com.znzx.tag.pagehelper; import java.util.Map; public interface ICreateHTML { public static final String SPACE = "&nbsp;"; public String createHtml(Map mp); }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/ICreateHTML.java
Java
oos
188
package com.znzx.tag.pagehelper.impl; import java.util.List; import java.util.Map; import com.znzx.tag.pagehelper.ICreateHTML; public class SelectCreateHTMLImpl implements ICreateHTML { public String createHtml(Map mp) { List<Map <String, String>> list = (List) mp.get("list"); String id = (String) mp.get("id"); String name = (String) mp.get("name"); String css = (String) mp.get("css"); String dvalue = (String) mp.get("dvalue"); String dcontent = (String) mp.get("dcontent"); Object value = (Object) mp.get("value"); String style = (String) mp.get("style"); String plainText = (String) mp.get("plainText"); String v = null; if(value != null && !"".equals(((String)value).trim())){ v = (String)value; } String selectStr = "<select id=\""+id+"\" name=\"" + name + "\" " + plainText + " style=\""+style+"\" class=\"" + css + "\">"; String optionStr = ""; if(dvalue != null && dcontent != null && !"".equals(dcontent)){ optionStr += "<option value=\"" + dvalue + "\">" + dcontent + "</option>"; } for(Map<String, String> m : list){ String keyid = m.get("KEYID"); String val = m.get("VAL"); String isSelect = ""; if(v != null && v.equals(keyid)){ isSelect = "selected = \"true\""; } optionStr += "<option value=\"" + keyid + "\" "+isSelect+">" + val + "</option>"; } selectStr += optionStr + "</select>"; return selectStr; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/impl/SelectCreateHTMLImpl.java
Java
oos
1,464
package com.znzx.tag.pagehelper.impl; import java.util.List; import java.util.Map; import com.znzx.tag.pagehelper.ICreateHTML; public class CheckboxCreateHTMLImpl implements ICreateHTML { public String createHtml(Map mp) { List<Map <String, String>> list = (List) mp.get("list"); String id = (String) mp.get("id"); String name = (String) mp.get("name"); String css = (String) mp.get("css"); Object value = (Object) mp.get("value"); String br = (String) mp.get("br"); String gapnum = (String) mp.get("gapnum"); String style = (String) mp.get("style"); String gapStr = ""; if(gapnum != null && !"".equals(gapnum)){ int gap = Integer.parseInt(gapnum); for(int i = 0; i < gap; i++){ gapStr += ICreateHTML.SPACE; } } int num = 0; if(br != null && !"".equals(br.trim())){ num = Integer.parseInt(br); } if(id == null || "".equals(id)){ id = name; } String [] arr = null; String v = null; boolean flag = true; if(value != null){ if(value.getClass().isArray()){ arr = (String [])value; flag = false; }else{ if(value != null && !"".equals(((String)value).trim())){ v = (String)value; } } } String checkBoxStr = ""; int i = 0; int listSize = list.size(); for(Map<String, String> m : list){ String keyid = m.get("KEYID"); String val = m.get("VAL"); String isChecked = ""; if(flag){ if(v != null && v.equals(keyid)){ isChecked = "checked=\"checked\""; } }else{ for(String str : arr){ if(str != null && str.equals(keyid)){ isChecked = "checked=\"checked\""; break; } } } checkBoxStr += "<input type=\"checkbox\" style=\""+style+"\" class=\""+css+"\" "+isChecked+" name=\""+name+"\" value=\""+keyid+"\" id=\""+id+"_"+i+"\" /><label for=\""+id+"_"+i+"\">"+val+"</label>"; if(num != 0){ if((i+1) % num == 0){ checkBoxStr += "<br/>"; }else{ if(i < listSize){ checkBoxStr += gapStr; } } }else{ if(i < listSize){ checkBoxStr += gapStr; } } i++; } return checkBoxStr; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/impl/CheckboxCreateHTMLImpl.java
Java
oos
2,194
package com.znzx.tag.pagehelper.impl; import java.util.List; import java.util.Map; import com.znzx.tag.pagehelper.ICreateHTML; public class RadioCreateHTMLImpl implements ICreateHTML { public String createHtml(Map mp) { List<Map <String, String>> list = (List) mp.get("list"); String id = (String) mp.get("id"); String name = (String) mp.get("name"); String css = (String) mp.get("css"); Object value = (Object) mp.get("value"); String br = (String) mp.get("br"); String gapnum = (String) mp.get("gapnum"); String style = (String) mp.get("style"); String gapStr = ""; if(gapnum != null && !"".equals(gapnum)){ int gap = Integer.parseInt(gapnum); for(int i = 0; i < gap; i++){ gapStr += ICreateHTML.SPACE; } } int num = 0; if(br != null && !"".equals(br.trim())){ num = Integer.parseInt(br); } if(id == null || "".equals(id)){ id = name; } String v = null; if(value != null && !"".equals(((String)value).trim())){ v = (String)value; } String radioStr = ""; int i = 0; int listSize = list.size(); for(Map<String, String> m : list){ String keyid = m.get("KEYID"); String val = m.get("VAL"); String isChecked = ""; if(v != null && v.equals(keyid)){ isChecked = "checked=\"checked\""; } radioStr += "<input type=\"radio\" style=\""+style+"\" class=\""+css+"\" "+isChecked+" name=\""+name+"\" value=\""+keyid+"\" id=\""+id+"_"+i+"\" /><label for=\""+id+"_"+i+"\">"+val+"</label>"; if(num != 0){ if((i+1) % num == 0){ radioStr += "<br/>"; }else{ if(i < listSize){ radioStr += gapStr; } } }else{ if(i < listSize){ radioStr += gapStr; } } i++; } return radioStr; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/impl/RadioCreateHTMLImpl.java
Java
oos
1,801
package com.znzx.tag.pagehelper.dao.impl; import java.util.List; import java.util.Map; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import com.znzx.common.BaseSqlMapClientDaoSupport; import com.znzx.tag.pagehelper.dao.ITagDao; @Repository() @Component("TagDaoImpl") public class TagDaoImpl extends BaseSqlMapClientDaoSupport implements ITagDao { @SuppressWarnings("unchecked") @Override public List<Map<String, String>> getTagCodeList(Map<String, String> param) { return this.queryForListPage(param); } }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/dao/impl/TagDaoImpl.java
Java
oos
591
package com.znzx.tag.pagehelper.dao; import java.util.List; import java.util.Map; public interface ITagDao { /** * 获得动态表数据SQL 用于在页面上显示 下拉框/多选框/单选框 * @param map * @return */ List<Map<String,String>> getTagCodeList(Map<String, String> param); }
zzbasepro
trunk/basepro/src/com/znzx/tag/pagehelper/dao/ITagDao.java
Java
oos
316
package com.znzx.tag; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.text.MessageFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyContent; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.znzx.constant.Constant; public class GridTag extends BaseTage{ private Log logger = LogFactory.getLog(getClass()); // table id private String id; // table name private String name; // 数据对应的action private String action; // table的css private String css; // 每页条数 private int size; // 第几页 private int pageNum; @Override public int doAfterBody() throws JspException { String val = getBodyContent().getString(); if(val != null){ val = val.trim(); } HttpServletRequest request = ((HttpServletRequest) pageContext .getRequest()); String tmpId = ""; if(this.id != null ){ tmpId = "id='"+this.id+"'"; } String tmpName = ""; if(this.name != null){ tmpName = "name='"+this.name+"'"; } String tmpImg = ""; if(val != null && !"".equals(val)){ tmpImg = "<img src='"+val+"' />"; } try { this.getPreviousOut().print(""); } catch (IOException e) { throw new RuntimeException(e); } return BodyTagSupport.SKIP_BODY; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } public String getCss() { return css; } public void setCss(String css) { this.css = css; } public int getSize() { return size; } public void setSize(int size) { this.size = size; } public int getPageNum() { return pageNum; } public void setPageNum(int pageNum) { this.pageNum = pageNum; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/GridTag.java
Java
oos
2,299
package com.znzx.tag; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; import javax.servlet.jsp.tagext.BodyTagSupport; import com.znzx.constant.Constant; public class BaseTage extends BodyTagSupport { public static Map<String, String> TEMPLET_HTML_MAP = new HashMap<String, String>(); protected String pagehtmlpath = ""; /** * 读取模板文件返回文件中的内容. * * @param path * 模板路径. * @return String 根据模板生成的字符串. */ protected String getHtmlStr(String path) { String str = ""; if (BaseTage.TEMPLET_HTML_MAP.get(path) != null) { str = BaseTage.TEMPLET_HTML_MAP.get(path); } else { String newPath = path.replace("/", File.separator); newPath = newPath.replace("\\", File.separator); FileInputStream fs = null; InputStreamReader isr = null; BufferedReader br = null; try { String input = this.getClass().getResource(newPath).getPath(); File file = new File(input); fs = new FileInputStream(file); isr = new InputStreamReader(fs, Constant.CHARACTER); // 单行数据 String lineStr = ""; // 读取文件的BufferedRead对象 br = new BufferedReader(isr); while (lineStr != null) { lineStr = br.readLine(); if (lineStr != null) { str = str + "\r\n" + lineStr; } } } catch (FileNotFoundException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } catch (Throwable e) { throw new RuntimeException(e); } finally { try { br.close(); isr.close(); fs.close(); } catch (IOException e) { throw new RuntimeException(e); } } } BaseTage.TEMPLET_HTML_MAP.put(path, str); return str; } public String getPagehtmlpath() { return pagehtmlpath; } public void setPagehtmlpath(String pagehtmlpath) { this.pagehtmlpath = pagehtmlpath; } }
zzbasepro
trunk/basepro/src/com/znzx/tag/BaseTage.java
Java
oos
2,255
package com.znzx.common; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.interceptor.ServletRequestAware; import org.apache.struts2.interceptor.ServletResponseAware; import org.apache.struts2.interceptor.SessionAware; import com.opensymphony.xwork2.ActionSupport; import com.znzx.constant.Constant; import com.znzx.util.StrUtil; public class BaseAction extends ActionSupport implements ServletRequestAware, ServletResponseAware, SessionAware { private static final long serialVersionUID = 1L; private HttpServletRequest request; private HttpServletResponse response; private Map session; private Map<String, String> param = new HashMap<String, String>(); private Map rParam = new HashMap(); public BaseAction() { param.put("_s", Constant._S); } public String execute() throws Exception { System.out.println("rekey = [" + this.getRequest().getParameter("rekey") + "]"); return this.getRequest().getParameter("rekey"); } @SuppressWarnings("unchecked") protected String refresh(String message, boolean flag) { String _message = message; if (flag) { _message += "成功!"; } else { _message += "失败!"; } return this.refresh(_message); } protected String refresh(boolean flag) { String _message = null; if (flag) { _message = "成功!"; } else { _message = "失败!"; } return this.refresh(_message); } @SuppressWarnings("unchecked") protected String refresh(String message) { this.rParam.put("_message", message); return this.refresh(); } protected String refresh() { return Constant._REFRESH; } protected void splitIds(String sourceIds, String toIds) { String ids = (String) this.param.get(sourceIds); String idStr = StrUtil.strArrToStr(ids.split(","), "','", "'"); this.param.put(toIds, idStr); } protected void splitIds(String sourceIds) { this.splitIds(sourceIds, "strId"); } protected void splitIds() { this.splitIds("ids", "strId"); } protected String get(String key) { return this.param.get(key); } @SuppressWarnings("unchecked") protected void put(String key, Object object) { this.rParam.put(key, object); } protected void write(String str) { try { this.getResponse().getWriter().write(str); } catch (IOException e) { throw new RuntimeException(e); } } /** * 成果falg:<p>[true返回success,false返回input]</p> * @param flag * @return */ @SuppressWarnings("static-access") protected String re(boolean flag) { if (flag) { if(this.getRequest().getParameter("rekey") != null && !"".equals(this.getRequest().getParameter("rekey"))){ return this.getRequest().getParameter("rekey"); } return this.SUCCESS; } else { return this.INPUT; } } public void setServletRequest(HttpServletRequest request) { this.request = request; } public void setServletResponse(HttpServletResponse response) { this.response = response; } public void setSession(Map session) { this.session = session; } public HttpServletRequest getRequest() { return request; } public HttpServletResponse getResponse() { this.response.setContentType(Constant.CONTENT_TYPE); return response; } @SuppressWarnings("unchecked") public Map getSession() { return session; } public Map<String, String> getParam() { return param; } public void setParam(Map<String, String> param) { this.param = param; } public Map getrParam() { return rParam; } public void setrParam(Map rParam) { this.rParam = rParam; } }
zzbasepro
trunk/basepro/src/com/znzx/common/BaseAction.java
Java
oos
3,806
package com.znzx.common.tree; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Random; import com.thoughtworks.xstream.XStream; import com.znzx.pojo.treegrid.Cell; import com.znzx.pojo.treegrid.Row; import com.znzx.pojo.treegrid.Rows; public class TreeGridModule implements ITreeTool{ @Override public String createTreeXml(List<Map<String, String>> list, String openStr) { Rows rows = new Rows(); rows.setId("0"); int size = list.size(); for(int i = 0; i < size; i++){ Map<String, String> mp = list.get(i); Row row = new Row(); row.setId(mp.get("id")); row.setOpen("1"); row.setUpModuleId(mp.get("up_module_id")); Cell cell = new Cell(); cell.setValue(String.valueOf(i)); row.addCell(cell); cell = new Cell(); cell.setValue(mp.get("module_name")); row.addCell(cell); cell = new Cell(); String val = "<input type='checkbox' name='param.mids' value='"+mp.get("id")+"'/>"; if(!"-1".equals(mp.get("isselect"))){ val = "<input type='checkbox' name='param.mids' value='"+mp.get("id")+"' checked='checked'/>"; } cell.setValue(val); row.addCell(cell); rows.putRow(row); } XStream xstream = new XStream(); xstream.processAnnotations(Rows.class); String xml = xstream.toXML(rows); return xml; } public static void main(String[] args) { Random rand=new Random(); for(int i = 0; i < 999; i ++){ int num = rand.nextInt(2); System.out.print(num); } } }
zzbasepro
trunk/basepro/src/com/znzx/common/tree/TreeGridModule.java
Java
oos
1,550
package com.znzx.common.tree; import java.util.List; import java.util.Map; public interface ITreeTool { String createTreeXml(List<Map<String, String>> list, String openStr); }
zzbasepro
trunk/basepro/src/com/znzx/common/tree/ITreeTool.java
Java
oos
187
package com.znzx.common.tree; import java.util.List; import java.util.Map; import com.thoughtworks.xstream.XStream; import com.znzx.pojo.tree.TreeInfo; import com.znzx.pojo.tree.TreeRoot; public class TreeToolAllModule implements ITreeTool{ @Override public String createTreeXml(List<Map<String, String>> list, String openStr) { String [] openArr = null; boolean flag = false; if(openStr != null && !"".equals(openStr.trim())){ openArr = openStr.split(","); flag = true; } TreeRoot tr = new TreeRoot(); for(Map<String, String> mp : list){ TreeInfo ti = new TreeInfo(); ti.setId(mp.get("id")); ti.setText(mp.get("module_name")); ti.setUpModuleId(mp.get("up_module_id")); if("1".equals(mp.get("id"))){ ti.setOpen("1"); } if(flag){ for(String arrStr :openArr){ String [] arrFlag = arrStr.split("\\$"); if(arrFlag.length > 1){ if(mp.get("id").equals(arrFlag[0])){ ti.setOpen(arrFlag[1]); break; } } } } tr.putTreeInfo(ti); } XStream xstream = new XStream(); xstream.processAnnotations(TreeInfo.class); xstream.processAnnotations(TreeRoot.class); String xml = xstream.toXML(tr); return xml; } public static void main(String[] args) { String [] s = "1$2$5".split("\\$"); String [] b = "1#2#5".split("#"); } }
zzbasepro
trunk/basepro/src/com/znzx/common/tree/TreeToolAllModule.java
Java
oos
1,378
package com.znzx.common.tree; import java.util.List; import java.util.Map; import com.thoughtworks.xstream.XStream; import com.znzx.pojo.UserData; import com.znzx.pojo.tree.TreeInfo; import com.znzx.pojo.tree.TreeRoot; public class TreeToolInitModule implements ITreeTool{ @Override public String createTreeXml(List<Map<String, String>> list, String openStr) { String [] openArr = null; boolean flag = false; if(openStr != null && !"".equals(openStr.trim())){ openArr = openStr.split(","); flag = true; } TreeRoot tr = new TreeRoot(); tr.setId("1"); for(Map<String, String> mp : list){ TreeInfo ti = new TreeInfo(); ti.setId(mp.get("id")); ti.setText(mp.get("module_name")); ti.setUpModuleId(mp.get("up_module_id")); ti.addUserData("url", mp.get("url")); if(flag){ for(String arrStr :openArr){ String [] arrFlag = arrStr.split("\\$"); if(arrFlag.length > 1){ if(mp.get("id").equals(arrFlag[0])){ ti.setOpen(arrFlag[1]); break; } } } } tr.putTreeInfo(ti); } XStream xstream = new XStream(); xstream.processAnnotations(TreeInfo.class); xstream.processAnnotations(TreeRoot.class); String xml = xstream.toXML(tr); return xml; } public static void main(String[] args) { String [] s = "1$2$5".split("\\$"); String [] b = "1#2#5".split("#"); } }
zzbasepro
trunk/basepro/src/com/znzx/common/tree/TreeToolInitModule.java
Java
oos
1,409
package com.znzx.common.grid; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Random; import java.util.TreeMap; import com.thoughtworks.xstream.XStream; import com.znzx.constant.Constant; import com.znzx.pojo.ListMap; import com.znzx.pojo.grid.Cell; import com.znzx.pojo.grid.ColType; import com.znzx.pojo.grid.Column; import com.znzx.pojo.grid.Colwidth; import com.znzx.pojo.grid.Head; import com.znzx.pojo.grid.Option; import com.znzx.pojo.grid.Row; import com.znzx.pojo.grid.Rows; import com.znzx.pojo.grid.Settings; import com.znzx.util.DateUtil; public class SimpleGridTool implements IGridTool { @SuppressWarnings("unchecked") @Override public String createGridXml(List<Map<String, String>> list, List<ColType> colInfos, boolean isRowNum) { Rows rows = new Rows(); Collection<String> kList = null; if(list != null && list.size() > 0){ kList = ((ListMap)list.get(0)).keyList(); } for(int i = 0; i < list.size(); i ++){ ListMap mp = (ListMap)list.get(i); Row row = new Row(); //是否生成序号 if(isRowNum){ Cell cell = new Cell(); cell.setValue(String.valueOf(1+i)); row.addCell(cell); } for(String key : kList){ ColType colType = null; boolean flag = false; boolean isDisplay = true; for(int k = 0; k < colInfos.size(); k++){ ColType col = colInfos.get(k); if(key.equalsIgnoreCase(col.getColName().trim())){ flag = true; colType = col; isDisplay = col.isDisplay(); break; } } if(isDisplay){ String value = this.getValue(mp, key); String val = ""; if(flag){ if(colType.getColType() == null || "".equals(colType.getColType().trim())){ val = value; }else if(Constant.CHECKBOX.equals(colType.getColType().trim())){ String isChecked = ""; if(!"0".equals(value)){ isChecked = "checked='true'"; } String tagVal = this.getValue(mp,colType.getTagName()); val = "<input type='checkbox' "+isChecked+" name=\"param."+key+"\" value='"+tagVal+"'/>"; }else if(Constant.RADIO.equals(colType.getColType().trim())){ String isChecked = ""; if(!"0".equals(value)){ isChecked = "checked='true'"; } val = "<input type='radio' "+isChecked+" name=\"param."+key+"\" value='"+value+"' />"; } }else{ val = value; } Cell cell = new Cell(); cell.setValue(val); row.addCell(cell); } if(colType.isId()){ if(row.getId() == null || "".equals(row.getId())){ row.setId((String)mp.get(colType.getColName())); }else{ row.setId(row.getId()+"_$_"+mp.get(colType.getColName())); } } } rows.addRow(row); } XStream xstream = new XStream(); xstream.processAnnotations(Rows.class); String xml = xstream.toXML(rows); return xml; } protected String getValue(Map mp, String key) { String value = ""; if(mp.get(key) instanceof String){ value = (String)mp.get(key); }else if(mp.get(key) instanceof Timestamp){ long myTime=(((Timestamp)mp.get(key)).getTime()/1000); value = DateUtil.getDateTime(myTime*1000); } return value; } public String testCreateGrid(){ Rows rows = new Rows(); Random rand=new Random(); Head head = new Head(); for(int i = 0; i < 10; i++){ Column column = new Column(); column.setAlign(String.valueOf(rand.nextInt(10))); Option option = new Option(); option.setText(String.valueOf(rand.nextInt(10))); option.setValue(String.valueOf(rand.nextInt(10))); column.addOption(option); column.setSort(String.valueOf(rand.nextInt(10))); column.setType(String.valueOf(rand.nextInt(10))); column.setValue(String.valueOf(rand.nextInt(10))); column.setWidth(String.valueOf(rand.nextInt(10))); head.addColumn(column); } Settings settings = new Settings(); Colwidth colwidth = new Colwidth(); colwidth.setValue(String.valueOf(rand.nextInt(10))); settings.setColwidth(colwidth); head.setSettings(settings); rows.addHead(head); for(int i = 0; i < 10; i++){ Row row = new Row(); for(int j = 0; j < 10; j++){ Cell cell = new Cell(); cell.setValue(String.valueOf(rand.nextInt(10))); row.addCell(cell); } row.setId(String.valueOf(rand.nextInt(10))); rows.addRow(row); } XStream xstream = new XStream(); xstream.processAnnotations(Rows.class); String xml = xstream.toXML(rows); return null; } public static void main(String[] args) { IGridTool gt = new SimpleGridTool(); //gt.createGridXml(null); } }
zzbasepro
trunk/basepro/src/com/znzx/common/grid/SimpleGridTool.java
Java
oos
4,798
package com.znzx.common.grid; import java.util.List; import java.util.Map; import com.znzx.pojo.grid.ColType; public interface IGridTool { String createGridXml(List<Map<String, String>> list, List<ColType> colInfo, boolean isRowNum); }
zzbasepro
trunk/basepro/src/com/znzx/common/grid/IGridTool.java
Java
oos
250
package com.znzx.common; import javax.servlet.ServletContext; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; import com.znzx.job.TaskServlet; public class BaseSpringBean { protected final Log log = LogFactory.getLog(getClass()); private static ApplicationContext ctx = null; public static Object getSpringBean(String name) throws BeansException { if (ctx == null) { ctx = WebApplicationContextUtils.getWebApplicationContext(TaskServlet._CONTEXT); } return ctx.getBean(name); } }
zzbasepro
trunk/basepro/src/com/znzx/common/BaseSpringBean.java
Java
oos
740
package com.znzx.common; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport; import com.ibatis.sqlmap.client.SqlMapClient; import com.znzx.constant.Constant; import com.znzx.util.DateUtil; import com.znzx.util.UUIDGenerator; public class BaseSqlMapClientDaoSupport extends SqlMapClientDaoSupport { @Resource(name = "sqlMapClient") public void setBaseSqlMapClient(SqlMapClient sqlMapClient) { this.setSqlMapClient(sqlMapClient); } public String getUuid() { String uuid = UUIDGenerator.getUUID(); return Constant.BEFORE_UUID + uuid; } @SuppressWarnings("unchecked") public Object insert(String statementName, Object param, String[] idArrs) { for (String str : idArrs) { ((Map) param).put(str, this.getUuid()); } return this.getSqlMapClientTemplate().insert(statementName, param); } @SuppressWarnings("unchecked") public Object insert(Object param, String[] idArrs) { for (String str : idArrs) { ((Map) param).put(str, this.getUuid()); } String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.getSqlMapClientTemplate().insert(_methodName, param); } @SuppressWarnings("unchecked") public Object insert(String statementName, Object param, String[] idArrs, String[] dateArrs) { for (String str : idArrs) { ((Map) param).put(str, this.getUuid()); } for (String str : dateArrs) { ((Map) param).put(str, DateUtil.getCurrentDateTime()); } return this.getSqlMapClientTemplate().insert(statementName, param); } @SuppressWarnings("unchecked") public Object insert(Object param, String[] idArrs, String[] dateArrs) { for (String str : idArrs) { ((Map) param).put(str, this.getUuid()); } for (String str : dateArrs) { ((Map) param).put(str, DateUtil.getCurrentDateTime()); } String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.getSqlMapClientTemplate().insert(_methodName, param); } @SuppressWarnings("unchecked") public Object insertD(String statementName, Object param, String[] dateArrs) { for (String str : dateArrs) { ((Map) param).put(str, DateUtil.getCurrentDateTime()); } return this.getSqlMapClientTemplate().insert(statementName, param); } @SuppressWarnings("unchecked") public Object insertD(Object param, String[] dateArrs) { for (String str : dateArrs) { ((Map) param).put(str, DateUtil.getCurrentDateTime()); } String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.getSqlMapClientTemplate().insert(_methodName, param); } public Object insert(String statementName, Object param) { return this.getSqlMapClientTemplate().insert(statementName, param); } public Object insert(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.getSqlMapClientTemplate().insert(_methodName, param); } public int delete(String statementName, Object param) { return this.getSqlMapClientTemplate().delete(statementName, param); } public boolean deleteB(String statementName, Object param) { int num = this.getSqlMapClientTemplate().delete(statementName, param); if (num == 0) { return false; } else { return true; } } public boolean deleteB(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.deleteB(_methodName, param); } public int update(String statementName, Object param) { return this.getSqlMapClientTemplate().update(statementName, param); } public boolean updateB(String statementName, Object param) { int num = this.getSqlMapClientTemplate().update(statementName, param); if (num == 0) { return false; } else { return true; } } public boolean updateB(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.updateB(_methodName, param); } @SuppressWarnings("unchecked") public List queryForList(String statementName, Object param) { return this.getSqlMapClientTemplate() .queryForList(statementName, param); } @SuppressWarnings("unchecked") public List queryForListPage(String statementName, Object param) { Map tmpMap = (Map) param; tmpMap.put("_isPage", "1"); String _s = (String) tmpMap.get("_s"); String _k = "0"; if(tmpMap.get("_b") != null){ String _b = (String) tmpMap.get("_b"); int pageNum = Integer.parseInt(_b) - 1; int pageSize = Integer.parseInt(_s); _k = String.valueOf(pageNum * pageSize); }else{ tmpMap.put("_b","1"); } tmpMap.put("_k", _k); tmpMap.remove("_count"); List list = this.queryForList(statementName, param); tmpMap.remove("_s"); tmpMap.put("_count", ""); List<Map<String, String>> countList = this.queryForList(statementName, param); tmpMap.put("_s", _s); String _count = String.valueOf(countList.get(0).get("_count")); tmpMap.put("_count", _count); return list; } @SuppressWarnings("unchecked") public Map queryForMap(String statementName, Object param, String keyProperty) { return this.getSqlMapClientTemplate().queryForMap(statementName, param, keyProperty); } public Object queryForObject(String statementName, Object param) { return this.getSqlMapClientTemplate().queryForObject(statementName, param); } @SuppressWarnings("unchecked") public List queryForList(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.queryForList(_methodName, param); } @SuppressWarnings("unchecked") public List queryForListPage(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); List list = this.queryForListPage(_methodName, param); return list; } @SuppressWarnings("unchecked") public Map queryFor(Object param, String keyProperty) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.queryForMap(_methodName, param, keyProperty); } public Object queryForObject(Object param) { String _methodName = new Exception().getStackTrace()[1].getMethodName(); return this.queryForObject(_methodName, param); } }
zzbasepro
trunk/basepro/src/com/znzx/common/BaseSqlMapClientDaoSupport.java
Java
oos
6,412
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <html> <head> <title>worile</title> </head> <body> <s:form name="login" action="login" namespace="/go" method="post" theme="simple"> <s:textfield name="param.username" label="用户名"></s:textfield> <s:password name="param.password" label="密码"></s:password> <s:submit></s:submit> </s:form> </body> </html>
zzbasepro
trunk/basepro/WebRoot/index.jsp
Java Server Pages
oos
479
//判断复选款选择情况. //checkname : 复选框名称(name). //num : 个数. //flag : 最多或最少选 num 个 (true:最少;false最多). function checkboxNum(checkname,num,flag){ var ckname = document.getElementsByName(checkname); var j=0; for(i=0;i<ckname.length;i++){ if(ckname[i].checked!=false){ j++; } } if(flag){ if(j>=num){ return true; }else{ return false; } }else{ if(j<=num){ return true; }else{ return false; } } }
zzbasepro
trunk/basepro/WebRoot/script/validate.js
JavaScript
oos
567
function dhtmlXForm(parentObj, data) { //init data processing part this.loadedCollection = {}; this.inputs = []; this.commands = []; this.validators = []; this.formId; this.i18n = {}; this.i18n.confirm_delete = 'Are you sure that you want to delete information from this form?'; this.xmlLoader = new dtmlXMLLoaderObject(this.doLoadDetails, this, true, this.no_cashe); this.commandsCollection = { load: 'load', save: 'save', remove: 'remove', reset: 'reset', validate: 'validate' }; //end of data processing part init var that = this; this.skin = "dhx_skyblue"; this.setSkin = function(skin) { this.skin = skin; this.cont.className = "dhxlist_obj_"+this.skin; this.cont.style.fontSize = (this.skin == "dhx_web"?"12px":"11px"); } this._type = "checkbox"; this._rGroup = "default"; this.cont = (typeof(parentObj)=="object"?parentObj:document.getElementById(parentObj)); if (!parentObj._isNestedForm) { this._parentForm = true; this.cont.style.fontSize = (this.skin == "dhx_web"?"12px":"11px"); this.cont.className = "dhxlist_obj_"+this.skin; this.setFontSize = function(fs) { this.cont.style.fontSize = fs; } } this.base = document.createElement("DIV"); this.base.className = "dhxlist_base"; this.cont.appendChild(this.base); this.setSizes = function() { this.base.style.height = this.cont.offsetHeight+"px"; this.base.style.overflow = "auto"; } this._parseInputs(); this.t = document.createElement("TABLE"); this.t.className = "dhxlist_items_set"; this.t.border = 0; this.t.cellSpacing = 1; this.t.cellPadding = 0; this.tb = document.createElement("TBODY"); this.t.appendChild(this.tb); this.base.appendChild(this.t); var tr = document.createElement("TR"); tr._type = "dhxlist_hdr"; tr.className = "dhxlist_tbl_head"; this.tb.appendChild(tr); var th1 = document.createElement("TH"); var th2 = document.createElement("TH"); th1.className = "dhxlist_img_cell dhxlist_tbl_head"; th2.className = "dhxlist_tbl_head"; tr.appendChild(th1); tr.appendChild(th2); tr.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} th1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} th2.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} this._genStr = function(w) { var s = ""; var z = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; for (var q=0; q<w; q++) s += z.charAt(Math.round(Math.random() * (z.length-1))); return s; } this.idPrefix = "dhxList_"+this._genStr(12)+"_"; this.objPull = {}; this.itemPull = {}; this._ic = 0; this._addItem = function(type, id, data, sId, lp) { if (!type) type = this._type; var tr = document.createElement("TR"); tr._idd = id; if (type == "list") { if (sId != null) tr._sId = sId; if (this.getItemType(lp)=="fieldset") { tr._fs = true; data._fsText = this.getItemText(lp); data._fsWidth = this.getItemWidth(lp); this.itemPull[this.idPrefix+id]._fs = tr; }; this.tb.appendChild(tr); var listData = this.items[type].render(tr, data); //(this.getItemType(lp)=="fieldset"?this.getItemText(lp):null) this.tb.appendChild(tr); if (!this.itemPull[this.idPrefix+id]._listObj) this.itemPull[this.idPrefix+id]._listObj = []; if (!this.itemPull[this.idPrefix+id]._list) this.itemPull[this.idPrefix+id]._list = []; (this.itemPull[this.idPrefix+id]._listObj).push(listData[0]); (this.itemPull[this.idPrefix+id]._list).push(listData[1]); listData[1].checkEvent = function(evName) { return that.checkEvent(evName); } listData[1].callEvent = function(evName, evData) { return that.callEvent(evName, evData); } return listData[1]; } else { this.tb.appendChild(tr); if (type != "input") tr.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} if (type == "label" && this._ic == 0) data._isTopmost = true; this.objPull[this.idPrefix+id] = this.items[type].render(tr, data); this.itemPull[this.idPrefix+id] = tr; tr.checkEvent = function(evName) { return that.checkEvent(evName); } tr.callEvent = function(evName, evData) { return that.callEvent(evName, evData); } tr._autoCheck = function() { that._autoCheck(); } } this._ic++; } /********************************************************************************************************************************************* OBJECT INIT *********************************************************************************************************************************************/ this._initObj = function(data) { for (var q=0; q<data.length; q++) { var type = (data[q].type||"checkbox"); var id = data[q].name||this._genStr(12); if (this.objPull[this.idPrefix+id] != null || type=="radio") id = this._genStr(12); var obj = data[q]; obj.label = obj.label||""; obj.value = obj.value||""; obj.checked = !!obj.checked; obj.disabled = !!obj.disabled; obj.name = obj.name||this._genStr(12); obj.options = obj.options||[]; obj.rows = obj.rows||"none"; obj.uid = this._genStr(12); this._addItem(type, id, obj); if (this._parentEnabled === false) this._disableItem(id); for (var w=0; w<obj.options.length; w++) { if (obj.options[w].list != null) { if (!obj.options[w].value) obj.options[w].value = this._genStr(); var subList = this._addItem("list", id, obj.options[w].list, obj.options[w].value); subList._subSelect = true; subList._subSelectId = obj.options[w].value; } this._autoCheck(); } if (data[q].list != null) { if (!data[q].listParent) data[q].listParent = data[q].name; var subList = this._addItem("list", id, data[q].list, null, data[q].listParent);//(data[q].listParent=="fieldset")); this._autoCheck(); } } this._parseInputs(); } /********************************************************************************************************************************************* XML *********************************************************************************************************************************************/ this._attrs = ["type", "name", "value", "label", "check", "checked", "disabled", "text", "rows", "select", "selected", "validate", "bind", "command", "width"]; this._xmlToObject = function(xmlData, itemTag) { var obj = []; for (var q=0; q<xmlData.childNodes.length; q++) { if (String(xmlData.childNodes[q].tagName||"").toLowerCase() == itemTag) { var p = {}; var t = xmlData.childNodes[q]; for (var w=0; w<this._attrs.length; w++) if (t.getAttribute(this._attrs[w]) != null) p[this._attrs[w]] = t.getAttribute(this._attrs[w]); if (!p.text && itemTag == "option") try { p.text = t.firstChild.nodeValue; } catch(e){} if (itemTag != "option" && t.childNodes.length > 0) p[(p.type=="select"?"options":"list")] = this._xmlToObject(t, (p.type=="select"?"option":itemTag)); if (itemTag == "option" && xmlData.childNodes[q].getElementsByTagName("item").length > 0) p["list"] = this._xmlToObject(t, "item"); if (p.list) p.listParent = p.name; obj[obj.length] = p; } } return obj; } this._xmlParser = function() { that._initObj(that._xmlToObject(this.getXMLTopNode("items"), "item")); that.callEvent("onXLE",[]); if (typeof(that._doOnLoad) == "function") that._doOnLoad(); } this._doOnLoad = null; this._xmlLoader = new dtmlXMLLoaderObject(this._xmlParser, window); this.loadStruct = function(xmlFile, onLoadFunction) { this._doOnLoad = (onLoadFunction||null); this.callEvent("onXLS", []); this._xmlLoader.loadXML(xmlFile); } this.loadStructString = function(xmlString, onLoadFunction) { this._doOnLoad = (onLoadFunction||null); this._xmlLoader.loadXMLString(xmlString); } /********************************************************************************************************************************************* AUTOCHECK (Global enable/disable functionality) *********************************************************************************************************************************************/ this._autoCheck = function(enabled) { for (var a in this.itemPull) { var isEnabled = (typeof(enabled)=="undefined"?true:enabled)&&this.itemPull[a]._checked; if (this.itemPull[a]._list) { for (var q=0; q<this.itemPull[a]._list.length; q++) { var list = this.itemPull[a]._list[q]; list._parentEnabled = isEnabled&&(typeof(this._parentEnabled)=="undefined"?true:this._parentEnabled); for (var b in list.itemPull) { var idd = list.itemPull[b]._idd; if (list._subSelect === true) { var sVal = this.getItemValue(this.itemPull[a]._idd); isEnabled = (list._subSelectId == sVal && this.itemPull[a]._enabled); for (var w=0; w<this.tb.childNodes.length; w++) { var p = this.tb.childNodes[w]; if (p._sId != null) p.style.display = (sVal==p._sId?"":"none"); } } if (isEnabled) list._enableItem(idd); else list._disableItem(idd); if (list.itemPull[b]._list) list._autoCheck(isEnabled); } } } } } /********************************************************************************************************************************************* PUBLIC API *********************************************************************************************************************************************/ this.doWithItem = function(id, method, a, b, c, d) { // radio //console.log(method) if (typeof(id) == "object") { var group = id[0]; var value = id[1]; var item = null; var res = null; for (var k in this.itemPull) { if ((this.itemPull[k]._value == value || value === null) && this.itemPull[k]._group == group) return this.objPull[k][method](this.itemPull[k], a, b, c, d); if (this.itemPull[k]._list != null && !res) { for (var q=0; q<this.itemPull[k]._list.length; q++) { res = this.itemPull[k]._list[q].doWithItem(id, method, a, b, c); } } } return res; // checkbox, input, select, label } else { if (!this.itemPull[this.idPrefix+id]) { var res = null; for (var k in this.itemPull) { if (this.itemPull[k]._list && !res) { for (var q=0; q<this.itemPull[k]._list.length; q++) { res = this.itemPull[k]._list[q].doWithItem(id, method, a, b, c, d); } } } return res; } else { return this.objPull[this.idPrefix+id][method](this.itemPull[this.idPrefix+id], a, b, c, d); } } } this.removeItem = function(id, value) { if (value != null) id = this.doWithItem([id, value], "destruct"); else this.doWithItem(id, "destruct"); this._clearItemData(id); } this._clearItemData = function(id) { if (this.itemPull[this.idPrefix+id]) { id = this.idPrefix+id; try { this.objPull[id] = null; this.itemPull[id] = null; delete this.objPull[id]; delete this.itemPull[id]; } catch(e) {} } else { for (var k in this.itemPull) { if (this.itemPull[k]._list) { for (var q=0; q<this.itemPull[k]._list.length; q++) this.itemPull[k]._list[q]._clearItemData(id); } } } } this.isItem = function(id, value) { if (value != null) id = [id, value]; return this.doWithItem(id, "isExist"); } this.getItemType = function(id, value) { if (value != null) id = [id, value]; return this.doWithItem(id, "getType"); } /* iterator */ this.forEachItem = function(handler) { for (var a in this.objPull) { handler(String(a).replace(this.idPrefix,"")); if (this.itemPull[a]._list) { for (var q=0; q<this.itemPull[a]._list.length; q++) this.itemPull[a]._list[q].forEachItem(handler); } } } /* text */ this.setItemLabel = function(id, value, text) { if (text != null) id = [id, value]; else text = value; this.doWithItem(id, "setText", text); } this.getItemText = function(id, value) { if (value != null) id = [id, value]; return this.doWithItem(id, "getText"); } /* state */ this._enableItem = function(id) { this.doWithItem(id, "enable"); } this._disableItem = function(id) { this.doWithItem(id, "disable"); } this._isItemEnabled = function(id) { return this.doWithItem(id, "isEnabled"); } /* selection */ this.checkItem = function(id, value) { if (value != null) id = [id, value]; this.doWithItem(id, "check"); this._autoCheck(); } this.uncheckItem = function(id, value) { if (value != null) id = [id, value]; this.doWithItem(id, "unCheck"); this._autoCheck(); } this.isItemChecked = function(id, value) { if (value != null) id = [id, value]; return this.doWithItem(id, "isChecked"); } this.getCheckedValue = function(id) { return this.doWithItem([id, null], "getChecked"); } /* value */ this.setItemValue = function(id, value) { return this.doWithItem(id, "setValue", value); } this.getItemValue = function(id) { return this.doWithItem(id, "getValue"); } /* visibility */ this.showItem = function(id) { this.doWithItem(id, "show"); } this.hideItem = function(id) { this.doWithItem(id, "hide"); } this.isItemHidden = function(id) { return this.doWithItem(id, "isHidden"); } /* options (select only) */ this.getOptions = function(id) { return this.doWithItem(id, "getOptions"); } /* width/height */ this.setItemWidth = function(id, width) { this.doWithItem(id, "setWidth", width); } this.getItemWidth = function(id) { return this.doWithItem(id, "getWidth"); } this.setItemHeight = function(id, height) { // textarea this.doWithItem(id, "setHeight", height); } /* position */ /* this.setItemPosition = function(id, value, position) { if (position != null) id = [id, value]; else position = value; this.doWithItem(id, "setPosition", position); } this.getItemPosition = function(id, value) { if (value != null) id = [id, value]; return this.doWithItem(id, "getPosition"); } this._setPosition = function(item, pos) { var itemNext = null; var j = 1; var tb = item.parentNode; for (var q=0; q<tb.childNodes.length; q++) { var it = tb.childNodes[q]; if (!(it._type == "list" || it._type == "dhxlist_hdr")) { if (j == pos && !itemNext) itemNext = it; j++; } it = null; } if (itemNext != null) tb.insertBefore(item, itemNext); else tb.appendChild(item); itemNext = null; } this._getPosition = function(item) { var pos = null; var j = 1; var tb = item.parentNode; for (var q=0; q<tb.childNodes.length; q++) { var it = tb.childNodes[q]; if (!(it._type == "list" || it._type == "dhxlist_hdr")) { if (it == item) pos = j; else j++; } it = null; } return pos; } */ this.clear = function() { var usedRAs = {}; this.formId = (new Date()).valueOf();//remove form id, so next operation will be insert this.resetDataProcessor("inserted"); for (var a in this.itemPull) { var t = this.itemPull[a]._idd; // checkbox if (this.itemPull[a]._type == "ch") this.uncheckItem(t); // input/textarea if (this.itemPull[a]._type == "ta") this.setItemValue(t, ""); // select if (this.itemPull[a]._type == "se") { var opts = this.getOptions(t); if (opts.length > 0) opts[0].selected = true; } // radiobutton if (this.itemPull[a]._type == "ra") { var g = this.itemPull[a]._group; if (!usedRAs[g]) { this.checkItem(g, this.doWithItem(t, "_getFirstValue")); usedRAs[g] = true; } } // nested lists if (this.itemPull[a]._list) for (var q=0; q<this.itemPull[a]._list.length; q++) this.itemPull[a]._list[q].clear(); } usedRAs = null; if (this._parentForm) this._autoCheck(); /* for (var a in this.objPull) this.removeItem(String(a).replace(this.idPrefix,"")); this.objPull = null; this.itemPull = null; */ } this.unload = function() { for (var a in this.objPull) this.removeItem(String(a).replace(this.idPrefix,"")); this._attrs = null; this._xmlLoader.destructor(); this._xmlLoader = null; this._xmlParser = null; this._xmlToObject = null; this.loadXML = null; this.loadXMLString = null; this.items = null; this.objPull = null; this.itemPull = null; this._addItem = null; this._genStr = null; this._initObj = null; this._autoCheck = null; this._clearItemData = null; this._enableItem = null; this._disableItem = null; this._isItemEnabled = null; this.forEachItem = null; this.isItem = null; this.clear = null; this.doWithItem = null; this.getItemType = null; this.removeItem = null; this.unload = null; this.attachEvent = null; this.callEvent = null; this.checkEvent = null; this.detachEvent = null; this.eventCatcher = null; this.setItemPosition = null; this.getItemPosition = null; this._setPosition = null; this._getPosition = null; this.setItemLabel = null; this.getItemText = null; this.setItemValue = null; this.getItemValue = null; this.showItem = null; this.hideItem = null; this.isItemHidden = null; this.checkItem = null; this.uncheckItem = null; this.isItemChecked = null; this.getOptions = null; // some more this.xmlLoader.destructor(); this.xmlLoader = null; this._ic = null; this._add_css_ = null; this._createBlock = null; this._createHash = null; this._createList = null; this._createQuery = null; this._del_css_ = null; this._getElementValue = null; this._is_css_ = null; this._loadOptions = null; this._loadToForm = null; this._parseInputs = null; this._parseXML = null; this._processObj = null; this._setDefaultValues = null; this._setElementValue = null; this._ulToObject = null; this.commandsCollection = null; this.loadedCollection = null; this.i18n = null; this.inputs = null; this.bindCommand = null; this.bindField = null; this.bindValidator = null; this.load = null; this.loadStruct = null; this.loadStructString = null; this.remove = null; this.reset = null; this.save = null; this.setFontSize = null; this.setItemHeight = null; this.setItemWidth = null; this.setSkin = null; this.validate = null; this.commands = null; this.validators = null; var tr = this.tb.childNodes[0]; tr.childNodes[0].onselectstart = null; tr.childNodes[1].onselectstart = null; while (tr.childNodes.length > 0) tr.removeChild(tr.childNodes[0]); tr.onselectstart = null; tr.parentNode.removeChild(tr); tr = null; this.tb.parentNode.removeChild(this.tb); this.tb = null; this.t.parentNode.removeChild(this.t); this.t = null; this._rGroup = null; this._type = null; this.skin = null; this.idPrefix = null; while (this.base.childNodes.length > 0) this.base.removeChild(this.base.childNodes[0]); if (this.base.parentNode) this.base.parentNode.removeChild(this.base); this.base = null; this.cont.className = ""; this.cont = null; //try { for (var a in this) delete this[a]; } catch(e) {} } for (var a in this.items) { this.items[a].t = a; if (!this.items[a].show) { this.items[a].show = function(item) { item.style.display = ""; } } if (!this.items[a].hide) { this.items[a].hide = function(item) { item.style.display = "none"; } } if (!this.items[a].isHidden) { this.items[a].isHidden = function(item) { return (item.style.display == "none"); } } this.items[a].getType = function() { return this.t; } this.items[a].isExist = function() { return true; } /* this.items[a].getPosition = function(item) { return that._getPosition(item); } this.items[a].setPosition = function(item, position) { return that._setPosition(item, position); } */ } dhtmlxEventable(this); this.attachEvent("_onButtonClick", function(name, cmd){ var i = {"save":true, "validate":true, "reset":true}; if (i[cmd]) this[cmd](); else this.callEvent("onButtonClick", [name, cmd]); }); if (data != null && typeof data == "object") { this._initObj(data); } }; dhtmlXForm.prototype = { load: function(url, callback){ var that = this; var params = ''; var dirty = false; for (var i in this.inputs) if (this._getElementValue(this.inputs[i]) != this.inputs[i].defaultValue) dirty = true; if (dirty && !this.callEvent("onDirty", [that.formId])) return false; this.callEvent("onXLS", [this.formId]); this.xmlLoader.onloadAction = function(that, b, c, d, xml){ that._parseXML(xml); that.callEvent("onXLE", [that.formId]); that._loadToForm(); if (callback) callback(that.formId, xml); } var id = url.match(/(\?|\&)id\=([a-z0-9_]*)/i); if (id && id[0]) this.formId = id[0].split("=")[1]; this.xmlLoader.loadXML(url); }, _parseXML: function(xml){ var root = xml.getXMLTopNode("data"); var inputs = root.childNodes; if (inputs.length == 0){ this.formId = (new Date()).valueOf(); this.resetDataProcessor("inserted"); return false; } this.resetDataProcessor("updated"); for (var i = 0; i < inputs.length; i++){ if (inputs[i].nodeType == 1) this.loadedCollection[inputs[i].nodeName] = inputs[i].childNodes[0].nodeValue; } return true; }, _parseInputs: function(){ var that = this; var els = this.cont.getElementsByTagName("*"); var bind; var command; var validate; var connector; for (var i = 0; i < els.length; i++){ bind = els[i].getAttribute("bind"); if (bind !== null){ var obj = this._processObj(els[i]); obj.defaultValue = this._getElementValue(obj); this.inputs[bind] = obj; } command = els[i].getAttribute("command"); if (!els[i]._dhx_bind){ this.bindCommand(els[i], command); els[i]._dhx_bind=true; } validate = els[i].getAttribute("validate"); this.bindValidator(els[i], validate); connector = els[i].getAttribute("connector"); if (connector !== null){ this._loadOptions(connector, els[i]); } } }, _loadOptions: function(connector, el){ var that = this; dhtmlxAjax.get(connector, function(xml){ that._createList(el, xml); that = null; }); }, _createList: function(el, xml){ var root = xml.getXMLTopNode("data"); var inputs = root.childNodes; var bind = el.getAttribute("bind"); var text = ''; for (var i = 0; i < inputs.length; i++){ var value = inputs[i].getAttribute("value"); var label = inputs[i].getAttribute("label"); switch (el.tagName.toLowerCase()){ case 'select': el.options[el.options.length] = new Option(label, value); break; case 'input': var type = el.getAttribute("type"); if (type == 'radio'){ var id = "id_" + Math.round(Math.random() * 2000); if (value){ var checked = 'checked'; }else{ var checked = ''; } var option = document.createElement("DIV"); option.innerHTML = '<input id="' + id + '" type="radio" value="' + value + '" name="' + el.name + '" bind="' + el.getAttribute('bind') + '" ' + checked + ' /><label for="' + id + '">' + value + '</label>'; el.parentNode.appendChild(option); option.className = "dhx_autocreated_radio"; if (bind){ this.inputs[bind].raArray.push(document.getElementById(id)); } } break; } } if ((bind !== null) && (this.inputs[bind] !== undefined)){ this._setElementValue(this.inputs[bind], this.loadedCollection[bind]); } }, _loadToForm: function(){ if (this.callEvent("onBeforeDataLoad", [ this.formId, this.loadedCollection ]) == false){ return false; } for (var i in this.loadedCollection) if (this.inputs[i] !== undefined) this._setElementValue(this.inputs[i], this.loadedCollection[i]); for (var a in this.itemPull){ var el = this.itemPull[a]; if ((el._group || el._type == "ch" )&& el._bind){ var val = this.loadedCollection[el._bind]; if (val) this.checkItem(el._group, val ); else this.uncheckItem(el._group, el._value ); } } this._setDefaultValues(); }, _processObj: function(obj){ var objectArray = []; if ((obj.tagName == 'INPUT') && (obj.getAttribute("type").toLowerCase() == 'radio')){ var radios = document.getElementsByName(obj.name); var raArray = []; for (var i = 0; i < radios.length; i++){ raArray[i] = radios[i]; } objectArray['raArray'] = raArray; } objectArray['object'] = obj; return objectArray; }, bindField: function(id, name){ if (typeof (id) != 'object'){ id = document.getElementById(id); } if ((id !== null) && (this.inputs[name] === undefined)){ var obj = this._processObj(id); obj.defaultValue = this._getElementValue(obj); this.inputs[name] = obj; return true; }else{ return false; } }, bindCommand: function(id, command){ var that = this; if (typeof (id) != 'object'){ id = document.getElementById(id); } if ((id !== null) && (this.commandsCollection[command] !== undefined)){ dhtmlxEvent(id, "click", function(){ that[command](); }); return true; }else{ return false; } }, bindValidator: function(id, validator){ var valid = []; if (typeof (id) != 'object'){ var el = document.getElementById(id); }else{ var el = id; } if ((el !== null) && (validator !== null)){ var obj = this._processObj(el); valid['id'] = id; }else{ if (this.inputs[id] !== undefined){ var obj = this.inputs[id]; valid['id'] = id; }else{ return false; } } valid['obj'] = obj; if (window.dhtmlxValidation && dhtmlxValidation["is"+validator] !== undefined){ valid['type'] = 'built_in'; }else{ if (window[validator] !== undefined){ valid['type'] = 'custom'; }else{ valid['type'] = 'regexp'; } } valid['validator'] = validator; valid['class'] = ''; this.validators.push(valid); return true; }, _createQuery: function(pref){ pref = pref || ""; var query = []; var els = this.cont.getElementsByTagName("*"); for (var i = 0; i < els.length; i++){ var name = els[i].getAttribute("bind")||els[i].getAttribute("name"); if (name) query.push(pref+name+"="+encodeURIComponent(this._getElementValue({object:els[i]}))); } for (var a in this.itemPull){ var el = this.itemPull[a]; if ((el._type == "ch" || el._type == "ra") && el._bind){ if (this.isItemChecked((el._group || el._name), el._value)) query.push(pref+el._bind+"="+(encodeURIComponent(el._value)||"true")); } } if (this._userdata && this._userdata[this.formId]) for (var key in this._userdata[this.formId]) query.push(pref+key+"="+encodeURIComponent(this._userdata[this.formId][key])); return query.join("&"); }, _createBlock: function(){ var block = document.createElement('div'); block.className = "dhx_form_cover"; document.body.appendChild(block); this.block = block; }, _createHash: function(){ var hash = {}; for (var i in this.inputs){ hash[i] = this._getElementValue(this.inputs[i]); } return hash; }, save:function(){ if (this.dp) this.dp.sendData(); }, send:function(url, mode, callback){ if (!this.validate()) return; var that = this; this.savingFlag = true; if (!this.block) this._createBlock(); this.block.style.display = 'block'; var query = this._createQuery(); if (!this.callEvent("onBeforeSave",[this.formId,this._createHash()])){ this.block.style.display = 'none'; return false; } var cback = function(){ that.savingFlag = false; that.block.style.display = 'none'; if (callback) callback(xml); }; if (mode=="post") dhtmlxAjax.post(url,query,cback); else dhtmlxAjax.get(url+((url.indexOf("?")==-1)?"?":"&")+query,cback); }, _setDefaultValues: function(){ for (var i in this.inputs){ this.inputs[i].defaultValue = this._getElementValue(this.inputs[i]); } }, reset: function(all){ if (this.callEvent("onBeforeReset", [ this.formId, this._createHash() ]) == false){ return false; } if (all == true){ for (var i in this.inputs){ this._setElementValue(this.inputs[i], this.inputs[i].defaultValue); } }else{ this._loadToForm(); } this.callEvent("onAfterReset", [this.formId]); }, _is_css_: function(node,css){ return (node.className.indexOf(css)!=-1) }, _add_css_: function(node,css){ node.className+=" "+css; }, _del_css_: function(node,css){ node.className=node.className.replace(new RegExp(css,"g"),""); }, validate: function(){ var invalid = []; var flag = true; if (this.callEvent("onBeforeValidate", [this.formId]) == false){ return false; } var mark = (new Date()).valueOf(); for (var i = 0; i < this.validators.length; i++){ var func = this.validators[i]['validator']; var value = this._getElementValue(this.validators[i]['obj']); var res = true; switch (this.validators[i]['type']){ case 'built_in': res = dhtmlxValidation["is"+func](value); break; case 'custom': res = window[func](value); break; case 'regexp': patt = new RegExp(this.validators[i]['validator']); res = patt.test(value); } var check_field = this.validators[i]['obj']['object']; if (check_field._invalid != mark) check_field._invalid=false; if (res !== true){ this._add_css_(check_field,'dhtmlx_validation_error'); check_field._invalid = mark; flag = false; this.callEvent("onValidateError",[ check_field, value, res ]); }else{ if (this._is_css_(check_field,'dhtmlx_validation_error') && (!check_field._invalid)){ this._del_css_(check_field,"dhtmlx_validation_error"); this.callEvent("onValidateSuccess",[ check_field, value, res ]); } } } this.callEvent("onAfterValidate", [this.formId,flag]); return flag; }, _getElementValue: function(elem){ var value = ''; switch (elem['object'].tagName){ case 'INPUT': case 'BUTTON': var elType = elem['object'].getAttribute('type'); switch (elType.toLowerCase()){ case undefined: case 'button': case 'hidden': case 'password': case 'reset': case 'submit': case 'text': value = elem['object'].value; break; case 'image': value = elem['object'].src; break; case 'checkbox': if (elem['object'].checked == true){ value = 1; }else{ value = 0; } case 'radio': for (var i in elem['raArray']){ if (elem['raArray'][i].checked == true){ value = elem['raArray'][i].value; } } break; case 'file': break; } break; case 'TEXTAREA': value = elem['object'].value; break; case 'SELECT': value = (elem['object'].options[elem['object'].selectedIndex]||{}).value; break; default: value = elem['object'].innerHTML; break; } return value; }, _setElementValue: function(elem, value){ switch (elem['object'].tagName){ case 'INPUT': case 'BUTTON': var elType = elem['object'].getAttribute('type'); switch (elType.toLowerCase()){ case undefined: case 'button': case 'hidden': case 'password': case 'reset': case 'submit': case 'text': elem['object'].value = value; break; case 'img': case 'image': elem['object'].src = value; break; case 'checkbox': if (value == '1'){ elem['object'].checked = true; }else{ elem['object'].checked = false; } case 'radio': for (var i in elem['raArray']){ if (elem['raArray'][i].value == value){ elem['raArray'][i].checked = true; } } break; case 'file': break; } break; case 'TEXTAREA': elem['object'].value = value; break; case 'SELECT': for (var i = 0; i < elem['object'].options.length; i++){ if (elem['object'].options[i].value == value){ elem['object'].options[i].selected = true; } } break; default: elem['object'].innerHTML = value; break; } } }; dhtmlXForm.prototype.items = {}; /* checkbox */ dhtmlXForm.prototype.items.checkbox = { render: function(item, data) { var td1 = document.createElement("TD"); var td2 = document.createElement("TD"); td1.className = "dhxlist_img_cell"; td2.className = "dhxlist_txt_cell"; td1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} td2.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} item._type = "ch"; item._enabled = true; item._checked = false; item._value = String(data.value); item._bind = data.bind; var p = document.createElement("DIV"); p.className = "dhxlist_img chbx0"; p.innerHTML = "&nbsp;"; td1.appendChild(p); var t = document.createElement("DIV"); t.className = "dhxlist_txt"; t.innerHTML = "<span class='nav_link' onkeypress='e=event||window.arguments[0];if(e.keyCode==32||e.charCode==32){e.cancelBubble=true;e.returnValue=false;_dhxForm_doClick(this,\"click\");return false;}' role='link' tabindex='0'>"+data.label+'</span>'; td2.appendChild(t); var k = document.createElement("INPUT"); k.type = "HIDDEN"; k.value = String(data.value); item.appendChild(td1); item.appendChild(td2); item.appendChild(k); if (data.checked == true) this.check(item); if (data.disabled == true) this.disable(item); var that = this; item.onclick = function() { if (!this._enabled) return; var args = [this._idd, this._value, this._checked]; if (this.checkEvent("onBeforeChange")) if (this.callEvent("onBeforeChange", args) !== true) return; that.setChecked(this, !this._checked); this._autoCheck(); // that._autoCheck(); this.callEvent("onChange", args); } return this; }, destruct: function(item) { var td1 = item.childNodes[0]; var td2 = item.childNodes[1]; td1.onselectstart = null; td2.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (td2.childNodes.length > 0) td2.removeChild(td2.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; td2 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onclick = null; item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, doCheckValue: function(item) { if (item._checked && item._enabled) { item.childNodes[2].setAttribute("name", String(item._idd)); } else { item.childNodes[2].removeAttribute("name"); } }, setChecked: function(item, state) { item._checked = (state===true?true:false); item.childNodes[0].childNodes[0].className = "dhxlist_img "+(item._checked?"chbx1":"chbx0"); item.childNodes[1].childNodes[0].className = "dhxlist_txt "+(item._checked?"checked":""); this.doCheckValue(item); }, check: function(item) { this.setChecked(item, true); }, unCheck: function(item) { this.setChecked(item, false); }, isChecked: function(item) { return item._checked; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[1].childNodes[0].childNodes[0].tabIndex = null; item.childNodes[1].childNodes[0].childNodes[0].removeAttribute("disabled"); this.doCheckValue(item); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[1].childNodes[0].childNodes[0].tabIndex = -1; item.childNodes[1].childNodes[0].childNodes[0].setAttribute("disabled", "true"); this.doCheckValue(item); }, isEnabled: function(item) { return item._enabled; }, setText: function(item, text) { item.childNodes[1].childNodes[0].childNodes[0].innerHTML = text; }, getText: function(item) { return item.childNodes[1].childNodes[0].childNodes[0].innerHTML; } }; /* radio */ dhtmlXForm.prototype.items.radio = { input: {}, firstValue: {}, render: function(item, data,uid) { //group, text, value, checked, disabled, uid var td1 = document.createElement("TD"); var td2 = document.createElement("TD"); td1.className = "dhxlist_img_cell"; td2.className = "dhxlist_txt_cell"; td1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} td2.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} item._type = "ra"; item._enabled = true; item._checked = false; item._group = data.name; item._value = String(data.value); item._uid = uid; item._bind = data.bind; var p = document.createElement("DIV"); p.className = "dhxlist_img rdbt0"; td1.appendChild(p); var t = document.createElement("DIV"); t.className = "dhxlist_txt"; t.innerHTML = "<span class='nav_link' onkeypress='e=event||window.arguments[0];if(e.keyCode==32||e.charCode==32){e.cancelBubble=true;e.returnValue=false;_dhxForm_doClick(this,\"click\");return false;}' role='link' tabindex='0'>"+data.label+'</span>'; td2.appendChild(t); item.appendChild(td1); item.appendChild(td2); if (this.input[data.name] == null) { var k = document.createElement("INPUT"); k.type = "HIDDEN"; k.name = data.name; k.firstValue = item._value; item.appendChild(k); this.input[data.name] = k; } if (!this.firstValue[data.name]) this.firstValue[data.name] = String(data.value); if (data.checked == true) this.check(item); if (data.disabled == true) this.disable(item); var that = this; item.onclick = function() { if (!(item._enabled && !item._checked)) return; var args = [this._group, this._value, true]; if (this.checkEvent("onBeforeChange")) if (this.callEvent("onBeforeChange", args) !== true) return; that.setChecked(this, true); this._autoCheck(); this.callEvent("onChange", args); } return this; }, destruct: function(item, value) { // check if any items will left to keep hidden input on page if (item.childNodes[item.childNodes.length-1] == this.input[item._group]) { var tb = item.parentNode; var done = false; for (var q=0; q<tb.childNodes.length; q++) { var it = tb.childNodes[q]; if (it._idd != item._idd && it._group == item._group && it._type == "ra" && !done) { it.appendChild(this.input[item._group]); done = true; } it = null; } if (done == false) { // remove hidden input this.input[item._group] = null; } } var id = item._idd; var td1 = item.childNodes[0]; var td2 = item.childNodes[1]; td1.onselectstart = null; td2.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (td2.childNodes.length > 0) td2.removeChild(td2.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; td2 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onclick = null; item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; return id; }, doCheckValue: function(item) { var tb = item.parentNode; var value = null; for (var q=0; q<tb.childNodes.length; q++) { var ra = tb.childNodes[q]; if (ra._type == "ra" && ra._group == item._group && ra._checked && ra._enabled) value = ra._value; } if (value != null) { this.input[item._group].setAttribute("name", String(item._group)); this.input[item._group].value = value; } else { this.input[item._group].removeAttribute("name"); } }, setChecked: function(item, state) { state = (state===true?true:false); var tb = item.parentNode; var group = item._group; for (var q=0; q<tb.childNodes.length; q++) { if (tb.childNodes[q]._group == group && tb.childNodes[q]._type == "ra") { var needCheck = false; var it = tb.childNodes[q]; if (it._idd == item._idd) { if (it._checked != state) { it._checked = state; needCheck = true; } } else { if (it._checked) { it._checked = false; needCheck = true; } } if (needCheck) { it.childNodes[0].childNodes[0].className = "dhxlist_img "+(it._checked?"rdbt1":"rdbt0"); it.childNodes[1].childNodes[0].className = "dhxlist_txt "+(it._checked?"checked":""); } it = null; } } this.doCheckValue(item); }, getChecked: function(item) { return this.input[item._group].value; }, _getFirstValue: function(item) { return this.firstValue[item._group]; }, check: function(item) { this.setChecked(item, true); }, unCheck: function(item) { this.setChecked(item, false); }, isChecked: function(item) { return item._checked; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[1].childNodes[0].childNodes[0].tabIndex = 0; item.childNodes[1].childNodes[0].childNodes[0].removeAttribute("disabled"); this.doCheckValue(item); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[1].childNodes[0].childNodes[0].tabIndex = -1; item.childNodes[1].childNodes[0].childNodes[0].setAttribute("disabled", "true"); this.doCheckValue(item); }, isEnabled: function(item) { return item._enabled; }, setText: function(item, text) { item.childNodes[1].childNodes[0].childNodes[0].innerHTML = text; }, getText: function(item) { return item.childNodes[1].childNodes[0].childNodes[0].innerHTML; } }; dhtmlXForm.prototype.items.select = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.className = "dhxlist_txt_cell"; td1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} item._type = "se"; item._enabled = true; item._value = null; item._newValue = null; var j = document.createElement("DIV"); j.className = "dhxlist_txt_label"; j.innerHTML = data.label; td1.appendChild(j); if (data.label.length == 0) j.style.display = "none"; var p = document.createElement("DIV"); p.className = "dhxlist_cont"; td1.appendChild(p); var t = document.createElement("SELECT"); t.className = "dhxlist_txt_select"; t.name = item._idd; p.appendChild(t); if (data.validate) t.setAttribute("validate",data.validate); if (data.bind) t.setAttribute("bind",data.bind); if (data.connector) t.setAttribute("connector",data.connector); if (data.width) t.style.width = parseInt(data.width)+"px"; var that = this; t.onclick = function() { that.doOnChange(this); } t.onkeydown = function() { that.doOnChange(this); } t.onchange = function() { // needed for safari/chrome that.doOnChange(this); } var opts = data.options; for (var q=0; q<opts.length; q++) { var opt = new Option(opts[q].text||opts[q].label, opts[q].value); t.options.add(opt); if (opts[q].selected == true || opts[q].selected == "true") { opt.selected = true; item._value = opts[q].value; } } item.appendChild(td1); return this; }, destruct: function(item) { var sel = item.childNodes[0].childNodes[1].childNodes[0]; sel.onclick = null; sel.onkeydown = null; sel.parentNode.removeChild(sel); sel = null; var td1 = item.childNodes[0]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, doOnChange: function(sel) { var item = sel.parentNode.parentNode.parentNode; item._newValue = sel.options[sel.selectedIndex].value; if (item._newValue != item._value) { if (item.checkEvent("onBeforeChange")) { if (item.callEvent("onBeforeChange", [item._idd, item._value, item._newValue]) !== true) { // restore last value for (var q=0; q<sel.options.length; q++) if (sel.options[q].value == item._value) sel.options[q].selected = true; return; } } item._value = item._newValue; item.callEvent("onChange", [item._idd, item._value]); } item._autoCheck(); }, setText: function(item, text) { if (!text) text = ""; item.childNodes[0].childNodes[0].innerHTML = text; item.childNodes[0].childNodes[0].style.display = (text.length==0||text==null?"none":""); }, getText: function(item) { return item.childNodes[0].childNodes[0].innerHTML; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[0].childNodes[1].childNodes[0].removeAttribute("disabled"); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[0].childNodes[1].childNodes[0].setAttribute("disabled", true); }, getOptions: function(item) { return item.childNodes[0].childNodes[1].childNodes[0].options; }, setValue: function(item, val) { var opts = this.getOptions(item); for (var q=0; q<opts.length; q++) if (opts[q].value == val) opts[q].selected = true; }, getValue: function(item) { var k = -1; var opts = this.getOptions(item); for (var q=0; q<opts.length; q++) if (opts[q].selected) k = opts[q].value; return k; }, setWidth: function(item, width) { item.childNodes[0].childNodes[1].childNodes[0].style.width = width+"px"; } }; /* input */ dhtmlXForm.prototype.items.input = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.className = "dhxlist_txt_cell"; item._type = "ta"; item._enabled = true; var j = document.createElement("DIV"); j.className = "dhxlist_txt_label"; j.innerHTML = data.label; td1.appendChild(j); if (data.label.length == 0) j.style.display = "none"; var p = document.createElement("DIV"); p.className = "dhxlist_cont"; td1.appendChild(p); if (isNaN(data.rows)) { var t = document.createElement("INPUT"); t.type = "TEXT"; } else { var t = document.createElement("TEXTAREA"); t.style.height = 14*(data.rows||1)+"px" } if (data.validate) t.setAttribute("validate",data.validate); if (data.bind) t.setAttribute("bind",data.bind); if (data.width) t.style.width = parseInt(data.width)+"px"; t.name = item._idd; t._idd = item._idd; t.className = "dhxlist_txt_textarea"; p.appendChild(t); t.value = (data.value||""); item._value = t.value; item.appendChild(td1); t.onblur = function() { if (item.checkEvent("onBeforeChange")) if (item.callEvent("onBeforeChange",[this._idd, item._value, this.value]) !== true) { // restore this.value = item._value; return; } // accepted item._value = this.value; item.callEvent("onChange",[this._idd, this.value]); } return this; }, destruct: function(item) { var inp = item.childNodes[0].childNodes[1].childNodes[0]; inp.onblur = null; inp.parentNode.removeChild(inp); inp = null; var td1 = item.childNodes[0]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, setText: function(item, text) { if (!text) text = ""; item.childNodes[0].childNodes[0].innerHTML = text; item.childNodes[0].childNodes[0].style.display = (text.length==0||text==null?"none":""); }, getText: function(item) { return item.childNodes[0].childNodes[0].innerHTML; }, setValue: function(item, value) { item.childNodes[0].childNodes[1].childNodes[0].value = value; }, getValue: function(item) { return item.childNodes[0].childNodes[1].childNodes[0].value; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[0].childNodes[1].childNodes[0].removeAttribute("disabled"); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[0].childNodes[1].childNodes[0].setAttribute("disabled", true); }, setWidth: function(item, width) { item.childNodes[0].childNodes[1].childNodes[0].style.width = width+"px"; } }; /* password */ dhtmlXForm.prototype.items.password = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.className = "dhxlist_txt_cell"; item._type = "pw"; item._enabled = true; var j = document.createElement("DIV"); j.className = "dhxlist_txt_label"; j.innerHTML = data.label; td1.appendChild(j); if (data.label.length == 0) j.style.display = "none"; var p = document.createElement("DIV"); p.className = "dhxlist_cont"; td1.appendChild(p); var t = document.createElement("INPUT"); t.type = "PASSWORD"; if (data.validate) t.setAttribute("validate",data.validate); if (data.bind) t.setAttribute("bind",data.bind); if (data.width) t.style.width = parseInt(data.width)+"px"; t.name = item._idd; t._idd = item._idd; t.className = "dhxlist_txt_textarea"; p.appendChild(t); t.value = (data.value||""); item._value = t.value; item.appendChild(td1); t.onblur = function() { if (item.checkEvent("onBeforeChange")) if (item.callEvent("onBeforeChange",[this._idd, item._value, this.value]) !== true) { // restore this.value = item._value; return; } // accepted item._value = this.value; item.callEvent("onChange",[this._idd, this.value]); } return this; }, destruct: function(item) { var inp = item.childNodes[0].childNodes[1].childNodes[0]; inp.onblur = null; inp.parentNode.removeChild(inp); inp = null; var td1 = item.childNodes[0]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, setText: function(item, text) { if (!text) text = ""; item.childNodes[0].childNodes[0].innerHTML = text; item.childNodes[0].childNodes[0].style.display = (text.length==0||text==null?"none":""); }, getText: function(item) { return item.childNodes[0].childNodes[0].innerHTML; }, setValue: function(item, value) { item.childNodes[0].childNodes[1].childNodes[0].value = value; }, getValue: function(item) { return item.childNodes[0].childNodes[1].childNodes[0].value; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[0].childNodes[1].childNodes[0].removeAttribute("disabled"); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[0].childNodes[1].childNodes[0].setAttribute("disabled", true); }, setWidth: function(item, width) { item.childNodes[0].childNodes[1].childNodes[0].style.width = width+"px"; } }; /* file */ dhtmlXForm.prototype.items.file = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.className = "dhxlist_txt_cell"; item._type = "fl"; item._enabled = true; var j = document.createElement("DIV"); j.className = "dhxlist_txt_label"; j.innerHTML = data.label; td1.appendChild(j); if (data.label.length == 0) j.style.display = "none"; var p = document.createElement("DIV"); p.className = "dhxlist_cont"; td1.appendChild(p); var t = document.createElement("INPUT"); t.type = "FILE"; if (data.validate) t.setAttribute("validate",data.validate); if (data.bind) t.setAttribute("bind",data.bind); if (data.width) t.style.width = parseInt(data.width)+"px"; t.name = item._idd; t._idd = item._idd; t.className = "dhxlist_txt_textarea"; p.appendChild(t); t.value = (data.value||""); item._value = t.value; item.appendChild(td1); return this; }, destruct: function(item) { var inp = item.childNodes[0].childNodes[1].childNodes[0]; inp.onblur = null; inp.parentNode.removeChild(inp); inp = null; var td1 = item.childNodes[0]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, setText: function(item, text) { if (!text) text = ""; item.childNodes[0].childNodes[0].innerHTML = text; item.childNodes[0].childNodes[0].style.display = (text.length==0||text==null?"none":""); }, getText: function(item) { return item.childNodes[0].childNodes[0].innerHTML; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[0].childNodes[1].childNodes[0].removeAttribute("disabled"); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[0].childNodes[1].childNodes[0].setAttribute("disabled", true); }, setWidth: function(item, width) { item.childNodes[0].childNodes[1].childNodes[0].style.width = width+"px"; } }; /* label */ dhtmlXForm.prototype.items.label = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.className = "dhxlist_txt_label2"; td1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} item.appendChild(td1); item._type = "lb"; item._enabled = true; item._checked = true; var t = document.createElement("DIV"); t.className = "dhxlist_txt_label2"+(data._isTopmost?" topmost":""); t.innerHTML = data.label; td1.appendChild(t); return this; }, destruct: function(item) { var td1 = item.childNodes[0]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, enable: function(item) { item.className = ""; item._enabled = true; }, disable: function(item) { item.className = "disabled"; item._enabled = false; }, isEnabled: function(item) { return item._enabled; }, setText: function(item, text) { item.childNodes[0].childNodes[0].innerHTML = text; }, getText: function(item) { return item.childNodes[0].childNodes[0].innerHTML; } }; dhtmlXForm.prototype.items.button = { render: function(item, data) { var td1 = document.createElement("TD"); td1.colSpan = "2"; td1.innerHTML = '<div class="dhx_list_btn" role="link" tabindex="0" dir="ltr" '+ 'onkeypress="e=event||window.arguments[0];if((e.keyCode==32||e.charCode==32)&&!this.parentNode._busy){this.parentNode._busy=true;e.cancelBubble=true;e.returnValue=false;_dhxForm_doClick(this.childNodes[0],[\'mousedown\',\'mouseup\']);return false;}" '+ 'onblur="_dhxForm_doClick(this.childNodes[0],\'mouseout\');" >'+ '<table cellspacing="0" cellpadding="0" border="0" align="left">'+ '<tr>'+ '<td class="btn_l">&nbsp;</td>'+ '<td class="btn_m"><div class="btn_txt">'+data.value+'</div></td>'+ '<td class="btn_r">&nbsp;</td>'+ '</tr>'+ '</table>'+ "</div>"; td1._type = "bt"; td1._enabled = true; td1._cmd = data.command; td1._name = data.name; item.type = "bt"; item.appendChild(td1); // item onselect start also needed once // will reconstructed! td1.onselectstart = function(e){e=e||event;e.cancelBubble=true;e.returnValue=false;return false;} td1.childNodes[0].childNodes[0].onmouseover = function(){ var td1 = this.parentNode.parentNode; if (!td1._enabled) return; this._isOver = true; this.className = "dhx_list_btn_over"; td1 = null; } td1.childNodes[0].childNodes[0].onmouseout = function(){ var td1 = this.parentNode.parentNode; if (!td1._enabled) return; this.className = ""; this._allowClick = false; this._pressed = false; this._isOver = false; td1 = null; } td1.childNodes[0].childNodes[0].onmousedown = function(){ if (this._pressed) return; var td1 = this.parentNode.parentNode; if (!td1._enabled) return; this.className = "dhx_list_btn_pressed"; this._allowClick = true; this._pressed = true; td1 = null; } td1.childNodes[0].childNodes[0].onmouseup = function(){ if (!this._pressed) return; var td1 = this.parentNode.parentNode; if (!td1._enabled) return; td1._busy = false; this.className = (this._isOver?"dhx_list_btn_over":""); if (this._pressed && this._allowClick) item.callEvent("_onButtonClick", [td1._name, td1._cmd]); this._allowClick = false; this._pressed = false; td1 = null; } return this; }, destruct: function(item) { var t = item.childNodes[0].childNodes[0].childNodes[0]; t.onmouseover = null; t.onmouseout = null; t.onmousedown = null; t.onmouseup = null; t = null; while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, enable: function(item) { item.className = ""; item._enabled = true; item.childNodes[0]._enabled = true; item.childNodes[0].childNodes[0].tabIndex = 0; item.childNodes[0].childNodes[0].removeAttribute("disabled"); }, disable: function(item) { item.className = "disabled"; item._enabled = false; item.childNodes[0]._enabled = false; item.childNodes[0].childNodes[0].tabIndex = -1; item.childNodes[0].childNodes[0].setAttribute("disabled", "true"); }, isEnabled: function(item) { return item._enabled; }, setText: function(item, text) { item.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].innerHTML = text; }, getText: function(item) { return item.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].innerHTML; } }; /* hidden item */ dhtmlXForm.prototype.items.hidden = { render: function(item, data) { item.style.display = "none"; var td = document.createElement("TD"); td.colspan = 2; td.innerHTML = '<input type="HIDDEN" name="'+data.name+'" value="'+data.value+'">'; item.appendChild(td); item._name = data.name; item._type = "hd"; item._enabled = true; return this; }, destruct: function(item) { while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); if (item._list) { for (var q=0; q<item._list.length; q++) { item._list[q].unload(); var tb = item.parentNode; for (var w=0; w<tb.childNodes.length; w++) if (tb.childNodes[w]._type == "list" && tb.childNodes[w]._idd == item._idd) item._listObj[q].destruct(tb.childNodes[w]); item._listObj[q] = null; item._list[q] = null; } } item.onselectstart = null; item._autoCheck = null; item.callEvent = null; item.checkEvent = null; item.parentNode.removeChild(item); item = null; }, enable: function(item) { item._enabled = true; item.childNodes[0].childNodes[0].setAttribute("name", item._name); }, disable: function(item) { item._enabled = false; item.childNodes[0].childNodes[0].removeAttribute("name"); }, isEnabled: function(item) { return this._enabled; }, show: function() { }, hide: function() { }, isHidden: function() { return true; }, setValue: function(item, val) { item.childNodes[0].childNodes[0].value = val; }, getValue: function(item) { return item.childNodes[0].childNodes[0].value; } }; /* sub list */ dhtmlXForm.prototype.items.list = { render: function(item, type) { var td2 = document.createElement("TD"); td2.className = "dhxlist_txt_cell"; item._type = "list"; item._enabled = true; var t = document.createElement("DIV"); t._isNestedForm = true; t.style.width = "100%"; if (item._fs === true) { td2.colSpan = "2"; item.appendChild(td2); var t2 = document.createElement("FIELDSET"); t2.className = "dhxlist_fs"; t2.style.width = type._fsWidth; td2.appendChild(t2); t2.innerHTML = "<legend class='fs_legend'>"+type._fsText+"</legend>"; t2.appendChild(t) } else { var td1 = document.createElement("TD"); td1.className = "dhxlist_img_cell"; td1.onselectstart = function(e){e=e||event;e.returnValue=false;return false;} td1.innerHTML = "&nbsp;"; item.appendChild(td1); item.appendChild(td2); td2.appendChild(t); } var listData = [this, new dhtmlXForm(t, type)]; return listData; }, destruct: function(item) { var td1 = item.childNodes[0]; var td2 = item.childNodes[1]; td1.onselectstart = null; while (td1.childNodes.length > 0) td1.removeChild(td1.childNodes[0]); while (td2.childNodes.length > 0) td2.removeChild(td2.childNodes[0]); while (item.childNodes.length > 0) item.removeChild(item.childNodes[0]); td1 = null; td2 = null; item.parentNode.removeChild(item); item = null; } }; /* fieldset */ dhtmlXForm.prototype.items.fieldset = { render: function(item, data) { var td1 = document.createElement("TD"); var td2 = document.createElement("TD"); item.appendChild(td1); item.appendChild(td2); td2.innerHTML = data.label; item.style.display = "none"; item._enabled = true; item._checked = true; item._width = (data.width||"100%"); return this; }, destruct: function(item) { }, setText: function(item, text) { item.childNodes[1].innerHTML = text; }, getText: function(item) { return item.childNodes[1].innerHTML; }, enable: function(item) { item._enabled = true; item._fs.className = ""; }, disable: function(item) { item._enabled = false; item._fs.className = "disabled"; }, isEnabled: function(item) { return item._enabled; }, setWidth: function(item, width) { item._fs.childNodes[0].childNodes[0].style.width = width; item._width = width; }, getWidth: function(item) { return item._width; } }; //loading from UL list dhtmlXForm.prototype._ulToObject = function(ulData, a) { var obj = []; for (var q=0; q<ulData.childNodes.length; q++) { if (String(ulData.childNodes[q].tagName||"").toLowerCase() == "li") { var p = {}; var t = ulData.childNodes[q]; for (var w=0; w<a.length; w++) if (t.getAttribute(a[w]) != null) p[String(a[w]).replace("ftype","type")] = t.getAttribute(a[w]); if (!p.label) try { p.label = t.firstChild.nodeValue; } catch(e){} var n = t.getElementsByTagName("UL"); if (n[0] != null) p[(p.type=="select"?"options":"list")] = dhtmlXForm.prototype._ulToObject(n[0], a); obj[obj.length] = p; } if (String(ulData.childNodes[q].tagName||"").toLowerCase() == "div") { var p = {}; p.type = "label"; try { p.label = ulData.childNodes[q].firstChild.nodeValue; } catch(e){} obj[obj.length] = p; } } return obj; } dhtmlxEvent(window, "load", function(){ var a = ["ftype", "name", "value", "label", "check", "checked", "disabled", "text", "rows", "select", "selected", "command"]; var k = document.getElementsByTagName("UL"); var u = []; for (var q=0; q<k.length; q++) { if (k[q].className == "dhtmlxForm") { var listNode = document.createElement("DIV"); u[u.length] = [k[q], listNode, dhtmlXForm.prototype._ulToObject(k[q], a)]; } } for (var q=0; q<u.length; q++) { u[q][0].parentNode.insertBefore(u[q][1], u[q][0]); var listObj = new dhtmlXForm(u[q][1], u[q][2]); u[q][0].parentNode.removeChild(u[q][0]); u[q][0] = null; u[q][1] = null; u[q][2] = null; u[q] = null; } }); //all purpose set of rules, based on http://code.google.com/p/validation-js dhtmlxValidation=function(){} dhtmlxValidation.prototype={ trackInput:function(el,rule,callback_error,callback_correct){ dhtmlxEvent(el,"keyup",function(e){ if (!dhtmlxValidation.checkInput(el,rule)){ if(!callback_error || callback_error(el,el.value,rule)) el.className+=" dhtmlx_live_validation_error"; } else { el.className=el.className.replace(/[ ]*dhtmlx_live_validation_error/g,""); if (callback_correct) callback_correct(el,el.value,rule); } }); }, checkInput:function(input,rule){ return this.checkValue(input.value,rule); }, checkValue:function(value,rule){ if (!rule) return; if (typeof rule!="string" && rule.length){ var final_res=true; for (var i=0; i<rule.length; i++){ var res=this.checkValue(value,rule[i]); final_res=final_res&&res; } return final_res; } if (!this["is"+rule]) alert("Incorrect validation rule: "+rule); return this["is"+rule](value); }, isEmpty: function(value) { return value == ''; }, isNotEmpty: function(value) { return !value == ''; }, isValidBoolean: function(value) { return !!value.match(/^(0|1|true|false)$/); }, isValidEmail: function(value) { return !!value.match(/(^[a-z]([a-z0-9_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\-\.]*)(\.[a-z]{2,3})$)/i); }, isValidInteger: function(value) { return !!value.match(/(^-?\d+$)/); }, isValidNumeric: function(value) { return !!value.match(/(^-?\d\d*[\.|,]\d*$)|(^-?\d\d*$)|(^-?[\.|,]\d\d*$)/); }, isValidAplhaNumeric: function(value) { return !!value.match(/^[_\-a-z0-9]+$/gi); }, // 0000-00-00 00:00:00 to 9999:12:31 59:59:59 (no it is not a "valid DATE" function) isValidDatetime: function(value) { var dt = value.match(/^(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})$/); return dt && !!(dt[1]<=9999 && dt[2]<=12 && dt[3]<=31 && dt[4]<=59 && dt[5]<=59 && dt[6]<=59) || false; }, // 0000-00-00 to 9999-12-31 isValidDate: function(value) { var d = value.match(/^(\d{4})-(\d{2})-(\d{2})$/); return d && !!(d[1]<=9999 && d[2]<=12 && d[3]<=31) || false; }, // 00:00:00 to 59:59:59 isValidTime: function(value) { var t = value.match(/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/); return t && !!(t[1]<=24 && t[2]<=59 && t[3]<=59) || false; }, // 0.0.0.0 to 255.255.255.255 isValidIPv4: function(value) { var ip = value.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/); return ip && !!(ip[1]<=255 && ip[2]<=255 && ip[3]<=255 && ip[4]<=255) || false; }, isValidCurrency: function(value) { // Q: Should I consider those signs valid too ? : ¢|€|₤|₦|¥ return value.match(/^\$?\s?\d+?[\.,\,]?\d+?\s?\$?$/) && true || false; }, // Social Security Number (999-99-9999 or 999999999) isValidSSN: function(value) { return value.match(/^\d{3}\-?\d{2}\-?\d{4}$/) && true || false; }, // Social Insurance Number (999999999) isValidSIN: function(value) { return value.match(/^\d{9}$/) && true || false; } } dhtmlxValidation=new dhtmlxValidation(); // extended container functionality if (window.dhtmlXContainer) { // attach form functionality if (!dhtmlx.attaches) dhtmlx.attaches = {}; if (!dhtmlx.attaches["attachForm"]) { dhtmlx.attaches["attachForm"] = function(data) { var obj = document.createElement("DIV"); obj.id = "dhxFormObj_"+this._genStr(12); obj.style.position = "relative"; obj.style.width = "100%"; obj.style.height = "100%"; obj.cmp = "form"; this.attachObject(obj); // this.vs[this.av].form = new dhtmlXForm(obj, data); this.vs[this.av].form.setSkin(this.skin); this.vs[this.av].form.setSizes(); //this.formId = obj.id; this.vs[this.av].formObj = obj; return this.vs[this.av].form; } } // detach form functionality if (!dhtmlx.detaches) dhtmlx.detaches = {}; if (!dhtmlx.detaches["detachForm"]) { dhtmlx.detaches["detachForm"] = function(contObj) { if (!contObj.form) return; contObj.form.unload(); contObj.form = null; //contObj.formId = null; contObj.formObj = null; contObj.attachForm = null; } } } dhtmlXForm.prototype.dummy = function(){ }; dhtmlXForm.prototype._changeFormId = function(oldid, newid){ this.formId = newid; }; dhtmlXForm.prototype._dp_init=function(dp){ dp._methods=["dummy","","_changeFormId","dummy"]; dp._getRowData=function(id,pref){ return this.obj._createQuery(pref); } dp._clearUpdateFlag=function(){} dp.attachEvent("onAfterUpdate",function(sid, action, tid){ if (action == "inserted" || action == "updated") dp.setUpdated(this.obj.formId, true, "updated"); return true; }); dp.autoUpdate = false; this.dp = dp; this.formId = (new Date()).valueOf(); this.resetDataProcessor("inserted"); } dhtmlXForm.prototype.setUserData=function(id,name,value){ if (!this._userdata) this._userdata={}; this._userdata[id] = (this._userdata[id]||{}); this._userdata[id][name] = value; } dhtmlXForm.prototype.getUserData=function(id,name){ if (this._userdata) return ((this._userdata[id]||{})[name])||""; return ""; } dhtmlXForm.prototype.resetDataProcessor=function(mode){ if (!this.dp) return; this.dp.updatedRows = []; this.dp._in_progress = []; this.dp.setUpdated(this.formId,true,mode); } dhtmlXForm.prototype.setRTL = function(state) { this._rtl = (state===true?true:false); this.base.className = (this._rtl?"dhxform_rtl":""); } _dhxForm_doClick = function(obj, evType) { if (typeof(evType) == "object") { var t = evType[1]; evType = evType[0]; } if (document.createEvent) { var e = document.createEvent("MouseEvents"); e.initEvent(evType, true, false); obj.dispatchEvent(e); } else if (document.createEventObject) { var e = document.createEventObject(); e.button = 1; obj.fireEvent("on"+evType, e); } if (t) window.setTimeout(function(){_dhxForm_doClick(obj,t);},100); }
zzbasepro
trunk/basepro/WebRoot/script/dhtmlx/form/dhtmlxform.js
JavaScript
oos
75,610
//v.2.6 build 100722 /* Copyright DHTMLX LTD. http://www.dhtmlx.com To use this component please contact sales@dhtmlx.com to obtain license */ function dhtmlXContainer(obj) { var that = this; this.obj = obj; this.dhxcont = null; this.st = document.createElement("DIV"); this.st.style.position = "absolute"; this.st.style.left = "-200px"; this.st.style.top = "0px"; this.st.style.width = "100px"; this.st.style.height = "1px"; this.st.style.visibility = "hidden"; this.st.style.overflow = "hidden"; document.body.insertBefore(this.st, document.body.childNodes[0]); this.obj._getSt = function() { // return this.st object, needed for content moving return that.st; } this.obj.dv = "def"; // default this.obj.av = this.obj.dv; // active for usage this.obj.cv = this.obj.av; // current opened this.obj.vs = {}; // all this.obj.vs[this.obj.av] = {}; this.obj.view = function(name) { if (!this.vs[name]) { this.vs[name] = {}; this.vs[name].dhxcont = this.vs[this.dv].dhxcont; var mainCont = document.createElement("DIV"); mainCont.style.position = "relative"; mainCont.style.left = "0px"; mainCont.style.width = "200px"; mainCont.style.height = "200px"; mainCont.style.overflow = "hidden"; that.st.appendChild(mainCont); this.vs[name].dhxcont.mainCont[name] = mainCont; } this.avt = this.av; this.av = name; return this; } this.obj.setActive = function() { if (!this.vs[this.av]) return; this.cv = this.av; // detach current content if (this.vs[this.avt].dhxcont == this.vs[this.avt].dhxcont.mainCont[this.avt].parentNode) { that.st.appendChild(this.vs[this.avt].dhxcont.mainCont[this.avt]); if (this.vs[this.avt].menu) that.st.appendChild(document.getElementById(this.vs[this.avt].menuId)); if (this.vs[this.avt].toolbar) that.st.appendChild(document.getElementById(this.vs[this.avt].toolbarId)); if (this.vs[this.avt].sb) that.st.appendChild(document.getElementById(this.vs[this.avt].sbId)); } // adjust content if (this._isCell) { //this.adjustContent(this.childNodes[0], (this._noHeader?0:this.skinParams[this.skin]["cpanel_height"])); } //this.vs[this.av].dhxcont.mainCont[this.av].style.width = this.vs[this.av].dhxcont.mainCont[this.avt].style.width; //this.vs[this.av].dhxcont.mainCont[this.av].style.height = this.vs[this.av].dhxcont.mainCont[this.avt].style.height; if (this.vs[this.av].dhxcont != this.vs[this.av].dhxcont.mainCont[this.av].parentNode) { this.vs[this.av].dhxcont.insertBefore(this.vs[this.av].dhxcont.mainCont[this.av],this.vs[this.av].dhxcont.childNodes[this.vs[this.av].dhxcont.childNodes.length-1]); if (this.vs[this.av].menu) this.vs[this.av].dhxcont.insertBefore(document.getElementById(this.vs[this.av].menuId), this.vs[this.av].dhxcont.childNodes[0]); if (this.vs[this.av].toolbar) this.vs[this.av].dhxcont.insertBefore(document.getElementById(this.vs[this.av].toolbarId), this.vs[this.av].dhxcont.childNodes[(this.vs[this.av].menu?1:0)]); if (this.vs[this.av].sb) this.vs[this.av].dhxcont.insertBefore(document.getElementById(this.vs[this.av].sbId), this.vs[this.av].dhxcont.childNodes[this.vs[this.av].dhxcont.childNodes.length-1]); } if (this._doOnResize) this._doOnResize(); this.avt = null; } this.obj._viewRestore = function() { var t = this.av; if (this.avt) { this.av = this.avt; this.avt = null; } return t; } this.setContent = function(data) { /* this.dhxcont = data; this.dhxcont.innerHTML = "<div style='position: relative; left: 0px; top: 0px; overflow: hidden;'></div>"+ "<div class='dhxcont_content_blocker' style='display: none;'></div>"; this.dhxcont.mainCont = this.dhxcont.childNodes[0]; this.obj.vs[this.obj.av].dhxcont = this.dhxcont; */ this.obj.vs[this.obj.av].dhxcont = data; this.obj._init(); } this.obj._init = function() { this.vs[this.av].dhxcont.innerHTML = "<div ida='dhxMainCont' style='position: relative; left: 0px; top: 0px; overflow: hidden;'></div>"+ "<div ida='dhxContBlocker' class='dhxcont_content_blocker' style='display: none;'></div>"; this.vs[this.av].dhxcont.mainCont = {}; this.vs[this.av].dhxcont.mainCont[this.av] = this.vs[this.av].dhxcont.childNodes[0]; } this.obj._genStr = function(w) { var s = ""; var z = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; for (var q=0; q<w; q++) s += z.charAt(Math.round(Math.random() * (z.length-1))); return s; } this.obj.setMinContentSize = function(w, h) { this.vs[this.av]._minDataSizeW = w; this.vs[this.av]._minDataSizeH = h; } this.obj._setPadding = function(p, altCss) { if (typeof(p) == "object") { this._offsetTop = p[0]; this._offsetLeft = p[1]; this._offsetWidth = p[2]; this._offsetHeight = p[3]; } else { this._offsetTop = p; this._offsetLeft = p; this._offsetWidth = -p*2; this._offsetHeight = -p*2; } this.vs[this.av].dhxcont.className = "dhxcont_global_content_area "+(altCss||""); } this.obj.moveContentTo = function(cont) { // move dhtmlx components for (var a in this.vs) { cont.view(a).setActive(); var pref = null; if (this.vs[a].grid) pref = "grid"; if (this.vs[a].tree) pref = "tree"; if (this.vs[a].tabbar) pref = "tabbar"; if (this.vs[a].folders) pref = "folders"; if (this.vs[a].layout) pref = "layout"; if (pref != null) { cont.view(a).attachObject(this.vs[a][pref+"Id"]); cont.vs[a][pref] = this.vs[a][pref]; cont.vs[a][pref+"Id"] = this.vs[a][pref+"Id"]; cont.vs[a][pref+"Obj"] = this.vs[a][pref+"Obj"]; this.vs[a][pref] = null; this.vs[a][pref+"Id"] = null; this.vs[a][pref+"Obj"] = null; } if (this.vs[a]._frame) { cont.vs[a]._frame = this.vs[a]._frame; this.vs[a]._frame = null; } if (this.vs[a].menu != null) { if (cont.cv == cont.av) { cont.vs[cont.av].dhxcont.insertBefore(document.getElementById(this.vs[a].menuId), cont.vs[cont.av].dhxcont.childNodes[0]); } else { cont._getSt().appendChild(document.getElementById(this.vs[a].menuId)); } cont.vs[a].menu = this.vs[a].menu; cont.vs[a].menuId = this.vs[a].menuId; cont.vs[a].menuHeight = this.vs[a].menuHeight; this.vs[a].menu = null; this.vs[a].menuId = null; this.vs[a].menuHeight = null; if (this.cv == this.av && this._doOnAttachMenu) this._doOnAttachMenu("unload"); if (cont.cv == cont.av && cont._doOnAttachMenu) cont._doOnAttachMenu("move"); } if (this.vs[a].toolbar != null) { if (cont.cv == cont.av) { cont.vs[cont.av].dhxcont.insertBefore(document.getElementById(this.vs[a].toolbarId), cont.vs[cont.av].dhxcont.childNodes[(cont.vs[cont.av].menu!=null?1:0)]); } else { cont._getSt().appendChild(document.getElementById(this.vs[a].toolbarId)); } cont.vs[a].toolbar = this.vs[a].toolbar; cont.vs[a].toolbarId = this.vs[a].toolbarId; cont.vs[a].toolbarHeight = this.vs[a].toolbarHeight; this.vs[a].toolbar = null; this.vs[a].toolbarId = null; this.vs[a].toolbarHeight = null; if (this.cv == this.av && this._doOnAttachToolbar) this._doOnAttachToolbar("unload"); if (cont.cv == cont.av && cont._doOnAttachToolbar) cont._doOnAttachToolbar("move"); } if (this.vs[a].sb != null) { if (cont.cv == cont.av) { cont.vs[cont.av].dhxcont.insertBefore(document.getElementById(this.vs[a].sbId), cont.vs[cont.av].dhxcont.childNodes[cont.vs[cont.av].dhxcont.childNodes.length-1]); } else { cont._getSt().appendChild(document.getElementById(this.vs[a].sbId)); } cont.vs[a].sb = this.vs[a].sb; cont.vs[a].sbId = this.vs[a].sbId; cont.vs[a].sbHeight = this.vs[a].sbHeight; this.vs[a].sb = null; this.vs[a].sbId = null; this.vs[a].sbHeight = null; if (this.cv == this.av && this._doOnAttachStatusBar) this._doOnAttachStatusBar("unload"); if (cont.cv == cont.av && cont._doOnAttachStatusBar) cont._doOnAttachStatusBar("move"); } var objA = this.vs[a].dhxcont.mainCont[a]; var objB = cont.vs[a].dhxcont.mainCont[a]; while (objA.childNodes.length > 0) objB.appendChild(objA.childNodes[0]); //this.vs[a] = null; } cont.view(this.av).setActive(); } this.obj.adjustContent = function(parentObj, offsetTop, marginTop, notCalcWidth, offsetBottom) { this.vs[this.av].dhxcont.style.left = (this._offsetLeft||0)+"px"; this.vs[this.av].dhxcont.style.top = (this._offsetTop||0)+offsetTop+"px"; // var cw = parentObj.clientWidth+(this._offsetWidth||0); if (notCalcWidth !== true) this.vs[this.av].dhxcont.style.width = Math.max(0, cw)+"px"; if (notCalcWidth !== true) if (this.vs[this.av].dhxcont.offsetWidth > cw) this.vs[this.av].dhxcont.style.width = Math.max(0, cw*2-this.vs[this.av].dhxcont.offsetWidth)+"px"; // var ch = parentObj.clientHeight+(this._offsetHeight||0); this.vs[this.av].dhxcont.style.height = Math.max(0, ch-offsetTop)+(marginTop!=null?marginTop:0)+"px"; if (this.vs[this.av].dhxcont.offsetHeight > ch - offsetTop) this.vs[this.av].dhxcont.style.height = Math.max(0, (ch-offsetTop)*2-this.vs[this.av].dhxcont.offsetHeight)+"px"; if (offsetBottom) if (!isNaN(offsetBottom)) this.vs[this.av].dhxcont.style.height = Math.max(0, parseInt(this.vs[this.av].dhxcont.style.height)-offsetBottom)+"px"; // main window content if (this.vs[this.av]._minDataSizeH != null) { // height for menu/toolbar/status bar should be included if (parseInt(this.vs[this.av].dhxcont.style.height) < this.vs[this.av]._minDataSizeH) this.vs[this.av].dhxcont.style.height = this.vs[this.av]._minDataSizeH+"px"; } if (this.vs[this.av]._minDataSizeW != null) { if (parseInt(this.vs[this.av].dhxcont.style.width) < this.vs[this.av]._minDataSizeW) this.vs[this.av].dhxcont.style.width = this.vs[this.av]._minDataSizeW+"px"; } if (notCalcWidth !== true) { this.vs[this.av].dhxcont.mainCont[this.av].style.width = this.vs[this.av].dhxcont.clientWidth+"px"; // allow border to this.dhxcont.mainCont if (this.vs[this.av].dhxcont.mainCont[this.av].offsetWidth > this.vs[this.av].dhxcont.clientWidth) this.vs[this.av].dhxcont.mainCont[this.av].style.width = Math.max(0, this.vs[this.av].dhxcont.clientWidth*2-this.vs[this.av].dhxcont.mainCont[this.av].offsetWidth)+"px"; } var menuOffset = (this.vs[this.av].menu!=null?(!this.vs[this.av].menuHidden?this.vs[this.av].menuHeight:0):0); var toolbarOffset = (this.vs[this.av].toolbar!=null?(!this.vs[this.av].toolbarHidden?this.vs[this.av].toolbarHeight:0):0); var statusOffset = (this.vs[this.av].sb!=null?(!this.vs[this.av].sbHidden?this.vs[this.av].sbHeight:0):0); // allow border to this.dhxcont.mainCont this.vs[this.av].dhxcont.mainCont[this.av].style.height = this.vs[this.av].dhxcont.clientHeight+"px"; if (this.vs[this.av].dhxcont.mainCont[this.av].offsetHeight > this.vs[this.av].dhxcont.clientHeight) this.vs[this.av].dhxcont.mainCont[this.av].style.height = Math.max(0, this.vs[this.av].dhxcont.clientHeight*2-this.vs[this.av].dhxcont.mainCont[this.av].offsetHeight)+"px"; this.vs[this.av].dhxcont.mainCont[this.av].style.height = Math.max(0, parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)-menuOffset-toolbarOffset-statusOffset)+"px"; } this.obj.coverBlocker = function() { return this.vs[this.av].dhxcont.childNodes[this.vs[this.av].dhxcont.childNodes.length-1]; } this.obj.showCoverBlocker = function() { this.coverBlocker().style.display = ""; } this.obj.hideCoverBlocker = function() { this.coverBlocker().style.display = "none"; } this.obj.updateNestedObjects = function() { if (this.vs[this.av].grid) { this.vs[this.av].grid.setSizes(); } if (this.vs[this.av].sched) { this.vs[this.av].sched.setSizes(); } if (this.vs[this.av].tabbar) { this.vs[this.av].tabbar.adjustOuterSize(); } if (this.vs[this.av].folders) { this.vs[this.av].folders.setSizes(); } if (this.vs[this.av].editor) { if (!_isIE) this.vs[this.av].editor._prepareContent(true); this.vs[this.av].editor.setSizes(); } //if (_isOpera) { var t = this; window.setTimeout(function(){t.editor.adjustSize();},10); } else { this.vs[this.av].editor.adjustSize(); } } if (this.vs[this.av].layout) { if (this.vs[this.av]._isAcc && this.vs[this.av].skin == "dhx_skyblue") { this.vs[this.av].layoutObj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+2+"px"; this.vs[this.av].layoutObj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+2+"px"; } else { this.vs[this.av].layoutObj.style.width = this.vs[this.av].dhxcont.mainCont[this.av].style.width; this.vs[this.av].layoutObj.style.height = this.vs[this.av].dhxcont.mainCont[this.av].style.height; } this.vs[this.av].layout.setSizes(); } if (this.vs[this.av].accordion != null) { if (this.vs[this.av].skin == "dhx_web") { this.vs[this.av].accordionObj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+"px"; this.vs[this.av].accordionObj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+"px"; } else { this.vs[this.av].accordionObj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+2+"px"; this.vs[this.av].accordionObj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+2+"px"; } this.vs[this.av].accordion.setSizes(); } // docked layout's cell if (this.vs[this.av].dockedCell) { this.vs[this.av].dockedCell.updateNestedObjects(); } /* if (win.accordion != null) { win.accordion.setSizes(); } if (win.layout != null) { win.layout.setSizes(win); } */ if (this.vs[this.av].form) this.vs[this.av].form.setSizes(); } /** * @desc: attaches a status bar to a window * @type: public */ this.obj.attachStatusBar = function() { if (this.vs[this.av].sb) return; var sbObj = document.createElement("DIV"); if (this._isCell) { sbObj.className = "dhxcont_sb_container_layoutcell"; } else { sbObj.className = "dhxcont_sb_container"; } sbObj.id = "sbobj_"+this._genStr(12); sbObj.innerHTML = "<div class='dhxcont_statusbar'></div>"; if (this.cv == this.av) this.vs[this.av].dhxcont.insertBefore(sbObj, this.vs[this.av].dhxcont.childNodes[this.vs[this.av].dhxcont.childNodes.length-1]); else that.st.appendChild(sbObj); sbObj.setText = function(text) { this.childNodes[0].innerHTML = text; } sbObj.getText = function() { return this.childNodes[0].innerHTML; } sbObj.onselectstart = function(e) { e=e||event; e.returnValue=false; return false; } this.vs[this.av].sb = sbObj; this.vs[this.av].sbHeight = (this.skin=="dhx_web"?41:(this.skin=="dhx_skyblue"?23:sbObj.offsetHeight)); this.vs[this.av].sbId = sbObj.id; if (this._doOnAttachStatusBar) this._doOnAttachStatusBar("init"); this.adjust(); return this.vs[this._viewRestore()].sb; } /** * @desc: detaches a status bar from a window * @type: public */ this.obj.detachStatusBar = function() { if (!this.vs[this.av].sb) return; this.vs[this.av].sb.setText = null; this.vs[this.av].sb.getText = null; this.vs[this.av].sb.onselectstart = null; this.vs[this.av].sb.parentNode.removeChild(this.vs[this.av].sb); this.vs[this.av].sb = null; this.vs[this.av].sbHeight = null; this.vs[this.av].sbId = null; this._viewRestore(); if (this._doOnAttachStatusBar) this._doOnAttachStatusBar("unload"); } this.obj.getFrame = function(){ return this.getView()._frame; }; this.obj.getView = function(name){ return this.vs[name||this.av]; }; /** * @desc: attaches a dhtmlxMenu to a window * @type: public */ this.obj.attachMenu = function(skin) { if (this.vs[this.av].menu) return; var menuObj = document.createElement("DIV"); menuObj.style.position = "relative"; menuObj.style.overflow = "hidden"; menuObj.id = "dhxmenu_"+this._genStr(12); if (this.cv == this.av) this.vs[this.av].dhxcont.insertBefore(menuObj, this.vs[this.av].dhxcont.childNodes[0]); else that.st.appendChild(menuObj); this.vs[this.av].menu = new dhtmlXMenuObject(menuObj.id, (skin||this.skin)); this.vs[this.av].menuHeight = (this.skin=="dhx_web"?29:menuObj.offsetHeight); this.vs[this.av].menuId = menuObj.id; if (this._doOnAttachMenu) this._doOnAttachMenu("init"); this.adjust(); return this.vs[this._viewRestore()].menu; } /** * @desc: detaches a dhtmlxMenu from a window * @type: public */ this.obj.detachMenu = function() { if (!this.vs[this.av].menu) return; var menuObj = document.getElementById(this.vs[this.av].menuId); this.vs[this.av].menu.unload(); this.vs[this.av].menu = null; this.vs[this.av].menuId = null; this.vs[this.av].menuHeight = null; menuObj.parentNode.removeChild(menuObj); menuObj = null; this._viewRestore(); if (this._doOnAttachMenu) this._doOnAttachMenu("unload"); } /** * @desc: attaches a dhtmlxToolbar to a window * @type: public */ this.obj.attachToolbar = function(skin) { if (this.vs[this.av].toolbar) return; var toolbarObj = document.createElement("DIV"); toolbarObj.style.position = "relative"; toolbarObj.style.overflow = "hidden"; toolbarObj.id = "dhxtoolbar_"+this._genStr(12); if (this.cv == this.av) this.vs[this.av].dhxcont.insertBefore(toolbarObj, this.vs[this.av].dhxcont.childNodes[(this.vs[this.av].menu!=null?1:0)]); else that.st.appendChild(toolbarObj); this.vs[this.av].toolbar = new dhtmlXToolbarObject(toolbarObj.id, (skin||this.skin)); this.vs[this.av].toolbarHeight = (this.skin=="dhx_web"?41:toolbarObj.offsetHeight+(this._isLayout&&this.skin=="dhx_skyblue"?2:0)); this.vs[this.av].toolbarId = toolbarObj.id; if (this._doOnAttachToolbar) this._doOnAttachToolbar("init"); this.adjust(); return this.vs[this._viewRestore()].toolbar; } /** * @desc: detaches a dhtmlxToolbar from a window * @type: public */ this.obj.detachToolbar = function() { if (!this.vs[this.av].toolbar) return; var toolbarObj = document.getElementById(this.vs[this.av].toolbarId); this.vs[this.av].toolbar.unload(); this.vs[this.av].toolbar = null; this.vs[this.av].toolbarId = null; this.vs[this.av].toolbarHeight = null; toolbarObj.parentNode.removeChild(toolbarObj); toolbarObj = null; this._viewRestore(); if (this._doOnAttachToolbar) this._doOnAttachToolbar("unload"); } /** * @desc: attaches a dhtmlxGrid to a window * @type: public */ this.obj.attachGrid = function() { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } var obj = document.createElement("DIV"); obj.id = "dhxGridObj_"+this._genStr(12); obj.style.width = "100%"; obj.style.height = "100%"; obj.cmp = "grid"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); this.vs[this.av].grid = new dhtmlXGridObject(obj.id); this.vs[this.av].grid.setSkin(this.skin); if (this.skin != "dhx_web") { this.vs[this.av].grid.entBox.style.border = "0px solid white"; this.vs[this.av].grid._sizeFix=0; } this.vs[this.av].gridId = obj.id; this.vs[this.av].gridObj = obj; return this.vs[this._viewRestore()].grid; } /** * @desc: attaches a dhtmlxScheduler to a window * @type: public */ this.obj.attachScheduler = function(day,mode) { var obj = document.createElement("DIV"); obj.id = "dhxSchedObj_"+this._genStr(12); obj.innerHTML = '<div id="'+obj.id+'" class="dhx_cal_container" style="width:100%; height:100%;"><div class="dhx_cal_navline"><div class="dhx_cal_prev_button">&nbsp;</div><div class="dhx_cal_next_button">&nbsp;</div><div class="dhx_cal_today_button"></div><div class="dhx_cal_date"></div><div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div><div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div><div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div></div><div class="dhx_cal_header"></div><div class="dhx_cal_data"></div></div>'; document.body.appendChild(obj.firstChild); this.attachObject(obj.id, false, true); this.vs[this.av].sched = scheduler; this.vs[this.av].schedId = obj.id; scheduler.setSizes = scheduler.update_view; scheduler.destructor=function(){}; scheduler.init(obj.id,day,mode); return this.vs[this._viewRestore()].sched; } /** * @desc: attaches a dhtmlxTree to a window * @param: rootId - not mandatory, tree super root, see dhtmlxTree documentation for details * @type: public */ this.obj.attachTree = function(rootId) { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } var obj = document.createElement("DIV"); obj.id = "dhxTreeObj_"+this._genStr(12); obj.style.width = "100%"; obj.style.height = "100%"; obj.cmp = "tree"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); this.vs[this.av].tree = new dhtmlXTreeObject(obj.id, "100%", "100%", (rootId||0)); this.vs[this.av].tree.setSkin(this.skin); // this.tree.allTree.style.paddingTop = "2px"; this.vs[this.av].tree.allTree.childNodes[0].style.marginTop = "2px"; this.vs[this.av].tree.allTree.childNodes[0].style.marginBottom = "2px"; this.vs[this.av].treeId = obj.id; this.vs[this.av].treeObj = obj; return this.vs[this._viewRestore()].tree; } /** * @desc: attaches a dhtmlxTabbar to a window * @type: public */ this.obj.attachTabbar = function(mode) { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.style.border = "none"; this.setDimension(this.w, this.h); } var obj = document.createElement("DIV"); obj.id = "dhxTabbarObj_"+this._genStr(12); obj.style.width = "100%"; obj.style.height = "100%"; obj.style.overflow = "hidden"; obj.cmp = "tabbar"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); // manage dockcell if exists if (this.className == "dhtmlxLayoutSinglePoly") this.hideHeader(); // this.vs[this.av].tabbar = new dhtmlXTabBar(obj.id, mode||"top", 20); if (!this._isWindow) this.vs[this.av].tabbar._s.expand = true; this.vs[this.av].tabbar.setSkin(this.skin); this.vs[this.av].tabbar.adjustOuterSize(); this.vs[this.av].tabbarId = obj.id; this.vs[this.av].tabbarObj = obj; return this.vs[this._viewRestore()].tabbar; } /** * @desc: attaches a dhtmlxFolders to a window * @type: public */ this.obj.attachFolders = function() { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } var obj = document.createElement("DIV"); obj.id = "dhxFoldersObj_"+this._genStr(12); obj.style.width = "100%"; obj.style.height = "100%"; obj.style.overflow = "hidden"; obj.cmp = "folders"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); this.vs[this.av].folders = new dhtmlxFolders(obj.id); this.vs[this.av].folders.setSizes(); this.vs[this.av].foldersId = obj.id; this.vs[this.av].foldersObj = obj; return this.vs[this._viewRestore()].folders; } /** * @desc: attaches a dhtmlxAccordion to a window * @type: public */ this.obj.attachAccordion = function() { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } var obj = document.createElement("DIV"); obj.id = "dhxAccordionObj_"+this._genStr(12); if (this.skin == "dhx_web") { obj.style.left = "0px"; obj.style.top = "0px"; obj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+"px"; obj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+"px"; } else { obj.style.left = "-1px"; obj.style.top = "-1px"; obj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+2+"px"; obj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+2+"px"; } // obj.style.position = "relative"; obj.cmp = "accordion"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); this.vs[this.av].accordion = new dhtmlXAccordion(obj.id, this.skin); this.vs[this.av].accordion.setSizes(); this.vs[this.av].accordionId = obj.id; this.vs[this.av].accordionObj = obj; return this.vs[this._viewRestore()].accordion; } /** * @desc: attaches a dhtmlxLayout to a window * @param: view - layout's pattern * @param: skin - layout's skin * @type: public */ this.obj.attachLayout = function(view, skin) { // attach layout to layout if (this._isCell && this.skin == "dhx_skyblue") { this.hideHeader(); this.vs[this.av].dhxcont.style.border = "0px solid white"; this.adjustContent(this.childNodes[0], 0); } if (this._isCell && this.skin == "dhx_web") { this.hideHeader(); } var obj = document.createElement("DIV"); obj.id = "dhxLayoutObj_"+this._genStr(12); obj.style.overflow = "hidden"; obj.style.position = "absolute"; obj.style.left = "0px"; obj.style.top = "0px"; obj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+"px"; obj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+"px"; if (this._isAcc && this.skin == "dhx_skyblue") { obj.style.left = "-1px"; obj.style.top = "-1px"; obj.style.width = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.width)+2+"px"; obj.style.height = parseInt(this.vs[this.av].dhxcont.mainCont[this.av].style.height)+2+"px"; } // needed for layout's init obj.dhxContExists = true; obj.cmp = "layout"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); this.vs[this.av].layout = new dhtmlXLayoutObject(obj, view, (skin||this.skin)); // window/layout events configuration if (this._isWindow) this.attachEvent("_onBeforeTryResize", this.vs[this.av].layout._defineWindowMinDimension); this.vs[this.av].layoutId = obj.id; this.vs[this.av].layoutObj = obj; // this.adjust(); return this.vs[this._viewRestore()].layout; } /** * @desc: attaches a dhtmlxEditor to a window * @param: skin - not mandatory, editor's skin * @type: public */ this.obj.attachEditor = function(skin) { if (this._isWindow && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } var obj = document.createElement("DIV"); obj.id = "dhxEditorObj_"+this._genStr(12); obj.style.position = "relative"; obj.style.display = "none"; obj.style.overflow = "hidden"; obj.style.width = "100%"; obj.style.height = "100%"; obj.cmp = "editor"; document.body.appendChild(obj); // this.attachObject(obj.id, false, true); // this.vs[this.av].editor = new dhtmlXEditor(obj.id, this.skin); this.vs[this.av].editorId = obj.id; this.vs[this.av].editorObj = obj; return this.vs[this._viewRestore()].editor; } this.obj.attachMap = function(opts) { var obj = document.createElement("DIV"); obj.id = "GMapsObj_"+this._genStr(12); obj.style.position = "relative"; obj.style.display = "none"; obj.style.overflow = "hidden"; obj.style.width = "100%"; obj.style.height = "100%"; obj.cmp = "gmaps"; document.body.appendChild(obj); this.attachObject(obj.id, false, true); if (!opts) opts = {center: new google.maps.LatLng(40.719837,-73.992348), zoom: 11, mapTypeId: google.maps.MapTypeId.ROADMAP}; this.vs[this.av].gmaps = new google.maps.Map(obj, opts); return this.vs[this.av].gmaps; } /** * @desc: attaches an object into a window * @param: obj - object or object id * @param: autoSize - set true to adjust a window to object's dimension * @type: public */ this.obj.attachObject = function(obj, autoSize, localCall) { if (typeof(obj) == "string") obj = document.getElementById(obj); if (autoSize) { obj.style.visibility = "hidden"; obj.style.display = ""; var objW = obj.offsetWidth; var objH = obj.offsetHeight; } this._attachContent("obj", obj); if (autoSize && this._isWindow) { obj.style.visibility = "visible"; this._adjustToContent(objW, objH); /* this._engineAdjustWindowToContent(this, objW, objH); */ } if (!localCall) this._viewRestore(); } /** * * */ this.obj.detachObject = function(remove, moveTo) { // detach dhtmlx components var p = null; var pObj = null; var t = ["tree","grid","layout","tabbar","accordion","folders"]; for (var q=0; q<t.length; q++) { if (this.vs[this.av][t[q]]) { p = this.vs[this.av][t[q]]; pObj = this.vs[this.av][t[q]+"Obj"]; if (remove) { if (p.unload) p.unload(); if (p.destructor) p.destructor(); while (pObj.childNodes.length > 0) pObj.removeChild(pObj.childNodes[0]); pObj.parentNode.removeChild(pObj); pObj = null; p = null; } else { document.body.appendChild(pObj); pObj.style.display = "none"; } this.vs[this.av][t[q]] = null; this.vs[this.av][t[q]+"Id"] = null; this.vs[this.av][t[q]+"Obj"] = null; } } if (p != null && pObj != null) return new Array(p, pObj); // detach any other content if (remove && this.vs[this.av]._frame) { this._detachURLEvents(); this.vs[this.av]._frame = null; } var objA = this.vs[this.av].dhxcont.mainCont[this.av]; while (objA.childNodes.length > 0) { if (remove == true) { // add frame events removing objA.removeChild(objA.childNodes[0]); } else { var obj = objA.childNodes[0]; if (moveTo != null) { if (typeof(moveTo) != "object") moveTo = document.getElementById(moveTo); moveTo.appendChild(obj); } else { document.body.appendChild(obj); } obj.style.display = "none"; } } } /** * @desc: appends an object into a window * @param: obj - object or object id * @type: public */ this.obj.appendObject = function(obj) { if (typeof(obj) == "string") { obj = document.getElementById(obj); } this._attachContent("obj", obj, true); } /** * @desc: attaches an html string as an object into a window * @param: str - html string * @type: public */ this.obj.attachHTMLString = function(str) { this._attachContent("str", str); var z=str.match(/<script[^>]*>[^\f]*?<\/script>/g)||[]; for (var i=0; i<z.length; i++){ var s=z[i].replace(/<([\/]{0,1})script[^>]*>/g,"") if (window.execScript) window.execScript(s); else window.eval(s); } } /** * @desc: attaches an url into a window * @param: url * @param: ajax - loads an url with ajax * @type: public */ this.obj.attachURL = function(url, ajax) { alert(url); alert(ajax); this._attachContent((ajax==true?"urlajax":"url"), url, false); this._viewRestore(); } this.obj.adjust = function() { if (this.skin == "dhx_skyblue") { if (this.vs[this.av].menu) { if (this._isWindow || this._isLayout) { this.vs[this.av].menu._topLevelOffsetLeft = 0; document.getElementById(this.vs[this.av].menuId).style.height = "26px"; this.vs[this.av].menuHeight = document.getElementById(this.vs[this.av].menuId).offsetHeight; if (this._doOnAttachMenu) this._doOnAttachMenu("show"); } if (this._isCell) { document.getElementById(this.vs[this.av].menuId).className += " in_layoutcell"; // document.getElementById(this.menuId).style.height = "25px"; this.vs[this.av].menuHeight = 25; } if (this._isAcc) { document.getElementById(this.vs[this.av].menuId).className += " in_acccell"; // document.getElementById(this.menuId).style.height = "25px"; this.vs[this.av].menuHeight = 25; } if (this._doOnAttachMenu) this._doOnAttachMenu("adjust"); } if (this.vs[this.av].toolbar) { if (this._isWindow || this._isLayout) { document.getElementById(this.vs[this.av].toolbarId).style.height = "29px"; this.vs[this.av].toolbarHeight = document.getElementById(this.vs[this.av].toolbarId).offsetHeight; if (this._doOnAttachToolbar) this._doOnAttachToolbar("show"); } if (this._isCell) { document.getElementById(this.vs[this.av].toolbarId).className += " in_layoutcell"; } if (this._isAcc) { document.getElementById(this.vs[this.av].toolbarId).className += " in_acccell"; } } } if (this.skin == "dhx_web") { } } // attach content obj|url this.obj._attachContent = function(type, obj, append) { // clear old content if (append !== true) { if (this.vs[this.av]._frame) { this._detachURLEvents(); this.vs[this.av]._frame = null; } while (this.vs[this.av].dhxcont.mainCont[this.av].childNodes.length > 0) this.vs[this.av].dhxcont.mainCont[this.av].removeChild(this.vs[this.av].dhxcont.mainCont[this.av].childNodes[0]); } // attach if (type == "url") { alert("1"); if (this._isWindow && obj.cmp == null && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this._redraw(); } alert("2"); var fr = document.createElement("IFRAME"); fr.frameBorder = 0; fr.border = 0; fr.style.width = "100%"; fr.style.height = "100%"; fr.setAttribute("src","javascript:false;"); this.vs[this.av].dhxcont.mainCont[this.av].appendChild(fr); //fr.src = ""; fr.src = obj; // ?? this._frame = fr; this.vs[this.av]._frame = fr; this._attachURLEvents(); } else if (type == "urlajax") { if (this._isWindow && obj.cmp == null && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this.vs[this.av].dhxcont.mainCont[this.av].style.backgroundColor = "#FFFFFF"; this._redraw(); } var t = this; var xmlParser = function(){ t.attachHTMLString(this.xmlDoc.responseText, this); //if (t._doOnAttachURL) t._doOnAttachURL(false); if (t._doOnFrameContentLoaded) t._doOnFrameContentLoaded(); this.destructor(); } var xmlLoader = new dtmlXMLLoaderObject(xmlParser, window); xmlLoader.dhxWindowObject = this; xmlLoader.loadXML(obj); } else if (type == "obj") { if (this._isWindow && obj.cmp == null && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this.vs[this.av].dhxcont.mainCont[this.av].style.backgroundColor = "#FFFFFF"; this._redraw(); } this.vs[this.av].dhxcont._frame = null; this.vs[this.av].dhxcont.mainCont[this.av].appendChild(obj); // this._engineGetWindowContent(win).style.overflow = (append===true?"auto":"hidden"); // win._content.childNodes[2].appendChild(obj); this.vs[this.av].dhxcont.mainCont[this.av].style.overflow = (append===true?"auto":"hidden"); obj.style.display = ""; } else if (type == "str") { if (this._isWindow && obj.cmp == null && this.skin == "dhx_skyblue") { this.vs[this.av].dhxcont.mainCont[this.av].style.border = "#a4bed4 1px solid"; this.vs[this.av].dhxcont.mainCont[this.av].style.backgroundColor = "#FFFFFF"; this._redraw(); } this.vs[this.av].dhxcont._frame = null; this.vs[this.av].dhxcont.mainCont[this.av].innerHTML = obj; } } this.obj._attachURLEvents = function() { var t = this; var fr = this.vs[this.av]._frame; if (_isIE) { fr.onreadystatechange = function(a) { if (fr.readyState == "complete") { try {fr.contentWindow.document.body.onmousedown=function(){if(t._doOnFrameMouseDown)t._doOnFrameMouseDown();};}catch(e){}; try{if(t._doOnFrameContentLoaded)t._doOnFrameContentLoaded();}catch(e){}; } } } else { fr.onload = function() { try{fr.contentWindow.onmousedown=function(){if(t._doOnFrameMouseDown)t._doOnFrameMouseDown();};}catch(e){}; try{if(t._doOnFrameContentLoaded)t._doOnFrameContentLoaded();}catch(e){}; } } } this.obj._detachURLEvents = function() { if (_isIE) { try { this.vs[this.av]._frame.onreadystatechange = null; this.vs[this.av]._frame.contentWindow.document.body.onmousedown = null; this.vs[this.av]._frame.onload = null; } catch(e) {}; } else { try { this.vs[this.av]._frame.contentWindow.onmousedown = null; this.vs[this.av]._frame.onload = null; } catch(e) {}; } } this.obj.showMenu = function() { if (!(this.vs[this.av].menu && this.vs[this.av].menuId)) return; if (document.getElementById(this.vs[this.av].menuId).style.display != "none") return; this.vs[this.av].menuHidden = false; if (this._doOnAttachMenu) this._doOnAttachMenu("show"); document.getElementById(this.vs[this.av].menuId).style.display = ""; this._viewRestore(); } this.obj.hideMenu = function() { if (!(this.vs[this.av].menu && this.vs[this.av].menuId)) return; if (document.getElementById(this.vs[this.av].menuId).style.display == "none") return; document.getElementById(this.vs[this.av].menuId).style.display = "none"; this.vs[this.av].menuHidden = true; if (this._doOnAttachMenu) this._doOnAttachMenu("hide"); this._viewRestore(); } this.obj.showToolbar = function() { if (!(this.vs[this.av].toolbar && this.vs[this.av].toolbarId)) return; if (document.getElementById(this.vs[this.av].toolbarId).style.display != "none") return; this.vs[this.av].toolbarHidden = false; if (this._doOnAttachToolbar) this._doOnAttachToolbar("show"); document.getElementById(this.vs[this.av].toolbarId).style.display = ""; this._viewRestore(); } this.obj.hideToolbar = function() { if (!(this.vs[this.av].toolbar && this.vs[this.av].toolbarId)) return; if (document.getElementById(this.vs[this.av].toolbarId).style.display == "none") return; this.vs[this.av].toolbarHidden = true; document.getElementById(this.vs[this.av].toolbarId).style.display = "none"; if (this._doOnAttachToolbar) this._doOnAttachToolbar("hide"); this._viewRestore(); } this.obj.showStatusBar = function() { if (!(this.vs[this.av].sb && this.vs[this.av].sbId)) return; if (document.getElementById(this.vs[this.av].sbId).style.display != "none") return; this.vs[this.av].sbHidden = false; if (this._doOnAttachStatusBar) this._doOnAttachStatusBar("show"); document.getElementById(this.vs[this.av].sbId).style.display = ""; this._viewRestore(); } this.obj.hideStatusBar = function() { if (!(this.vs[this.av].sb && this.vs[this.av].sbId)) return; if (document.getElementById(this.vs[this.av].sbId).style.display == "none") return; this.vs[this.av].sbHidden = true; document.getElementById(this.vs[this.av].sbId).style.display = "none"; if (this._doOnAttachStatusBar) this._doOnAttachStatusBar("hide"); this._viewRestore(); } this.obj._dhxContDestruct = function() { // clear attached objects var av = this.av; for (var a in this.vs) { this.av = a; // menu, toolbar, status this.detachMenu(); this.detachToolbar(); this.detachStatusBar(); // remove any attached object or dhtmlx component this.detachObject(true); this.vs[a].dhxcont.mainCont[a].parentNode.removeChild(this.vs[a].dhxcont.mainCont[a]); this.vs[a].dhxcont.mainCont[a] = null; } this.vs[this.dv].dhxcont.mainCont = null; this.vs[this.dv].dhxcont.parentNode.removeChild(this.vs[this.dv].dhxcont); for (var a in this.vs) this.vs[a].dhxcont = null; this.vs = null; this.attachMenu = null; this.attachToolbar = null; this.attachStatusBar = null; this.detachMenu = null; this.detachToolbar = null; this.detachStatusBar = null; this.showMenu = null; this.showToolbar = null; this.showStatusBar = null; this.hideMenu = null; this.hideToolbar = null; this.hideStatusBar = null; this.attachGrid = null; this.attachScheduler = null; this.attachTree = null; this.attachTabbar = null; this.attachFolders = null; this.attachAccordion = null; this.attachLayout = null; this.attachEditor = null; this.attachObject = null; this.detachObject = null; this.appendObject = null; this.attachHTMLString = null; this.attachURL = null; this.view = null; this.show = null; this.adjust = null; this.setMinContentSize = null; this.moveContentTo = null; this.adjustContent = null; this.coverBlocker = null; this.showCoverBlocker = null; this.hideCoverBlocker = null; this.updateNestedObjects = null; this._attachContent = null; this._attachURLEvents = null; this._detachURLEvents = null; this._viewRestore = null; this._setPadding = null; this._init = null; this._genStr = null; this._dhxContDestruct = null; that.st.parentNode.removeChild(that.st); that.st = null; that.setContent = null; that.dhxcont = null; // no more used at all? that.obj = null; that = null; // remove attached components /* for (var a in this.vs) { if (this.vs[a].layout) this.vs[a].layout.unlaod(); if (this.vs[a].accordion) this.vs[a].accordion.unlaod(); if (this.vs[a].sched) this.vs[a].sched.destructor(); this.vs[a].layout = null; this.vs[a].accordion = null; this.vs[a].sched = null; } */ // extended functionality if (dhtmlx.detaches) for (var a in dhtmlx.detaches) dhtmlx.detaches[a](this); } // extended functionality if (dhtmlx.attaches) for (var a in dhtmlx.attaches) this.obj[a] = dhtmlx.attaches[a]; }
zzbasepro
trunk/basepro/WebRoot/script/dhtmlx/window/dhtmlxcontainer_bak.js
JavaScript
oos
42,804
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ function eXcell_link(cell){this.cell = cell;this.grid = this.cell.parentNode.grid;this.isDisabled=function(){return true};this.edit = function(){};this.getValue = function(){if(this.cell.firstChild.getAttribute)return this.cell.firstChild.innerHTML+"^"+this.cell.firstChild.getAttribute("href") else return ""};this.setValue = function(val){if((typeof(val)!="number") && (!val || val.toString()._dhx_trim()=="")){this.setCValue("&nbsp;",valsAr);return (this.cell._clearCell=true)};var valsAr = val.split("^");if(valsAr.length==1)valsAr[1] = "";else{if(valsAr.length>1){valsAr[1] = "href='"+valsAr[1]+"'";if(valsAr.length==3)valsAr[1]+= " target='"+valsAr[2]+"'";else valsAr[1]+= " target='_blank'"}};this.setCValue("<a "+valsAr[1]+" onclick='(_isIE?event:arguments[0]).cancelBubble = true;'>"+valsAr[0]+"</a>",valsAr)}};eXcell_link.prototype = new eXcell;eXcell_link.prototype.getTitle=function(){var z=this.cell.firstChild;return ((z&&z.tagName)?z.getAttribute("href"):"")};eXcell_link.prototype.getContent=function(){var z=this.cell.firstChild;return ((z&&z.tagName)?z.innerHTML:"")}; //v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */
zzbasepro
trunk/basepro/WebRoot/script/dhtmlx/treegrid/dhtmlxgrid_excell_link.js
JavaScript
oos
1,598
//v.3.5 build 120822 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ function dhx_init_tabbars(){for(var h=document.getElementsByTagName("div"),g=0;g<h.length;g++)if(h[g].className.indexOf("dhtmlxTabBar")!=-1){var a=h[g],j=a.id;a.className="";for(var f=[],e=0;e<a.childNodes.length;e++)a.childNodes[e].tagName&&a.childNodes[e].tagName!="!"&&(f[f.length]=a.childNodes[e]);var c=new dhtmlXTabBar(j,a.getAttribute("mode")||"top",a.getAttribute("tabheight")||20);window[j]=c;(b=a.getAttribute("onbeforeinit"))&&eval(b);a.getAttribute("enableForceHiding")&&c.enableForceHiding(!0); c.setImagePath(a.getAttribute("imgpath"));var b=a.getAttribute("margin");if(b!=null)c._margin=b;if(b=a.getAttribute("align"))c._align=b;(b=a.getAttribute("hrefmode"))&&c.setHrefMode(b);b=a.getAttribute("offset");if(b!=null)c._offset=b;b=a.getAttribute("tabstyle");b!=null&&c.setStyle(b);var b=a.getAttribute("select"),i=a.getAttribute("skinColors");i&&c.setSkinColors(i.split(",")[0],i.split(",")[1]);for(e=0;e<f.length;e++){var d=f[e];d.parentNode.removeChild(d);c.addTab(d.id,d.getAttribute("name"), d.getAttribute("width"),null,d.getAttribute("row"));var k=d.getAttribute("href");k?c.setContentHref(d.id,k):c.setContent(d.id,d);if(!c._dspN&&d.style.display=="none")d.style.display=""}f.length&&c.setTabActive(b||f[0].id);(b=a.getAttribute("oninit"))&&eval(b)}}dhtmlxEvent(window,"load",dhx_init_tabbars); //v.3.5 build 120822 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */
zzbasepro
trunk/basepro/WebRoot/script/dhtmlx/tabbar/dhtmlxtabbar_start.js
JavaScript
oos
1,814
/** 加载数据用,存储临时的open页面 供createWindow方法使用 **/ function WindowObject(){ this.key ; this.obj ; } var dhxWins = null; var imagePath = null; /** * 获得项目根路径 * @return */ function getUrl(){ if(imagePath == null){ var curWwwPath=window.document.location.href; var pathName=window.document.location.pathname; var pos=curWwwPath.indexOf(pathName); var localhostPaht=curWwwPath.substring(0,pos); var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1); imagePath = localhostPaht + projectName + "/image/dhtmlx/window/"; } return imagePath; } /** 功能描述: 用于弹出窗口 wId: 弹出窗口的ID titleWindow: 模板名称(head处的title) tempWindow: 弹出模板ID(一般为div) isModal: 是否模态窗口 isDenyResize: 是否能够控制大小 isKeepInViewport: 是否可以超出范围(一般为DIV) isCenter: 是否居中显示(如果设置此属性为true则 t,l参数会失效) t: top坐标 l: left坐标 w: 宽度 h: 高度 style: 样式标识默认 dhx_skyblue **/ function openWin(wId,titleWindow,tempWindow,isModal,isDenyResize,isKeepInViewport,isCenter,t,l,w,h,style){ if (dhxWins != null) { dhxWins.unload(); } dhxWins = new dhtmlXWindows(); dhxWins.setImagePath(getUrl()); dhxWins.setSkin(style||"dhx_skyblue"); var openWindow = dhxWins.createWindow(wId,t,l,w,h); openWindow.setText(titleWindow); //是否模态窗口 openWindow.setModal(isModal); var tempStr; var isExist = false; if(typeof(arrWindow) == "undefined"){ arrWindow = new Array(); } if(arrWindow == null || arrWindow == undefined){ arrWindow = new Array(); } for(var i = 0; i < arrWindow.length; i ++){ var tempObj = arrWindow[i]; if(tempObj.key == tempWindow){ isExist = true; tempStr = tempObj.obj; break; } } if(!isExist){ tempStr = document.getElementById(tempWindow).innerHTML; var wind = new WindowObject(); wind.key = tempWindow; wind.obj = tempStr; arrWindow.push(wind); } //加载对应的div内容 openWindow.attachHTMLString(tempStr); //控制大小 if(!isDenyResize){ openWindow.denyResize(); } //控制是否能够超出div范围 openWindow.keepInViewport(isKeepInViewport); //是否居中 if(isCenter){ openWindow.center(); } openWindow.button("close").attachEvent("onClick", function() { openWindow.close(); }); //var focusObj = $("#"+formId+" [_kf=],[_kf = true]:first"); //if(focusObj && focusObj != null && focusObj != undefined && focusObj.length != 0){ // focusObj.focus(); //}else{ // $("#"+formId+" input:first").focus(); //} } /** 功能描述: 用于拼传递参数串(供getParams方法调用) mygrid: 对应grid对象 rowId: 需要获得信息的行数 cellInd: 需要获得信息的列数 **/ function getParam(mygrid, rowId, cellInd){ var obj = mygrid.cells(rowId,cellInd); return obj.getAttribute("k")+"="+obj.getValue(); } /** 功能描述: 用于拼传递参数串入口 mygrid: 对应grid对象 rowId: 需要获得信息的行数 cellInd: 需要获得信息的列数 **/ function getParams(mygrid, rowId, cellInd){ var obj = mygrid.cells(rowId, cellInd); var data = obj.getAttribute("mp"); if(!data || data == undefined || data == "undefined" || data == null || data == ""){ data = obj.getAttribute("k") + "=" + obj.getValue(); }else{ data += "&" + obj.getAttribute("k") + "=" + obj.getValue(); } var syn = obj.getAttribute("syn"); if(!syn || syn == undefined || syn == "undefined" || syn == null || syn == ""){ }else{ var arr = syn.split(","); for(var i = 0; i < arr.length; i++){ cell = arr[i]; if(cellInd != cell){ if(!data || data == undefined || data == "undefined" || data == null || data == ""){ data = getParam(mygrid, rowId, cell); }else{ data += "&" + getParam(mygrid, rowId, cell); } } } } return data; } /** 功能描述: 用于弹出窗口 wId: 弹出窗口的ID titleWindow: 模板名称(head处的title) url: 加载的地址(URL) isModal: 是否模态窗口 isDenyResize: 是否能够控制大小 isKeepInViewport: 是否可以超出范围(一般为DIV) isCenter: 是否居中显示(如果设置此属性为true则 t,l参数会失效) t: top坐标 l: left坐标 w: 宽度 h: 高度 style: 样式标识默认 dhx_skyblue **/ function openWinUrl(wId,titleWindow,url,isModal,isDenyResize,isKeepInViewport,isCenter,t,l,w,h,style){ //dhxWins = new dhtmlXWindows(); //与下面一起用 //dhxWins.enableAutoViewport(false); //指定是哪个div //dhxWins.attachViewportTo("winDiv"); if (dhxWins != null) { dhxWins.unload(); } dhxWins = new dhtmlXWindows(); dhxWins.setImagePath(getUrl()); dhxWins.setSkin(style||"dhx_skyblue"); var openWindow = dhxWins.createWindow(wId,t,l,w,h); openWindow.setText(titleWindow); //是否模态窗口 openWindow.setModal(isModal); //控制大小 if(!isDenyResize){ openWindow.denyResize(); } //控制是否能够超出div范围 openWindow.keepInViewport(isKeepInViewport); //是否居中 if(isCenter){ openWindow.center(); } openWindow.button("close").attachEvent("onClick", function() { openWindow.close(); }); var randomNum = Math.floor(Math.random()*10000000000); if(url.indexOf("?") != -1){ url += "&randomNum=" + randomNum; }else{ url += "?randomNum=" + randomNum; } openWindow.attachURL(url, false, true); }
zzbasepro
trunk/basepro/WebRoot/script/tools.js
JavaScript
oos
5,748
jQuery.fn.extend({prompt:function(msg,addtion){ var element =$(this); var fieldWidth = element.width(); var divHtml = '<div class="formError" style="display:none"><div class="formErrorContent"></div><div class="formErrorArrow"><div class="line10"></div><div class="line9"></div><div class="line8"></div><div class="line7"></div><div class="line6"></div><div class="line5"></div><div class="line4"></div><div class="line3"></div><div class="line2"></div><div class="line1"></div></div></div>'; var promptElmt = $(divHtml).bind("click",function(){ $(this).fadeTo("fast", 0, function() { $(this).remove(); }); }); promptElmt.find(".formErrorContent").html(msg); if(arguments.length>1 && undefined!=addtion){ promptElmt.attr(addtion); } $('body').append(promptElmt); var promptHeight = promptElmt.height(); var offset = element.offset(); var promptTopPosition = offset.top; var promptleftPosition = offset.left; var marginTopSize = 0; promptleftPosition += fieldWidth - 30; promptTopPosition += -promptHeight; var promptWidth=promptElmt.width(); promptElmt.css({ "top": promptTopPosition, "left":promptleftPosition }).show(); element.keypress(function(event){ promptElmt.fadeTo("fast",0,function(){ $(this).remove(); }); }); }});
zzbasepro
trunk/basepro/WebRoot/script/nx_js/nx_validate_message.js
JavaScript
oos
1,425
//判断复选款选择情况. //checkname : 复选框名称(name). //num : 个数. //flag : 最多或最少选 num 个 (true:最少;false最多). function checkboxNum(checkname,num,flag){ var ckname = document.getElementsByName(checkname); var j=0; for(var i=0;i<ckname.length;i++){ if(ckname[i].checked!=false){ j++; } } if(flag){ if(j>=num){ return true; }else{ return false; } }else{ if(j<=num){ return true; }else{ return false; } } } function ValidateFactory(oForm){ this.stylePool = new Array(); this.keyNumber = 1; this.formObj = oForm; this.add = function(obj){ this.stylePool.push(obj); }; this.lastPrompt = null; this.get = function(str){ var eLength = this.stylePool.length; for(var i = 0; i < eLength; i++){ var obj = this.stylePool[i]; if(obj._tmpUUIDKey == str){ return obj._tmpStyle; } } }; this.getKeyNumber = function(){ return this.keyNumber++; }; this.setFormObj = function(obj){ this.formObj = obj; }; this.getFormObj = function(){ return this.formObj; }; this.validate = function(oForm){ var formType = typeof(oForm); if(formType.toUpperCase() == "STRING"){ oForm = document.getElementById(oForm); } if(oForm != undefined && oForm != null){ this.setFormObj(oForm); } var allFlag = true; var inputs = this.getFormObj().getElementsByTagName("input"); var passwords = this.getFormObj().getElementsByTagName("password"); var textareas = this.getFormObj().getElementsByTagName("textarea"); var selectss = this.getFormObj().getElementsByTagName("select"); var arr = new Array(); arr = arr.concat(this.toArray(inputs),this.toArray(passwords),this.toArray(textareas),this.toArray(selectss)); var arrLength = arr.length; var elementList = new Array(); for(var i = 0; i < arrLength; i++){ var flag = true; var element = arr[i]; if(this.isNotNull(element.getAttribute("validate"))){ flag = this.validateMain(element); if(!flag){ elementList.push(element); } } if(allFlag){ allFlag = flag; } } if(!allFlag){ if(ValidateFactory.prototype.lastPrompt != null && ValidateFactory.prototype.lastPrompt != undefined && ValidateFactory.prototype.lastPrompt instanceof Function){ ValidateFactory.prototype.lastPrompt(elementList); } } for(var i = 0; i < elementList.length; i++){ var element = elementList[i]; element.setAttribute("v_index", ""); } return allFlag; }; this.validateMain = function(element){ var allFlag = true; var nodeName = element.nodeName.toUpperCase(); var type = element.type.toUpperCase(); var vPool = this.getValidatePool(); var vPoolLength = vPool.length; for(var i = 0; i < vPoolLength; i++){ var vObj = vPool[i]; var vNodeName = vObj.nodeName.toUpperCase(); if(nodeName == vNodeName){ var vType = vObj.type.toUpperCase(); if(type == vType){ var validates = element.getAttribute("validate").split(","); var must_validate = element.getAttribute("must_validate"); if(must_validate != null && must_validate != undefined){ must_validate = must_validate.toUpperCase(); }else{ must_validate = "false"; } if(ValidateFactory.prototype.isValidate || must_validate == "TRUE"){ for(var j = 0; j < validates.length; j++){ var validateStr = validates[j].toUpperCase(); var vArr = vObj.validaterArr; var vArrLength = vArr.length; for(var k = 0; k < vArrLength; k++){ var validater = vArr[k]; var vName = validater.validateName.toUpperCase(); if(validateStr == vName){ var flag = validater.fun.call(this,element); if(!flag){ var m = element.getAttribute("m"+j); if(m != undefined && m != null && ValidateFactory.prototype.trim(m) != ""){ var v_index = element.getAttribute("v_index"); if(v_index != undefined && v_index != null && ValidateFactory.prototype.trim(v_index) != ""){ element.setAttribute("v_index", v_index + "," + j); }else{ element.setAttribute("v_index", ""+j); } } } if(!flag && element.getAttribute("_tmpUUIDKey") == null){ var uuidStr = this.getKeyNumber(); element.setAttribute("_tmpUUIDKey",uuidStr); var tmpStyle = this.clone(element.style); this.add({"_tmpUUIDKey":uuidStr,"_tmpStyle":tmpStyle}); } if(validater.message != undefined && validater.message != null && validater.message instanceof Function){ validater.message.call(this,element,flag); }else{ var index = this.getMessageIndex(nodeName, type); if(index != -1){ if(this.getMessagePool()[index].message != undefined && this.getMessagePool()[index].message != null && this.getMessagePool()[index].message instanceof Function){ this.getMessagePool()[index].message.call(this,element,flag); } } } if(allFlag){ allFlag = flag; } } } } } } } } if(allFlag && element.getAttribute("_tmpUUIDKey") != null && element.getAttribute("_tmpUUIDKey") != ""){ var tmpUUIDKey = element.getAttribute("_tmpUUIDKey"); var oldObj = this.get(tmpUUIDKey); this.copyAttrs(oldObj,element.style); } return allFlag; }; } ValidateFactory.prototype.validatePool = new Array(); ValidateFactory.prototype.messagePool = new Array(); //判断是否为空 ValidateFactory.prototype.isNotNull = function(value){ var flag = false; if(value != undefined && value != null && this.trim(value) != ""){ flag = true; } return flag; }; //去掉左右两边的空格 ValidateFactory.prototype.trim = function(str){ return str.replace(/(^\s*)|(\s*$)/g,""); }; //转成Array对象 ValidateFactory.prototype.toArray = function(obj){ var array = new Array(); for(var i = 0; i < obj.length; i++){ array.push(obj[i]); } return array; }; //克隆对象生成新的对象(克隆一层) ValidateFactory.prototype.clone = function(obj){ var newObj = new Object(); for(var o in obj){ newObj[o] = obj[o]; } return newObj; }; //将targetObj不一样的属性值复制到sourceObj对应的属性中 ValidateFactory.prototype.copyAttrs = function(sourceObj, targetObj){ for(var o in sourceObj){ if(targetObj[o] != sourceObj[o]){ targetObj[o] = sourceObj[o]; } } }; //批量添加验证 //validateName : 验证标示 //vArr : [{"nodeName":"元素名称","type":"元素的type值"},{"nodeName":"元素名称","type":"元素的type值"}] //fun : 具体的验证内容方法[第一个参数被验证的元素] //message : 验证后产生效果的方法[第一个参数被校验的元素,第二个参数校验后返回的结果(成功:true,失败:false)],不是必须的 ValidateFactory.prototype.addValidates = function(validateName, vArr, fun, message){ if(fun instanceof Function){ var vlength = vArr.length; for(var i = 0; i < vlength; i++){ vObj = vArr[i]; var nodeName = vObj.nodeName.toUpperCase(); var type = vObj.type.toUpperCase(); this.addValidate(validateName.toUpperCase(), nodeName, type, fun, message); } } }; //单个添加验证 //validateName : 验证标示 //nodeName : 元素名称 [如: input] //type : 元素类型 [如: text] //fun : 具体的验证内容方法[第一个参数被验证的元素] //message : 验证后产生效果的方法[第一个参数被校验的元素,第二个参数校验后返回的结果(成功:true,失败:false)],不是必须的 ValidateFactory.prototype.addValidate = function(validateName, nodeName, type, fun, message){ if(fun instanceof Function){ var index = this.getNodeNameAndTypeIndex(nodeName, type); if(index == -1){ var validater = {"nodeName":nodeName, "type":type, "validaterArr":[{"validateName":validateName.toUpperCase(), "fun":fun, "message":message}]}; this.getValidatePool().push(validater); }else{ var tmpValidaterArr = this.getValidatePool()[index].validaterArr; this.addValidater(tmpValidaterArr, fun, validateName, message); } } }; ValidateFactory.prototype.addValidater = function(tmpValidaterArr, fun, validateName, message){ var index = this.getValidaterIndex(tmpValidaterArr, validateName); if(index == -1){ tmpValidaterArr.push({"validateName":validateName.toUpperCase(), "fun":fun, "message":message}); }else{ tmpValidaterArr[index].fun = fun; tmpValidaterArr[index].message = message; } }; ValidateFactory.prototype.getNodeNameAndTypeIndex = function(nodeName, type){ var index = -1; var vLength = this.getValidatePool().length; for(var i = 0; i < vLength; i++){ var v = this.getValidatePool()[i]; if(v.nodeName == nodeName && v.type == type){ index = i; break; } } return index; }; ValidateFactory.prototype.getValidaterIndex = function(tmpValidaterArr, validateName){ var index = -1; var tvArrLength = tmpValidaterArr.length; for(var i = 0; i < tvArrLength; i++){ var tvr = tmpValidaterArr[i]; if(tvr.validateName == validateName){ index = i; break; } } return index; }; //批量添加验证提示 //mArr : [{"nodeName":"元素名称","type":"元素的type值"},{"nodeName":"元素名称","type":"元素的type值"}] //message : 验证后产生效果的方法第一个参数被校验的元素,第二个参数校验后返回的结果(成功:true,失败:false) ValidateFactory.prototype.addMessages = function(mArr, message){ if(message instanceof Function){ var mLength = mArr.length; for(var i = 0; i < mLength; i++){ var nodeName = mArr[i].nodeName.toUpperCase(); var type = mArr[i].type.toUpperCase(); this.addMessage(nodeName, type, message); } } }; //单个添加验证提示 //nodeName : 元素名称 [如: input] //type : 元素类型 [如: text] //message : 验证后产生效果的方法第一个参数被校验的元素,第二个参数校验后返回的结果(成功:true,失败:false) ValidateFactory.prototype.addMessage = function(nodeName, type, message){ if(message instanceof Function){ var index = this.getMessageIndex(nodeName, type); if(index == -1){ this.getMessagePool().push({"nodeName":nodeName, "type":type, "message":message}); }else{ var m = this.getMessagePool()[index]; m.message = message; } } }; ValidateFactory.prototype.getMessageIndex = function(nodeName, type){ var index = -1; var mLength = this.getMessagePool().length; for(var i = 0; i < mLength; i++){ var m = this.getMessagePool()[i]; if(m.nodeName == nodeName && m.type == type){ index = i; break; } } return index; }; ValidateFactory.prototype.getValidatePool = function(){ return ValidateFactory.prototype.validatePool; }; ValidateFactory.prototype.getMessagePool = function(){ return ValidateFactory.prototype.messagePool; }; ValidateFactory.prototype.isValidate = true; ValidateFactory.prototype.setIsValidate = function(value){ ValidateFactory.prototype.isValidate = value; }; //拦截form提交事件,绑定验证 ValidateFactory.prototype.validateSubmit = function(){ var formArr = document.getElementsByTagName("FORM"); if(formArr != null){ for(var i = 0; i < formArr.length; i++){ var formObj = formArr[i]; var validation = formObj.getAttribute("validation"); var idVal = formObj.getAttribute("id"); var flag = false; if(ValidateFactory.prototype.isNotNull(validation)){ validation = ValidateFactory.prototype.trim(validation); if(validation.toUpperCase() == "TRUE"){ flag = true; } }else if(ValidateFactory.prototype.isNotNull(idVal)){ idVal = ValidateFactory.prototype.trim(idVal); if(idVal.toUpperCase().indexOf("_V_") == 0){ flag = true; } } if(flag){ ValidateFactory.prototype.validateBindSubmit(formObj); } } } }; ValidateFactory.prototype.validateBindSubmit = function (formObj){ var v = new ValidateFactory(); v.setFormObj(formObj); ValidateFactory.prototype.bind(formObj,"submit", function(e){ var re = v.validate(); if(!re){ e.preventDefault ? e.preventDefault() : e.returnValue = false; } return re; } ,false); formObj.oldSubmit = formObj.submit; formObj.submit = function (){ if(v.validate()){ this.oldSubmit(); }else{ return false; } }; }; ValidateFactory.prototype.bindFormId = function (formId){ var formObj = document.getElementById(formId); if(formObj != undefined && formObj != null && formObj.nodeName.toUpperCase() == "FORM"){ ValidateFactory.prototype.validateBindSubmit(formObj); } }; ValidateFactory.prototype.bind = function (obj, eveName, funName, flag){ if(navigator.appName.indexOf("Explorer") > -1){ obj.attachEvent("on"+eveName, funName); }else{ obj.addEventListener(eveName, funName, flag); } }; ValidateFactory.prototype.bind(window,"load",ValidateFactory.prototype.validateSubmit,false); ValidateFactory.prototype.lastPrompt = function (elementList){ $(".formError").remove(); for(var i = 0; i < elementList.length; i++){ var element = elementList[i]; var $element = $(element); var indexStr = $element.attr("v_index"); var indexArr = indexStr.split(","); var message = ""; for(var j = 0; j < indexArr.length; j++){ var index = indexArr[j]; if(message == ""){ message = $element.attr("m"+index); }else{ message += "<br/>"+$element.attr("m"+index); } } $element.prompt(message); } }; ValidateFactory.prototype.addValidates( "NotEmpty", [{"nodeName":"input","type":"text"},{"nodeName":"textarea","type":"textarea"},{"nodeName":"input","type":"password"}], function(element){ var val = element.value; val = ValidateFactory.prototype.trim(val); var flag = true; if(val == ""){ flag = false; } return flag; } ); ValidateFactory.prototype.addValidates( "NotZero", [{"nodeName":"input","type":"text"},{"nodeName":"textarea","type":"textarea"}], function(element){ var val = element.value; val = ValidateFactory.prototype.trim(val); var flag = true; if(val == "0"){ flag = false; } return flag; } ); ValidateFactory.prototype.addValidates( "NotChecked", [{"nodeName":"input","type":"radio"}], function(element){ var name = $(element).attr("name"); return $("input[name='"+name+"']").is(":checked"); } ); ValidateFactory.prototype.addValidates( "NotSelected", [{"nodeName":"select","type":"select-one"}], function(element){ var val = $(element).val(); return (val != null && val != undefined && val != ""); } ); ValidateFactory.prototype.addValidates( "PositiveInt", [{"nodeName":"input","type":"text"}], function(element){ reg=/^[0-9]*[1-9][0-9]*$/; return reg.test($(element).val()); } );
zzbasepro
trunk/basepro/WebRoot/script/nx_js/nx_validate.js
JavaScript
oos
15,434
function GridTree(tableName){ this.upRowPool = null; this.initBindTable(tableName); this.imgPath; this.colIndex = -1; this.topIndex = 1; this.selfId = "id"; this.upId = "up"; this.allFind = false; this.isOrder = false; this.indention = 20; } GridTree.prototype.setImgPath = function(imgPath){ this.imgPath = imgPath; } GridTree.prototype.setColIndex = function(colIndex){ this.colIndex = colIndex; } GridTree.prototype.setTopIndex = function(topIndex){ this.topIndex = topIndex; } GridTree.prototype.setSelfId = function(selfId){ this.selfId = selfId; } GridTree.prototype.setUpId = function(upId){ this.upId = upId; } GridTree.prototype.setAllFind = function(allFind){ this.allFind = allFind; } GridTree.prototype.setIsOrder = function(isOrder){ this.isOrder = isOrder; } GridTree.prototype.setIndention = function(indention){ this.indention = indention; } GridTree.prototype.createGridTreeTable = function (tableName){ this.initBindTable(tableName); if(this.isOrder){ this.initOrderTable(); } this.initLayoutTable(); } GridTree.prototype.initBindTable = function(tableName){ if(tableName && tableName != undefined){ this.gridTreeObj = document.getElementById(tableName); } } GridTree.prototype.initLayoutTable = function (){ var rows = this.getRows(); for(var i = this.topIndex; i < rows.length; i++){ var row = rows[i]; var up = row.getAttribute(this.upId); var id = row.getAttribute(this.selfId); var isOpen = true; if(row.getAttribute("isOpen") != "0"){ isOpen = false; } var cols = row.cells; var col = null; if(this.colIndex != -1){ col = cols[this.colIndex]; }else{ for(var j = 0; j < cols.length; j++){ col = cols[j]; if(col.getAttribute("treeCol") == "1"){ this.colIndex = j; break; } } } var upRow = this.findRow(up); var tmpPadd = 0; if(upRow != null){ var upCol = upRow.cells[this.colIndex]; var upPadd = upCol.style.paddingLeft; if(upPadd.indexOf("px") != -1){ upPadd = upPadd.split("px")[0]; } if(isNaN(upPadd)){ upPadd = 0; } var tmpPadd = this.indention + parseInt(upPadd); } var isExistChild = this.isChild(id); var iec = "0"; var fm = "jian.gif"; var sm = "open.gif"; var pointerFlag = "pointer"; if(isExistChild){ if(isOpen){ fm = "jia.gif" sm = "close.gif"; } iec = "1" }else{ fm = "no.gif"; sm = "close.gif" pointerFlag = ""; } row.setAttribute("isExistChild", iec); var tmpImg = document.createElement("img"); tmpImg.src = this.imgPath + fm; tmpImg.style.cursor = pointerFlag ; var imgOut = this.outerHTML(tmpImg); var tmpIoc = document.createElement("img"); tmpIoc.src = this.imgPath + sm; tmpIoc.style.cursor = pointerFlag ; var iocOut = this.outerHTML(tmpIoc); col.innerHTML = imgOut + iocOut + col.innerHTML; this.bind(col.firstChild, "click", this.imgClick()); this.bind(col.firstChild.nextSibling, "click", this.imgClick()); col.style.paddingLeft = tmpPadd; this.doDisplay(row, isOpen); } } GridTree.prototype.imgClick = function (){ var tmpTalbe = this; return function (event){ evt = event?event:(window.event?window.event:null); if(evt != null){ var srcElement = null ; if(navigator.appName.indexOf("Explorer") > -1){ srcElement = event.srcElement; }else{ srcElement = event.target; } //图片.td.tr.tbody.table var trTmp = srcElement.parentNode.parentNode; var tId = trTmp.parentNode.parentNode.getAttribute("id"); var isChildClose = true; var col = trTmp.cells[tmpTalbe.colIndex]; var isOpen = trTmp.getAttribute("isOpen") if(isOpen != "0"){ var isExistChild = trTmp.getAttribute("isExistChild"); if(isExistChild != "0"){ trTmp.setAttribute("isOpen", "0"); col.firstChild.src = tmpTalbe.imgPath + "jia.gif"; col.firstChild.nextSibling.src = tmpTalbe.imgPath + "close.gif"; }else{ return; } }else{ trTmp.setAttribute("isOpen", "1"); col.firstChild.src = tmpTalbe.imgPath +"jian.gif"; col.firstChild.nextSibling.src = tmpTalbe.imgPath + "open.gif"; isChildClose = false; } tmpTalbe.doDisplay(trTmp, isChildClose); } } } GridTree.prototype.doDisplay = function(row, isChildClose){ var rowArr = this.findChilds(row); for(var i = 0; i < rowArr.length; i++){ if(isChildClose){ rowArr[i].style.display = "none"; }else{ if(row.getAttribute("isOpen") != "0"){ rowArr[i].style.display = ""; }else{ rowArr[i].style.display = "none"; } } if(rowArr[i].getAttribute("isExistChild") != "0"){ if(rowArr[i].getAttribute("isOpen") != "0"){ this.doDisplay(rowArr[i], isChildClose); } } } } GridTree.prototype.bind = function (obj, eveName, funName, flag){ if(navigator.appName.indexOf("Explorer") > -1){ obj.attachEvent("on"+eveName, funName); }else{ obj.addEventListener(eveName, funName, flag); } } GridTree.prototype.initOrderTable = function (){ var rows = this.getRows(); for(var i = this.topIndex; i < rows.length; i++){ var row = rows[i]; var up = row.getAttribute(this.upId); var id = row.getAttribute(this.selfId); var upRow = this.findRow(up); if(upRow != null){ if(upRow.rowIndex > i){ i--; } upRow.parentNode.insertBefore(row, upRow.nextSibling); } } } GridTree.prototype.getRows = function(){ return this.gridTreeObj.rows; } GridTree.prototype.isChild = function(id){ var rows = this.getRows(); for(var i = this.topIndex; i < rows.length; i++){ var row = rows[i]; var up = row.getAttribute(this.upId); if(up == id){ return true; } } return false; } GridTree.prototype.findChilds = function(row){ var rows = this.getRows(); var arr = new Array(); var id = row.getAttribute(this.selfId); var begin = this.topIndex; if(!this.allFind){ begin = row.rowIndex + 1; } for(var i = begin; i < rows.length; i++){ var row = rows[i]; var up = row.getAttribute(this.upId); if(up == id){ arr.push(row); } } return arr; } GridTree.prototype.findRow = function(id){ var rows = this.getRows(); for(var i = this.topIndex; i < rows.length; i++){ var row = rows[i]; var up = row.getAttribute(this.selfId); if(up == id){ return row; } } return null; } GridTree.prototype.outerHTML = function(obj){ var outerHtml = ""; if(navigator.appName.indexOf("Explorer") > -1){ imgOut = obj.outerHTML; }else{ imgOut = document.createElement("DIV").appendChild(obj.cloneNode(true)).parentNode.innerHTML; } return imgOut; }
zzbasepro
trunk/basepro/WebRoot/script/nx_js/nx_treegrid.js
JavaScript
oos
6,773
<%@ page language="java" pageEncoding="utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="z" uri="/WEB-INF/nx-form.tld"%> <html> <head> <title>登陆</title> <link href="<s:url value='/css/validate/validationEngine.jquery.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link rel="shortcut icon" type="image/x-icon" href="http://www.iswweb.com/images/favicon.ico" media="screen" /> <script language="javascript" type="text/javascript" src="<s:url value='/script/jquery-1.4.2.min.js' encode='false' includeParams='none' ></s:url>"></script> <script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate.js' encode='false' includeParams='none' ></s:url>"></script> <script language="javascript" type="text/javascript" src="<s:url value='/script/nx_js/nx_validate_message.js' encode='false' includeParams='none' ></s:url>"></script> <style type="text/css"> <!-- body{ padding:0px; margin:0px; background:#FFFFFF; background-image: url(<s:url value='/image/nx_img/1/login/b.gif' encode='false' includeParams='none' ></s:url>); background-repeat: repeat-x; } div{ margin:0px; } #dldiv{ background-image:url(<s:url value='/image/nx_img/1/login/d.gif' encode='false' includeParams='none' ></s:url>); margin-top:170px; padding:0px; width:514px; height:334px; text-align:center } #title{ height:100px; text-align:center; padding-top:20px; } #title font{ font-size:30px; letter-spacing:-1px; font-family: Arial, Helvetica, sans-serif; } #text{ height:194px; padding:0px; } #dltable{ margin:0px; } #dltable input{ margin-left:10px; width:180px; height:26px; border-width:1px; border-color:#CFCECE; background-Color:#FFFFFF; font-size:20px; } .user{ background-image:url(<s:url value='/image/nx_img/1/login/user.gif' encode='false' includeParams='none' ></s:url>); } .password{ background-image:url(<s:url value='/image/nx_img/1/login/password.gif' encode='false' includeParams='none' ></s:url>); } .fonttxt{ font-size:14px; font-family: "MS Serif", "New York", serif; } .submitdiv{ margin-left:37px; } --> </style> <script type="text/javascript"> function inputFocus(obj){ obj.style.background = "url()"; obj.style.backgroundColor = "#FFFFFF"; } function inputBlur(obj){ if(obj.value == ""){ var img = obj.getAttribute("img"); obj.style.background = "url(<s:url value='/image/nx_img/1/login/' encode='false' includeParams='none' ></s:url>"+img+".gif)"; } } function trim(str){ return str.replace(/(^\s*)|(\s*$)/g,""); }; function log() { var flag = new ValidateFactory().validate("login"); if(flag){ $("#login").submit(); } } $(document).ready(function(){ $("#submit").bind("click",function(){ log(); }); }); </script> </head> <body> <center> <div id="dldiv"> <div id="title"> <font><strong>XXXX管理系统</strong> </font> </div> <div id="text"> <s:form id="login" name="login" action="login" namespace="/go" method="post"> <table id="dltable" width="100%" height="100%"> <tr> <td width="32%" height="31" align="right" valign="middle"><font class="fonttxt">用户名:</font></td> <td width="68%" align="left" valign="middle"> <input class="user" type="text" name="param.user_code" img="user" onFocus="inputFocus(this);" onBlur="inputBlur(this);" validate="NotEmpty" m0="请填写用户名"></input> </td> </tr> <tr> <td height="46" align="right" valign="middle"><font class="fonttxt">密&nbsp;&nbsp;&nbsp;&nbsp;码:</font></td> <td align="left" valign="middle"> <input class="password" type="password" name="param.password" img="password" onFocus="inputFocus(this);" onBlur="inputBlur(this);" validate="NotEmpty" m0="请填写密码"></input> </td> </tr> <tr> <td></td> <td valign="middle"><img class="submitdiv" style="cursor:pointer;" src="<s:url value='/image/nx_img/1/login/submit.gif' encode='false' includeParams='none' ></s:url>" onClick="log();"></img></td> </tr> </table> </s:form> </div> </div> </center> </body> <script type="text/javascript"> document.getElementById("param.user_code").focus(); document.getElementById("login").onkeydown = function(evt) { var evt = window.event ? window.event : evt; if (evt.keyCode == 13) { log(); } } </script> </html>
zzbasepro
trunk/basepro/WebRoot/login.jsp
Java Server Pages
oos
4,663
<?xml version='1.0' encoding='utf-8'?> <tree id="0"> <item text="Books" id="books" open="1" im0="tombs.gif" im1="tombs.gif" im2="iconSafe.gif" call="1" select="1"> <item text="Mystery &amp; Thrillers" id="mystery" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Lawrence Block" id="lb" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"> <item text="All the Flowers Are Dying" id="lb_1" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"/> <item text="The Burglar on the Prowl" id="lb_2" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"/> <item text="The Plot Thickens" id="lb_3" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"/> <item text="Grifter's Game" id="lb_4" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"/> <item text="The Burglar Who Thought He Was Bogart" id="lb_5" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"/> </item> <item text="Robert Crais" id="rc" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"> <item text="The Forgotten Man" id="rc_1" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Stalking the Angel" id="rc_2" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Free Fall" id="rc_3" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Sunset Express" id="rc_4" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Hostage" id="rc_5" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> </item> <item text="Ian Rankin" id="ir" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"></item> <item text="James Patterson" id="jp" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"></item> <item text="Nancy Atherton" id="na" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> <item text="History" id="history" open="1" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="John Mack Faragher" id="jmf" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Jim Dwyer" id="jd" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Larry Schweikart" id="ls" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="R. Lee Ermey" id="rle" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> <item text="Horror" id="horror" open="1" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Stephen King" id="sk" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Dan Brown" id="db" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"> <item text="Angels &amp; Demons" id="db_1" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Deception Point" id="db_2" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Digital Fortress" id="db_3" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="The Da Vinci Code" id="db_4" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Deception Point" id="db_5" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> </item> <item text="Mary Janice Davidson" id="mjd" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Katie Macalister" id="km" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> <item text="Science Fiction &amp; Fantasy" id="fantasy" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Audrey Niffenegger" id="af" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Philip Roth" id="pr" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> <item text="Sport" id="sport" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Bill Reynolds" id="br" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> <item text="Teens" id="teens" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Joss Whedon" id="jw" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"> <item text="Astonishing X-Men" id="jw_1" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Joss Whedon: The Genius Behind Buffy" id="jw_2" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Fray" id="jw_3" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="Tales Of The Vampires" id="jw_4" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> <item text="The Harvest" id="jw_5" im0="book_titel.gif" im1="book_titel.gif" im2="book_titel.gif"/> </item> <item text="Meg Cabot" id="mc" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Garth Nix" id="gn" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> <item text="Ann Brashares" id="ab" im0="book_titel.gif" im1="book.gif" im2="book_titel.gif"></item> </item> </item> <item text="Magazines" id="magazines" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"> <item text="Sport" id="mag_sp" im0="folderClosed.gif" im1="folderOpen.gif" im2="folderClosed.gif"></item> </item> </tree>
zzbasepro
trunk/basepro/WebRoot/jsp/test/testtreedata.jsp
Java Server Pages
oos
5,475
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Insert title here</title> <link href="<s:url value='/css/dhtmlx/tree/dhtmlxtree.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script> <script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree.js' encode='false' includeParams='none' ></s:url>"></script> <script language="javascript" type="text/javascript" src="<s:url value='/script/dhtmlx/tree/dhtmlxtree_json.js' encode='false' includeParams='none' ></s:url>"></script> <body> <div id="treeboxbox_tree" style="width:250px; height:600px;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"></div> </body> <script> var jsondata ={id:0, item:[{id:1,text:"first"},{id:2, text:"middle", item:[{id:"21", text:"child"}]},{id:3,text:"last"}]}; tree = new dhtmlXTreeObject("treeboxbox_tree", "100%", "100%", 0); tree.setSkin('dhx_skyblue'); tree.setImagePath("<s:url value='/image/dhtmlx/tree/csh_bluebooks/' encode='false' includeParams='none' ></s:url>"); tree.enableSmartXMLParsing(true); //可用 //tree.loadJSONObject({id:0, item:[{id:1,text:"first"},{id:2, text:"middle", item:[{id:"21", text:"child"}]},{id:3,text:"last"}]}); //tree.loadJSON("<s:url value='/jsp/test/big_data.json' encode='false' includeParams='none' ></s:url>"); //可用 //tree.setXMLAutoLoading("<s:url value='/jsp/test/testtreedata.jsp' encode='false' includeParams='none' ></s:url>"); //可用 //tree.loadXML("<s:url value='/jsp/test/testtreedata.jsp' encode='false' includeParams='none' ></s:url>"); //可用 //tree.setXMLAutoLoading("<s:url value='/jsp/test/tree3.xml' encode='false' includeParams='none' ></s:url>"); //可用 tree.loadXML("<s:url value='/jsp/test/tree3.xml' encode='false' includeParams='none' ></s:url>"); </script> </head> </html>
zzbasepro
trunk/basepro/WebRoot/jsp/test/testtree.jsp
Java Server Pages
oos
2,327
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <% response.setContentType("application/vnd.ms-word"); %> <?mso-application progid="Word.Document"?> <w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve"><w:ignoreElements w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2" /><o:DocumentProperties><o:Title>星 期</o:Title><o:Author>雨林木风</o:Author><o:LastAuthor>雨林木风</o:LastAuthor><o:Revision>2</o:Revision><o:TotalTime>0</o:TotalTime><o:Created>2010-10-25T07:00:00Z</o:Created><o:LastSaved>2010-10-25T07:00:00Z</o:LastSaved><o:Pages>1</o:Pages><o:Words>47</o:Words><o:Characters>269</o:Characters><o:Company>WWW.YlmF.CoM</o:Company><o:Lines>2</o:Lines><o:Paragraphs>1</o:Paragraphs><o:CharactersWithSpaces>315</o:CharactersWithSpaces><o:Version>11.0000</o:Version> </o:DocumentProperties><w:fonts><w:defaultFonts w:ascii="Times New Roman" w:fareast="宋体" w:h-ansi="Times New Roman" w:cs="Times New Roman" /><w:font w:name="Wingdings"><w:panose-1 w:val="05000000000000000000" /><w:charset w:val="02" /><w:family w:val="Auto" /><w:pitch w:val="variable" /><w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000" /> </w:font><w:font w:name="宋体"><w:altName w:val="SimSun" /><w:panose-1 w:val="02010600030101010101" /><w:charset w:val="86" /><w:family w:val="Auto" /><w:pitch w:val="variable" /><w:sig w:usb-0="00000003" w:usb-1="080E0000" w:usb-2="00000010" w:usb-3="00000000" w:csb-0="00040001" w:csb-1="00000000" /> </w:font><w:font w:name="MS Shell Dlg"><w:panose-1 w:val="020B0604020202020204" /><w:charset w:val="00" /><w:family w:val="Swiss" /><w:pitch w:val="variable" /><w:sig w:usb-0="61007BDF" w:usb-1="80000000" w:usb-2="00000008" w:usb-3="00000000" w:csb-0="000101FF" w:csb-1="00000000" /> </w:font><w:font w:name="@宋体"><w:panose-1 w:val="02010600030101010101" /><w:charset w:val="86" /><w:family w:val="Auto" /><w:pitch w:val="variable" /><w:sig w:usb-0="00000003" w:usb-1="080E0000" w:usb-2="00000010" w:usb-3="00000000" w:csb-0="00040001" w:csb-1="00000000" /> </w:font> </w:fonts><w:lists><w:listDef w:listDefId="0"><w:lsid w:val="18134AAC" /><w:plt w:val="HybridMultilevel" /><w:tmpl w:val="E508052C" /><w:lvl w:ilvl="0" w:tplc="0409000B"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="420" /> </w:tabs><w:ind w:left="420" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="1" w:tplc="04090003"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="840" /> </w:tabs><w:ind w:left="840" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="2" w:tplc="04090005" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="1260" /> </w:tabs><w:ind w:left="1260" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="3" w:tplc="04090001" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="1680" /> </w:tabs><w:ind w:left="1680" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="4" w:tplc="04090003" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="2100" /> </w:tabs><w:ind w:left="2100" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="5" w:tplc="04090005" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="2520" /> </w:tabs><w:ind w:left="2520" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="6" w:tplc="04090001" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="2940" /> </w:tabs><w:ind w:left="2940" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="7" w:tplc="04090003" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="3360" /> </w:tabs><w:ind w:left="3360" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl><w:lvl w:ilvl="8" w:tplc="04090005" w:tentative="on"><w:start w:val="1" /><w:nfc w:val="23" /><w:lvlText w:val="" /><w:lvlJc w:val="left" /><w:pPr><w:tabs><w:tab w:val="list" w:pos="3780" /> </w:tabs><w:ind w:left="3780" w:hanging="420" /> </w:pPr><w:rPr><w:rFonts w:ascii="Wingdings" w:h-ansi="Wingdings" w:hint="default" /> </w:rPr> </w:lvl> </w:listDef><w:list w:ilfo="1"><w:ilst w:val="0" /> </w:list> </w:lists><w:styles><w:versionOfBuiltInStylenames w:val="4" /><w:latentStyles w:defLockedState="off" w:latentStyleCount="156" /><w:style w:type="paragraph" w:default="on" w:styleId="a"><w:name w:val="Normal" /><wx:uiName wx:val="正文" /><w:rsid w:val="00F14628" /><w:pPr><w:widowControl w:val="off" /><w:tabs><w:tab w:val="left" w:pos="420" /> </w:tabs><w:jc w:val="both" /> </w:pPr><w:rPr><wx:font wx:val="Times New Roman" /><w:kern w:val="2" /><w:sz w:val="21" /><w:sz-cs w:val="24" /><w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA" /> </w:rPr> </w:style><w:style w:type="character" w:default="on" w:styleId="a0"><w:name w:val="Default Paragraph Font" /><wx:uiName wx:val="默认段落字体" /><w:semiHidden /> </w:style><w:style w:type="table" w:default="on" w:styleId="a1"><w:name w:val="Normal Table" /><wx:uiName wx:val="普通表格" /><w:semiHidden /><w:rPr><wx:font wx:val="Times New Roman" /> </w:rPr><w:tblPr><w:tblInd w:w="0" w:type="dxa" /><w:tblCellMar><w:top w:w="0" w:type="dxa" /><w:left w:w="108" w:type="dxa" /><w:bottom w:w="0" w:type="dxa" /><w:right w:w="108" w:type="dxa" /> </w:tblCellMar> </w:tblPr> </w:style><w:style w:type="list" w:default="on" w:styleId="a2"><w:name w:val="No List" /><wx:uiName wx:val="无列表" /><w:semiHidden /> </w:style><w:style w:type="paragraph" w:styleId="a3"><w:name w:val="表格正文" /><w:basedOn w:val="a" /><w:rsid w:val="00F14628" /><w:pPr><w:pStyle w:val="a3" /><w:widowControl /><w:overflowPunct w:val="off" /><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:spacing w:before="40" w:after="40" /><w:jc w:val="left" /><w:textAlignment w:val="baseline" /> </w:pPr><w:rPr><wx:font wx:val="Times New Roman" /><w:kern w:val="0" /> </w:rPr> </w:style> </w:styles><w:docPr><w:view w:val="print" /><w:zoom w:percent="90" /><w:bordersDontSurroundHeader /><w:bordersDontSurroundFooter /><w:proofState w:grammar="clean" /><w:attachedTemplate w:val="" /><w:defaultTabStop w:val="420" /><w:drawingGridVerticalSpacing w:val="156" /><w:displayHorizontalDrawingGridEvery w:val="0" /><w:displayVerticalDrawingGridEvery w:val="2" /><w:punctuationKerning /><w:characterSpacingControl w:val="CompressPunctuation" /><w:optimizeForBrowser /><w:validateAgainstSchema /><w:saveInvalidXML w:val="off" /><w:ignoreMixedContent w:val="off" /><w:alwaysShowPlaceholderText w:val="off" /><w:compat><w:spaceForUL /><w:balanceSingleByteDoubleByteWidth /><w:doNotLeaveBackslashAlone /><w:ulTrailSpace /><w:doNotExpandShiftReturn /><w:adjustLineHeightInTable /><w:breakWrappedTables /><w:snapToGridInCell /><w:wrapTextWithPunct /><w:useAsianBreakRules /><w:dontGrowAutofit /><w:useFELayout /> </w:compat><wsp:rsids><wsp:rsidRoot wsp:val="00F14628" /><wsp:rsid wsp:val="00F14628" /> </wsp:rsids> </w:docPr><w:body><wx:sect><w:tbl><w:tblPr><w:tblW w:w="8589" w:type="dxa" /><w:tblBorders><w:top w:val="double" w:sz="4" wx:bdrwidth="30" w:space="0" w:color="auto" /><w:left w:val="double" w:sz="4" wx:bdrwidth="30" w:space="0" w:color="auto" /><w:bottom w:val="double" w:sz="4" wx:bdrwidth="30" w:space="0" w:color="auto" /><w:right w:val="double" w:sz="4" wx:bdrwidth="30" w:space="0" w:color="auto" /><w:insideH w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="auto" /><w:insideV w:val="single" w:sz="6" wx:bdrwidth="15" w:space="0" w:color="auto" /> </w:tblBorders> </w:tblPr><w:tblGrid><w:gridCol w:w="1686" /><w:gridCol w:w="694" /><w:gridCol w:w="5468" /><w:gridCol w:w="741" /> </w:tblGrid><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="668" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="D9D9D9" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:pStyle w:val="a3" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>星 期</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="6162" w:type="dxa" /><w:gridSpan w:val="2" /><w:shd w:val="clear" w:color="auto" w:fill="D9D9D9" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:pStyle w:val="a3" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>任务名称</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="D9D9D9" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:pStyle w:val="a3" /><w:spacing w:before="0" w:after="0" w:line="240" w:line-rule="exact" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>完成否(Y/N)</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00CA32A0" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>1</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00FB07BA" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>编写</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上线文档</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>1</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>Y</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>下午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00E75F11" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>编写</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上线文档</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>5</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>2</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00283E51" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00C94D6D" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>编写上线文档</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 3</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>Y</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00283E51" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>下午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00E2394A" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>编写上线文档</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>1</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00E75F11" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>修改上线文档</w:t> </w:r><w:r wsp:rsidRPr="00E2394A"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 4h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>3</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00283E51" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00FB07BA" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>测试</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>3</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>Y</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="435" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00283E51" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>下午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>测试</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>1</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00CD4239" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>测试</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> </w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>4</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="218" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>4</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00301EE7" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>容量峰值</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>测试</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>3</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>Y</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="217" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>下午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00B34285" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>电子路演</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>ecm</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>连接超时时间</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>测试</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 5</w:t> </w:r><w:r wsp:rsidRPr="00C94D6D"><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="217" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>5</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>上午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>时间资源新需求</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>时间资源功能文档协助</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 2h</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>短信平台</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00301EE7" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>短信平台问题排查</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 1h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge w:val="restart" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast" /><wx:font wx:val="宋体" /> </w:rPr><w:t>Y</w:t> </w:r> </w:p> </w:tc> </w:tr><w:tr wsp:rsidR="00F14628" wsp:rsidTr="005A1021"><w:trPr><w:cantSplit /><w:trHeight w:val="473" /> </w:trPr><w:tc><w:tcPr><w:tcW w:w="1686" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:jc w:val="center" /><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="694" w:type="dxa" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>下午</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="5468" w:type="dxa" /><w:shd w:val="clear" w:color="auto" w:fill="auto" /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>短信平台</w:t> </w:r> </w:p><w:p wsp:rsidR="00F14628" wsp:rsidRPr="00B34285" wsp:rsidRDefault="00F14628" wsp:rsidP="00F14628"><w:pPr><w:listPr><w:ilvl w:val="0" /><w:ilfo w:val="1" /><wx:t wx:val="Ø" wx:wTabBefore="0" wx:wTabAfter="255" /><wx:font wx:val="Wingdings" /> </w:listPr><w:tabs><w:tab w:val="clear" w:pos="420" /> </w:tabs><w:autoSpaceDE w:val="off" /><w:autoSpaceDN w:val="off" /><w:adjustRightInd w:val="off" /><w:ind w:right="18" /><w:jc w:val="left" /><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr> </w:pPr><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="宋体" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t>短信平台问题排查</w:t> </w:r><w:r><w:rPr><w:rFonts w:ascii="MS Shell Dlg" w:cs="MS Shell Dlg" w:hint="fareast" /><wx:font wx:val="MS Shell Dlg" /><w:color w:val="000000" /><w:kern w:val="0" /><w:sz-cs w:val="21" /><w:lang w:val="ZH-CN" /> </w:rPr><w:t> 5h</w:t> </w:r> </w:p> </w:tc><w:tc><w:tcPr><w:tcW w:w="741" w:type="dxa" /><w:vmerge /><w:vAlign w:val="center" /> </w:tcPr><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628" wsp:rsidP="005A1021"><w:pPr><w:rPr><w:rFonts w:ascii="宋体" w:h-ansi="宋体" /><wx:font wx:val="宋体" /> </w:rPr> </w:pPr> </w:p> </w:tc> </w:tr> </w:tbl><w:p wsp:rsidR="00F14628" wsp:rsidRDefault="00F14628"><w:pPr><w:rPr><w:rFonts w:hint="fareast" /> </w:rPr> </w:pPr> </w:p><w:sectPr wsp:rsidR="00F14628"><w:pgSz w:w="11906" w:h="16838" /><w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851" w:footer="992" w:gutter="0" /><w:cols w:space="425" /><w:docGrid w:type="lines" w:line-pitch="312" /> </w:sectPr> </wx:sect> </w:body> </w:wordDocument>
zzbasepro
trunk/basepro/WebRoot/jsp/test/xml/xml.jsp
Java Server Pages
oos
73,789
<style> .btn { BORDER-RIGHT: #7b9ebd 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde); BORDER-LEFT: #7b9ebd 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7b9ebd 1px solid } .btn1_mouseout { BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#B3D997); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid } .btn1_mouseover { BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#CAE4B6); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid } .btn2 {padding: 2 4 0 4;font-size:12px;height:23;background-color:#ece9d8;border-width:1;} .btn3_mouseout { BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid } .btn3_mouseover { BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#D7E7FA); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid } .btn3_mousedown { BORDER-RIGHT: #FFE400 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #FFE400 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #FFE400 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #FFE400 1px solid } .btn3_mouseup { BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid } .btn_2k3 { BORDER-RIGHT: #002D96 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #002D96 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#9DBCEA); BORDER-LEFT: #002D96 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #002D96 1px solid } </style> <body> <button class=btn title="CSS样式按钮"> CSS样式按钮 </button> <P></p> <button class=btn1_mouseout onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" title="CSS样式按钮"> CSS样式按钮 </button> <button class=btn1_mouseout onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" DISABLED> CSS样式按钮 </button> <P> <button class=btn2 title="CSS样式按钮"> CSS样式按钮 </button> <P> <button class=btn3_mouseout onmouseover="this.className='btn3_mouseover'" onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'" onmouseup="this.className='btn3_mouseup'" title="CSS样式按钮"> CSS样式按钮 </button> <P> <button class=btn_2k3 title="CSS样式按钮"> CSS样式按钮 </button> </body>
zzbasepro
trunk/basepro/WebRoot/jsp/test/button.jsp
Java Server Pages
oos
3,934
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>TreeGrid initialization</title> <link rel="STYLESHEET" type="text/css" href="../dhtmlxGrid/codebase/dhtmlxgrid.css"> <link rel="STYLESHEET" type="text/css" href="../dhtmlxGrid/codebase/dhtmlxgrid_skins.css"> <script src="../dhtmlxGrid/codebase/dhtmlxcommon.js"></script> <script src="../dhtmlxGrid/codebase/dhtmlxgrid.js"></script> <script src="../dhtmlxGrid/codebase/dhtmlxgridcell.js"></script> <script src="../codebase/dhtmlxtreegrid.js"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxgrid_excell_link.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxgridcell.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxtreegrid.js' encode='false' includeParams='none' ></s:url>"></script> </head> <body> <link rel='STYLESHEET' type='text/css' href='../css/common_style.css'> <table cellspacing="0" cellpadding="0" class="sample_header" border="0"> <tr valign="middle"> <td width="40" align="center"><img src="images/dhtmlxtreegrid_icon.gif" border="0"></td> <td width="150" align="left" nowrap="true">Sample: dhtmlxTreeGrid</td> <td width="0" align="left" nowrap><b>TreeGrid initialization</b></td> <td width="0" align="right"><a href="http://www.dhtmlx.com/docs/products/dhtmlxTreeGrid/index.shtml">dhtmlxTreeGrid main page</a></td> <td width="50"><div class="sample_close"><a href="javascript:void(0);" onclick="self.close();"><img src="images/sample_close.gif" width="14" height="14" border="0" alt="X"></a></div></td> </tr> </table> <p> TreeGrid is initialized via script and populated from xml source </p> <div id="gridbox" style="width:570px;height:137px;background-color:white;"></div> <br> <div class='sample_code'><div class="hl-main"><pre><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">div</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">gridbox</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">width</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">600px</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">height</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">140px</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">style</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">background-color:white;overflow:hidden</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">div</span><span class="hl-brackets">&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span><span class="hl-code"><div class="hl-main"><pre><span class="hl-code"> </span><span class="hl-identifier">mygrid</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">dhtmlXGridObject</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">gridbox</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">selMultiRows</span><span class="hl-code"> = </span><span class="hl-reserved">true</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">imgURL</span><span class="hl-code"> = </span><span class="hl-quotes">&quot;</span><span class="hl-string">../codebase/imgs/</span><span class="hl-quotes">&quot;</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">setHeader</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">Tree,Plain Text,Long Text,Color,Checkbox</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">setInitWidths</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">150,100,100,100,100</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">setColAlign</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">left,left,left,left,center</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">setColTypes</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">tree,ed,txt,ch,ch</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">setColSorting</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">str,str,str,na,str</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">init</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">; </span><span class="hl-identifier">mygrid</span><span class="hl-code">.</span><span class="hl-identifier">loadXML</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">test_list_1.xml</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;</span></pre></div></span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span></pre></div></div> <script> mygrid=new D('gridbox'); mygrid.gN=true; mygrid.eg="../dhtmlxGrid/codebase/imgs/icons_greenfolders/"; mygrid.setHeader("Tree,Plain Text,Long Text,Color,Checkbox"); mygrid.setInitWidths("150,100,100,100,100"); mygrid.setColAlign("left,left,left,left,center"); mygrid.setColTypes("tree,ed,txt,ch,ch"); mygrid.setColSorting("str,str,str,na,str"); mygrid.init();mygrid.setSkin("xp"); mygrid.bD("xml/init_test_list_1.xml"); </script> <table callspacing="0" cellpadding="0" border="0" class="sample_footer"><tr><td style="padding-left:8px;">&copy; <a href="http://www.dhtmlx.com">DHTMLX LTD</a>. All rights reserved</td></tr></table> </body> </html>
zzbasepro
trunk/basepro/WebRoot/jsp/test/ttt.jsp
Java Server Pages
oos
7,541
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@taglib prefix="s" uri="/struts-tags"%> <html> <head> <title>testtreegrid</title> <link href="<s:url value='/css/main.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/grid/dhtmlxgrid.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/grid/dhtmlxgrid_dhx_skyblue.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/window/dhtmlxwindows_dhx_skyblue.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/layout/dhtmlxlayout.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/layout/dhtmlxlayout_dhx_skyblue.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <link href="<s:url value='/css/dhtmlx/form/dhtmlxform_dhx_skyblue.css' encode='false' includeParams='none' ></s:url>" rel="stylesheet" type="text/css"/> <style> .even{ background-color:#E6E6FA; } .uneven{ background-color:#F0F8FF; } .dhxlist_obj_dhx_skyblue label{ color:#000000; font-family:Tahoma; font-size:11px; } .dhxlist_obj_dhx_skyblue .dhxlist_txt_textarea, input.dhtmlx_validation_error{ border: 1px solid #A4BED4; padding: 1px 0; } </style> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxcommon.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxgrid.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxgridcell.js' encode='false' includeParams='none' ></s:url>"></script> <script type="text/javascript" src="<s:url value='/script/dhtmlx/treegrid/dhtmlxtreegrid.js' encode='false' includeParams='none' ></s:url>"></script> <body> <!-- <div id="gridbox1" style="width:250px; height:600px;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"></div> --> <div id="gridbox" style="width:100%;height:100%;position:absolute;"></div> </body> <script> mygrid=new D('gridbox'); mygrid.selMultiRows = true; mygrid.gN=true; mygrid.eg="<s:url value='/image/dhtmlx/treegrid/icons_greenfolders/' encode='false' includeParams='none' ></s:url>"; mygrid.setHeader("Tree,Price,Note"); mygrid.setInitWidths("200,100,100"); mygrid.setColAlign("left,right,center"); mygrid.setColTypes("tree,price,ch"); mygrid.setColSorting("str,str,str"); mygrid.init(); mygrid.setSkin("xp"); mygrid.bD("<s:url action='getRightModuleList' namespace="/sys" encode='false' includeParams='none' ></s:url>"); </script> </head> </html>
zzbasepro
trunk/basepro/WebRoot/jsp/test/testtreegrid.jsp
Java Server Pages
oos
3,285
{id:0, item:[{id:1,text:"first"},{id:2, text:"middle", item:[{id:"21", text:"child"}]},{id:3,text:"last"}]}
zzbasepro
trunk/basepro/WebRoot/jsp/test/jsondata.jsp
Java Server Pages
oos
107
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>testCaiji</title> </head> <body> </body> </html>
zzbasepro
trunk/basepro/WebRoot/jsp/ttt.jsp
Java Server Pages
oos
144
.inputContainer { POSITION: relative; FLOAT: left } .formError { Z-INDEX: 5000; POSITION: absolute; DISPLAY: block; CURSOR: pointer; } .ajaxSubmit { BORDER-BOTTOM: #999 1px solid; BORDER-LEFT: #999 1px solid; PADDING-BOTTOM: 20px; PADDING-LEFT: 20px; PADDING-RIGHT: 20px; DISPLAY: none; BACKGROUND: #55ea55; BORDER-TOP: #999 1px solid; BORDER-RIGHT: #999 1px solid; PADDING-TOP: 20px } .formError .formErrorContent { Z-INDEX: 5001; BORDER-BOTTOM: #ddd 2px solid; POSITION: relative; BORDER-LEFT: #ddd 2px solid; PADDING-BOTTOM: 4px; PADDING-LEFT: 10px; WIDTH: 150px; PADDING-RIGHT: 10px; FONT-FAMILY: tahoma; BACKGROUND: #ee0101; COLOR: #fff; FONT-SIZE: 11px; BORDER-TOP: #ddd 2px solid; BORDER-RIGHT: #ddd 2px solid; PADDING-TOP: 4px; box-shadow: 0 0 6px #000; -moz-box-shadow: 0 0 6px #000; -webkit-box-shadow: 0 0 6px #000; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px } .greenPopup .formErrorContent { BACKGROUND: #33be40 } .blackPopup .formErrorContent { BACKGROUND: #393939; COLOR: #fff } .formError .formErrorArrow { Z-INDEX: 5006; POSITION: relative; MARGIN: -2px 0px 0px 13px; WIDTH: 15px } .formError .formErrorArrowBottom { MARGIN: 0px 0px 0px 12px; TOP: 2px; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none } .formError .formErrorArrow DIV { BORDER-LEFT: #ddd 2px solid; LINE-HEIGHT: 0; MARGIN: 0px auto; DISPLAY: block; BACKGROUND: #ee0101; HEIGHT: 1px; FONT-SIZE: 0px; BORDER-RIGHT: #ddd 2px solid; box-shadow: 0 2px 3px #444; -moz-box-shadow: 0 2px 3px #444; -webkit-box-shadow: 0 2px 3px #444 } .formError .formErrorArrowBottom DIV { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none } .greenPopup .formErrorArrow DIV { BACKGROUND: #33be40 } .blackPopup .formErrorArrow DIV { BACKGROUND: #393939; COLOR: #fff } .formError .formErrorArrow .line10 { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 15px; BORDER-TOP: medium none; BORDER-RIGHT: medium none } .formError .formErrorArrow .line9 { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 13px; BORDER-TOP: medium none; BORDER-RIGHT: medium none } .formError .formErrorArrow .line8 { WIDTH: 11px } .formError .formErrorArrow .line7 { WIDTH: 9px } .formError .formErrorArrow .line6 { WIDTH: 7px } .formError .formErrorArrow .line5 { WIDTH: 5px } .formError .formErrorArrow .line4 { WIDTH: 3px } .formError .formErrorArrow .line3 { BORDER-BOTTOM: #ddd 0px solid; BORDER-LEFT: #ddd 2px solid; WIDTH: 1px; BORDER-RIGHT: #ddd 2px solid } .formError .formErrorArrow .line2 { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 3px; BACKGROUND: #ddd; BORDER-TOP: medium none; BORDER-RIGHT: medium none } .formError .formErrorArrow .line1 { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 1px; BACKGROUND: #ddd; BORDER-TOP: medium none; BORDER-RIGHT: medium none }
zzbasepro
trunk/basepro/WebRoot/css/validate/validationEngine.jquery.css
CSS
oos
2,923
.dhxlist_obj_dhx_skyblue { position: relative; background-color: #ffffff; -moz-user-select: -moz-none; } .dhxlist_obj_dhx_skyblue div.dhxlist_base { margin: 0px 10px; } .dhxlist_obj_dhx_skyblue span.nav_link, .dhxlist_obj_dhx_skyblue span.nav_link:visited, .dhxlist_obj_dhx_skyblue span.nav_link:active, .dhxlist_obj_dhx_skyblue span.nav_link:hover { outline: none; text-decoration: none; color: inherit; cursor: default; } .dhxlist_obj_dhx_skyblue span.nav_link:focus { color: #30678a; /*color: #0f4161;*/ } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set { table-layout: fixed; cursor: default; width: 100%; font-size: inherit; } /* button's cont. */ .dhxlist_obj_dhx_skyblue div.button_container { position: absolute; height: 50px; width: 100%; bottom: 0px; } /* table head */ .dhxlist_obj_dhx_skyblue th.dhxlist_img_cell { width: 26px; } .dhxlist_obj_dhx_skyblue th.dhxlist_tbl_head { height: 0px; margin: 0px; padding: 0px; } /* image, checkbox, radio */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set td.dhxlist_img_cell { width: 26px; vertical-align: top; -moz-user-select: -moz-none; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_img { width: 18px; height: 18px; margin-left: 5px; -moz-user-select: -moz-none; } /* checkboxes */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_img.chbx0 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -18px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_img.chbx1 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: 0px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_img.chbx0 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -54px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_img.chbx1 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -36px 0px; } /* radios */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_img.rdbt0 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -90px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_img.rdbt1 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -72px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_img.rdbt0 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -126px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_img.rdbt1 { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_chbxrd.gif"); background-repeat: no-repeat; background-position: -108px 0px; } /* text */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set td.dhxlist_txt_cell { vertical-align: top; padding-right: 5px; -moz-user-select: -moz-none; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_txt { font-family: Tahoma; font-size: inherit; margin: 2px 0px; color: #000000; overflow-x: hidden; -moz-user-select: -moz-none; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_txt.checked { /* color: #0781b6; */ } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_txt { color: #b2b2b2; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_txt.checked { /* color: #b4d9e9; */ } /* label, level 2 */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set td.dhxlist_txt_label2 { vertical-align: top; -moz-user-select: -moz-none; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_txt_label2 { font-family: Tahoma; font-size: inherit; font-weight: bold; color: #256187; margin: 10px 3px 2px 0px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_txt_label2.topmost { margin-top: 2px!important; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_txt_label2 { color: #b2b8bc; } .dhxlist_obj_dhx_skyblue .dhxlist_cont { margin: 2px 2px 2px 7px; } /* label, level 1 (for input and select) */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set div.dhxlist_txt_label { font-family: Tahoma; font-size: inherit; color: #000000; margin: 2px 3px 2px 7px; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled div.dhxlist_txt_label { color: #b2b2b2; } /* select */ .dhxlist_obj_dhx_skyblue table.dhxlist_items_set .dhxlist_txt_select { width: 150px; border: #a4bed4 1px solid; background-color: #ffffff; font-family: Tahoma; font-size: inherit; color: #000000; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled .dhxlist_txt_select { color: #b2b2b2; background-color: #ffffff; border: #c2d0dd 1px solid; } /* input, textarea */ input.dhxlist_txt_textarea { padding: 1px 0px !important; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set .dhxlist_txt_textarea { width: 150px; padding: 0px; border: #a4bed4 1px solid; font-family: Tahoma; font-size: inherit; color: #000000; -moz-user-select: text; } .dhxlist_obj_dhx_skyblue table.dhxlist_items_set tr.disabled .dhxlist_txt_textarea { color: #b2b2b2; background-color: #ffffff; border: #c2d0dd 1px solid; } .dhx_form_cover { position: absolute; width: 100%; height: 100%; background-color: silver; left: 0px; top: 0px; display: none; opacity: 0.2; -moz-opacity: 0.2; z-index: 99999; filter:alpha(opacity=20); } input.dhtmlx_validation_error, select.dhtmlx_validation_error { background-color: #F29FB5; } /* button */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn { font-size: inherit; font-family: Tahoma; height: 21px; margin: 10px 2px; float:left; cursor: default; } /* table */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table { /*table-layout: fixed;*/ height: 21px; } .dhxlist_obj_dhx_skyblue div.dhx_list_btn td { text-align: center; vertical-align: middle; } /* bg */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn td.btn_l { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_btns.gif"); background-repeat: no-repeat; background-position: 0px 0px; width: 5px; height: 21px; font-size: 1px; } /* dis */ .dhxlist_obj_dhx_skyblue tr.disabled div.dhx_list_btn td.btn_l { background-position: 0px -42px !important; } /* over */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_over td.btn_l { background-position: 0px -84px !important; } /* pressed */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_pressed td.btn_l { background-position: 0px -126px !important; } .dhxlist_obj_dhx_skyblue div.dhx_list_btn td.btn_m { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_btns.gif"); background-repeat: repeat-x; background-position: 0px -21px; height: 21px; } /* dis */ .dhxlist_obj_dhx_skyblue tr.disabled div.dhx_list_btn td.btn_m { background-position: 0px -63px !important; } /* over */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_over td.btn_m { background-position: 0px -105px !important; } /* pressed */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_pressed td.btn_m { background-position: 0px -147px !important; } .dhxlist_obj_dhx_skyblue div.dhx_list_btn td.btn_r { background-image: url("../../../image/dhtmlx/form/dhxform_dhx_skyblue/dhxform_btns.gif"); background-repeat: no-repeat; background-position: -5px 0px; width: 5px; height: 21px; font-size: 1px; } /* dis */ .dhxlist_obj_dhx_skyblue tr.disabled div.dhx_list_btn td.btn_r { background-position: -5px -42px !important; } /* over */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_over td.btn_r { background-position: -5px -84px !important; } /* pressed */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_pressed td.btn_r { background-position: -5px -126px !important; } /* label */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn td.btn_m div.btn_txt { font-size: inherit; font-family: Tahoma; color: #000000; padding: 1px 20px; } .dhxlist_obj_dhx_skyblue tr.disabled div.dhx_list_btn td.btn_m div.btn_txt { color: #b2b2b2 !important; } .dhxlist_obj_dhx_skyblue div.dhx_list_btn table.dhx_list_btn_pressed td.btn_m div.btn_txt { padding-top: 2px !important; padding-bottom: 0px !important; } /* button for kbdnav */ .dhxlist_obj_dhx_skyblue div.dhx_list_btn, .dhxlist_obj_dhx_skyblue div.dhx_list_btn:visited, .dhxlist_obj_dhx_skyblue div.dhx_list_btn:active, .dhxlist_obj_dhx_skyblue div.dhx_list_btn:hover { outline: none; text-decoration: none; color: inherit; cursor: default; } .dhxlist_obj_dhx_skyblue div.dhx_list_btn:focus { outline: #30678a 1px dotted; } /* fieldset */ .dhxlist_obj_dhx_skyblue td.dhxlist_txt_cell fieldset.dhxlist_fs { border: #a4bed4 1px solid; margin-top: 5px; padding: 5px; } .dhxlist_obj_dhx_skyblue td.dhxlist_txt_cell tr.disabled fieldset.dhxlist_fs { border: #c2d0dd 1px solid; } .dhxlist_obj_dhx_skyblue td.dhxlist_txt_cell fieldset.dhxlist_fs legend.fs_legend { font-family: Tahoma; color: #256187; font-size: inherit; font-weight: normal; padding: 0px 4px 1px 4px; text-align: left; } .dhxlist_obj_dhx_skyblue td.dhxlist_txt_cell tr.disabled fieldset.dhxlist_fs legend.fs_legend { color: #b2b2b2; } .dhxlist_obj_dhx_skyblue div.dhxform_rtl, .dhxlist_obj_dhx_skyblue div.dhxform_rtl .dhxlist_txt_cell, .dhxlist_obj_dhx_skyblue div.dhxform_rtl .dhxlist_txt, .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set div.dhxlist_txt_label, .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set div.dhxlist_txt_label2, .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set .dhxlist_txt_select, .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set .dhxlist_txt_select option, .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set .dhxlist_txt_textarea, .dhxlist_obj_dhx_skyblue div.dhxform_rtl div.dhx_list_btn td.btn_m div.btn_txt { direction: rtl; unicode-bidi: bidi-override; } .dhxlist_obj_dhx_skyblue div.dhxform_rtl table.dhxlist_items_set div.dhxlist_img { margin-left: 0px; margin-right: 5px; } .dhxlist_obj_dhx_skyblue div.dhxform_rtl td.dhxlist_txt_cell fieldset.dhxlist_fs legend.fs_legend { direction: rtl; unicode-bidi: bidi-override; text-align: right; } .dhxlist_obj_dhx_skyblue div.dhxform_rtl div.dhx_list_btn { float: right; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/form/dhtmlxform_dhx_skyblue.css
CSS
oos
11,345
/* DHX ENGINE */ /* DHX2009 SKYBLUE THEME */ /* active window */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active { box-shadow: 2px 3px 13px #666666; -moz-box-shadow: 2px 3px 13px #666666; -webkit-box-shadow: 2px 3px 13px #666666; -khtml-box-shadow: 2px 3px 13px #666666; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive { box-shadow: 2px 3px 13px #aaaaaa; -moz-box-shadow: 2px 3px 13px #aaaaaa; -webkit-box-shadow: 2px 3px 13px #aaaaaa; -khtml-box-shadow: 2px 3px 13px #aaaaaa; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-color: #646464; border: #ffffff 1px solid; filter:progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3); } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; background-color: #ffffff; border: #ffffff 9px solid !important; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 6px solid !important; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_title { position: absolute; top: 4px; left: 28px; color: #ffffff; font-family: "Trebuchet MS"; font-size: 14px; font-weight: normal; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* active progress */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_web/active/progress.gif"); } /* active buttons */ /* close */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -32px; } /* minmax1 */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -32px; } /* minmax2 */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -32px; } /* park */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -32px; } /* stick */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -32px; } /* sticked */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -32px; } /* help */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -32px; } /* dock */ .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px 0px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -48px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -16px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -32px; } /* inactive window */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-color: #a3a3a3; border: #ffffff 1px solid; filter:progid:DXImageTransform.Microsoft.Shadow(color=#cccccc,direction=135,strength=3); } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; background-color: #ffffff; border: #ffffff 9px solid; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 6px solid; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_title { position: absolute; top: 4px; left: 28px; color: #ffffff; font-family: "Trebuchet MS"; font-size: 14px; font-weight: normal; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* inactive progress */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_web/inactive/progress.gif"); } /* inactive butons */ /* close */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -96px; } /* minmax1 */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -96px; } /* minmax2 */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -96px; } /* park */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -96px; } /* stick */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -96px; } /* sticked */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -96px; } /* help */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -96px; } /* dock */ .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px -64px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -112px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -80px; } .dhtmlx_skin_dhx_web div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -96px; } /* common */ /* content blocker */ /* .dhtmlx_skin_dhx_web div.dhtmlx_window_main_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } */ /* window icon */ .dhtmlx_skin_dhx_web div.dhtmlx_wins_icon { position: absolute; top: 7px; left: 8px; width: 16px; height: 16px; border: none; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; background-repeat: no-repeat; font-size: 1px; } /* buttons */ .dhtmlx_skin_dhx_web div.dhtmlx_wins_btns { position: absolute; right: 5px; top: 6px; font-size: 1px; } .dhtmlx_skin_dhx_web div.dhtmlx_wins_btns div.dhtmlx_wins_btns_button { position: relative; float: left; width: 16px; height: 16px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_web/buttons.gif"); } /* .dhtmlx_skin_dhx_web div.dhtmlx_window_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } */ /* resizers */ .dhtmlx_skin_dhx_web div.dhtmlx_wins_resizer_t { position: absolute; left: 0px; top: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_web div.dhtmlx_wins_resizer_l { position: absolute; left: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_web div.dhtmlx_wins_resizer_r { position: absolute; right: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_web div.dhtmlx_wins_resizer_b { position: absolute; left: 0px; bottom: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* progress */ .dhtmlx_skin_dhx_web div.dhtmlx_wins_progress { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; background-repeat: no-repeat; } /* statusbar */ .dhtmlx_skin_dhx_web div.dhxcont_sb_container { position: relative; height: 41px; } .dhtmlx_skin_dhx_web div.dhxcont_sb_container div.dhxcont_statusbar { position: relative; top: 9px; height: 32px; line-height: 32px; background-color: #ececec; width: auto; padding: 0px 12px; overflow: hidden; white-space: nowrap; font-family: "Trebuchet MS"; font-size: 14px; vertical-align: middle; color: #666666; } /* .dhtmlx_skin_dhx_web div.dhxcont_statusbar { position: absolute; width: 100%; bottom: 0px; _bottom: -1px; border-top: #c2d5dc 1px solid; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_web/statusbar_bg.gif"); background-repeat: repeat-x; width: 100%; overflow: hidden; font-family: Tahoma; font-size: 11px; vertical-align: middle; line-height: 17px; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; cursor: default; padding-left: 4px; color: #7393ae; } */ .dhtmlx_skin_dhx_web div.white_line, .dhtmlx_skin_dhx_web div.white_line2 { display: none; } .dhtmlx_skin_dhx_web .dhtmlxMenu_in_Window { aborder-bottom: #cedce8 1px solid; border-bottom: #a4bed4 1px solid; } /* ie6 fix for web skin,added in 2.6 */ .dhtmlx_skin_dhx_web iframe.dhtmlx_wins_ie6_cover_fix { visibility: hidden; } .dhtmlx_skin_dhx_web div.dhxcont_content_blocker { #visibility: hidden; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows_dhx_web.css
CSS
oos
17,033
/* DHX ENGINE */ /* DHX2012 DHX_TERRACE THEME */ /* active window */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active { box-shadow: 2px 3px 13px #666666; -moz-box-shadow: 2px 3px 13px #666666; -webkit-box-shadow: 2px 3px 13px #666666; -khtml-box-shadow: 2px 3px 13px #666666; border-radius: 2px; filter:progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3); background-color: white; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; /* background-color: #646464; */ border: #cecece 1px solid; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/active/header_bg.gif"); background-repeat: repeat-x; background-position: top center; /*filter:progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3);*/ border-radius: 2px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; /* background-color: #ffffff; */ /* border: #ffffff 9px solid !important; */ border: 0px solid white; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #cecece 6px solid !important; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_title { position: absolute; top: 12px; left: 28px; color: #454544; font-family: Arial; font-size: 14px; font-weight: normal; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* active progress */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/active/progress.gif"); } /* active buttons */ /* close */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -32px; } /* minmax1 */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -32px; } /* minmax2 */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -32px; } /* park */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -32px; } /* stick */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -32px; } /* sticked */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -32px; } /* help */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -32px; } /* dock */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px 0px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -48px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -16px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -32px; } /* inactive window */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive { box-shadow: 2px 3px 13px #aaaaaa; -moz-box-shadow: 2px 3px 13px #aaaaaa; -webkit-box-shadow: 2px 3px 13px #aaaaaa; -khtml-box-shadow: 2px 3px 13px #aaaaaa; border-radius: 2px; filter:progid:DXImageTransform.Microsoft.Shadow(color=#aaaaaa,direction=135,strength=3); background-color: white; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; /*background-color: #a3a3a3;*/ border: #cecece 1px solid; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/inactive/header_bg.gif"); background-repeat: repeat-x; background-position: top center; /*filter:progid:DXImageTransform.Microsoft.Shadow(color=#cccccc,direction=135,strength=3);*/ border-radius: 2px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; /*background-color: #ffffff;*/ /*border: #ffffff 9px solid;*/ border: 0px solid white; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #cecece 6px solid; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_title { position: absolute; top: 12px; left: 28px; color: #cacaca; font-family: Arial; font-size: 14px; font-weight: normal; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* inactive progress */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/inactive/progress.gif"); } /* inactive butons */ /* close */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -96px; } /* minmax1 */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -96px; } /* minmax2 */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -96px; } /* park */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -96px; } /* stick */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -96px; } /* sticked */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -96px; } /* help */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -96px; } /* dock */ .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px -64px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -112px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -80px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -96px; } /* common */ /* content blocker */ /* .dhtmlx_skin_dhx_terrace div.dhtmlx_window_main_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } */ /* window icon */ .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_icon { position: absolute; top: 11px; left: 8px; width: 16px; height: 16px; border: none; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; background-repeat: no-repeat; font-size: 1px; } /* buttons */ .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_btns { position: absolute; right: 9px; top: 10px; font-size: 1px; } .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_btns div.dhtmlx_wins_btns_button { position: relative; float: left; width: 16px; height: 16px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/buttons.gif"); } /* .dhtmlx_skin_dhx_terrace div.dhtmlx_window_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } */ /* resizers */ .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_resizer_t { position: absolute; left: 0px; top: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_resizer_l { position: absolute; left: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 0px; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); filter: progid: DXImageTransform.Microsoft.Shadow(color=#ffffff,direction=0,strength=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; /* for ie */ background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/active/header_bg.gif"); background-repeat: repeat-x; background-position: top center; } .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_resizer_r { position: absolute; right: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 0px; font-size: 1px; background: white; z-index: 1; filter: alpha(opacity=0); filter: progid: DXImageTransform.Microsoft.Shadow(color=#ffffff,direction=0,strength=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; /* for ie */ background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/active/header_bg.gif"); background-repeat: repeat-x; background-position: top center; } .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_resizer_b { position: absolute; left: 0px; bottom: 0px; width: 0px; height: 5px; /* should be generated by script */ font-size: 1px; background-color: white; z-index: 1; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* progress */ .dhtmlx_skin_dhx_terrace div.dhtmlx_wins_progress { position: absolute; top: 11px; left: 8px; width: 16px; height: 16px; background-repeat: no-repeat; } /* statusbar */ .dhtmlx_skin_dhx_terrace div.dhxcont_sb_container { position: relative; height: 41px; } .dhtmlx_skin_dhx_terrace div.dhxcont_sb_container div.dhxcont_statusbar { position: relative; top: 9px; height: 32px; line-height: 32px; background-color: #ececec; width: auto; padding: 0px 12px; overflow: hidden; white-space: nowrap; font-family: "Trebuchet MS"; font-size: 14px; vertical-align: middle; color: #666666; } /* .dhtmlx_skin_dhx_terrace div.dhxcont_statusbar { position: absolute; width: 100%; bottom: 0px; _bottom: -1px; border-top: #c2d5dc 1px solid; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_terrace/statusbar_bg.gif"); background-repeat: repeat-x; width: 100%; overflow: hidden; font-family: Tahoma; font-size: 11px; vertical-align: middle; line-height: 17px; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; cursor: default; padding-left: 4px; color: #7393ae; } */ .dhtmlx_skin_dhx_terrace div.white_line, .dhtmlx_skin_dhx_terrace div.white_line2 { display: none; } .dhtmlx_skin_dhx_terrace .dhtmlxMenu_in_Window { aborder-bottom: #cedce8 1px solid; border-bottom: #a4bed4 1px solid; } /* ie6 fix for web skin,added in 2.6 */ .dhtmlx_skin_dhx_terrace iframe.dhtmlx_wins_ie6_cover_fix { visibility: hidden; } .dhtmlx_skin_dhx_terrace div.dhxcont_content_blocker { #visibility: hidden; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows_dhx_terrace.css
CSS
oos
18,737
/* DHX ENGINE */ /* DHX2009 SKYBLUE THEME */ /* active window */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; abackground-color: #FFFFFF; background-color: #c2d5dc; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/active/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #a4bed4 1px solid; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; aborder: #c2d5dc 5px solid; aborder: #a4bed4 1px solid; aborder-top: none; background-color: #ebebeb !important; border: #ebebeb 2px solid !important; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 6px solid !important; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_title { position: absolute; top: 0px; height: 29px; line-height: 29px; vertical-align: middle; padding-left: 28px; left: 0px; color: #000000; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* active progress */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/active/progress.gif"); } /* active buttons */ /* close */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -32px; } /* minmax1 */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -32px; } /* minmax2 */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -32px; } /* park */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -32px; } /* stick */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -32px; } /* sticked */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -32px; } /* help */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -32px; } /* dock */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px 0px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -48px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -16px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -32px; } /* inactive window */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-color: #dbe6f3; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/inactive/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #c9d9e6 1px solid; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; aaborder: #dbe6f3 5px solid; border-top: none; aabackground-color: #FFFFFF; background-color: #ebebeb !important; border: #ebebeb 2px solid !important; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 6px solid; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_title { position: absolute; top: 0px; height: 29px; line-height: 29px; vertical-align: middle; padding-left: 28px; left: 0px; color: #686868; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* inactive progress */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/inactive/progress.gif"); } /* inactive butons */ /* close */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -96px; } /* minmax1 */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -96px; } /* minmax2 */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -96px; } /* park */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -96px; } /* stick */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -96px; } /* sticked */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -96px; } /* help */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -96px; } /* dock */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px -64px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -112px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -80px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -96px; } /* common */ /* content blocker */ /* .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_main_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } */ /* window icon */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_icon { position: absolute; top: 7px; left: 8px; width: 16px; height: 16px; border: none; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; background-repeat: no-repeat; font-size: 1px; } /* buttons */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_btns { position: absolute; right: 5px; top: 6px; font-size: 1px; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_btns div.dhtmlx_wins_btns_button { float: left; width: 16px; height: 16px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/buttons.gif"); } /* .dhtmlx_skin_dhx_skyblue div.dhtmlx_window_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } */ /* resizers */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_resizer_t { position: absolute; left: 0px; top: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_resizer_l { position: absolute; left: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_resizer_r { position: absolute; right: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_resizer_b { position: absolute; left: 0px; bottom: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* progress */ .dhtmlx_skin_dhx_skyblue div.dhtmlx_wins_progress { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; background-repeat: no-repeat; } /* statusbar */ .dhtmlx_skin_dhx_skyblue div.dhxcont_sb_container { position: relative; height: 24px; } .dhtmlx_skin_dhx_skyblue div.dhxcont_sb_container div.dhxcont_statusbar { position: relative; top: 2px; height: 22px; line-height: 22px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/statusbar_bg.gif"); background-repeat: repeat-x; width: auto; padding: 0px 4px; overflow: hidden; white-space: nowrap; border-top: none; border-bottom: none; border-left: #a4bed4 1px solid; border-right: #a4bed4 1px solid; font-family: Tahoma; font-size: 11px; vertical-align: middle; color: #000000; } /* .dhtmlx_skin_dhx_skyblue div.dhxcont_statusbar { position: absolute; width: 100%; bottom: 0px; _bottom: -1px; border-top: #c2d5dc 1px solid; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_skyblue/statusbar_bg.gif"); background-repeat: repeat-x; width: 100%; overflow: hidden; font-family: Tahoma; font-size: 11px; vertical-align: middle; line-height: 17px; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; cursor: default; padding-left: 4px; color: #7393ae; } */ .dhtmlx_skin_dhx_skyblue div.white_line { border-left: #FFFFFF 1px solid; border-right: #FFFFFF 1px solid; border-top: #FFFFFF 1px solid; height: 100%; } .dhtmlx_skin_dhx_skyblue div.white_line2 { position: absolute; bottom: 0px; height: 10px; width: 100%; border-bottom: #FFFFFF 1px solid; font-size: 1px; } .dhtmlx_skin_dhx_skyblue .dhtmlxMenu_in_Window { aborder-bottom: #cedce8 1px solid; border-bottom: #a4bed4 1px solid; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows_dhx_skyblue.css
CSS
oos
17,687
/* DHX ENGINE */ /* DHX2008 BLACK THEME */ /* active window */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_black/active/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #545454 1px solid; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; border: #000000 1px solid; background-color: #FFFFFF; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #B5CDE4 6px solid; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_title { position: absolute; top: 4px; left: 22px; color: #999999; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* active progress */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_black/active/progress.gif"); } /* active buttons */ /* close */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -30px; } /* minmax1 */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -30px; } /* minmax2 */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -30px; } /* park */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -30px; } /* stick */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -30px; } /* sticked */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -30px; } /* help */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -30px; } /* dock */ .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px 0px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -45px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -15px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -30px; } /* inactive window */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_black/inactive/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #545454 1px solid; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; border: #000000 1px solid; background-color: #FFFFFF; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #D6E2ED 6px solid; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_title { position: absolute; top: 4px; left: 22px; color: #555555; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* inactive progress */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_black/inactive/progress.gif"); } /* inactive butons */ /* close */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -90px; } /* minmax1 */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -90px; } /* minmax2 */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -90px; } /* park */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -90px; } /* stick */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -90px; } /* sticked */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -90px; } /* help */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -90px; } /* dock */ .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px -60px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -105px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -75px; } .dhtmlx_skin_dhx_black div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -90px; } /* common */ /* content blocker */ /* .dhtmlx_skin_dhx_black div.dhtmlx_window_main_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } */ /* window icon */ .dhtmlx_skin_dhx_black div.dhtmlx_wins_icon { position: absolute; top: 7px; left: 8px; width: 9px; height: 9px; border: none; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; background-repeat: no-repeat; font-size: 1px; } /* buttons */ .dhtmlx_skin_dhx_black div.dhtmlx_wins_btns { position: absolute; right: 6px; top: 3px; font-size: 1px; } .dhtmlx_skin_dhx_black div.dhtmlx_wins_btns div.dhtmlx_wins_btns_button { position: relative; float: left; width: 16px; height: 16px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_black/buttons.gif"); } /* .dhtmlx_skin_dhx_black div.dhtmlx_window_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } */ /* resizers */ .dhtmlx_skin_dhx_black div.dhtmlx_wins_resizer_t { position: absolute; left: 0px; top: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_black div.dhtmlx_wins_resizer_l { position: absolute; left: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_black div.dhtmlx_wins_resizer_r { position: absolute; right: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_black div.dhtmlx_wins_resizer_b { position: absolute; left: 0px; bottom: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* progress */ .dhtmlx_skin_dhx_black div.dhtmlx_wins_progress { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; background-repeat: no-repeat; } /* statusbar */ .dhtmlx_skin_dhx_black div.dhxcont_sb_container { position: relative; height: 17px; } .dhtmlx_skin_dhx_black div.dhxcont_statusbar { position: absolute; width: 100%; bottom: 0px; _bottom: -1px; border-top: #545454 1px solid; background-color: #6e6e6e; width: 100%; overflow: hidden; font-family: Tahoma; font-size: 11px; vertical-align: middle; line-height: 17px; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; cursor: default; padding-left: 4px; color:#ffffff !important; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows_dhx_black.css
CSS
oos
15,938
/* dhtmlxWindows */ /* viewport */ div.dhtmlx_winviewport { position: absolute; /* border: #909090 1px dashed; */ overflow: hidden; } /* main container */ div.dhtmlx_window_active { position: absolute; overflow: hidden; } div.dhtmlx_window_inactive { position: absolute; overflow: hidden; } /* content cover */ div.dhx_content_cover_blocker { position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; /* filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; background-color: #909090; */ filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; } /* cover for modal windows */ iframe.dhx_modal_cover_ifr { position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background-color: #FFFFFF; } div.dhx_modal_cover_dv { position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; border: none; filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; background-color: #EEEEEE; /*#D3E7FF;*/ } iframe.dhx_ie6_wincover_forsel { position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; overflow: hidden; filter: alpha(opacity=0); background-color: #FFFFFF; z-index: -1; } /* content cover */ div.dhx_carcass_resmove { position: absolute; filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; background-color: #E0E0E0; border: #909090 1px solid; } /* cover for vp for move/resize */ div.dhx_content_vp_cover { position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background-color: #FFFFFF; } /* 2.1 EDITION UPDATES */ /* ie6 iframe to fix select overlaping */ iframe.dhtmlx_wins_ie6_cover_fix { position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; overflow: hidden; filter: alpha(opacity=0); background-color: #FFFFFF; } div.dhxcont_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows.css
CSS
oos
2,350
/* DHX ENGINE */ /* DHX2008 BLUE THEME */ /* active window */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_blue/active/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #c2d5dc 1px solid; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; border: #d3e2e5 1px solid; background-color: #FFFFFF; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 1px solid; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_title { position: absolute; top: 4px; left: 22px; color: #055a78; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* active progress */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_blue/active/progress.gif"); } /* active buttons */ /* close */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -30px; } /* minmax1 */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -30px; } /* minmax2 */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -30px; } /* park */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -30px; } /* stick */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -30px; } /* sticked */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -30px; } /* help */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -30px; } /* dock */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px 0px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -45px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -15px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_active div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -30px; } /* inactive window */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer { position: absolute; overflow: hidden; left: 0px; top: 0px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_blue/inactive/header_bg.gif"); background-repeat: repeat-x; background-position: top; border: #c2d5dc 1px solid; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_body_outer div.dhtmlx_wins_body_inner { position: absolute; overflow: hidden; border: #d3e2e5 1px solid; background-color: #FFFFFF; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive .dhtmlx_wins_no_header { /* will added to div.dhtmlx_wins_body_inner in case of no header */ border-top: #c2d5dc 6px solid; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_title { position: absolute; top: 4px; left: 22px; color: #a9aaab; font-family: Tahoma; font-size: 11px; font-weight: bold; cursor: default; white-space: nowrap; overflow: hidden; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* inactive progress */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_progress { background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_blue/inactive/progress.gif"); } /* inactive butons */ /* close */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_default { background-position: -96px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_disabled { background-position: -96px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_default { background-position: -96px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_close_over_pressed { background-position: -96px -90px; } /* minmax1 */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_default { background-position: -64px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_disabled { background-position: -64px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_default { background-position: -64px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax1_over_pressed { background-position: -64px -90px; } /* minmax2 */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_default { background-position: -80px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_disabled { background-position: -80px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_default { background-position: -80px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_minmax2_over_pressed { background-position: -80px -90px; } /* park */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_default { background-position: -48px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_disabled { background-position: -48px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_default { background-position: -48px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_park_over_pressed { background-position: -48px -90px; } /* stick */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_default { background-position: 0px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_disabled { background-position: 0px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_default { background-position: 0px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_stick_over_pressed { background-position: 0px -90px; } /* sticked */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_default { background-position: -16px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_disabled { background-position: -16px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_default { background-position: -16px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_sticked_over_pressed { background-position: -16px -90px; } /* help */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_default { background-position: -32px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_disabled { background-position: -32px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_default { background-position: -32px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_help_over_pressed { background-position: -32px -90px; } /* dock */ .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_default { background-position: -112px -60px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_disabled { background-position: -112px -105px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_default { background-position: -112px -75px; } .dhtmlx_skin_dhx_blue div.dhtmlx_window_inactive div.dhtmlx_wins_btns .dhtmlx_button_dock_over_pressed { background-position: -112px -90px; } /* common */ /* content blocker */ /* .dhtmlx_skin_dhx_blue div.dhtmlx_window_main_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } */ /* window icon */ .dhtmlx_skin_dhx_blue div.dhtmlx_wins_icon { position: absolute; top: 7px; left: 8px; width: 9px; height: 9px; border: none; z-index: 1; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; background-repeat: no-repeat; font-size: 1px; } /* buttons */ .dhtmlx_skin_dhx_blue div.dhtmlx_wins_btns { position: absolute; right: 6px; top: 3px; font-size: 1px; } .dhtmlx_skin_dhx_blue div.dhtmlx_wins_btns div.dhtmlx_wins_btns_button { position: relative; float: left; width: 16px; height: 16px; background-image: url("../../../image/dhtmlx/window/dhxwins_dhx_blue/buttons.gif"); } /* .dhtmlx_skin_dhx_blue div.dhtmlx_window_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } */ /* resizers */ .dhtmlx_skin_dhx_blue div.dhtmlx_wins_resizer_t { position: absolute; left: 0px; top: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_blue div.dhtmlx_wins_resizer_l { position: absolute; left: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_blue div.dhtmlx_wins_resizer_r { position: absolute; right: 0px; top: 0px; width: 5px; /* should be generated by script */ height: 100%; font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .dhtmlx_skin_dhx_blue div.dhtmlx_wins_resizer_b { position: absolute; left: 0px; bottom: 0px; width: 100%; height: 5px; /* should be generated by script */ font-size: 1px; background: #FFFFFF; z-index: 1; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } /* progress */ .dhtmlx_skin_dhx_blue div.dhtmlx_wins_progress { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; background-repeat: no-repeat; } /* statusbar */ .dhtmlx_skin_dhx_blue div.dhxcont_sb_container { position: relative; height: 17px; } .dhtmlx_skin_dhx_blue div.dhxcont_sb_container div.dhxcont_statusbar { position: absolute; width: 100%; bottom: 0px; _bottom: -1px; border-top: #B5CDE4 1px solid; background-color: #D9E8F6; width: 100%; overflow: hidden; font-family: Tahoma; font-size: 11px; vertical-align: middle; line-height: 17px; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; cursor: default; padding-left: 4px; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/window/dhtmlxwindows_dhx_blue.css
CSS
oos
15,841
.defaultTreeTable{ margin : 0px; padding : 0px; border : 0px; } .containerTableStyle { overflow : auto; position:relative; top:0; font-size : 12px; -khtml-user-select: none;} .containerTableStyleRTL span { direction: rtl; unicode-bidi: bidi-override; } .containerTableStyleRTL { direction: rtl; overflow : auto; position:relative; top:0; font-size : 12px;} .standartTreeRow { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; -moz-user-select: none; } .selectedTreeRow{ background-color : navy; color:white; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; -moz-user-select: none; } .dragAndDropRow{ background-color : navy; color:white; } .standartTreeRow_lor{ text-decoration:underline; background-color : #FFFFF0; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; -moz-user-select: none; } .selectedTreeRow_lor{ text-decoration:underline; background-color : navy; color:white; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 12px; -moz-user-select: none; } .standartTreeImage{ width:18px; height:18px; overflow:hidden; border:0; padding:0; margin:0; font-size:1px; } .hiddenRow { width:1px; overflow:hidden; } .dragSpanDiv,.dragSpanDiv td{ font-size : 12px; background-color:white; z-index:999; } .a_dhx_hidden_input{ position:absolute; top:-1px; left:-1px; width:1px; height:1px; border:none; background:none; } .a_dhx_hidden_input{ position:absolute; top:-1px; left:-1px; width:1px; height:1px; border:none; background:none; } .selectionBox{ background-color: #FFFFCC; } .selectionBar { top:0; background-color: Black; position:absolute; overflow:hidden; height: 2px; z-index : 11; } .intreeeditRow{ font-size:8pt; height:16px; border:1px solid silver; padding:0; margin:0; margin-left:4px; -moz-user-select: text; -khtml-user-select: text; } .dhx_tree_textSign{ font-size:8pt; font-family:monospace; width:21px; color:black; padding:0px; margin:0px; cursor:pointer; text-align: center; } .dhx_tree_opacity{ opacity:0; -moz-opacity:0; filter:alpha(opacity=0); } .dhx_bg_img_fix{ width:18px; height:18px; background-repeat: no-repeat; background-position: center; background-position-x: center; background-position-y: center; } .dhxtree_dhx_black, .dhxtree_dhx_skyblue{ background:white; color:black; } *html .dhxtree_dhx_skyblue .standartTreeRow, *html .dhxtree_dhx_skyblue .standartTreeRow_lor{ border-right:0px solid red; border-left:0px solid red; } *html .dhxtree_dhx_skyblue span.standartTreeRow, *html .dhxtree_dhx_skyblue span.standartTreeRow_lor{ margin-left:1px; } .dhxtree_dhx_skyblue .standartTreeRow, .dhxtree_dhx_skyblue .standartTreeRow_lor{ border-right:1px solid transparent; border-left: 1px solid transparent; font-family:Tahoma; font-size:11px !important; overflow:hidden; padding:0px 0px 0px 0px; } .dhxtree_dhx_skyblue .selectedTreeRow_lor, .dhxtree_dhx_skyblue .selectedTreeRow{ background-color:white; background-image:url(../../../image/dhtmlx/tree/sky_blue_sel_tree.png); background-repeat:repeat-x; border:1px solid #FFB951; color:black; line-height:17px; font-size:11px !important; font-family:Tahoma; overflow:hidden; } html > body /**/ .dhxtree_dhx_skyblue .selectedTreeRow, html > body /**/ .dhxtree_dhx_skyblue .selectedTreeRow_lor{ padding:1px 0px 1px 0px; line-height:normal; display:inline-block !ie; height:13px; } body:nth-of-type(1) .dhxtree_dhx_skyblue span.selectedTreeRow, body:nth-of-type(1) .dhxtree_dhx_skyblue span.selectedTreeRow_lor{ padding:1px 0px 1px 0px; display:inline-block; padding-top:0px; height:13px; } body:nth-of-type(1) .dhxtree_dhx_skyblue span.standartTreeRow, body:nth-of-type(1) .dhxtree_dhx_skyblue span.standartTreeRow_lor{ display:inline-block; height:14px; } .dhxtree_dhx_web .selectedTreeRow_lor, .dhxtree_dhx_web .selectedTreeRow{ background-color:transparent; } .dhxtree_dhx_web span.selectedTreeRow_lor , .dhxtree_dhx_web span.selectedTreeRow{ background-color:#ACDAF0; color:black; } .dhxtree_dhx_web td.standartTreeRow, .dhxtree_dhx_web td.selectedTreeRow{ padding-left:2px; } .dhxtree_dhx_web span.standartTreeRow, .dhxtree_dhx_web span.selectedTreeRow{ padding-left:3px !important; } .dhxtree_dhx_web .standartTreeRow, .dhxtree_dhx_web .standartTreeRow, .dhxtree_dhx_web .selectedTreeRow_lor, .dhxtree_dhx_web .selectedTreeRow{ font-size:12px; font-family:Tahoma; overflow:hidden; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/tree/dhtmlxtree.css
CSS
oos
4,659
div.gridbox_dhx_skyblue .xhdr{ background-image:url(../../../image/dhtmlx/grid/sky_blue_grid.gif); } div.gridbox_dhx_skyblue table.hdr tr{ background-image:url(../../../image/dhtmlx/grid/sky_blue_grid.gif); background-position:0px -1px\9; } body:nth-of-type(1) div.gridbox_dhx_skyblue table.hdr tr{ background-image:url(../../../image/dhtmlx/grid/sky_blue_grid.gif); background-position:0px -1px; } div.gridbox_dhx_skyblue table.obj tr td{ font-family:Tahoma; font-size:11px; border-width:0px 0px 0px 0px; padding-right:4px; padding-left:4px; } div.gridbox_dhx_skyblue table.hdr td div.hdrcell{ padding-left:10px; width:auto; } html > body /**/ div.gridbox_dhx_skyblue table.hdr td div.hdrcell{ width=100%; } div.gridbox_dhx_skyblue table.hdr td { border-width: 1px 1px 1px 1px; border-color : #FDFDFD #A4BED4 #A4BED4 #FDFDFD; background-color:transparent; font-family:Tahoma; font-size:11px; color:black; vertical-align:top; text-align:left; } div.gridbox_dhx_skyblue { border:1px solid #A4BED4; } div.gridbox table.obj tr td{ padding-top:3px; padding-bottom:3px; } * html .gridbox .obj td{ height:auto; padding-top=3px; padding-bottom=3px; } div.gridbox table.obj.row20px tr td{ padding-top:0px; padding-bottom:0px; } div.gridbox table.obj tr td.editable{ padding:0px; } div.gridbox table.obj tr td.editable div.treegrid_cell{ padding-left:4px; padding-top:1px; } div.gridbox_dhx_skyblue table.obj tr.rowselected{ background-color:#FFF1CC; } div.gridbox_dhx_skyblue table.obj tr.rowselected td{ background-color:#FFF1CC; background-repeat:repeat-x; background-position:0px 0px; background-image:url(../../../image/dhtmlx/grid/sky_blue_sel2.png); } div.gridbox_dhx_skyblue table.obj.row20px tr.rowselected td{ background-repeat:repeat-x; background-position:0px 0px; background-image:url(../../../image/dhtmlx/grid/sky_blue_sel.png); } div.gridbox_dhx_skyblue table.obj tr.rowselected td.cellselected { background-color:#FFF1CC; } div.gridbox_dhx_skyblue .odd_dhx_skyblue{ background-color:#E3EFFF; } .dhx_combo_select, .gridbox_dhx_skyblue .dhx_combo_edit, .gridbox_dhx_skyblue .dhx_textarea{ font-family:Tahoma; font-size:11px; } .gridbox_dhx_skyblue .dhx_combo_edit{ padding:1px 0px 1px 1px; } .gridbox_dhx_skyblue .dhx_sub_row { background-color:transparent; }0
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/grid/dhtmlxgrid_dhx_skyblue.css
CSS
oos
2,452
div.gridbox{ overflow:hidden; text-align:left; } .dhx_sub_row { background-color:white; } div.gridbox .xhdr{ background-color:#D4D0C8; } div.gridbox table.obj{ height:1px; } div.gridbox table.hdr td { font-family:arial; font-size:12px; background-Color:#D4D0C8; border: 1px solid; border-color : white Gray Gray white; text-align: center; margin:0px; padding:5px 0px 5px 0px ; font-weight:normal; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; empty-cells:show; } div.gridbox table.hdr td div.hdrcell{ overflow:hidden; } div.gridbox table.obj td { border: 1px solid; border-color : white Gray Gray white; font-family:Arial; font-size:12px; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; padding-top:0px; padding-bottom:0px; empty-cells:show; } div.gridbox table.obj th, div.gridbox table.hdr th{ padding:0px 0px 0px 0px ; margin:0px 0px 0px 0px ; } div.gridbox table.row20px tr td{ height:20px; white-space: nowrap; padding:0px; } div.gridbox .objbox { background-color:white; position:relative; } div.gridbox table.obj td span.space, div.gridbox table.obj td img.space{ width:18px; } div.gridbox table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected { background-color:#d8d8d8; color:black; } div.gridbox table.obj tr.rowselected td{ background-color:#e1e0d7; color:black; } div.gridbox table.obj td.editable{ -moz-user-select:text; } div.gridbox table.obj td.group_row{ vertical-align:middle; font-family:Tahoma; font-size:10pt; font-weight:bold; height:30px; border:0px; border-bottom: 2px solid navy; } .dragSpanDiv{ font-size : 12px; border: 1px gray solid; background-color:white; z-index:999; } .dhx_combo_select{ font-family:arial; font-size:12px; border:1px solid; border-color:black silver silver black; background-color:white; overflow:hidden; cursor:default; position:absolute; height:auto; z-index:600; } .dhx_combo_edit{ width:100%; border:0px; padding:0px; padding-right:1px !ie; margin:0px; font:12px arial; overflow:hidden; } .dhx_textarea{ border:1px solid; border-color:black silver silver black; position:absolute; height:100px; z-index:600; } .dhx_clist{ background-color:white; border:1px solid black; padding:2px 2px 2px 2px; z-index:300; } .gridDragLine{ position:absolute; top:10px; left:0px; width:100%; height:2px; background-color:black; overflow:hidden; } /*paginal output*/ div.pagingBlock{ font-size:12px; font-family:verdana,arial; } div.pagingBlock .pagingCurrentPage{ font-weight:bold; cursor:default; } div.pagingBlock .pagingPage{ cursor:pointer; text-decoration:underline; } span.recordsInfoBlock { font-size:12px; font-family:verdana,arial; } div.pagingBlock a{ text-decoration:none; padding-right:2px; color:black; cursor:pointer; } div.pagingBlock a.dhx_not_active{ text-decoration:none; cursor:default; } /*class for toolbar selectbox. used with pagingWT*/ .toolbar_select{ font-size:10px; } /*block selection style*/ .dhtmlxGrid_selection { -moz-opacity: 0.5; filter: alpha(opacity = 50); background-color:yellow; opacity:0.5; border: 1px dotted black; } /* xp skin ------------------------------------------------------*/ div.gridbox_xp{ border:1px solid lightgrey; } div.gridbox_xp .xhdr{ background-image:url('../../../image/dhtmlx/grid/header_bg_60.gif'); } div.gridbox_xp table.hdr td { color:#616161; background-image:url('../../../image/dhtmlx/grid/header_bg_60.gif'); border:0px; text-align: center; margin:0px; padding:5px 0px 5px 0px ; font-weight:bold; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; } div.gridbox_xp table.hdr td div.hdrcell{ border-left: 1px solid white; border-right: 1px solid gray; height:16px; white-space : nowrap; font-family:Arial; font-size:12px; } div.gridbox_xp table.obj td { border:0px; border-bottom: 1px solid lightgrey; border-right: 1px solid lightgrey; font-family:Arial; font-size:12px; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; padding-top:0px; padding-bottom:0px; } div.gridbox_xp table.obj tr.rowselected td{ background-color:whitesmoke; color:black; } div.gridbox_xp table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected { background-color:whitesmoke; } div.gridbox_xp table.row20px tr td{ height:22px; white-space: nowrap; padding:1px; } /* gray skin --------------------------------------------------*/ div.gridbox_gray { border:1px solid gray; background-color:#D4D0C8; } /* mt skin ------------------------------------------------------*/ div.gridbox_mt{ border:1px solid lightgrey; } div.gridbox_mt .dhx_sub_row { background-color:transparent; } div.gridbox_mt .xhdr{ background-image:url('../../../image/dhtmlx/grid/header_bg.gif'); } div.gridbox_mt .xhdr_last{ border:0px; border-bottom: 1px solid lightgrey; border-left: 1px solid lightgrey; } div.gridbox_mt table.hdr td { color:#616161; border:0px; border-bottom: 1px solid lightgrey; border-left: 1px solid lightgrey; text-align: center; margin:0px; background-image:url('../../../image/dhtmlx/grid/header_bg.gif'); padding: 0px 0px 0px 0px; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; } div.gridbox_mt table.hdr td div.hdrcell{ height:16px; white-space : nowrap; font-family:Verdana; font-size:12px; } div.gridbox_mt table.obj td { border:0px; border-bottom: 1px solid lightgrey; border-right: 0px solid lightgrey; font-family:Verdana; font-size:12px; -moz-user-select:none; -moz-user-select:-moz-none; overflow:hidden; padding-top:0px; padding-bottom:0px; } div.gridbox_mt table.obj tr.rowselected td{ background-color:#D6D3FA; color:black; } div.gridbox_mt table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected { background-color:#D6D3FA; } div.gridbox_mt table.row20px tr td{ height:22px; white-space: nowrap; padding:1px; } /*------------------------------------------------------------*/ div.gridbox div.ftr{ position:absolute; left:0px; bottom:1px; width:100%; overflow:hidden; } div.gridbox div.ftr td { padding:0px; padding-left:10px; padding-right:5px; border-top:1px solid gray; border-right:1px solid gray; background-color:#ffffcc; font-style : italic; font-family:arial; font-size:12px; overflow:hidden; } div.gridbox table.hdr td.columnTargetR div.hdrcell{ border-right:3px double #FF6600; border-left:3px solid #D4D0C8; } div.gridbox table.hdr td.columnTargetL div.hdrcell{ border-right:3px solid #D4D0C8; border-left:3px double #FF6600; } .dhx_dragColDiv{ font-family:Arial; font-size:12px; background-color:#D4D0C8; border: 1px solid; border-color : white Gray Gray white; text-align: center; margin:0px; padding:5px 20px 5px 20px ; font-weight:normal; filter:alpha(opacity:75); -moz-opacity:0.75; opacity:0.75; } /*light*/ div.gridbox_light { border:1px solid #c2d5dc; } div.gridbox_light .xhdr{ background-image:url(../../../image/dhtmlx/grid/skin_light_header.png); } div.gridbox_light .xhdr_last{ border: 1px solid; border-color : #FDFDFD #93AFBA #93AFBA #FDFDFD; } div.gridbox_light table.hdr{ background-image:url(../../../image/dhtmlx/grid/skin_light_header.png); } div.gridbox_light table.hdr td { border: 1px solid; border-color : #FDFDFD #93AFBA #93AFBA #FDFDFD; background-color:transparent; font-family:Tahoma; font-size:11px; font-weight:bold; color:#055A78; vertical-align:top; text-align:left; } div.gridbox_light table.hdr td div.hdrcell{ width:auto; padding-left:10px; } div.gridbox_light table.hdr .filter{ padding-left:0px !important; text-align:center; -moz-user-select:text; } div.gridbox_light table.obj td { border-width: 0px 1px 0px 1px; border-left: 1px solid white; border-right: 1px solid #D6D6D6; font-family:Tahoma; font-size:11px; padding-right:4px; padding-left:4px; } div.gridbox_light table.obj{ border-bottom: 1px solid #D6D6D6; } div.gridbox_light table.row20px tr td { padding-right:4px; padding-left:4px; } div.gridbox_light .dhx_combo_edit{ font-family:Tahoma; font-size:11px; } div.gridbox_light table.obj tr.rowselected td{ background-color:#ededed; color:black; } div.gridbox_light table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected { background-color:#ededed; } div.gridbox_light .odd_light{ background-color:#E5F2F8; } div.gridbox_light div.ftr td { empty-cells:show; } /*modern*/ div.gridbox_modern { border:1px solid #D6D6D6; } div.gridbox_modern .dhx_sub_row { background-color:transparent; } div.gridbox_modern .xhdr{ background-image:url(../../../image/dhtmlx/grid/skin_modern_header.png); } div.gridbox_modern .xhdr_last{ border: 1px solid; border-color : #FDFDFD #B5B5B5 #B5B5B5 #FDFDFD; } div.gridbox_modern table.hdr{ background-image:url(../../../image/dhtmlx/grid/skin_modern_header.png); } div.gridbox_modern table.hdr td { border-right:1px solid #B5B5B5; border-left:1px solid #FDFDFD; border-top:1px solid #FDFDFD; border-bottom:1px solid #B5B5B5; background-color:transparent; font-family:Tahoma; font-size:11px; font-weight:bold; color:#055A78; vertical-align:top; text-align:left; } div.gridbox_modern table.hdr td div.hdrcell{ width:auto; padding-left:10px; } div.gridbox_modern table.hdr .filter{ padding-left:0px !important; text-align:center; } div.gridbox_modern table.obj td { border: 0px solid; font-family:Tahoma; font-size:11px; padding-right:4px; padding-left:4px; } div.gridbox_modern table.row20px tr td { padding-right:4px; padding-left:4px; } div.gridbox_modern .dhx_combo_edit{ font-family:Tahoma; font-size:11px; } div.gridbox_modern table.obj tr.rowselected td{ background-color:#9ac2e5; color:black; } div.gridbox_modern table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected { background-color:#9ac2e5; } div.gridbox_modern .odd_modern{ background-color:#EDEDED; } div.gridbox_modern div.ftr td { padding:0px; padding-left:10px; padding-right:5px; border-top:0px solid gray; border-right:0px solid gray; background-color:#ffffcc; font-style : italic; font-family:arial; font-size:12px; } /*clear*/ div.gridbox_clear .xhdr{ background-color:transparent; } div.gridbox_clear div.topMumba{ position:absolute; left:0px; width:100%; height:3px; background-image:url(../../../image/dhtmlx/gridskinC_header.png); overflow:hidden; padding:0px; margin:0px; } div.gridbox_clear div.bottomMumba{ position:absolute; left:0px; width:100%; height:3px; background-image:url(../../../image/dhtmlx/gridskinD_header.png); overflow:hidden; } div.gridbox_clear div.bottomMumba img,div.gridbox_clear div.topMumba img{ border:0px; position:absolute; top:0px; } div.gridbox_clear{ padding-left: 10px; padding-right: 10px; } div.gridbox_clear table.hdr td { border:0px; background-color:transparent; font-family:Tahoma; font-size:11px; font-weight:bold; color:#055A78; vertical-align:top; text-align:left; } div.gridbox_clear table.hdr td div.hdrcell{ width:auto; padding-left:10px; padding-bottom:2px; } div.gridbox_clear table.hdr .filter{ padding-left:0px !important; text-align:center; } div.gridbox_clear table.obj td { border-width: 0px 1px 0px 0px ; border-color:#D6D6D6; font-family:Tahoma; font-size:11px; padding-right:4px; padding-left:4px; } div.gridbox_clear table.row20px tr td { padding-right:4px; padding-left:4px; } div.gridbox_clear .dhx_combo_edit{ font-family:Tahoma; font-size:11px; } div.gridbox_clear .odd_clear{ background-color:#E5F2F8; } div.gridbox_clear div.ftr td { padding:0px; padding-left:10px; padding-right:5px; border-top:1px solid gray; border-right:0px solid gray; background-color:#ffffcc; font-style : italic; font-family:arial; font-size:12px; } /*sb dark*/ div.gridbox_sbdark .objbox { background: #313131 !important; } div.gridbox_sbdark .xhdr{ background-color:#313131; } div.gridbox_sbdark .xhdr_last{ border: 1px solid; border-color : #474948 #202220 #202220 #202220; } div.gridbox_sbdark { background: #313131 !important; } div.gridbox_sbdark table { border-collapse: collapse; } div.gridbox_sbdark table.hdr tr { border-top: 1px solid #202220; } div.gridbox_sbdark table.hdr, div.gridbox_sbdark table.hdr td { border-right:1px solid #202220; border-left:1px solid #202220; border-top: 1px solid #474948; border-bottom:1px solid #202220; background-color: #313131; font-size:11px; color:#8A8F84; vertical-align:top; text-align:left; padding: 2px 5px; } div.gridbox_sbdark .hdrcell { padding-left: 0px !important; font-family: 'Lucida Sans Unicode','Tahoma'; } div.gridbox_sbdark table.hdr td div.hdrcell{ width:auto; padding-left:10px; } div.gridbox_sbdark table.obj td { border-width: 0px 1px 0px 1px; border-left: 1px solid #202220; border-right: 1px solid #EDF3F0; font-family: 'Consolas','Lucida Sans Unicode','Tahoma'; font-size:11px; } div.gridbox_sbdark table.row20px tr td { padding: 0px 5px !important; text-indent:1px; } div.gridbox_sbdark .dhx_combo_edit{ font-family: 'Lucida Sans Unicode','Tahoma'; font-size:11px; } div.gridbox_sbdark table.obj tr.rowselected td, div.gridbox_sbdark table.obj tr:hover, div.gridbox_sbdark .odd_light:hover { background-color: #8A8F84; color: white !important; } div.gridbox_sbdark table.obj tr.rowselected td.cellselected , div.gridbox_sbdark table.obj td.cellselected { background-color:#8A8F84; } div.gridbox_sbdark .cellselected { background-color: #6e6f64 !important; } div.gridbox_sbdark .ev_sbdark { background-color: #FFFFFF; } div.gridbox_sbdark .odd_sbdark { background-color:#EDF3F0; } .dhtmlx_live_validation_error{ background-color:#FFE0E0 !important; } .dhtmlx_validation_error{ border-bottom:2px solid red !important; } .dhx_header_cmenu{ background-color:#ffffff; border:2px outset silver; z-index:2; } .dhx_header_cmenu_item{ white-space:nowrap; } div.gridbox_dhx_skyblue div.ftr td{ text-align:right; background-image:url(./../../image/dhtmlx/grid/sky_blue_grid.gif); border-color:#A4BED4; } div.gridbox table.hdr td:last-child { border-right-width: 0px !important; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/grid/dhtmlxgrid.css
CSS
oos
15,326
.dhx_tabbar_zone_top{ position:relative; } .dhx_tabbar_zone, .dhx_tabbar_zoneB, .dhx_tabbar_zoneV, .dhx_tabbar_zoneVB{ position:relative; width:100%; height:100%; overflow:hidden; z-index:1; } .dhx_tablist_line{ height:1px; width:1px; background-color:#91A7B4; position:absolute; overflow:hidden; } .dhx_tabbar_row, .dhx_tablist_zone, .dhx_tabcontent_zone, .dhx_tab_element{ width:100%; height:100%; overflow:hidden; position:absolute; } .dhx_tablist_zone{ z-index:3; overflow:hidden; } .dhx_tabcontent_zone{ /* border:1px solid #91A7B4; */ z-index:2; } .dhx_tabbar_zone_top .dhx_tab_element{ padding-top:3px; } .dhx_tab_element span{ white-space: nowrap; } .dhx_tab_element{ cursor:pointer; text-align:center; font-family:Tahoma; font-size:8pt; background-color:white; } .dhx_tabbar_zoneV .dhx_tab_element{ padding:0px 0px 0px 3px; text-align:left; } .dhx_tabbar_zoneVB .dhx_tab_element{ padding:0px 3px 0px 0px; text-align:right; } .dhx_tab_element div{ height:40px; width:40px; position:absolute; overflow:hidden; } .dhx_tab_element span{ position:relative; z-index:10; } .dhx_tabbar_zone_dhx_blue .dhx_tablist_line{ background-color:#C2D5DC; } .dhx_tabbar_zone_dhx_blue .dhx_tabcontent_zone{ border-color:#D2E3EA; } .dhx_tabbar_zone_dhx_blue .dhx_tab_element{ color:#006699; } .dhx_tab_element_active{ font-weight:bold; } .dhx_tabbar_zone_dark_blue .dhx_tab_element,.dhx_tabbar_zone_dhx_black .dhx_tab_element{ color:white; } .dhx_tabbar_zone_dhx_black .dhx_tablist_line{ background-color:#626262; } .dhx_tabbar_zone_dhx_black .dhx_tabcontent_zone{ border-color:#333333; } .dhx_tabbar_zone_dhx_web .dhx_tabbar_row{ background-color:#646464; } .dhx_tabbar_zone_dhx_web .dhx_tab_element span{ top:4px; font-weight:normal !important; font-size:12px; } .dhx_tabbar_zone_dhx_web .dhx_tablist_line{ display:none; } .dhx_tabbar_zone_dhx_web .dhx_tabcontent_zone{ /* border-width:0px 1px 1px 1px; border-color:#646464;; */ background-color:#646464!important; border:none!important; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_top.png); border-right:1px solid #B6CBDD; border-left:1px solid #B6CBDD; } .dhx_tabbar_zone_dhx_blue .dhx_tabbar_row{ background-color: #D2E3EA; } .dhx_tabbar_zone_dhx_black .dhx_tabbar_row{ background-color: black; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ position:absolute; left:0px; width:1px; height:3px; background-color:white; z-index:999; border-left:1px solid #A4BED4; border-right:1px solid #A4BED4; overflow:hidden; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ position:absolute; left:2px; width:100px; height:3px; background-color: #D0E5FF; z-index:999; overflow:hidden; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ position:absolute; right:0px; width:1px; height:21px; background-color: white; z-index:999; overflow:hidden; border-right:1px solid #A4BED4; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ position:absolute; left:1px; width:1px; height:21px; background-color: white; z-index:999; overflow:hidden; } .dhx_tabbar_zone_top .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ top:1px; } .dhx_tabbar_zone_top .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ top:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ bottom:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ bottom:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_bottom.png); background-position:bottom; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 1px 1px 0px; } .dhx_tabbar_zone_bottom .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ width:3px;left:auto; top:2px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ width:3px; border:1px solid #A4BED4; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ height:1px; width:21px; right:auto; bottom:0px; left:1px; border:1px solid #A4BED4; border-width:0px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ height:1px; width:21px; right:auto; top:1px; left:1px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_left.png); border:1px solid #B6CBDD; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 0px 1px 1px; width:2px !ie; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element{ padding-top:0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ left:auto; width:3px; border:1px solid #A4BED4; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ width:3px;left:auto; top:2px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ height:1px; width:21px; left:auto; bottom:0px; right:1px; border:1px solid #A4BED4; border-width:0px 0px 1px 0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ height:1px; width:21px; left:auto; top:1px; right:0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_right.png); background-position:right; border:1px solid #B6CBDD; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 1px 1px 0px; width:2px !ie; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element{ padding-top:0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line{ height:3px; border:1px solid #A4BED4; background-color:white; border-width:1px 1px 0px 0px; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabcontent_zone{ border-color:#A4BED4; } /* common */ div.dhxcont_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } div.dhxcont_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -moz-user-select: none; } div.dhx_tabbar_zone_dhx_skyblue div.dhxcont_sb_container { position: relative; height: 24px; } div.dhx_tabbar_zone_dhx_skyblue div.dhxcont_sb_container div.dhxcont_statusbar { background-image: url("../../../image/dhtmlx/tabbar/dhx_skyblue/dhxlayout_bg_sb.gif"); position: relative; top: 2px; height: 22px; line-height: 22px; background-repeat: repeat-x; width: auto; padding: 0px 4px; overflow: hidden; white-space: nowrap; border-top: none; border-bottom: none; border-left: #a4bed4 0px solid; border-right: #a4bed4 0px solid; font-family: Tahoma; font-size: 11px; vertical-align: middle; color: #000000; } div.dhx_tabbar_zone_dhx_web div.dhxcont_sb_container { position: relative; height: 41px; } div.dhx_tabbar_zone_dhx_web div.dhxcont_sb_container div.dhxcont_statusbar { position: relative; top: 9px; height: 32px; line-height: 32px; background-color: #ececec; width: auto; padding: 0px 12px; overflow: hidden; white-space: nowrap; font-family: "Trebuchet MS"; font-size: 14px; vertical-align: middle; color: #666666; } /* dhxcont cells in layout */ .dhx_tabbar_zone_dhx_web div.dhxcont_global_content_area { position: absolute; overflow: hidden; /* important for IE */ background-color: #FFFFFF; } .dhx_tabbar_zone_dhx_web div.dhxcont_global_content_area.dhxcont_tabbar_dhx_web { border: white 8px solid; /* change to white */ }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/tabbar/dhtmlxtabbar_self.css
CSS
oos
8,344
.dhx_tabbar_zone_top{ position:relative; } .dhx_tabbar_zone, .dhx_tabbar_zoneB, .dhx_tabbar_zoneV, .dhx_tabbar_zoneVB{ position:relative; width:100%; height:100%; overflow:hidden; z-index:1; } .dhx_tablist_line{ height:1px; width:1px; background-color:#91A7B4; position:absolute; overflow:hidden; } .dhx_tabbar_row, .dhx_tablist_zone, .dhx_tabcontent_zone, .dhx_tab_element{ width:100%; height:100%; overflow:hidden; position:absolute; } .dhx_tablist_zone{ z-index:3; overflow:hidden; } .dhx_tabcontent_zone{ border:1px solid #91A7B4; z-index:2; } .dhx_tabcontent_zone > div{ background-color: #ffffff; } .dhx_tabbar_zone_top .dhx_tab_element{ padding-top:3px; } .dhx_tab_element span{ white-space: nowrap; } .dhx_tab_element{ cursor:pointer; text-align:center; font-family:Tahoma; font-size:8pt; background-color:white; } .dhx_tabbar_zoneV .dhx_tab_element{ padding:0px 0px 0px 3px; text-align:left; } .dhx_tabbar_zoneVB .dhx_tab_element{ padding:0px 3px 0px 0px; text-align:right; } .dhx_tab_element div{ height:40px; width:40px; position:absolute; overflow:hidden; } .dhx_tab_element span{ position:relative; z-index:10; } .dhx_tabbar_zone_dhx_blue .dhx_tablist_line{ background-color:#C2D5DC; } .dhx_tabbar_zone_dhx_blue .dhx_tabcontent_zone{ border-color:#D2E3EA; } .dhx_tabbar_zone_dhx_blue .dhx_tab_element{ color:#006699; } .dhx_tab_element_active{ font-weight:bold; } .dhx_tabbar_zone_dark_blue .dhx_tab_element,.dhx_tabbar_zone_dhx_black .dhx_tab_element{ color:white; } .dhx_tabbar_zone_dhx_black .dhx_tablist_line{ background-color:#626262; } .dhx_tabbar_zone_dhx_black .dhx_tabcontent_zone{ border-color:#333333; } .dhx_tabbar_zone_dhx_web .dhx_tabbar_row{ background-color:#646464; } .dhx_tabbar_zone_dhx_web .dhx_tab_element span{ top:4px; font-weight:normal !important; font-size:12px; } .dhx_tabbar_zone_dhx_web .dhx_tablist_line{ display:none; } .dhx_tabbar_zone_dhx_web .dhx_tabcontent_zone{ /* border-width:0px 1px 1px 1px; border-color:#646464;; */ background-color:#646464!important; border:none!important; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_top.png); border-right:1px solid #B6CBDD; border-left:1px solid #B6CBDD; } .dhx_tabbar_zone_dhx_blue .dhx_tabbar_row{ background-color: #D2E3EA; } .dhx_tabbar_zone_dhx_black .dhx_tabbar_row{ background-color: black; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ position:absolute; left:0px; width:1px; height:3px; background-color:white; z-index:999; border-left:1px solid #A4BED4; border-right:1px solid #A4BED4; overflow:hidden; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ position:absolute; left:2px; width:100px; height:3px; background-color: #D0E5FF; z-index:999; overflow:hidden; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ position:absolute; right:0px; width:1px; height:21px; background-color: white; z-index:999; overflow:hidden; border-right:1px solid #A4BED4; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ position:absolute; left:1px; width:1px; height:21px; background-color: white; z-index:999; overflow:hidden; } .dhx_tabbar_zone_top .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ top:1px; } .dhx_tabbar_zone_top .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ top:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ bottom:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ bottom:1px; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_bottom.png); background-position:bottom; } .dhx_tabbar_zone_bottom .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 1px 1px 0px; } .dhx_tabbar_zone_bottom .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ width:3px;left:auto; top:2px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ width:3px; border:1px solid #A4BED4; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ height:1px; width:21px; right:auto; bottom:0px; left:1px; border:1px solid #A4BED4; border-width:0px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ height:1px; width:21px; right:auto; top:1px; left:1px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_left.png); border:1px solid #B6CBDD; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 0px 1px 1px; width:2px !ie; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element{ padding-top:0px; } .dhx_tabbar_zone_left .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineA{ left:auto; width:3px; border:1px solid #A4BED4; border-width:1px 0px 1px 0px; background-color:#D0E5FF; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineB{ width:3px;left:auto; top:2px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineD{ height:1px; width:21px; left:auto; bottom:0px; right:1px; border:1px solid #A4BED4; border-width:0px 0px 1px 0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_lineC{ height:1px; width:21px; left:auto; top:1px; right:0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tabbar_row{ background-image:url(../../../image/dhtmlx/tabbar/dhx_skyblue/bg_right.png); background-position:right; border:1px solid #B6CBDD; border-width:1px 0px 1px 0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line { border-width:0px 1px 1px 0px; width:2px !ie; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element{ padding-top:0px; } .dhx_tabbar_zone_right .dhx_tabbar_zone_dhx_skyblue .dhx_tab_element span{ padding-top:5px; display:block; } .dhx_tabbar_zone_dhx_skyblue .dhx_tablist_line{ height:3px; border:1px solid #A4BED4; background-color:white; border-width:1px 1px 0px 0px; } .dhx_tabbar_zone_dhx_skyblue .dhx_tabcontent_zone{ border-color:#A4BED4; } /* common */ div.dhxcont_main_content { position: relative; left: 0px; top: 0px; overflow: hidden; } div.dhxcont_content_blocker { position: absolute; left: 0px; top: 0px; width: 101%; height: 101%; filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0; background: #FFFFFF; z-index: 1; -moz-user-select: none; } div.dhx_tabbar_zone_dhx_skyblue div.dhxcont_sb_container { position: relative; height: 24px; } div.dhx_tabbar_zone_dhx_skyblue div.dhxcont_sb_container div.dhxcont_statusbar { background-image: url("../../../image/dhtmlx/tabbar/dhx_skyblue/dhxlayout_bg_sb.gif"); position: relative; top: 2px; height: 22px; line-height: 22px; background-repeat: repeat-x; width: auto; padding: 0px 4px; overflow: hidden; white-space: nowrap; border-top: none; border-bottom: none; border-left: #a4bed4 0px solid; border-right: #a4bed4 0px solid; font-family: Tahoma; font-size: 11px; vertical-align: middle; color: #000000; } div.dhx_tabbar_zone_dhx_web div.dhxcont_sb_container { position: relative; height: 41px; } div.dhx_tabbar_zone_dhx_web div.dhxcont_sb_container div.dhxcont_statusbar { position: relative; top: 9px; height: 32px; line-height: 32px; background-color: #ececec; width: auto; padding: 0px 12px; overflow: hidden; white-space: nowrap; font-family: "Trebuchet MS"; font-size: 14px; vertical-align: middle; color: #666666; } /* dhxcont cells in layout */ .dhx_tabbar_zone_dhx_web div.dhxcont_global_content_area { position: absolute; overflow: hidden; /* important for IE */ background-color: #FFFFFF; } .dhx_tabbar_zone_dhx_web div.dhxcont_global_content_area.dhxcont_tabbar_dhx_web { border: white 8px solid; /* change to white */ } .dhx_tabbar_zone_dhx_terrace .dhx_tab_element{ background-color: transparent !important; } .dhx_tabbar_zone_dhx_terrace .dhx_tabcontent_zone{ border-color: #cecece; } .dhx_tabbar_zone_dhx_terrace .dhx_tablist_line{ background-color: #cecece; } .dhx_tabbar_zone_dhx_terrace .dhx_tabbar_row{ color:#454544; } .dhx_tabbar_zone_dhx_terrace .dhx_tab_element{ text-align:left; } .dhx_tabbar_zone_dhx_terrace .dhx_tab_element span{ padding-left: 15px; line-height:30px; display: block; font-family: Arial; font-size: 13px; }
zzbasepro
trunk/basepro/WebRoot/css/dhtmlx/tabbar/dhtmlxtabbar.css
CSS
oos
9,010
/* 2009-10-17 by Moon)Alex.Wang2 */ @import 'tabstrip.css'; /*divbtndivtab*/ /* */ html, body { scrollbar-arrow-color: #6688AA; scrollbar-3dlight-color: #AACCDD; scrollbar-shadow-color: #99BBCC; scrollbar-face-color: #DDEEFF; scrollbar-darkshadow-color: #DDEEFF; scrollbar-highlight-color: #FFFFFF; scrollbar-track-color: #EEEEEE; } html { height:100%; } body { background-color: #FFFFFF; color: #444444; height:100%; margin:0; padding:0; } a { color: #08d; text-decoration: none; border: 0; background-color: transparent; } a:hover { color: #f80; text-decoration: underline; } a:active, a:focus { color: #f60; text-decoration: none; } a.selected { background: #2266BB; color: #CCFFFF; text-decoration: none; } a[href^="#"]:focus, a[href^="javascript"]:focus { outline:0; -moz-outline-style: none; } div, blockquote, q, iframe, form, ul, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; } ul, dl, li { list-style: none; } a img { border: none 0; vertical-align: middle; } body, td, textarea { word-break: break-all; word-wrap: break-word; line-height: 1.4; } body, input, textarea, select, button { font-size: 12px; font-family: Tahoma, SimSun, sans-serif; } li{ font-family: SimSun, Tahoma, sans-serif;} div, p, table, th, td,font { font-size: 1em; font-family: inherit; line-height: inherit; } em, i, u, q, s, dl, caption, dfn, var, address, cite, s, strike, del, ins { font-style: normal; font-weight: normal; text-decoration: none; } iframe { border-style: solid; border-color: #778899; border-width: 0; } form { display: inline; } h1 { font-size: 24px; font-family:SIMHEI, sans-serif; font-weight: normal; } h2 { font-size: 20px; font-family:SIMHEI, sans-serif; font-weight: normal; } h3 { font-size: 16px; font-family:Arial, sans-serif; font-weight: bold; } h4 { font-size: 14px; font-family:Arial, sans-serif; font-weight: bold; } h5 { font-size: 13px; font-family:SIMSUN, sans-serif; font-weight: bold; } h6 { font-size: 12px; font-family:SIMSUN, sans-serif; font-weight: bold; } q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none; } blockquote, q { quotes: "" ""; } caption { text-align: left; } hr { clear:both; margin:7px 0; +margin: 0; border:0 none; font-size: 1px; line-height:1px; color: #ddd; background-color:#ddd; height: 1px; } label{margin-right:0.5em; white-space:nowrap;} em, i { color:#669900 } pre, code { font-family: monospace; } /*Bugfix: 涓�簺bug鐨勪慨姝�*/ * html textarea { overflow:auto; overflow-x: hidden; }/*浣垮琛屾枃鏈涓嶆樉绀洪粯璁ょ殑绔栧悜婊氬姩鏉�/ * html iframe, * html frame { overflow:auto; }/*浣挎诞鍔ㄧ獥鍙d笉鏄剧ず榛樿鐨勭珫鍚戞粴鍔ㄦ潯*/ /* */ table { border-collapse: collapse; } table.cellspacing { border-collapse: separate; } table.dataTable { border: 1px solid #C6C6C6; border-collapse: collapse; background: url(../image/baseImage1/thbg.gif) #FFFFFF repeat-x left top; table-layout: fixed; } table.dataTable td, table.dataTable th { color: #555555; border-bottom: 1px solid #DDDDDD; border-right: none 0; line-height:16px; +line-height:18px; padding: 3px 7px 3px 6px; +padding: 2px 7px 2px 6px; white-space: nowrap; } table.dataTable td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis; } table.dataTable .wrap{ white-space:normal; } table.dataTable tr.dataTableHead td, table.dataTable tr.dataTableHead td span { color: #445055; font-weight: bold; } table.dataTable tr.dataTableHead td { height: 27px; line-height:27px; padding: 0 7px 0 6px; border-left: #D6D6D6 0px solid; border-bottom: #C6C6C6 0px solid; background: url(../image/baseImage1/th.gif) no-repeat left top; } table.dataTable tr.dataTableHead td.thOver { background: url(../image/baseImage1/thbg_over.gif) no-repeat left top; } table.dataTable tr.dataTableHead:first-child { background-image: none; } /*form*/ input { margin: 0; vertical-align: middle; color: #114477; } input.inputText { color: #336699; background: url(../Framework/Images/text_bg.gif) #F7FAFC repeat-x left top; border:1px solid #6688AA; border-color: #778899 #AABBCC #AABBCC #8899AA; padding:2px; vertical-align:middle; } input[type="text"], input[type="password"] { color: #336699; background: url(../image/baseImage1/text_bg.gif) #F7FAFC repeat-x left top; border: 1px solid #6688AA; border-color: #778899 #AABBCC #AABBCC #8899AA; padding:2px 2px 3px; +padding:2px; vertical-align:middle; -moz-border-radius: 2px; -webkit-border-radius: 2px; } input.inputTextHover { border-color: #00ccff; } input[type="text"]:hover, input[type="password"]:hover { border-color: #00ccff; } input.inputTextFocus { border-color: #FF8800; background:#F7FAFC url(../image/baseImage1/text_bg.gif) repeat-x left top;} input[type="text"]:focus, input[type="password"]:focus { border-color: #FF8800; background:#F7FAFC url(../image/baseImage1/text_bg.gif) repeat-x left top;} input.inputTextDisabled { border-color: #ccc; background-image:none; } input[type="text"][disabled] { border-color: #ccc; background-image:none; } input.inputButton { +overflow:visible; color: #0099DD; background:#fff url(../Framework/Images/buttonBg.gif) repeat-x bottom left; border: 1px solid #667788; border-color: #AABBCC #99AABB #667788 #99AABB; cursor: pointer; height:20px; padding-left: 5px; padding-right: 4px; vertical-align:middle; } button{ background:#fff url(../Framework/Images/buttonBg.gif) repeat-x bottom left; border: 1px solid #667788; border-color: #AABBCC #99AABB #667788 #99AABB; cursor: pointer; height:20px; vertical-align:middle; color:#147; padding-left: 5px; padding-right: 4px; } input[type="submit"], input[type="reset"], input[type="button"] { color: #0099DD; background:#fff url(../Framework/Images/buttonBg.png) repeat-x bottom left; cursor: pointer; padding-left: 8px; padding-right: 7px; height:21px; border: 1px solid #667788; border-color: #AABBCC #99AABB #667788 #99AABB; -moz-border-radius: 1px; vertical-align:middle; } input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover { border-color: #FFAA00; } a.zInputBtn { display:inline-block; +zoom: 1; +display: inline; vertical-align:middle; height:21px; margin-right:2px; background:transparent url(../Framework/Images/zButtonBg.gif) no-repeat 0 0; padding-left:2px; } a.zInputBtn input, a.zInputBtn input.inputButton { background:transparent url(../Framework/Images/zButtonBg.gif) no-repeat right top; position:relative; left:2px; color: #09D; +height: 21px; _height: 21px; line-height: 21px; _line-height:15px; padding: 0 11px 2px 7px; +padding: 0px 14px 0px 10px; vertical-align:middle; cursor:pointer; border:0 none #fff; outline:none; } a.zInputBtn input:hover, a.zInputBtn input:active, a.zInputBtn input:focus { border:0 none #fff; outline:none; -moz-outline:none; } a.zInputBtn input:focus { color:#000; } a.zInputBtn:hover { background-image:url(../Framework/Images/zButtonBg_over.gif); text-decoration:none; } a.zInputBtn:hover input { background-image:url(../Framework/Images/zButtonBg_over.gif); } select { color: #336699; border: 1px solid #667788; vertical-align: middle; margin: 0; } option { color: #336699; } textarea { color: #336699; border: 1px solid #667788; border-color: #667788 #AABBCC #AABBCC #778899; line-height: 19px; padding: 1px 1px 1px 4px; background: #F7FAFC url(../image/baseImage1/textarea_bg.gif); height: 80px; margin: 0; -moz-border-radius: 2px; -webkit-border-radius: 2px; } textarea:hover { border-color: #00AAEE; } textarea:focus { border-color: #FF8800; } textarea[disabled], textarea[readonly] { border-color:#ccc; background-image:none; } input.inputImage { padding: 0; margin: 0; border: none; } input[type="image"] { padding: 0; margin: 0; border: none; } input.inputFile { *height:21px; background:#F7FAFC url(../image/baseImage1/text_bg.gif) repeat-x left top; border: 1px solid #667788; margin: 0; vertical-align:middle; } input[type="file"] { *height:21px; background:#F7FAFC url(../image/baseImage1/text_bg.gif) repeat-x left top; border: 1px solid #667788; margin: 0; vertical-align:middle; } input.inputCheckbox { margin: -2px 0 -1px -2px; } input[type="checkbox"] { margin: 1px 3px 0 0; *margin: -2px 0 -1px -2px; } input.inputRadio { margin: -2px 0 -1px -2px; } input[type="radio"] { margin: 1px 3px 0 0; *margin: -2px 0 -1px -2px; } fieldset { padding:0.5em; border: 1px solid #CCCCCC; -moz-border-radius: 3px; } legend { color: #445566; font-weight: bold; padding: 1px 6px 2px 6px; *margin-left: -5px; -moz-border-radius: 3px; } /*甯哥敤鏍峰紡*/ .fl { float:left; _display:inline; } .fr { float:right; _display:inline; } .clear { clear: both; font-size: 1px; width: 1px; height: 0; visibility: hidden; overflow: hidden; } .clearfix { display: block; *display: inline-block; _height: 1%; } .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearself { overflow:hidden; _height:1%; } .inline-block { display:inline-block;/*ff2- ie7- 涓嶆敮鎸�ie7-瑙﹀彂hasLayout*/ *zoom: 1; *display: inline;/*鎷ユ湁hasLayout鐨刬nline鏁堟灉涓�display:inline-block 鐩镐技*/ vertical-align:middle; overflow:hidden; } .justify { text-align: justify; text-justify: inter-ideograph; } .dialogBody { background-color: transparent; background-color: #FFFFFF; } .dialogButtonBg { background: #F7F7F7; border-bottom: #E4E4E4 1px solid; border-top: #E4E4E4 1px solid; } .iframeBody { background-color: transparent; } .bluebg td, .bluebg div { color: #EEEEEE; } .bluebg a { color: #FFFF99; text-decoration: none; border: 0; } .bluebg a:hover { color: #FFEE66; text-decoration: underline; } .bluebg a:active { color: #CCFFFF; text-decoration: none; background: #3377BB; } .content { font-size: 12px; font-family: Tahoma, SimSun, Verdana, sans-serif; line-height: 1.4; word-break: break-all; text-indent: 0; text-align: justify; text-justify: inter-ideograph; padding: 1em 1em 2em; } .indent { text-indent: 2em; } .grayborder { padding: 6px; border: 1px solid #EBEBEB; margin-top: 10px; clear: both; height: 1%; } .graybg { padding: 6px; background: #F5F5F5; } .error, .notice, .success { padding: .8em; margin-bottom: 1em; border: 2px solid #DDDDDD; } .error { background: #FBE3E4; color: #664444; border-color: #FBC2C4; } .notice { background: #FFF6BF; color: #776644; border-color: #FFD324; } .success { background: #E6EFC2; color: #668844; border-color: #C6D880; } .error a { color: #D12F19; font-weight: bold; } .notice a { color: #9C6500; font-weight: bold; } .success a { color: #529214; font-weight: bold; } /* simulate select css class */ .zSelect { display:inline-block; *zoom: 1; *display: inline; vertical-align:middle; position:relative; height:19px; white-space: nowrap; padding:0 0 0 5px; margin-right:3px; background-repeat:no-repeat; background-position:0 0; -moz-border-radius: 3px; -webkit-border-radius: 3px; } .zSelect input, .zSelect .inputText { height:15px; line-height:15px; _line-height:12px; padding:0; padding-top:2px; vertical-align:top; border:0 none; background:transparent none; cursor:default; } .zSelect .arrowimg { position:relative; left:-17px; margin-right:-18px; cursor:pointer; width:18px; height:20px; vertical-align: top; background-repeat:no-repeat; background-position:0 0; /*-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px;*/ } .zSelect{background-image:url(../Framework/Images/zSelectBg_left.gif); border:1px solid #9fb8c0; border-color:#acc2ca #9fb8c0 #9bb5be;} .zSelect input {color:#468;} .zSelect .arrowimg{background-image:url(../Framework/Images/arrow.gif)} .zSelectEditable{background-image:url(../Framework/Images/zSelectBg_left_editab.gif); border:1px solid #879aa6; border-color:#788994 #879aa6 #9aabb6;} .zSelectEditable input {color:#159;} .zSelectEditable .arrowimg{background-image:url(../Framework/Images/arow_editab.gif)} .zSelectDisabled{background-image:url(../Framework/Images/zSelectBg_left_disab.gif); border:1px solid #879aa6; border-color:#788994 #879aa6 #9aabb6;} .zSelectDisabled input {color:#aaa;} .zSelectDisabled .arrowimg{background-image:url(../Framework/Images/arow_disab.gif)} .zSelectMouseOver{ border:1px solid #00ccff;} .zSelectMouseOver .arrowimg{background-image:url(../Framework/Images/arow_over.gif)} .optgroup { position: absolute; z-index: 666; left: 0; top: 0; color: #336699; } .optgroup div { padding: 2px; overflow: auto; overflow-x: hidden; max-height: 300px; color: #336699; border: 1px solid #667788; background: url(../image/baseImage1/textarea_bg.gif) #F7FAFC repeat 0 2px; width: auto; z-index: 888; /*filter: Alpha(Opacity=90); opacity: 0.9;*/ } .optgroup a { cursor: default; display: block; color: #336699; white-space: nowrap; padding: 1px 3px 2px 6px; _padding: 0 3px 0 6px; height: 18px; min-width: 2em; text-decoration: none; } .optgroup a:hover, .optgroup a.ahover { color: #CCFFFF; text-decoration: none; background: url(../Framework/Images/optionbg_over.gif) #4499EE repeat-x center; } .optgroup a.ahover { background-image: none; } /*nav*/ .navigation li { float: left; text-decoration: none; display: block; height: 23px; cursor: pointer; padding: 7px 0 0 0; font-weight: bold; font-size: 13px; font-family: SimSun; width: 100px; color: #DDFFFF; background: url(../image/baseImage1/nav_btnbg.png) no-repeat; _background: url(../image/baseImage1/nav_btnbg.gif) no-repeat; } .navigation li.liOver { color: #0066AA; background: url(../image/baseImage1/nav_btnbg_over.gif) no-repeat; } /*tree*/ .treeItem { background: url(../image/baseImage/treeItem_bg.gif) #F9FCFF no-repeat left top; border: #E8EBEE 1px solid; border-top-color: #CCD3D6; border-left-color: #DDDFE2; padding: 4px 3px 10px 3px; overflow: auto; /*width:170px;*/ } .treeItem * { vertical-align: middle; white-space: nowrap; } .treeItem a, .treeItem p, .treeItem p.over, .treeItem p.cur { cursor: pointer; color: #445566; background: transparent; display: block; text-decoration: none; border-left: #F5FBFE 1px solid; border-right: #F5FBFE 1px solid; } .treeItem a:hover, .treeItem p.over { color: #222; background:#EAFBC9 url(../image/baseImage/treeItemBg.gif) repeat-x left center; border-left: #C3CED9 1px solid; border-right: #C3CED9 1px solid; } .treeItem p.cur { color: #222; background:#EAFBC9 url(../image/baseImage/treeItemBgCur.gif) repeat-x left center; border-left: #B1CCA2 1px solid; border-right: #B1CCA2 1px solid; } /*鍥剧墖鍒楄〃*/ /* 鏈夐槾褰辫竟妗嗭細 <li><b><i><s><u> <dl><dt><img/></dt><dd></dd></dl> </u></s></i></b></li> 鏃犻槾褰辫竟妗嗭細 <li> <dl><dt><img/></dt><dd></dd></dl> </li> */ .img-wrapper { margin: 2px 0; clear: both; display: table; _display: inline-block; } .img-wrapper li { margin: 5px; _display: inline; border: 1px solid #EEEEEE; border-color: #EEEEEE #E3E3E3 #DDDDDD #E9E9E9; float: left; width: 140px; height: 180px; overflow: hidden; } .img-wrapper b { display: block; background: url(../image/baseImage/shadow_bottom-left.gif) no-repeat left bottom; float: left; } .img-wrapper i { display: block; background: url(../image/baseImage/shadow_bottom-right.gif) no-repeat right bottom; float: left; } .img-wrapper s { display: block; background: url(../image/baseImage/shadow_top-left.gif) no-repeat left top; float: left; } .img-wrapper u { display: block; background: url(../image/baseImage/shadow_top-right.gif) no-repeat right top; float: left; padding: 6px; } .img-wrapper dl { clear: both; margin:3px; } .img-wrapper dt a { display: block; color: #F9F9F9; } .img-wrapper dt a em { display: block; display: table-cell; +display: inline; zoom: 1; vertical-align: middle; text-align: center; width: 132px; height: 130px; _height: 132px; overflow: hidden; line-height: 120px; font-size: 90px; } .img-wrapper dt img { margin: 3px; display: inline; border: #FFFFFF 1px solid; } .img-wrapper dd img { margin: 3px; border: #FFFFFF 1px solid; } .img-wrapper dd { clear: both; margin: 0px 4px 4px; } .img-wrapper dd em input[type="checkbox"] { margin: 0 2px; } .img-wrapper dd em { display: block; clear: both; width: 118px; +width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis; } .img-wrapper dd a { border: #FFFFFF 1px solid; } .img-wrapper a:hover { color: #666666; text-decoration: none; border: none; } .img-wrapper dt a:hover { color: #FFFABF; } .img-wrapper dt a:hover em { background-color: #FFFABF; } .img-wrapper dd a:hover { border: #CCCCCC 1px solid; } /*tag*/ .tagList { margin: 0 5px 5px 0; width: 100%; padding: 0 10px; display: table; +display: inline-block; border-bottom: 1px #BBBBBB solid; } .tagList a { color: #333333; display: block; cursor: pointer; list-style: none; float: left; height: 24px; padding: 3px 10px 0; border: #DDDDDD 1px solid; border-bottom: none; margin: 0 0 0 6px; background: #EEEEEE; -moz-border-radius: 2.4px 2.5px 1.7px 1px; text-decoration: none; } .tagList a:hover { text-decoration: none; background: #FFFFFF; border-color: #BBBBBB; } .tagList a.cur { position: relative; height: 25px; margin-bottom: -1px; background: #FFFFFF; border: #BBBBBB 1px solid; border-bottom: none; } /*pan*/ .blockTable { border: #BBBBBB 0px solid; background: url(../image/baseImage/tableBg_left.gif) no-repeat left top; } .blockTd { background: url(../image/baseImage/tableBg_right.gif) no-repeat right top; } .blockTd img{ vertical-align:middle;} a.tip { cursor:help; } /*tooltip*/ div.tooltip { position: absolute; } div.tooltip table td.corner { width: 12px; height: 12px; font-size: 1px; line-height: 1px; } div.tooltip table.tooltiptable { margin: 3px; } div.tooltip table td.topleft, div.tooltip table td.topcenter, div.tooltip table td.topright, div.tooltip table td.bodyleft, div.tooltip table td.tooltipcontent, div.tooltip table td.bodyright, div.tooltip table td.footerleft, div.tooltip table td.footercenter, div.tooltip table td.footerright { background-image: url(../image/baseImage/tooltipbox.png); _background-image: url(../image/baseImage/tooltipbox.gif); background-repeat: no-repeat; background-position: left top; } div.tooltip table td.topcenter { background-position: top; } div.tooltip table td.topright { background-position: right top; } div.tooltip table td.bodyleft { background-position: left; } div.tooltip table td.tooltipcontent { background-position: center; } div.tooltip table td.bodyright { background-position: right; } div.tooltip table td.footerleft { background-position: left bottom; } div.tooltip table td.footercenter { background-position: bottom; } div.tooltip table td.footerright { background-position: right bottom; } div.tooltip table td.tooltipcontent { padding: 3px 0 1px 1px; font-size: 12px; color: #757168; /* color:#653;*/ font-family: Tahoma, SimSun, Verdana, sans-serif; line-height: 15px; word-break: break-all; text-align: justify; text-justify: inter-ideograph; } div.tooltip div.tooltipfang { font-size: 1px; line-height: 1px; position: absolute; width: 11px; height: 11px; background-image: url(../image/baseImage/Callouts.gif); background-repeat: no-repeat; background-position: 0 0; } div.tooltip .closebtn { position: absolute; z-index: 10; right: 15px; top: 8px; } div.tooltip .closebtn a { display: block; height: 10px; width: 14px; padding: 0 0 0 2px; color: #FF7744; line-height: 6px; +line-height: 7px; font-size: 12px; border: #DDDDDD 1px solid; border-top: none; } div.tooltip .closebtn a:hover { color: #FFFFFF; text-decoration: none; border-color: #FFCC00; background-color: #FFBB66; } div.tooltip.callout1 div.tooltipfang { right: 13px; top: 0px; background-position: 0px -11px; } div.tooltip.callout1 .closebtn { right: 20px; } div.tooltip.callout2 div.tooltipfang { top: 13px; right: 0px; background-position: 0px -33px; } div.tooltip.callout3 div.tooltipfang { top: 42%; right: 0px; background-position: 0px -33px; } div.tooltip.callout4 div.tooltipfang { bottom: 13px; right: 0px; background-position: 0px -33px; } div.tooltip.callout5 div.tooltipfang { right: 13px; bottom: 0px; background-position: 0px -66px; } div.tooltip.callout6 div.tooltipfang { left: 49%; bottom: 0px; background-position: 0px -55px; } div.tooltip.callout7 div.tooltipfang { left: 13px; bottom: 0px; background-position: 0px -77px; } div.tooltip.callout8 div.tooltipfang { left: 0px; bottom: 13px; background-position: 0px -44px; } div.tooltip.callout9 div.tooltipfang { left: 0px; top: 42%; background-position: 0px -44px; } div.tooltip.callout10 div.tooltipfang { left: 0px; top: 13px; background-position: 0px -44px; } div.tooltip.callout11 div.tooltipfang { left: 13px; top: 0px; background-position: 0px -22px; } div.tooltip.callout12 div.tooltipfang { left: 49%; top: 0px; background-position: 0px 0px; } .Accordion { border: solid 1px #D2DBE5; padding-bottom:1px; overflow: hidden; } .AccordionPanel { margin: 0px; padding: 0px; } .AccordionPanelTab { background: #E9ECEF; font-weight:bold; color:#678; border: solid 1px #fff; border-bottom-color:#D2DBE5; margin: 0px; padding:0 10px; height:22px; line-height:22px; cursor: pointer; -moz-user-select: none; -khtml-user-select: none; _position:relative; text-align:left; } .AccordionPanelContent { border: solid 1px #fff; border-top:none 0; overflow: auto; margin: 0px; padding: 0px; } .AccordionPanelOpen .AccordionPanelTab { color:#26a; background:#DDEEFF none; } .AccordionPanelTab:hover { background-color: #DDEEFF; } .AccordionPanelOpen .AccordionPanelTabHover { /*background-color: #D9E9FA;*/ } .MenuList{ background-color:#FAFCFD;background-color:#fff;} .MenuList a{ _position:relative; text-align:left; background: url(../image/baseImage/go.gif) no-repeat right center;padding:0 6px; color:#0088cc; color:#444; border-bottom:1px solid #eee;border-top:1px solid #fff; display:block; height:22px; line-height:22px;} .MenuList a:hover,.MenuList a.selected{ text-decoration:none; color:#333; background:#fffdd7 url(../image/baseImage/going.gif) no-repeat right center;} .MenuList a.selected{ background-color:#E8FFBB;} /* 瀵艰埅鑿滃崟 .scrollable { height:30px;overflow:hidden;position:relative;width:900px; } .navigation { position:absolute;width:auto; } */ /* root element for the scrollable. when scrolling occurs this element stays still. */ .scrollable { /* required settings */ position:relative; overflow:hidden; width: 800px; height:30px; } /* root element for scrollable items. Must be absolutely positioned and it should have a extremely large width to accommodate scrollable items. it's enough that you set width and height for the root element and not for this element. */ .scrollable .items { /* this cannot be too large */ width:20000em; position:absolute; } /* a single item. must be floated in horizontal scrolling. typically, this element is the one that *you* will style the most. */ .items li { float:left; } a.prev,a.next {background:url("../image/baseImage1/hori_large.png") no-repeat scroll 0 0 transparent; cursor:pointer; display:block; float:left; font-size:1px; height:25px; margin:0 3px; width:25px;} a.left { margin-left:0; } a.right {background-position:0 -25px; clear:right; margin-right:0;} /*琛ㄥ崟鍒楄〃*/ .row3Form dl, .row2Form dl{ float:left; display:inline; margin:3px 0 7px;-margin:2px 0 6px;} .row3Form dt, .row2Form dt{width:40%; float:left; display:inline; text-align:right;} .row3Form dd, .row2Form dd{width:59.9%; float:left; display:inline;} .row3Form, .row2Form{ overflow:hidden;} .row3Form dl{width:33.2%;} .row2Form dl{width:49.5%;} /*琛ㄥ崟鍒楄〃缁撴潫*/ /*鍙粴鍔ㄧ殑鏁版嵁琛ㄦ牸*/ .dataTable { margin-bottom:10px;_width:100%;border-bottom:1px solid #c6c6c6;} .dt_head{ background-color:#eee;} .dataTable td { line-height:16px; +line-height:18px; padding: 3px 7px 3px 6px; +padding: 2px 7px 2px 6px;} .dataTable th div { line-height:16px; +line-height:18px; padding: 3px 0px; +padding: 2px 0px; text-align:left;} .dt_head td,.dt_body td {margin: 0px; border: none; text-align: left; border-bottom:#DDDDDD 1px solid; } .dataTable th { background:#fff url(../image/baseImage1/thbg.gif) repeat-x 0px 0px; font-weight: normal; color: #000000; text-decoration: none; border-right: none; margin: 0px; border:none 0; padding: 0 7px 0 6px; height: 27px; line-height:27px;} .dt_nobr table{table-layout: fixed;} .dt_scrollable table{table-layout: fixed;} .dt_nobr td,.dt_nobr th{white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;} .dt_scrollable .dt_head { overflow: hidden; border: #C6C6C6 1px solid; border-bottom:none 0; _width:100%; } .dt_scrollable .dt_body { overflow: auto; border: #C6C6C6 1px solid; border-top: none 0; border-bottom:none 0; _width:100%; } .dt_focus, .dt_focus .dt_head,.dt_focus .dt_body,.dt_focus .dt_foot{ border-color:#f80;} .dt_scrollable td,.dt_scrollable th{overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis;} .dt_body table {border: #C6C6C6 1px solid; border-top: none 0; } .dt_scrollable .dt_body table { border: none 0px; } .dt_th,.dt_td { overflow: hidden; padding-right: 0px; padding-left: 0px; padding-bottom: 4px; margin: 0px; padding-top: 4px; } .dt_loading { background-color: #FFFFFF; } .dt_tr_odd { background-color: #EDF5FF; } .dt_tr_even { background-color: #FFFFFF; } .dt_scrollable .dt_head thead tr th:last-child{ padding-right:24px;} .dt_scrollable .dt_body thead tr,.dt_nobr .dt_body thead tr {} .dt_scrollable .dt_body table,.dt_nobr .dt_body table{ margin-top:-27px; *margin-top:-27px;} .dt_scrollable .dt_body thead,.dt_nobr .dt_body thead{ visibility:hidden;} .dt_head th{ border-right:1px solid #DDD;} .dt_head table { border: #C6C6C6 1px solid; border-bottom:none 0;} .dt_scrollable .dt_head table { border-width: 0px; } .dt_label{ float:left} .dt_sort{ float:right;} /*.dt_scrollable .dt_headTable{*margin-right:20px;}*/ .dt_scrollable .dt_foot{ border:1px solid #c6c6c6; border-bottom:none 0; border-top:none 0;} .dt_scrollable .dt_foot table{ border-top:1px solid #ddd;} .dt_cellEditing{border-bottom:none 0;} .dt_cellEditing td{padding:0 1px 0 0;} td.dt_td_index{ padding: 3px 7px 3px 6px; +padding: 2px 7px 2px 6px; background:#f9f9f9 url(../image/baseImage/specialCol_bg.gif) repeat-y right; text-align:right;} .dt_cellEditing input.dt_cellInput{width:96%; padding-left:0; padding-right:0; border-color:#fff;background-color: transparent; background-image:none;} .dt_cellEditing input.inputTextFocus{background: url(../image/baseImage1/text_bg.gif) #F7FAFC repeat-x left top;} .dt_cellEditing .zSelect{width:96%; background-image:none; padding:0; margin:0;} .dt_cellEditing .zSelect input, .dt_cellEditing .zSelect .inputText{width:100%; border-width:1px; border-style:solid; padding:0;border-color:#fff;line-height:18px;} .dt_cellEditing .zSelect .arrowimg{ background-image:url(../image/baseImage/arrow_inCell.gif)} .div_win{width:100%; height:100%; overflow:hidden;} .div_list_btn{padding: 5px 8px 5px 8px; } .div_list_content{ overFlow-y:auto; padding:0px 8px 0px 8px; width: auto !important; width: 100%; top: auto !important;} .div_info_btn{ padding:8px 0px 0px 0px !important; padding:8px 8px 8px 8px; margin:opx auto; position:absolute; width:auto !important; width:100%; clear:both; height:35px; border-top:1px solid #e0e0e0; bottom:0; left:8px !important; left:0px; right:8px !important; right:0px; text-align:right; } .div_info_content{ overFlow-y:auto; padding:0px 8px 0px 8px; width: auto !important; width: 100%; height: 100%; top: auto !important; }
zzbasepro
trunk/basepro/WebRoot/css/Default.css
CSS
oos
29,237