├── .settings ├── org.eclipse.wst.jsdt.ui.superType.name ├── org.eclipse.wst.jsdt.ui.superType.container ├── com.genuitec.eclipse.core.prefs ├── org.eclipse.core.resources.prefs ├── com.genuitec.runtime.libraries.xml ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.common.component └── .jsdtscope ├── WebRoot ├── META-INF │ └── MANIFEST.MF ├── js │ ├── 说明.txt │ ├── ie6Fixpng.js │ ├── DD_belatedPNG_0.0.8a-min.js │ └── dtree.js ├── images │ ├── bg.jpg │ ├── cd.gif │ ├── 编辑.png │ ├── base.gif │ ├── join.gif │ ├── line.gif │ ├── logo.jpg │ ├── page.gif │ ├── plus.gif │ ├── step.jpg │ ├── empty.gif │ ├── folder.gif │ ├── globe.gif │ ├── icon │ │ ├── e.png │ │ ├── i.png │ │ ├── j.png │ │ ├── n.png │ │ ├── sj.jpg │ │ ├── t.png │ │ ├── car.jpg │ │ ├── down.jpg │ │ ├── down.png │ │ ├── hot.jpg │ │ ├── icon.png │ │ ├── xing.gif │ │ ├── buy_btn.jpg │ │ ├── hg_icon.jpg │ │ ├── plus_bg.jpg │ │ ├── shop_sj.jpg │ │ ├── sj_blue.jpg │ │ ├── sj_grey.gif │ │ ├── aLink_bg.png │ │ ├── des_title.jpg │ │ ├── login_btn.jpg │ │ ├── red_link.jpg │ │ ├── shaoIcon.jpg │ │ ├── shopIcon.jpg │ │ ├── user_icon.jpg │ │ ├── collection.jpg │ │ ├── des_input_bg.jpg │ │ ├── des_title_icon.png │ │ └── icon_cart_prompt.jpg │ ├── minus.gif │ ├── trash.gif │ ├── webLogo.jpg │ ├── imgfolder.gif │ ├── question.gif │ ├── userhead.jpg │ ├── folderopen.gif │ ├── joinbottom.gif │ ├── logo_index.png │ ├── minusbottom.gif │ ├── musicfolder.gif │ ├── nolines_plus.gif │ ├── plusbottom.gif │ ├── shopping_bg.jpg │ └── nolines_minus.gif ├── frame │ ├── dtree.css │ ├── dtree.js │ ├── img │ │ ├── base.gif │ │ ├── cd.gif │ │ ├── join.gif │ │ ├── line.gif │ │ ├── page.gif │ │ ├── plus.gif │ │ ├── empty.gif │ │ ├── folder.gif │ │ ├── globe.gif │ │ ├── minus.gif │ │ ├── trash.gif │ │ ├── imgfolder.gif │ │ ├── question.gif │ │ ├── folderopen.gif │ │ ├── joinbottom.gif │ │ ├── minusbottom.gif │ │ ├── musicfolder.gif │ │ ├── plusbottom.gif │ │ ├── nolines_minus.gif │ │ └── nolines_plus.gif │ ├── top.jsp │ ├── right.jsp │ ├── left.jsp │ ├── addDepartment.jsp │ ├── editDepartment.jsp │ ├── addEmployee.jsp │ ├── editEmployee.jsp │ ├── list.jsp │ ├── listDep.jsp │ └── listEmployee.jsp ├── style │ ├── dtree.css │ ├── img │ │ ├── base.gif │ │ ├── cd.gif │ │ ├── join.gif │ │ ├── line.gif │ │ ├── page.gif │ │ ├── plus.gif │ │ ├── empty.gif │ │ ├── folder.gif │ │ ├── globe.gif │ │ ├── minus.gif │ │ ├── trash.gif │ │ ├── imgfolder.gif │ │ ├── question.gif │ │ ├── folderopen.gif │ │ ├── joinbottom.gif │ │ ├── minusbottom.gif │ │ ├── musicfolder.gif │ │ ├── plusbottom.gif │ │ ├── nolines_minus.gif │ │ └── nolines_plus.gif │ ├── reset.css │ ├── backstage.css │ └── main.css ├── WEB-INF │ ├── classes │ │ ├── jdbc.properties │ │ ├── log4j.properties │ │ ├── com │ │ │ └── panlei │ │ │ │ └── employee │ │ │ │ └── domain │ │ │ │ ├── Department.hbm.xml │ │ │ │ └── Employee.hbm.xml │ │ ├── struts.xml │ │ └── applicationContext.xml │ └── web.xml ├── frame.jsp └── index.jsp ├── README.md ├── src ├── com │ └── panlei │ │ └── employee │ │ ├── dao │ │ ├── DepartmentDao.java │ │ ├── EmployeeDao.java │ │ └── impl │ │ │ ├── EmployeeDaoImpl.java │ │ │ └── DepartmentDaoImpl.java │ │ ├── domain │ │ ├── Department.java │ │ ├── Employee.java │ │ ├── PageBean.java │ │ ├── Department.hbm.xml │ │ └── Employee.hbm.xml │ │ ├── util │ │ ├── HibernateUtil.java │ │ └── FirstFilter.java │ │ ├── action │ │ ├── EmployeeAction.java │ │ └── DepartmentAction.java │ │ └── service │ │ ├── EmployeeService.java │ │ ├── DepartmentService.java │ │ └── impl │ │ ├── EmployeeServiceImpl.java │ │ └── DepartmentServiceImpl.java ├── jdbc.properties ├── log4j.properties ├── struts.xml └── applicationContext.xml ├── .gitignore ├── .myhibernatedata ├── .classpath ├── .project └── LICENSE /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebRoot/js/说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/js/说明.txt -------------------------------------------------------------------------------- /WebRoot/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/bg.jpg -------------------------------------------------------------------------------- /WebRoot/images/cd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/cd.gif -------------------------------------------------------------------------------- /WebRoot/images/编辑.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/编辑.png -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /WebRoot/frame/dtree.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/dtree.css -------------------------------------------------------------------------------- /WebRoot/frame/dtree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/dtree.js -------------------------------------------------------------------------------- /WebRoot/images/base.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/base.gif -------------------------------------------------------------------------------- /WebRoot/images/join.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/join.gif -------------------------------------------------------------------------------- /WebRoot/images/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/line.gif -------------------------------------------------------------------------------- /WebRoot/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/logo.jpg -------------------------------------------------------------------------------- /WebRoot/images/page.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/page.gif -------------------------------------------------------------------------------- /WebRoot/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/plus.gif -------------------------------------------------------------------------------- /WebRoot/images/step.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/step.jpg -------------------------------------------------------------------------------- /WebRoot/style/dtree.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/dtree.css -------------------------------------------------------------------------------- /WebRoot/frame/img/base.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/base.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/cd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/cd.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/join.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/join.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/line.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/page.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/page.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/plus.gif -------------------------------------------------------------------------------- /WebRoot/images/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/empty.gif -------------------------------------------------------------------------------- /WebRoot/images/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/folder.gif -------------------------------------------------------------------------------- /WebRoot/images/globe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/globe.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/e.png -------------------------------------------------------------------------------- /WebRoot/images/icon/i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/i.png -------------------------------------------------------------------------------- /WebRoot/images/icon/j.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/j.png -------------------------------------------------------------------------------- /WebRoot/images/icon/n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/n.png -------------------------------------------------------------------------------- /WebRoot/images/icon/sj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/sj.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/t.png -------------------------------------------------------------------------------- /WebRoot/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/minus.gif -------------------------------------------------------------------------------- /WebRoot/images/trash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/trash.gif -------------------------------------------------------------------------------- /WebRoot/images/webLogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/webLogo.jpg -------------------------------------------------------------------------------- /WebRoot/style/img/base.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/base.gif -------------------------------------------------------------------------------- /WebRoot/style/img/cd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/cd.gif -------------------------------------------------------------------------------- /WebRoot/style/img/join.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/join.gif -------------------------------------------------------------------------------- /WebRoot/style/img/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/line.gif -------------------------------------------------------------------------------- /WebRoot/style/img/page.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/page.gif -------------------------------------------------------------------------------- /WebRoot/style/img/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/plus.gif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ssh_employee 2 | ssh框架实现的员工信息管理系统 3 | 该工程整合了struts2、spring、hibernate三大框架。实现了员工的增删改查以及部门的增删改查。 4 | -------------------------------------------------------------------------------- /WebRoot/frame/img/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/empty.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/folder.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/globe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/globe.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/minus.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/trash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/trash.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/car.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/down.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/down.png -------------------------------------------------------------------------------- /WebRoot/images/icon/hot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/hot.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/icon.png -------------------------------------------------------------------------------- /WebRoot/images/icon/xing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/xing.gif -------------------------------------------------------------------------------- /WebRoot/images/imgfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/imgfolder.gif -------------------------------------------------------------------------------- /WebRoot/images/question.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/question.gif -------------------------------------------------------------------------------- /WebRoot/images/userhead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/userhead.jpg -------------------------------------------------------------------------------- /WebRoot/style/img/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/empty.gif -------------------------------------------------------------------------------- /WebRoot/style/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/folder.gif -------------------------------------------------------------------------------- /WebRoot/style/img/globe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/globe.gif -------------------------------------------------------------------------------- /WebRoot/style/img/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/minus.gif -------------------------------------------------------------------------------- /WebRoot/style/img/trash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/trash.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/imgfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/imgfolder.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/question.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/question.gif -------------------------------------------------------------------------------- /WebRoot/images/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/folderopen.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/buy_btn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/buy_btn.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/hg_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/hg_icon.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/plus_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/plus_bg.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/shop_sj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/shop_sj.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/sj_blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/sj_blue.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/sj_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/sj_grey.gif -------------------------------------------------------------------------------- /WebRoot/images/joinbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/joinbottom.gif -------------------------------------------------------------------------------- /WebRoot/images/logo_index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/logo_index.png -------------------------------------------------------------------------------- /WebRoot/images/minusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/minusbottom.gif -------------------------------------------------------------------------------- /WebRoot/images/musicfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/musicfolder.gif -------------------------------------------------------------------------------- /WebRoot/images/nolines_plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/nolines_plus.gif -------------------------------------------------------------------------------- /WebRoot/images/plusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/plusbottom.gif -------------------------------------------------------------------------------- /WebRoot/images/shopping_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/shopping_bg.jpg -------------------------------------------------------------------------------- /WebRoot/style/img/imgfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/imgfolder.gif -------------------------------------------------------------------------------- /WebRoot/style/img/question.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/question.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/folderopen.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/joinbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/joinbottom.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/minusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/minusbottom.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/musicfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/musicfolder.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/plusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/plusbottom.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/aLink_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/aLink_bg.png -------------------------------------------------------------------------------- /WebRoot/images/icon/des_title.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/des_title.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/login_btn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/login_btn.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/red_link.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/red_link.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/shaoIcon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/shaoIcon.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/shopIcon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/shopIcon.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/user_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/user_icon.jpg -------------------------------------------------------------------------------- /WebRoot/images/nolines_minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/nolines_minus.gif -------------------------------------------------------------------------------- /WebRoot/style/img/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/folderopen.gif -------------------------------------------------------------------------------- /WebRoot/style/img/joinbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/joinbottom.gif -------------------------------------------------------------------------------- /WebRoot/style/img/minusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/minusbottom.gif -------------------------------------------------------------------------------- /WebRoot/style/img/musicfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/musicfolder.gif -------------------------------------------------------------------------------- /WebRoot/style/img/plusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/plusbottom.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/nolines_minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/nolines_minus.gif -------------------------------------------------------------------------------- /WebRoot/frame/img/nolines_plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/frame/img/nolines_plus.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/collection.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/collection.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon/des_input_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/des_input_bg.jpg -------------------------------------------------------------------------------- /WebRoot/style/img/nolines_minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/nolines_minus.gif -------------------------------------------------------------------------------- /WebRoot/style/img/nolines_plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/style/img/nolines_plus.gif -------------------------------------------------------------------------------- /WebRoot/images/icon/des_title_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/des_title_icon.png -------------------------------------------------------------------------------- /WebRoot/images/icon/icon_cart_prompt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/WebRoot/images/icon/icon_cart_prompt.jpg -------------------------------------------------------------------------------- /src/com/panlei/employee/dao/DepartmentDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/dao/DepartmentDao.java -------------------------------------------------------------------------------- /src/com/panlei/employee/dao/EmployeeDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/dao/EmployeeDao.java -------------------------------------------------------------------------------- /src/com/panlei/employee/domain/Department.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/domain/Department.java -------------------------------------------------------------------------------- /src/com/panlei/employee/domain/Employee.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/domain/Employee.java -------------------------------------------------------------------------------- /src/com/panlei/employee/domain/PageBean.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/domain/PageBean.java -------------------------------------------------------------------------------- /src/com/panlei/employee/util/HibernateUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/util/HibernateUtil.java -------------------------------------------------------------------------------- /src/com/panlei/employee/action/EmployeeAction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/action/EmployeeAction.java -------------------------------------------------------------------------------- /WebRoot/js/ie6Fixpng.js: -------------------------------------------------------------------------------- 1 | // JavaScript Document 2 | DD_belatedPNG.fix('div,ul,ol,li,dt,dd,dl,span,img,a,em,strong,h1,h2,h3,h4,h5,h6,p'); 3 | //尽量少偷懒,不要用*,性能是很低的 4 | -------------------------------------------------------------------------------- /src/com/panlei/employee/action/DepartmentAction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/action/DepartmentAction.java -------------------------------------------------------------------------------- /src/com/panlei/employee/dao/impl/EmployeeDaoImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/dao/impl/EmployeeDaoImpl.java -------------------------------------------------------------------------------- /src/com/panlei/employee/service/EmployeeService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/service/EmployeeService.java -------------------------------------------------------------------------------- /src/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClass=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/ssh_employee 3 | jdbc.username=root 4 | jdbc.password=panlei -------------------------------------------------------------------------------- /src/com/panlei/employee/dao/impl/DepartmentDaoImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/dao/impl/DepartmentDaoImpl.java -------------------------------------------------------------------------------- /src/com/panlei/employee/service/DepartmentService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/service/DepartmentService.java -------------------------------------------------------------------------------- /.settings/com.genuitec.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | validator.Checked=WebRoot/frame.jsp,WebRoot/frame,WebRoot/index.jsp 3 | validator.Unchecked= 4 | -------------------------------------------------------------------------------- /src/com/panlei/employee/service/impl/EmployeeServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/service/impl/EmployeeServiceImpl.java -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClass=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/ssh_employee 3 | jdbc.username=root 4 | jdbc.password=panlei -------------------------------------------------------------------------------- /src/com/panlei/employee/service/impl/DepartmentServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pan-lei/ssh_employee/HEAD/src/com/panlei/employee/service/impl/DepartmentServiceImpl.java -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//WebRoot/frame/addEmployee.jsp=UTF-8 3 | encoding//WebRoot/frame/list.jsp=UTF-8 4 | encoding//WebRoot/frame/listDep.jsp=UTF-8 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 12 | hs_err_pid* 13 | -------------------------------------------------------------------------------- /src/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=Console 2 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n 5 | log4j.logger.org.apache=INFO -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=Console 2 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n 5 | log4j.logger.org.apache=INFO -------------------------------------------------------------------------------- /.settings/com.genuitec.runtime.libraries.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.6 8 | -------------------------------------------------------------------------------- /.myhibernatedata: -------------------------------------------------------------------------------- 1 | #MyEclipse Hibernate Properties 2 | #Mon Nov 14 18:39:55 CST 2016 3 | genVersionTag=false 4 | sessionFactoryName=com.panlei.employee.domain.HibernateSessionFactory 5 | genAnnotations=false 6 | configFile=/ssh_employee/src/hibernate.cfg.xml 7 | reStrategyClass= 8 | sessionFactoryId= 9 | profile= 10 | detectM2M=false 11 | genBasicCompId=false 12 | keyGenerator= 13 | createConfigFile=true 14 | basePersistenceClass= 15 | detectO2O=false 16 | useJavaTypes=true 17 | reSettingsFile= 18 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WebRoot/frame.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <% 3 | String path = request.getContextPath(); 4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 5 | %> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebRoot/frame/top.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s"%> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 |
17 | 欢迎您: 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /WebRoot/frame/right.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <% 3 | String path = request.getContextPath(); 4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 5 | %> 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 |
17 | 18 |
21 |
22 | 23 | -------------------------------------------------------------------------------- /WebRoot/style/reset.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;} 4 | body{font-size:12px;} 5 | img{border:none;} 6 | li{list-style:none;} 7 | input,select,textarea{outline:none;border:none; background:none;} 8 | textarea{resize:none;} 9 | a{text-decoration:none; color:#656565;} 10 | 11 | /*清浮动*/ 12 | .clearfix:after{content:"";display:block;clear:both;} 13 | .clearfix{zoom:1;} 14 | .fl{float:left;} 15 | .fr{float:right;} 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/com/panlei/employee/domain/Department.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/com/panlei/employee/util/FirstFilter.java: -------------------------------------------------------------------------------- 1 | package com.panlei.employee.util; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.Filter; 6 | import javax.servlet.FilterChain; 7 | import javax.servlet.FilterConfig; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.ServletRequest; 10 | import javax.servlet.ServletResponse; 11 | 12 | public class FirstFilter implements Filter { 13 | 14 | @Override 15 | public void destroy() { 16 | // TODO Auto-generated method stub 17 | System.out.println("destroy"); 18 | } 19 | 20 | @Override 21 | public void doFilter(ServletRequest arg0, ServletResponse arg1, 22 | FilterChain arg2) throws IOException, ServletException { 23 | // TODO Auto-generated method stub 24 | System.out.println("start......doFilter"); 25 | arg2.doFilter(arg0, arg1); 26 | System.out.println("end......doFilter"); 27 | } 28 | 29 | @Override 30 | public void init(FilterConfig arg0) throws ServletException { 31 | // TODO Auto-generated method stub 32 | System.out.println("init"); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/com/panlei/employee/domain/Department.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /WebRoot/frame/left.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <% 3 | String path = request.getContextPath(); 4 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 5 | %> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 26 |
27 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/com/panlei/employee/domain/Employee.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/com/panlei/employee/domain/Employee.hbm.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /WebRoot/frame/addDepartment.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 |
部门添加
16 | 保存    17 | 退回 18 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 |
部门名称:
部门介绍:
37 | 38 |
41 |
42 | 43 | -------------------------------------------------------------------------------- /WebRoot/frame/editDepartment.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 |
部门编辑
16 | 保存    17 | 退回 18 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 |
部门名称:
部门介绍:
39 | 40 |
43 |
44 | 45 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ssh_employee 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator 30 | 31 | 32 | 33 | 34 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder 35 | 36 | 37 | 38 | 39 | 40 | org.eclipse.jem.workbench.JavaEMFNature 41 | org.eclipse.wst.common.modulecore.ModuleCoreNature 42 | org.eclipse.wst.common.project.facet.core.nature 43 | org.eclipse.jdt.core.javanature 44 | org.eclipse.wst.jsdt.core.jsNature 45 | 46 | 47 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ssh 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | 13 | struts2 14 | org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter 15 | 16 | 17 | struts2 18 | /* 19 | 20 | 21 | 22 | 23 | org.springframework.web.context.ContextLoaderListener 24 | 25 | 26 | contextConfigLocation 27 | classpath:applicationContext.xml 28 | 29 | 30 | 31 | OpenSessionInviewFilter 32 | org.springframework.orm.hibernate4.support.OpenSessionInViewFilter 33 | 34 | 35 | OpenSessionInviewFilter 36 | *.action 37 | 38 | -------------------------------------------------------------------------------- /WebRoot/frame/addEmployee.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 |
员工添加
16 | 保存    17 | 退回 18 |
21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
姓名:性别:
用户名:密码:
出生日期:入职时间:
所属部门:编号:
53 |
54 | 55 | 56 | -------------------------------------------------------------------------------- /WebRoot/frame/editEmployee.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 |
员工编辑
16 | 保存    17 | 退回 18 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 |
姓名:
性别:
用户名:密码:
出生日期:"/>入职时间:"/>
所属部门:编号:
57 |
58 | 59 | -------------------------------------------------------------------------------- /WebRoot/frame/list.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
部门管理
27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
部门名称编辑
添加
46 |
47 | 48 | 49 | 50 | 51 | 65 | 66 |
52 | /   53 | 总记录数:  每页显示:   54 | 55 | 56 | [首页]   57 | ">[上一页]   58 | 59 | 60 | ">[下一页]   61 | ">[尾页]   62 | 63 | 64 |
67 | 68 | -------------------------------------------------------------------------------- /src/struts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 17 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | /index.jsp 30 | /frame.jsp 31 | /frame/listEmployee.jsp 32 | /frame/addEmployee.jsp 33 | employee_findAll.action 34 | /frame/editEmployee.jsp 35 | employee_findAll.action 36 | employee_findAll.action 37 | 38 | 39 | /frame/listDep.jsp 40 | /frame/addDepartment.jsp 41 | 42 | department_findAll.action 43 | /frame/editDepartment.jsp 44 | department_findAll.action 45 | department_findAll.action 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/struts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 17 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | /index.jsp 30 | /frame.jsp 31 | /frame/listEmployee.jsp 32 | /frame/addEmployee.jsp 33 | employee_findAll.action 34 | /frame/editEmployee.jsp 35 | employee_findAll.action 36 | employee_findAll.action 37 | 38 | 39 | /frame/listDep.jsp 40 | /frame/addDepartment.jsp 41 | 42 | department_findAll.action 43 | /frame/editDepartment.jsp 44 | department_findAll.action 45 | department_findAll.action 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /WebRoot/frame/listDep.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
部门管理
添加
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
部门名称编辑删除
">">
49 |
50 | 51 | 52 | 53 | 54 | 68 | 69 |
55 | /   56 | 总记录数:  每页显示:   57 | 58 | 59 | [首页]   60 | ">[上一页]   61 | 62 | 63 | ">[下一页]   64 | ">[尾页]   65 | 66 | 67 |
70 | 71 | -------------------------------------------------------------------------------- /WebRoot/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s"%> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 10 | 11 | 12 | 登陆 13 | 14 | 15 | 19 | 20 | 21 | 22 |
23 | 31 |
32 | 33 |
34 | 61 | 62 |
63 |
64 | 65 |
66 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /WebRoot/frame/listEmployee.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%> 2 | <%@ taglib uri="/struts-tags" prefix="s" %> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 6 | %> 7 | 8 | 9 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
员工管理
添加
30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
编号员工姓名性别出生日期入职时间所属部门编辑删除
">">
61 |
62 | 63 | 64 | 65 | 79 | 80 |
66 | /   67 | 总记录数:  每页显示:   68 | 69 | 70 | [首页]   71 | ">[上一页]   72 | 73 | 74 | ">[下一页]   75 | ">[尾页]   76 | 77 | 78 |
81 | 82 | -------------------------------------------------------------------------------- /WebRoot/style/backstage.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | *{margin: 0;padding: 0;} 3 | li{list-style: none;} 4 | input,select,textarea{outline: none;border: none; background: none;} 5 | textarea{resize: none;} 6 | a{text-decoration: none;} 7 | a:hover{text-decoration: underline;} 8 | .clearfix:after, 9 | .clearfix:before{content: ""; display: table;} 10 | .clearfix:after{ clear: both;} 11 | .clearfix{zoom:1;} 12 | .fl{float: left;} 13 | .fr{float: right;} 14 | 15 | 16 | /*头部*/ 17 | .head{height: 60px; background-color: #2a2c2e; padding: 0 10px;} 18 | .logo{width: 100px; height: 100%; background: url(../img/logo_index.png) left top no-repeat;} 19 | .head_text{height: 100%; font:22px/60px "微软雅黑"; color: #FFF; } 20 | 21 | /*用户位置*/ 22 | .operation_user{font:12px/2.5 "微软雅黑";padding: 0 10px; background-color: rgb(225, 224, 224);} 23 | .link span{font-family: "宋体"; font-weight: 500; padding: 0 10px;} 24 | .link a{color: #000;} 25 | 26 | .content{overflow: hidden;} 27 | .main{width: 100%;float: left; margin-bottom: -999999px;padding-bottom: 999999px; overflow: hidden;} 28 | .menu{width: 200px; float: left; margin-left: -100%; height: 100%; position: relative; z-index: 2; background-color: #505254; border-right: solid 1px rgb(11, 82, 215);margin-bottom: -999999px;padding-bottom: 999999px; overflow: hidden;} 29 | .cont{position: relative;z-index: 3; zoom:1;} 30 | .main .cont{margin-left: 201px;} 31 | .title{font:16px/2.5 "微软雅黑";padding: 0 10px; background-color: #ccc;} 32 | /*左侧导航*/ 33 | .mList{color:#FFF; font-size: 14px; font-family: "微软雅黑"; padding-top: 1em; zoom:1;} 34 | .mList h3{font:14px/2 ""; padding-left: 1em;} 35 | .mList h3 span{display: inline-block; width: 10px; margin-right: 8px;} 36 | .mList dl{text-indent: 3em;} 37 | .mList a{color: #FFF;font:12px/2 "微软雅黑"; display: block;} 38 | .icon{padding-left: 18px; background-position: left center; background-repeat: no-repeat;} 39 | .icon_i{background-image: url(../img/icon/i.png);} 40 | .icon_j{background-image: url(../img/icon/j.png);} 41 | .icon_t{background-image: url(../img/icon/t.png);} 42 | .icon_n{background-image: url(../img/icon/n.png);} 43 | .icon_e{background-image: url(../img/icon/e.png);} 44 | /*右侧详细列表*/ 45 | .details_operation{margin-bottom: 20px;} 46 | .details{padding: 15px; font-family: "微软雅黑";} 47 | .bui_select{background-color: #E8E8E8; height: 30px; float: left;} 48 | .add{width: 92px; height: 30px; font-family: "微软雅黑"; font-size: 14px;} 49 | .select{font-family: "微软雅黑"; font-size: 14px; height: 22px; margin: 4px 8px;} 50 | .text {float: left; margin-left: 30px; display: inline;} 51 | .text span{line-height: 30px; font-size: 14px; float:left; margin-right: 10px;} 52 | .search{width: 140px; height: 30px; line-height: 30px\9; background-color: #E8E8E8; padding: 0 8px;} 53 | .ml30{margin-left: 30px; display: inline;} 54 | /*表格*/ 55 | .table{border-collapse: collapse; width: 100%; font-size: 14px;} 56 | .table th{background-color: #E8E8E8;} 57 | .table th, 58 | .table td{border: solid 1px #ccc; padding: 8px;} 59 | .label,.check{vertical-align: middle;} 60 | .check{margin-right: 4px;} 61 | .btn{padding: 4px 16px; background-color: #E8E8E8; margin: 0 10px;font-family: "微软雅黑"; font-size: 14px; } 62 | .btn:hover{background-color: #ccc;} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | org.hibernate.dialect.MySQLDialect 29 | true 30 | true 31 | update 32 | 33 | 34 | 35 | 36 | 37 | com/panlei/employee/domain/Department.hbm.xml 38 | com/panlei/employee/domain/Employee.hbm.xml 39 | 40 | 41 | 42 | 43 | 44 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | org.hibernate.dialect.MySQLDialect 29 | true 30 | true 31 | update 32 | 33 | 34 | 35 | 36 | 37 | com/panlei/employee/domain/Department.hbm.xml 38 | com/panlei/employee/domain/Employee.hbm.xml 39 | 40 | 41 | 42 | 43 | 44 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /WebRoot/js/DD_belatedPNG_0.0.8a-min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML . 3 | * Author: Drew Diller 4 | * Email: drew.diller@gmail.com 5 | * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ 6 | * Version: 0.0.8a 7 | * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license 8 | * 9 | * Example usage: 10 | * DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector 11 | * DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement 12 | **/ 13 | var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;bn.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet(); -------------------------------------------------------------------------------- /WebRoot/js/dtree.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------|| dTree 2.05 | www.destroydrop.com/javascript/tree/ ||---------------------------------------------------|| Copyright (c) 2002-2003 Geir Landr? || || This script can be used freely as long as all || copyright messages are intact. || || Updated: 17.04.2003 ||--------------------------------------------------*/// Node objectfunction Node(id, pid, name, url, title, target, icon, iconOpen, open) { this.id = id; this.pid = pid; this.name = name; this.url = url; this.title = title; this.target = target; this.icon = icon; this.iconOpen = iconOpen; this._io = open || false; this._is = false; this._ls = false; this._hc = false; this._ai = 0; this._p;};// Tree objectfunction dTree(objName) { this.config = { target : null, folderLinks : true, useSelection : true, useCookies : true, useLines : true, useIcons : true, useStatusText : false, closeSameLevel : false, inOrder : false } this.icon = { root : '../images/base.gif', folder : '../images/folder.gif', folderOpen : '../images/folderopen.gif', node : '../images/page.gif', empty : '../images/empty.gif', line : '../images/line.gif', join : '../images/join.gif', joinBottom : '../images/joinbottom.gif', plus : '../images/plus.gif', plusBottom : '../images/plusbottom.gif', minus : '../images/minus.gif', minusBottom : '../images/minusbottom.gif', nlPlus : '../images/nolines_plus.gif', nlMinus : '../images/nolines_minus.gif' }; this.obj = objName; this.aNodes = []; this.aIndent = []; this.root = new Node(-1); this.selectedNode = null; this.selectedFound = false; this.completed = false;};// Adds a new node to the node arraydTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open);};// Open/close all nodesdTree.prototype.openAll = function() { this.oAll(true);};dTree.prototype.closeAll = function() { this.oAll(false);};// Outputs the tree to the pagedTree.prototype.toString = function() { var str = '
\n'; if (document.getElementById) { if (this.config.useCookies) this.selectedNode = this.getSelected(); str += this.addNode(this.root); } else str += 'Browser not supported.'; str += '
'; if (!this.selectedFound) this.selectedNode = null; this.completed = true; return str;};// Creates the tree structuredTree.prototype.addNode = function(pNode) { var str = ''; var n=0; if (this.config.inOrder) n = pNode._ai; for (n; n'; } if (node.url) { str += ''; str += node.name; if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += ''; str += ''; if (node._hc) { str += '
'; str += this.addNode(node); str += '
'; } this.aIndent.pop(); return str;};// Adds the empty and line iconsdTree.prototype.indent = function(node, nodeId) { var str = ''; if (this.root.id != node.pid) { for (var n=0; n'; (node._ls) ? this.aIndent.push(0) : this.aIndent.push(1); if (node._hc) { str += ''; } else str += ''; } return str;};// Checks if a node has any children and if it is the last siblingdTree.prototype.setCS = function(node) { var lastId; for (var n=0; n