├── web ├── test ├── layui │ ├── test │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ └── 65.gif │ ├── css │ │ └── modules │ │ │ ├── layer │ │ │ └── default │ │ │ │ ├── icon.png │ │ │ │ ├── icon-ext.png │ │ │ │ ├── loading-0.gif │ │ │ │ ├── loading-1.gif │ │ │ │ └── loading-2.gif │ │ │ └── code.css │ └── lay │ │ └── modules │ │ ├── code.js │ │ ├── laytpl.js │ │ ├── flow.js │ │ ├── rate.js │ │ ├── util.js │ │ ├── carousel.js │ │ ├── laypage.js │ │ └── transfer.js ├── bootstrap-3.3.7-dist │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ └── npm.js ├── images │ ├── bg3.png │ ├── bg_2.jpg │ ├── geometry2.png │ ├── bg2_manager.png │ └── background_manager.png ├── img │ ├── pattern.png │ ├── letter_bg_01.jpg │ ├── letter_bg_02.jpg │ └── letter_bg_03.jpg ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── Flat Login Form_files │ ├── hat.png │ ├── katoon.png │ ├── index.js │ ├── index.js.下载 │ ├── reset.min.css │ ├── hat.svg │ ├── style.css │ └── css(1) ├── WEB-INF │ └── classes │ │ └── com │ │ └── javaweb │ │ └── demo │ │ ├── dao │ │ ├── AdminDao.class │ │ ├── BookDao.class │ │ ├── CourseDao.class │ │ ├── MonitorDao.class │ │ ├── PurchaseDao.class │ │ ├── ReserveDao.class │ │ ├── TeacherDao.class │ │ └── impl │ │ │ ├── BookDaoimpl.class │ │ │ ├── AdiminDaoImpl.class │ │ │ ├── CourseDaoImpl.class │ │ │ ├── MonitorDaoImpl.class │ │ │ ├── PurchaseDaoImpl.class │ │ │ ├── ReserveDaoImpl.class │ │ │ └── TeacherDaoImpl.class │ │ ├── entity │ │ ├── Admin.class │ │ ├── Book.class │ │ ├── Course.class │ │ ├── Monitor.class │ │ ├── Purchase.class │ │ ├── Reserve.class │ │ └── Teacher.class │ │ ├── servlet │ │ ├── AdminServlet.class │ │ ├── BookServlet.class │ │ ├── LoginServlet.class │ │ ├── CourseServlet.class │ │ ├── MonitorServlet.class │ │ ├── ModifyInfoServlet.class │ │ └── ModifyPwdServlet.class │ │ └── filter │ │ └── EncodingFilter.class ├── test.html ├── ImportMsg.jsp ├── login.jsp ├── Flat Login Form.html ├── sign-up.html ├── sign-in.html ├── sign-in.jsp ├── js1 │ ├── app.js │ └── modernizr.custom.86080.js ├── monitor_index.jsp ├── login.html ├── css │ ├── style.css │ └── templatemo-style.css ├── teacher_course.jsp ├── monitor_modify_info.jsp ├── teacher_modify_pwd.jsp ├── monitor_modify_pwd.jsp ├── manager_index.jsp ├── manager_initial.jsp └── css1 │ ├── templatemo-style.css │ └── demo.css ├── images ├── test ├── ER.png ├── image1.png ├── image2.png ├── image3.png └── functions.png ├── src └── com │ └── javaweb │ └── demo │ ├── test │ ├── dao │ ├── CourseDao.java │ ├── AdminDao.java │ ├── PurchaseDao.java │ ├── ReserveDao.java │ ├── BookDao.java │ ├── MonitorDao.java │ ├── TeacherDao.java │ └── impl │ │ ├── PurchaseDaoImpl.java │ │ ├── CourseDaoImpl.java │ │ └── AdiminDaoImpl.java │ ├── servlet │ ├── AdminServlet.java │ ├── CourseServlet.java │ ├── PurchaseServlet.java │ ├── upLoadServlet.java │ ├── ModifyInfoServlet.java │ ├── TeacherServlet.java │ ├── ImportMsg.java │ └── LoginServlet.java │ ├── filter │ └── EncodingFilter.java │ ├── entity │ ├── Course.java │ ├── Purchase.java │ ├── Admin.java │ ├── Monitor.java │ ├── Book.java │ ├── Reserve.java │ └── Teacher.java │ └── util │ └── DBconn.java ├── README.md └── JavaWeb.iml /web/test: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /images/test: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /web/layui/test: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/test: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /web/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/ER.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/images/ER.png -------------------------------------------------------------------------------- /images/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/images/image1.png -------------------------------------------------------------------------------- /images/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/images/image2.png -------------------------------------------------------------------------------- /images/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/images/image3.png -------------------------------------------------------------------------------- /web/images/bg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/images/bg3.png -------------------------------------------------------------------------------- /images/functions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/images/functions.png -------------------------------------------------------------------------------- /web/images/bg_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/images/bg_2.jpg -------------------------------------------------------------------------------- /web/img/pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/img/pattern.png -------------------------------------------------------------------------------- /web/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /web/images/geometry2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/images/geometry2.png -------------------------------------------------------------------------------- /web/img/letter_bg_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/img/letter_bg_01.jpg -------------------------------------------------------------------------------- /web/img/letter_bg_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/img/letter_bg_02.jpg -------------------------------------------------------------------------------- /web/img/letter_bg_03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/img/letter_bg_03.jpg -------------------------------------------------------------------------------- /web/images/bg2_manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/images/bg2_manager.png -------------------------------------------------------------------------------- /web/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/font/iconfont.eot -------------------------------------------------------------------------------- /web/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /web/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/font/iconfont.woff -------------------------------------------------------------------------------- /web/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/0.gif -------------------------------------------------------------------------------- /web/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/1.gif -------------------------------------------------------------------------------- /web/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/10.gif -------------------------------------------------------------------------------- /web/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/11.gif -------------------------------------------------------------------------------- /web/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/12.gif -------------------------------------------------------------------------------- /web/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/13.gif -------------------------------------------------------------------------------- /web/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/14.gif -------------------------------------------------------------------------------- /web/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/15.gif -------------------------------------------------------------------------------- /web/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/16.gif -------------------------------------------------------------------------------- /web/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/17.gif -------------------------------------------------------------------------------- /web/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/18.gif -------------------------------------------------------------------------------- /web/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/19.gif -------------------------------------------------------------------------------- /web/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/2.gif -------------------------------------------------------------------------------- /web/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/20.gif -------------------------------------------------------------------------------- /web/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/21.gif -------------------------------------------------------------------------------- /web/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/22.gif -------------------------------------------------------------------------------- /web/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/23.gif -------------------------------------------------------------------------------- /web/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/24.gif -------------------------------------------------------------------------------- /web/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/25.gif -------------------------------------------------------------------------------- /web/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/26.gif -------------------------------------------------------------------------------- /web/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/27.gif -------------------------------------------------------------------------------- /web/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/28.gif -------------------------------------------------------------------------------- /web/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/29.gif -------------------------------------------------------------------------------- /web/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/3.gif -------------------------------------------------------------------------------- /web/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/30.gif -------------------------------------------------------------------------------- /web/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/31.gif -------------------------------------------------------------------------------- /web/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/32.gif -------------------------------------------------------------------------------- /web/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/33.gif -------------------------------------------------------------------------------- /web/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/34.gif -------------------------------------------------------------------------------- /web/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/35.gif -------------------------------------------------------------------------------- /web/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/36.gif -------------------------------------------------------------------------------- /web/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/37.gif -------------------------------------------------------------------------------- /web/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/38.gif -------------------------------------------------------------------------------- /web/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/39.gif -------------------------------------------------------------------------------- /web/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/4.gif -------------------------------------------------------------------------------- /web/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/40.gif -------------------------------------------------------------------------------- /web/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/41.gif -------------------------------------------------------------------------------- /web/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/42.gif -------------------------------------------------------------------------------- /web/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/43.gif -------------------------------------------------------------------------------- /web/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/44.gif -------------------------------------------------------------------------------- /web/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/45.gif -------------------------------------------------------------------------------- /web/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/46.gif -------------------------------------------------------------------------------- /web/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/47.gif -------------------------------------------------------------------------------- /web/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/48.gif -------------------------------------------------------------------------------- /web/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/49.gif -------------------------------------------------------------------------------- /web/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/5.gif -------------------------------------------------------------------------------- /web/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/50.gif -------------------------------------------------------------------------------- /web/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/51.gif -------------------------------------------------------------------------------- /web/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/52.gif -------------------------------------------------------------------------------- /web/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/53.gif -------------------------------------------------------------------------------- /web/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/54.gif -------------------------------------------------------------------------------- /web/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/55.gif -------------------------------------------------------------------------------- /web/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/56.gif -------------------------------------------------------------------------------- /web/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/57.gif -------------------------------------------------------------------------------- /web/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/58.gif -------------------------------------------------------------------------------- /web/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/59.gif -------------------------------------------------------------------------------- /web/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/6.gif -------------------------------------------------------------------------------- /web/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/60.gif -------------------------------------------------------------------------------- /web/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/61.gif -------------------------------------------------------------------------------- /web/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/62.gif -------------------------------------------------------------------------------- /web/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/63.gif -------------------------------------------------------------------------------- /web/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/64.gif -------------------------------------------------------------------------------- /web/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/images/face/65.gif -------------------------------------------------------------------------------- /web/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /web/Flat Login Form_files/hat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/Flat Login Form_files/hat.png -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /web/images/background_manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/images/background_manager.png -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /web/Flat Login Form_files/katoon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/Flat Login Form_files/katoon.png -------------------------------------------------------------------------------- /web/Flat Login Form_files/index.js: -------------------------------------------------------------------------------- 1 | $('.message a').click(function(){ 2 | $('form').animate({height: "toggle", opacity: "toggle"}, "slow"); 3 | }); -------------------------------------------------------------------------------- /web/Flat Login Form_files/index.js.下载: -------------------------------------------------------------------------------- 1 | $('.message a').click(function(){ 2 | $('form').animate({height: "toggle", opacity: "toggle"}, "slow"); 3 | }); -------------------------------------------------------------------------------- /web/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /web/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /web/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /web/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /web/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/AdminDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/AdminDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/BookDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/BookDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Admin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Admin.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Book.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Book.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/CourseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/CourseDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/MonitorDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/MonitorDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/PurchaseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/PurchaseDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/ReserveDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/ReserveDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/TeacherDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/TeacherDao.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Course.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Course.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Monitor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Monitor.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Purchase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Purchase.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Reserve.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Reserve.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/entity/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/entity/Teacher.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/BookDaoimpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/BookDaoimpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/AdminServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/AdminServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/BookServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/BookServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/LoginServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/AdiminDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/AdiminDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/CourseDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/CourseDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/filter/EncodingFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/filter/EncodingFilter.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/CourseServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/CourseServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/MonitorServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/MonitorServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/MonitorDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/MonitorDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/PurchaseDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/PurchaseDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/ReserveDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/ReserveDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/dao/impl/TeacherDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/dao/impl/TeacherDaoImpl.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/ModifyInfoServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/ModifyInfoServlet.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/com/javaweb/demo/servlet/ModifyPwdServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jisooma/books_management_system/HEAD/web/WEB-INF/classes/com/javaweb/demo/servlet/ModifyPwdServlet.class -------------------------------------------------------------------------------- /web/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 |
9 | 10 | 11 |
12 | 13 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/CourseDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Course; 4 | import com.javaweb.demo.entity.Teacher; 5 | 6 | import java.util.List; 7 | 8 | public interface CourseDao { 9 | public List getCourseAll();//返回所有老师信息集合 10 | public Course FindCourse(String cno); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/AdminDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Admin; 4 | 5 | public interface AdminDao { 6 | public boolean login(String id, String pwd); 7 | public boolean modifyPwd(String id,String pwd); 8 | public boolean updateInfo(Admin admin); 9 | 10 | public boolean updateInfo(String mno, String mname, String mtel, String memail); 11 | public Admin FindAdmin(String id); 12 | } 13 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/PurchaseDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Book; 4 | import com.javaweb.demo.entity.Purchase; 5 | 6 | import java.util.List; 7 | 8 | public interface PurchaseDao { 9 | //public boolean addPurchase(Purchase purchase); 10 | //public boolean deletePurchase(String bno) ; 11 | // public boolean updatePurchase(Purchase purchase) ; 12 | public List getAllPurchase(); 13 | } 14 | -------------------------------------------------------------------------------- /web/bootstrap-3.3.7-dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /web/ImportMsg.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/8 5 | Time: 1:47 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | 9 | 10 | 11 | 12 | Insert title here 13 | 14 | 15 |
16 | 选择文件:
17 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # books_management_system 2 | 本科数据库课程设计(2019年) 教材征订与放发管理系统 javaweb+mysql 3 | 4 | (jsp前端+java后端+mysql数据库(数据库增删改查)) 5 | 6 | ![Image text](https://github.com/jisooma/books_management_system/blob/main/images/functions.png) 7 | ![Image text](https://github.com/jisooma/books_management_system/blob/main/images/ER.png) 8 | 9 | ## 部分界面 10 | ![Image text](https://github.com/jisooma/books_management_system/blob/main/images/image1.png) 11 | ![Image text](https://github.com/jisooma/books_management_system/blob/main/images/image2.png) 12 | ![Image text](https://github.com/jisooma/books_management_system/blob/main/images/image3.png) 13 | -------------------------------------------------------------------------------- /web/Flat Login Form_files/reset.min.css: -------------------------------------------------------------------------------- 1 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0} -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/ReserveDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Reserve; 4 | 5 | import java.util.List; 6 | 7 | public interface ReserveDao { 8 | 9 | public Boolean addReserve(Reserve re); 10 | public boolean deleteReserve(String id); 11 | public boolean updateReserve(Reserve re); 12 | public int findMaxId(); 13 | public List findReserveByBno(String Bno); 14 | public List findReserveByCno(String Cno); 15 | public List findReserveByStatus(String status); 16 | public boolean updateReserveById(String id,int rnum); 17 | public List findAllReserve(); 18 | public List findUnDealReserve(); 19 | public Reserve findOrderById(String id); 20 | } 21 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/AdminServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.TeacherDao; 4 | 5 | import com.javaweb.demo.dao.impl.TeacherDaoImpl; 6 | 7 | import com.javaweb.demo.entity.Teacher; 8 | 9 | 10 | import javax.servlet.ServletException; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import java.io.IOException; 15 | import java.util.List; 16 | 17 | public class AdminServlet extends HttpServlet { 18 | public void doGet(HttpServletRequest request, HttpServletResponse response) 19 | throws ServletException, IOException { 20 | doPost(request, response); 21 | } 22 | public void doPost(HttpServletRequest request, HttpServletResponse response) 23 | throws ServletException, IOException { 24 | } 25 | } 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/filter/EncodingFilter.java: -------------------------------------------------------------------------------- 1 | 2 | package com.javaweb.demo.filter; 3 | 4 | 5 | import javax.servlet.*; 6 | import java.io.IOException; 7 | 8 | public class EncodingFilter implements javax.servlet.Filter { 9 | public EncodingFilter(){ 10 | System.out.println("过滤器构造"); 11 | } 12 | @Override 13 | public void init(FilterConfig filterConfig) throws ServletException { 14 | System.out.println("过滤器初始化"); 15 | } 16 | 17 | @Override 18 | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { 19 | servletRequest.setCharacterEncoding("utf-8"); //将编码改为utf-8 20 | servletResponse.setContentType("text/html;charset=utf-8"); 21 | filterChain.doFilter(servletRequest, servletResponse); 22 | 23 | } 24 | 25 | @Override 26 | public void destroy() { 27 | System.out.println("过滤器销毁"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /web/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/BookDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Book; 4 | 5 | 6 | import java.util.List; 7 | 8 | public interface BookDao { 9 | public boolean addBook(Book book);//增加教材 10 | public boolean deleteBook(String bno) ;//根据书号删除教材 11 | public boolean updateBook(String bno, String bname, String bauthor, String bsource, String bedition, String bprice, String bnum, String ccno) ;//更新教材信息 12 | public List getBookkall(String tno);//查询全部教材的信息 13 | public List getBookkall();//查询全部教材的信息 14 | public List getBookbno(String bno);//书号查询教材信息 15 | public List getBookbna(String bna);//书名查询教材信息 16 | public List getBooksau(String bauthor);//作者查询教材信息 17 | public List getBooksed(String bsource);//出版社查询教材信息 18 | public List getBooksc(String ccno);//课程查询教材信息 19 | public boolean updateBook(Book bo); 20 | public Book getBookBybno(String bno);//通过课程号查询 21 | public List getBookAll();//包含老师信息 22 | public boolean updateBook(String bno,String bnum); 23 | public List topQuery(Book book); 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /web/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/MonitorDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Monitor; 4 | import java.util.List; 5 | 6 | public interface MonitorDao { 7 | public boolean login(String name,String pwd);//登录 8 | public List getMonitorAll();//返回用户信息集合 9 | public boolean delete(String id) ;//根据id删除用户 10 | public boolean update(String id, String garde, String dept, String major, String num) ;//更新用户信息 11 | public boolean update(Monitor mo) ;//更新用户信息 12 | // public boolean update(String major, String num); 13 | public boolean update(String id, String num); 14 | public boolean addMonitor(Monitor mo); 15 | public List findMonitorByCno(String id); 16 | public List findMonitorByCdept(String dept); 17 | public List findMonitorByCgrade(String grade); 18 | public List findMonitorByDG(String dept,String grade); 19 | public List findMonitorByDGM(String dept,String grade,String major); 20 | public List findMonitorBynum(String num); 21 | public Monitor findMonitorByCno1(String id); 22 | public List topQuery(Monitor monitor); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/TeacherDao.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao; 2 | 3 | import com.javaweb.demo.entity.Monitor; 4 | import com.javaweb.demo.entity.Teacher; 5 | 6 | 7 | import java.util.List; 8 | 9 | public interface TeacherDao { 10 | public boolean login(String name,String pwd);//登录 11 | public boolean findTeacher(String tno); 12 | public List getTeacherAll();//返回所有老师信息集合 13 | public boolean deleteTeacher(String id) ;//根据id删除老师 14 | public boolean updateTeacher(String id, String name, String dept, String tel, String email,String cno);//更新用户信息 15 | public boolean addTeacher(Teacher te); 16 | public boolean updateTeacher(Teacher te); 17 | public List FindTeacherByDC(String dept,String cno); 18 | public Teacher FindTeacher(String tno); 19 | public List FindTeacherBytno(String tno); 20 | public List FindTeacherBycno(String cno); 21 | public List FindTeacherByname(String Tname); 22 | public List FindTeacherBydept(String Tdept); 23 | public List FindTeacherByDN(String dept,String tname); 24 | public boolean updateTeacher(String id, String name, String dept, String tel, String email); 25 | public boolean modifyPwd(String id,String pwd); 26 | public List topQuery(Teacher teacher); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Course.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Course { 4 | private String cno; 5 | private String cname; 6 | private Teacher teacher; 7 | private String tno; 8 | public Course() { 9 | } 10 | 11 | public String getTno() { 12 | return tno; 13 | } 14 | 15 | public void setTno(String tno) { 16 | this.tno = tno; 17 | } 18 | 19 | public Course(String ccno, String ccname, Teacher teacher) { 20 | this.cno = ccno; 21 | this.cname = ccname; 22 | this.teacher = teacher; 23 | } 24 | 25 | public String getCno() { 26 | return cno; 27 | } 28 | 29 | public void setCno(String cno) { 30 | this.cno = cno; 31 | } 32 | 33 | public String getCname() { 34 | return cname; 35 | } 36 | 37 | public void setCname(String cname) { 38 | this.cname = cname; 39 | } 40 | 41 | public Teacher getTeacher() { 42 | return teacher; 43 | } 44 | 45 | public void setTeacher(Teacher teacher) { 46 | this.teacher = teacher; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | return "Course{" + 52 | "ccno='" + cno + '\'' + 53 | ", ccname='" + cname + '\'' + 54 | '}'; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /JavaWeb.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Purchase.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Purchase { 4 | private String bno; 5 | private String bname; 6 | private String bauthor; 7 | private String bsource; 8 | private String bedition; 9 | private String bprice; 10 | private int number; 11 | 12 | public String getBno() { 13 | return bno; 14 | } 15 | 16 | public void setBno(String bno) { 17 | this.bno = bno; 18 | } 19 | 20 | public String getBname() { 21 | return bname; 22 | } 23 | 24 | public void setBname(String bname) { 25 | this.bname = bname; 26 | } 27 | 28 | public String getBauthor() { 29 | return bauthor; 30 | } 31 | 32 | public void setBauthor(String bauthor) { 33 | this.bauthor = bauthor; 34 | } 35 | 36 | public String getBsource() { 37 | return bsource; 38 | } 39 | 40 | public void setBsource(String bsource) { 41 | this.bsource = bsource; 42 | } 43 | 44 | public String getBedition() { 45 | return bedition; 46 | } 47 | 48 | public void setBedition(String bedition) { 49 | this.bedition = bedition; 50 | } 51 | 52 | public String getBprice() { 53 | return bprice; 54 | } 55 | 56 | public void setBprice(String bprice) { 57 | this.bprice = bprice; 58 | } 59 | 60 | public int getNumber() { 61 | return number; 62 | } 63 | 64 | public void setNumber(int number) { 65 | this.number = number; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /web/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /web/Flat Login Form_files/hat.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 28 | 29 | 30 | 32 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Admin.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Admin { 4 | private String mno; 5 | private String mname; 6 | private String mtel; 7 | private String meamil; 8 | private String password; 9 | 10 | public Admin() { 11 | } 12 | 13 | public Admin(String mno, String mname, String mtel, String meamil, String password) { 14 | this.mno = mno; 15 | this.mname = mname; 16 | this.mtel = mtel; 17 | this.meamil = meamil; 18 | this.password = password; 19 | } 20 | 21 | public String getMno() { 22 | return mno; 23 | } 24 | 25 | public void setMno(String mno) { 26 | this.mno = mno; 27 | } 28 | 29 | public String getMname() { 30 | return mname; 31 | } 32 | 33 | public void setMname(String mname) { 34 | this.mname = mname; 35 | } 36 | 37 | public String getMtel() { 38 | return mtel; 39 | } 40 | 41 | public void setMtel(String mtel) { 42 | this.mtel = mtel; 43 | } 44 | 45 | public String getMeamil() { 46 | return meamil; 47 | } 48 | 49 | public void setMeamil(String meamil) { 50 | this.meamil = meamil; 51 | } 52 | 53 | public String getPassword() { 54 | return password; 55 | } 56 | 57 | public void setPassword(String password) { 58 | this.password = password; 59 | } 60 | 61 | @Override 62 | public String toString() { 63 | return "Admin{" + 64 | "mno='" + mno + '\'' + 65 | ", mname='" + mname + '\'' + 66 | ", mtel='" + mtel + '\'' + 67 | ", meamil='" + meamil + '\'' + 68 | ", password='" + password + '\'' + 69 | '}'; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /web/login.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 3 | 4 | 5 | 6 | 登录 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 45 |

忘记密码

46 |
47 |
48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/util/DBconn.java: -------------------------------------------------------------------------------- 1 | 2 | package com.javaweb.demo.util; 3 | 4 | import java.sql.*; 5 | 6 | public class DBconn { 7 | static String url = "jdbc:mysql://localhost:3306/ylsm?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"; // 数据库连接url 8 | static String username = "root"; // 数据库用户名 9 | static String password = "123456"; // 用户密码 10 | static Connection conn = null; // 初始化一个数据连接 conn 11 | static ResultSet rs = null; // 初始化一个结果集 rs 12 | static PreparedStatement ps =null; // 初始化一个PreparedStatement对象 ps 13 | public static void init(){ 14 | try { 15 | Class.forName("com.mysql.jdbc.Driver"); 16 | conn = DriverManager.getConnection(url,username,password); 17 | } catch (Exception e) { 18 | System.out.println("init [SQL驱动程序初始化失败!]"); 19 | e.printStackTrace(); 20 | } 21 | } 22 | public static int addUpdDel(String sql){ 23 | int i = 0; 24 | try { 25 | PreparedStatement ps = conn.prepareStatement(sql); 26 | i = ps.executeUpdate(); 27 | } catch (SQLException e) { 28 | System.out.println("sql数据库增删改异常"); 29 | e.printStackTrace(); 30 | } 31 | 32 | return i; 33 | } 34 | public static ResultSet selectSql(String sql){ 35 | try { 36 | ps = conn.prepareStatement(sql); 37 | rs = ps.executeQuery(sql); 38 | } catch (SQLException e) { 39 | System.out.println("sql数据库查询异常"); 40 | e.printStackTrace(); 41 | } 42 | return rs; 43 | } 44 | public static void closeConn(){ 45 | try { 46 | conn.close(); 47 | } catch (SQLException e) { 48 | System.out.println("sql数据库关闭异常"); 49 | e.printStackTrace(); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/CourseServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.BookDao; 4 | import com.javaweb.demo.dao.CourseDao; 5 | import com.javaweb.demo.dao.impl.BookDaoimpl; 6 | import com.javaweb.demo.dao.impl.CourseDaoImpl; 7 | import com.javaweb.demo.entity.Book; 8 | import com.javaweb.demo.entity.Course; 9 | 10 | import javax.servlet.ServletException; 11 | import javax.servlet.annotation.WebServlet; 12 | import javax.servlet.http.HttpServlet; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpServletResponse; 15 | import java.io.IOException; 16 | import java.util.List; 17 | 18 | @WebServlet("/CourseServlet") 19 | public class CourseServlet extends HttpServlet { 20 | private CourseDao course = new CourseDaoImpl(); 21 | private BookDao book = new BookDaoimpl(); 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | String option = request.getParameter("option"); 26 | if ("showAllCourses".equals(option)) { 27 | showAllCourses(request, response); 28 | } 29 | } 30 | 31 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 32 | this.doPost(request, response); 33 | } 34 | 35 | private void showAllCourses(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | List courses = course.getCourseAll(); 37 | request.setAttribute("courses", courses); 38 | // System.out.println("111111"); 39 | //页面 40 | request.getRequestDispatcher("/teacher_course.jsp").forward(request, response); 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /web/Flat Login Form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Flat Login Form 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |

Flat Login Form

Made with by Andy Tran 24 |
25 |
26 |
27 |
28 |
29 | 30 | 31 | 32 | 33 |

Already registered? Sign In

34 |
35 | 41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /web/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /web/sign-up.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 注册 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |
19 | 20 |
21 |

Sign Up

22 |
23 | 24 |
25 |
26 | 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 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Monitor.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Monitor { 4 | private String cno; 5 | private String cgrade; 6 | private String cdept; 7 | private String cmajor; 8 | String cnum; 9 | String password; 10 | 11 | public Monitor() { 12 | } 13 | 14 | public Monitor(String cno, String cgrade, String cdept, String cmajor, String cnum, String password) { 15 | this.cno = cno; 16 | this.cgrade = cgrade; 17 | this.cdept = cdept; 18 | this.cmajor = cmajor; 19 | this.cnum = cnum; 20 | this.password = password; 21 | } 22 | 23 | public String getCno() { 24 | return cno; 25 | } 26 | 27 | public void setCno(String cno) { 28 | this.cno = cno; 29 | } 30 | 31 | public String getCgrade() { 32 | return cgrade; 33 | } 34 | 35 | public void setCgrade(String cgrade) { 36 | this.cgrade = cgrade; 37 | } 38 | 39 | public String getCdept() { 40 | return cdept; 41 | } 42 | 43 | public void setCdept(String cdept) { 44 | this.cdept = cdept; 45 | } 46 | 47 | public String getCmajor() { 48 | return cmajor; 49 | } 50 | 51 | public void setCmajor(String cmajor) { 52 | this.cmajor = cmajor; 53 | } 54 | 55 | public String getCnum() { 56 | return cnum; 57 | } 58 | 59 | public void setCnum(String cnum) { 60 | this.cnum = cnum; 61 | } 62 | 63 | public String getPassword() { 64 | return password; 65 | } 66 | 67 | public void setPassword(String password) { 68 | this.password = password; 69 | } 70 | 71 | @Override 72 | public String toString() { 73 | return "Monitor{" + 74 | "cno='" + cno + '\'' + 75 | ", cgrade='" + cgrade + '\'' + 76 | ", cdept='" + cdept + '\'' + 77 | ", cmajor='" + cmajor + '\'' + 78 | ", cnum=" + cnum + 79 | ", password='" + password + '\'' + 80 | '}'; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /web/sign-in.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 登录 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 |
18 | 19 | 20 | 21 |
22 |

Sign In

23 |
24 | 25 |
26 |
27 | 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 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/impl/PurchaseDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao.impl; 2 | 3 | import com.javaweb.demo.dao.PurchaseDao; 4 | import com.javaweb.demo.entity.Book; 5 | import com.javaweb.demo.entity.Purchase; 6 | import com.javaweb.demo.entity.Purchase; 7 | import com.javaweb.demo.util.DBconn; 8 | 9 | import java.sql.ResultSet; 10 | import java.sql.SQLException; 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | public class PurchaseDaoImpl implements PurchaseDao { 15 | 16 | // @Override 17 | // public boolean addPurchase(Purchase purchase) { 18 | // boolean flag = false; 19 | //// DBconn.init(); 20 | //// int i = DBconn.addUpdDel("insert into Purchase(Bno,Bname,Bauthor,Bsource,Bedition,Bprice,BNumber) " + 21 | //// "values('" + purchase.getBno()+ "','" + purchase.getBname()+ "','" + purchase.getBauthor()+ "','" + purchase.getBsource()+ "','" + purchase.getBedition()+ "','" + purchase.getBprice()+"','" +purchase.getNumber()+ "')"); 22 | //// if (i > 0) { 23 | //// flag = true; 24 | //// } 25 | //// DBconn.closeConn(); 26 | // return flag; 27 | // } 28 | 29 | 30 | @Override 31 | public List getAllPurchase() { 32 | { 33 | List list = new ArrayList(); 34 | try { 35 | DBconn.init(); 36 | ResultSet rs = DBconn.selectSql("select * from Purchase"); 37 | while(rs.next()){ 38 | Purchase Purchase = new Purchase(); 39 | Purchase.setBno(rs.getString("Bno")); 40 | Purchase.setBname(rs.getString("Bname")); 41 | Purchase.setBauthor(rs.getString("Bauthor")); 42 | Purchase.setBsource(rs.getString("Bsource")); 43 | Purchase.setBedition(rs.getString("Bedition")); 44 | Purchase.setBprice(rs.getString("Bprice")); 45 | Purchase.setNumber(rs.getInt("BNumber")); 46 | list.add(Purchase); 47 | } 48 | DBconn.closeConn(); 49 | return list; 50 | } catch (SQLException e) { 51 | e.printStackTrace(); 52 | } 53 | return null; 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/impl/CourseDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao.impl; 2 | 3 | import com.javaweb.demo.dao.BookDao; 4 | import com.javaweb.demo.dao.CourseDao; 5 | import com.javaweb.demo.entity.Book; 6 | import com.javaweb.demo.entity.Course; 7 | import com.javaweb.demo.util.DBconn; 8 | 9 | import java.sql.ResultSet; 10 | import java.sql.SQLException; 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | public class CourseDaoImpl implements CourseDao { 15 | 16 | 17 | @Override 18 | public List getCourseAll() { 19 | List list = new ArrayList(); 20 | try { 21 | DBconn.init(); 22 | ResultSet rs = DBconn.selectSql("select * from course "); 23 | while(rs.next()){ 24 | Course course = new Course(); 25 | course.setCno(rs.getString("CCno")); 26 | course.setCname(rs.getString("CCname")); 27 | list.add(course); 28 | } 29 | DBconn.closeConn(); 30 | return list; 31 | } catch (SQLException e) { 32 | e.printStackTrace(); 33 | } 34 | return null; 35 | } 36 | 37 | @Override 38 | public Course FindCourse(String ccno) { 39 | Course course = new Course(); 40 | try { 41 | DBconn.init(); 42 | ResultSet rs = DBconn.selectSql("select * from course where Ccno = "+ccno); 43 | while(rs.next()){ 44 | course.setCno(rs.getString("Ccno")); 45 | course.setCname(rs.getString("Ccname")); 46 | } 47 | DBconn.closeConn(); 48 | return course; 49 | } catch (SQLException e) { 50 | e.printStackTrace(); 51 | } 52 | return null; 53 | } 54 | 55 | 56 | public static void main(String[] args) { 57 | 58 | BookDao bookDao = new BookDaoimpl(); 59 | 60 | CourseDao course = new CourseDaoImpl(); 61 | List b2 = course.getCourseAll(); 62 | 63 | for(Course s : b2){ 64 | System.out.println(s.toString()); 65 | } 66 | 67 | // bookDao.deleteBook("1"); 68 | // List b2 = bookDao.getBookkall(); 69 | // 70 | // for(Book s : b2){ 71 | // System.out.println(s.toString()); 72 | // } 73 | // System.out.println("11111"); 74 | // List b1=bookDao.getBooksau("2"); 75 | // for(Book s : b1){ 76 | // System.out.println(s.toString()); 77 | // } 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /web/sign-in.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | 5 | 6 | 7 | 登录 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 21 | 22 |
23 |

Sign In

24 | 25 |
26 | 27 |
28 |
29 | 30 |
31 | 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 | -------------------------------------------------------------------------------- /web/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
    ",u=1;u<=i.length;u++){var r='
  • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
  • ":n+=r}n+="
"+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Book.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Book { 4 | private String bno; 5 | private String bname; 6 | private String bauthor; 7 | private String bsource; 8 | private String bedition; 9 | private String bprice; 10 | private String bnum;//库存 11 | private String ccno; 12 | private String tno; 13 | private Teacher teacher; 14 | private Course course; 15 | 16 | public Book() { 17 | } 18 | 19 | 20 | public Teacher getTeacher() { 21 | return teacher; 22 | } 23 | 24 | public void setTeacher(Teacher teacher) { 25 | this.teacher = teacher; 26 | } 27 | 28 | public Course getCourse() { 29 | return course; 30 | } 31 | 32 | public void setCourse(Course course) { 33 | this.course = course; 34 | } 35 | 36 | public String getBno() { 37 | return bno; 38 | } 39 | 40 | public void setBno(String bno) { 41 | this.bno = bno; 42 | } 43 | 44 | public String getBname() { 45 | return bname; 46 | } 47 | 48 | public void setBname(String bname) { 49 | this.bname = bname; 50 | } 51 | 52 | public String getBauthor() { 53 | return bauthor; 54 | } 55 | 56 | public void setBauthor(String bauthor) { 57 | this.bauthor = bauthor; 58 | } 59 | 60 | public String getBsource() { 61 | return bsource; 62 | } 63 | 64 | public void setBsource(String bsource) { 65 | this.bsource = bsource; 66 | } 67 | 68 | public String getBedition() { 69 | return bedition; 70 | } 71 | 72 | public void setBedition(String bedition) { 73 | this.bedition = bedition; 74 | } 75 | 76 | public String getBprice() { 77 | return bprice; 78 | } 79 | 80 | public void setBprice(String bprice) { 81 | this.bprice = bprice; 82 | } 83 | 84 | public String getBnum() { 85 | return bnum; 86 | } 87 | 88 | public void setBnum(String bnum) { 89 | this.bnum = bnum; 90 | } 91 | 92 | public String getCcno() { 93 | return ccno; 94 | } 95 | 96 | public void setCcno(String ccno) { 97 | this.ccno = ccno; 98 | } 99 | 100 | public String getTno() { 101 | return tno; 102 | } 103 | 104 | public void setTno(String tno) { 105 | this.tno = tno; 106 | } 107 | 108 | @Override 109 | public String toString() { 110 | return "Book{" + 111 | "bno='" + bno + '\'' + 112 | ", bname='" + bname + '\'' + 113 | ", bauthor='" + bauthor + '\'' + 114 | ", bsource='" + bsource + '\'' + 115 | ", bedition='" + bedition + '\'' + 116 | ", bprice='" + bprice + '\'' + 117 | ", bnum=" + bnum + 118 | ", ccno='" + ccno + '\'' + 119 | ", tno='" + tno + '\'' + 120 | '}'; 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/PurchaseServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.BookDao; 4 | import com.javaweb.demo.dao.PurchaseDao; 5 | import com.javaweb.demo.dao.impl.BookDaoimpl; 6 | import com.javaweb.demo.dao.impl.PurchaseDaoImpl; 7 | import com.javaweb.demo.entity.Book; 8 | import com.javaweb.demo.entity.Purchase; 9 | 10 | 11 | import javax.servlet.ServletException; 12 | import javax.servlet.annotation.WebServlet; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import java.io.IOException; 17 | import java.util.List; 18 | @WebServlet("/PurchaseServlet") 19 | public class PurchaseServlet extends HttpServlet { 20 | PurchaseDao pc = new PurchaseDaoImpl(); 21 | 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | String option = request.getParameter("option"); 24 | if ("addPurchase".equals(option)) { 25 | addPurchase(request, response); 26 | } else if ("deletePurchase".equals(option)) { 27 | deletePurchase(request, response); 28 | } else if ("updatePurchase".equals(option)) { 29 | updatePurchase(request, response); 30 | } else if ("showPurchase".equals(option)) { 31 | showPurchase(request, response); 32 | } 33 | } 34 | 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | this.doPost(request, response); 37 | } 38 | private void addPurchase(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 39 | String Pnumber = (String)request.getAttribute("number"); 40 | String Bno = (String)request.getAttribute("bno"); 41 | BookDao bo = new BookDaoimpl(); 42 | Book book = bo.getBookBybno(Bno); 43 | 44 | Purchase purchase = new Purchase(); 45 | purchase.setBno(book.getBno()); 46 | purchase.setBname(book.getBname()); 47 | purchase.setBauthor(book.getBauthor()); 48 | purchase.setBsource(book.getBsource()); 49 | purchase.setBprice(book.getBprice()); 50 | purchase.setNumber(Integer.parseInt(Pnumber)); 51 | // pc.addPurchase(purchase); 52 | showPurchase(request, response); 53 | } 54 | 55 | private void deletePurchase(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 56 | 57 | 58 | } 59 | private void updatePurchase(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 60 | 61 | 62 | } 63 | private void showPurchase(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 64 | List Purchases; 65 | Purchases = pc.getAllPurchase(); 66 | request.setAttribute("purchases", Purchases); 67 | request.getRequestDispatcher("manager_deal_purchase.jsp").forward(request, response); 68 | } 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /web/Flat Login Form_files/style.css: -------------------------------------------------------------------------------- 1 | /* Form */ 2 | .form { 3 | position: relative; 4 | z-index: 1; 5 | background: lightgoldenrodyellow; 6 | max-width: 300px; 7 | margin: 0 auto 100px; 8 | padding: 30px; 9 | border-top-left-radius: 3px; 10 | border-top-right-radius: 3px; 11 | border-bottom-left-radius: 3px; 12 | border-bottom-right-radius: 3px; 13 | } 14 | 15 | .form .thumbnail { 16 | background: #EF3B3A; 17 | width: 150px; 18 | height: 150px; 19 | margin: 0 auto 30px; 20 | padding: 50px 30px; 21 | border-top-left-radius: 100%; 22 | border-top-right-radius: 100%; 23 | border-bottom-left-radius: 100%; 24 | border-bottom-right-radius: 100%; 25 | box-sizing: border-box; 26 | } 27 | .form .thumbnail img { 28 | display: block; 29 | width: 100%; 30 | } 31 | .form input { 32 | outline: 0; 33 | background: #f2f2f2; 34 | border: 0; 35 | margin: 0 0 15px; 36 | padding: 15px; 37 | border-top-left-radius: 3px; 38 | border-top-right-radius: 3px; 39 | border-bottom-left-radius: 3px; 40 | border-bottom-right-radius: 3px; 41 | box-sizing: border-box; 42 | font-size: 14px; 43 | } 44 | .form .select{ 45 | 46 | } 47 | .form button { 48 | outline: 0; 49 | background: #EF3B3A; 50 | width: 100%; 51 | border: 0; 52 | padding: 15px; 53 | border-top-left-radius: 3px; 54 | border-top-right-radius: 3px; 55 | border-bottom-left-radius: 3px; 56 | border-bottom-right-radius: 3px; 57 | color: #FFFFFF; 58 | font-size: 14px; 59 | transition: all 0.3 ease; 60 | cursor: pointer; 61 | } 62 | .form .message { 63 | margin: 15px 0 0; 64 | color: #b3b3b3; 65 | font-size: 12px; 66 | } 67 | .form .message a { 68 | color: #EF3B3A; 69 | text-decoration: none; 70 | } 71 | .form .register-form { 72 | display: none; 73 | } 74 | 75 | .container { 76 | position: relative; 77 | z-index: 1; 78 | max-width: 100%; 79 | margin: 0 auto; 80 | } 81 | .container:before, .container:after { 82 | content: ""; 83 | display: block; 84 | clear: both; 85 | } 86 | .container .info { 87 | margin: 50px auto; 88 | text-align: center; 89 | } 90 | .container .info h1 { 91 | margin: 0 0 15px; 92 | padding: 0; 93 | font-size: 36px; 94 | font-weight: 300; 95 | color: #1a1a1a; 96 | } 97 | .container .info span { 98 | color: #4d4d4d; 99 | font-size: 12px; 100 | } 101 | .container .info span a { 102 | color: #000000; 103 | text-decoration: none; 104 | } 105 | .container .info span .fa { 106 | color: #EF3B3A; 107 | } 108 | 109 | /* END Form */ 110 | /* Demo Purposes */ 111 | body { 112 | background: #FFFFFF; 113 | font-family: "Roboto", sans-serif; 114 | -webkit-font-smoothing: antialiased; 115 | -moz-osx-font-smoothing: grayscale; 116 | } 117 | body:before { 118 | content: ""; 119 | position: fixed; 120 | top: 0; 121 | left: 0; 122 | display: block; 123 | background: rgba(255, 255, 255, 0.8); 124 | width: 100%; 125 | height: 100%; 126 | } 127 | 128 | #video { 129 | z-index: -99; 130 | position: fixed; 131 | top: 50%; 132 | left: 50%; 133 | min-width: 100%; 134 | min-height: 100%; 135 | width: auto; 136 | height: auto; 137 | -webkit-transform: translateX(-50%) translateY(-50%); 138 | transform: translateX(-50%) translateY(-50%); 139 | } 140 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Reserve.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Reserve { 4 | private String id; 5 | private String cno; 6 | private String bno; 7 | private int num; 8 | private double totalPrice; 9 | private String r_time; 10 | private String q_time; 11 | private String bstatus; 12 | private String place; 13 | private Book book; 14 | 15 | public double getTotalPrice() { 16 | return totalPrice; 17 | } 18 | 19 | public void setTotalPrice(double totalPrice) { 20 | this.totalPrice = totalPrice; 21 | } 22 | 23 | 24 | 25 | public Reserve() { 26 | } 27 | 28 | public Reserve(String id, String cno, String bno, int num, String r_time, String q_time, String bstatus, String place, Book book) { 29 | this.id = id; 30 | this.cno = cno; 31 | this.bno = bno; 32 | this.num = num; 33 | this.r_time = r_time; 34 | this.q_time = q_time; 35 | this.bstatus = bstatus; 36 | this.place = place; 37 | this.book = book; 38 | } 39 | 40 | public String getId() { 41 | return id; 42 | } 43 | 44 | @Override 45 | public String toString() { 46 | return "Reserve{" + 47 | "id='" + id + '\'' + 48 | ", cno='" + cno + '\'' + 49 | ", bno='" + bno + '\'' + 50 | ", num=" + num + 51 | ", r_time='" + r_time + '\'' + 52 | ", q_time='" + q_time + '\'' + 53 | ", bstatus='" + bstatus + '\'' + 54 | ", place='" + place + '\'' + 55 | ", book=" + book + 56 | '}'; 57 | } 58 | 59 | public void setId(String id) { 60 | this.id = id; 61 | } 62 | 63 | public String getCno() { 64 | return cno; 65 | } 66 | 67 | public void setCno(String cno) { 68 | this.cno = cno; 69 | } 70 | 71 | public String getBno() { 72 | return bno; 73 | } 74 | 75 | public void setBno(String bno) { 76 | this.bno = bno; 77 | } 78 | 79 | public int getNum() { 80 | return num; 81 | } 82 | 83 | public void setNum(int num) { 84 | this.num = num; 85 | } 86 | 87 | public String getR_time() { 88 | return r_time; 89 | } 90 | 91 | public void setR_time(String r_time) { 92 | this.r_time = r_time; 93 | } 94 | 95 | public String getQ_time() { 96 | return q_time; 97 | } 98 | 99 | public void setQ_time(String q_time) { 100 | this.q_time = q_time; 101 | } 102 | 103 | public String getBstatus() { 104 | return bstatus; 105 | } 106 | 107 | public void setBstatus(String bstatus) { 108 | this.bstatus = bstatus; 109 | } 110 | 111 | public String getPlace() { 112 | return place; 113 | } 114 | 115 | public void setPlace(String place) { 116 | this.place = place; 117 | } 118 | 119 | public Book getBook() { 120 | return book; 121 | } 122 | 123 | public void setBook(Book book) { 124 | this.book = book; 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/entity/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.entity; 2 | 3 | public class Teacher { 4 | private String tno; 5 | private String tname; 6 | private String tdept; 7 | private String ttel; 8 | private String temail; 9 | private String tcno; 10 | private String password; 11 | private Course course; 12 | private String bno; 13 | private Book book; 14 | 15 | 16 | public String getBno() { 17 | return bno; 18 | } 19 | 20 | public void setBno(String bno) { 21 | this.bno = bno; 22 | } 23 | 24 | 25 | @Override 26 | public String toString() { 27 | return "Teacher{" + 28 | "tno='" + tno + '\'' + 29 | ", tname='" + tname + '\'' + 30 | ", tdept='" + tdept + '\'' + 31 | ", ttel='" + ttel + '\'' + 32 | ", temail='" + temail + '\'' + 33 | ", tcno='" + tcno + '\'' + 34 | ", password='" + password + '\'' + 35 | ", course=" + course + 36 | ", book=" + book + 37 | '}'; 38 | } 39 | 40 | public Teacher() { 41 | } 42 | 43 | public Course getCourse() { 44 | return course; 45 | } 46 | 47 | public void setCourse(Course course) { 48 | this.course = course; 49 | } 50 | 51 | public Book getBook() { 52 | return book; 53 | } 54 | 55 | public void setBook(Book book) { 56 | this.book = book; 57 | } 58 | 59 | public Teacher(String tno) { 60 | this.tno = tno; 61 | } 62 | 63 | public Teacher(String tno, String tname, String tdept, String ttel, String temail, String tcno, String password) { 64 | this.tno = tno; 65 | this.tname = tname; 66 | this.tdept = tdept; 67 | this.ttel = ttel; 68 | this.temail = temail; 69 | this.tcno = tcno; 70 | this.password = password; 71 | } 72 | 73 | public String getTno() { 74 | return tno; 75 | } 76 | 77 | public void setTno(String tno) { 78 | this.tno = tno; 79 | } 80 | 81 | public String getTname() { 82 | return tname; 83 | } 84 | 85 | public void setTname(String tname) { 86 | this.tname = tname; 87 | } 88 | 89 | public String getTdept() { 90 | return tdept; 91 | } 92 | 93 | public void setTdept(String tdept) { 94 | this.tdept = tdept; 95 | } 96 | 97 | public String getTtel() { 98 | return ttel; 99 | } 100 | 101 | public void setTtel(String ttel) { 102 | this.ttel = ttel; 103 | } 104 | 105 | public String getTemail() { 106 | return temail; 107 | } 108 | 109 | public void setTemail(String temail) { 110 | this.temail = temail; 111 | } 112 | 113 | public String getTcno() { 114 | return tcno; 115 | } 116 | 117 | public void setTcno(String tcno) { 118 | this.tcno = tcno; 119 | } 120 | 121 | public String getPassword() { 122 | return password; 123 | } 124 | 125 | public void setPassword(String password) { 126 | this.password = password; 127 | } 128 | 129 | } 130 | -------------------------------------------------------------------------------- /web/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
    ',t.bar1?'
  • '+c[0]+"
  • ":"",t.bar2?'
  • '+c[1]+"
  • ":"",'
  • '+c[2]+"
  • ","
"].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)}); -------------------------------------------------------------------------------- /web/js1/app.js: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------- 2 | /* How to use? : Check the GitHub README 3 | /* ----------------------------------------------- */ 4 | 5 | /* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ 6 | /* 7 | particlesJS.load('particles-js', 'particles.json', function() { 8 | console.log('particles.js loaded - callback'); 9 | }); 10 | */ 11 | 12 | /* Otherwise just put the config content (json): */ 13 | 14 | particlesJS('particles-js', 15 | 16 | { 17 | "particles": { 18 | "number": { 19 | "value": 60, 20 | "density": { 21 | "enable": true, 22 | "value_area": 1000 23 | } 24 | }, 25 | "color": { 26 | "value": "#ffffff" 27 | }, 28 | "shape": { 29 | "type": "circle", 30 | "stroke": { 31 | "width": 0, 32 | "color": "#000000" 33 | }, 34 | "polygon": { 35 | "nb_sides": 5 36 | }, 37 | "image": { 38 | "src": "img/github.svg", 39 | "width": 100, 40 | "height": 100 41 | } 42 | }, 43 | "opacity": { 44 | "value": 0.5, 45 | "random": false, 46 | "anim": { 47 | "enable": false, 48 | "speed": 1, 49 | "opacity_min": 0.1, 50 | "sync": false 51 | } 52 | }, 53 | "size": { 54 | "value": 5, 55 | "random": true, 56 | "anim": { 57 | "enable": false, 58 | "speed": 30, 59 | "size_min": 0.1, 60 | "sync": false 61 | } 62 | }, 63 | "line_linked": { 64 | "enable": true, 65 | "distance": 200, 66 | "color": "#ffffff", 67 | "opacity": 0.4, 68 | "width": 1 69 | }, 70 | "move": { 71 | "enable": true, 72 | "speed": 6, 73 | "direction": "none", 74 | "random": false, 75 | "straight": false, 76 | "out_mode": "out", 77 | "attract": { 78 | "enable": false, 79 | "rotateX": 600, 80 | "rotateY": 1200 81 | } 82 | } 83 | }, 84 | "interactivity": { 85 | "detect_on": "canvas", 86 | "events": { 87 | "onhover": { 88 | "enable": true, 89 | "mode": "repulse" 90 | }, 91 | "onclick": { 92 | "enable": true, 93 | "mode": "push" 94 | }, 95 | "resize": true 96 | }, 97 | "modes": { 98 | "grab": { 99 | "distance": 400, 100 | "line_linked": { 101 | "opacity": 1 102 | } 103 | }, 104 | "bubble": { 105 | "distance": 400, 106 | "size": 40, 107 | "duration": 2, 108 | "opacity": 8, 109 | "speed": 3 110 | }, 111 | "repulse": { 112 | "distance": 200 113 | }, 114 | "push": { 115 | "particles_nb": 4 116 | }, 117 | "remove": { 118 | "particles_nb": 2 119 | } 120 | } 121 | }, 122 | "retina_detect": true, 123 | "config_demo": { 124 | "hide_card": false, 125 | "background_color": "#b61924", 126 | "background_image": "", 127 | "background_position": "50% 50%", 128 | "background_repeat": "no-repeat", 129 | "background_size": "cover" 130 | } 131 | } 132 | 133 | ); -------------------------------------------------------------------------------- /src/com/javaweb/demo/dao/impl/AdiminDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.dao.impl; 2 | 3 | import com.javaweb.demo.dao.AdminDao; 4 | import com.javaweb.demo.entity.Admin; 5 | 6 | import com.javaweb.demo.entity.Admin; 7 | import com.javaweb.demo.util.DBconn; 8 | 9 | import java.sql.ResultSet; 10 | import java.sql.SQLException; 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | public class AdiminDaoImpl implements AdminDao { 15 | 16 | @Override 17 | public boolean login(String id, String pwd) { 18 | boolean flag = false; 19 | try { 20 | DBconn.init(); 21 | ResultSet rs = DBconn.selectSql("select * from admin where Mno='" + id + "' and password='" + pwd + "'"); 22 | while (rs.next()) { 23 | if (rs.getString("Mno").equals(id) && rs.getString("password").equals(pwd)) { 24 | flag = true; 25 | } 26 | } 27 | DBconn.closeConn(); 28 | } catch (SQLException e) { 29 | e.printStackTrace(); 30 | } 31 | return flag; 32 | 33 | } 34 | 35 | @Override 36 | 37 | public boolean modifyPwd(String id,String pwd){ 38 | boolean flag = false; 39 | DBconn.init(); 40 | String sql = "update admin set password="+pwd+" where Mno="+id; 41 | int i =DBconn.addUpdDel(sql); 42 | if(i>0){ 43 | flag = true; 44 | } 45 | DBconn.closeConn(); 46 | return flag; 47 | 48 | } 49 | 50 | @Override 51 | public boolean updateInfo(Admin admin) { 52 | boolean flag = false; 53 | DBconn.init(); 54 | String sql ="update admin set Mname ='"+admin.getMname() 55 | +"' , Mtel ='"+admin.getMtel() 56 | +"' , Meamil ='"+admin.getMeamil() 57 | +"' where Mno = "+admin.getMno(); 58 | int i =DBconn.addUpdDel(sql); 59 | if(i>0){ 60 | flag = true; 61 | } 62 | DBconn.closeConn(); 63 | return flag; 64 | 65 | } 66 | @Override 67 | public boolean updateInfo(String Mno, String Mname, String Mtel, String Memail) { 68 | boolean flag = false; 69 | DBconn.init(); 70 | String sql ="update admin set Mname ='"+Mname 71 | +"' , Mtel ='"+Mtel 72 | +"' , Memail ='"+Memail 73 | +"' where Mno = "+Mno; 74 | int i =DBconn.addUpdDel(sql); 75 | if(i>0){ 76 | flag = true; 77 | } 78 | DBconn.closeConn(); 79 | return flag; 80 | 81 | } 82 | 83 | @Override 84 | public Admin FindAdmin(String id) { 85 | Admin admin =new Admin(); 86 | try { 87 | DBconn.init(); 88 | ResultSet rs = DBconn.selectSql("select * from admin where Mno='"+id+"'"); 89 | while(rs.next()){ 90 | admin.setMno(rs.getString("Mno")); 91 | admin.setMname(rs.getString("Mname")); 92 | admin.setMtel(rs.getString("Mtel")); 93 | admin.setMeamil(rs.getString("Memail")); 94 | admin.setPassword(rs.getString("password")); 95 | } 96 | DBconn.closeConn(); 97 | return admin; 98 | } catch (SQLException e) { 99 | e.printStackTrace(); 100 | } 101 | return null; 102 | } 103 | 104 | public static void main(String args[]){ 105 | 106 | 107 | } 108 | 109 | 110 | 111 | 112 | } 113 | -------------------------------------------------------------------------------- /web/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a 8 | 9 | <%@ page import="com.javaweb.demo.entity.Monitor" %> 10 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 11 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 12 | 13 | 14 | 15 | 16 | 17 | layout 后台大布局 - Layui 18 | 19 | 20 | 21 |
22 |
23 | 24 | 25 | 36 |
37 | 38 |
39 |
40 | 41 | 57 |
58 |
59 | 60 |
61 | 62 |
63 |
64 | <% 65 | HttpSession session1 = request.getSession(); 66 | Monitor user = (Monitor) session1.getAttribute("user"); 67 | out.println("欢迎您,班长:"+user.getCno()); 68 | %> 69 |
70 |
71 | 72 |
73 |
74 | 75 |
76 | 77 | 80 | 81 |
82 | 83 | 84 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /web/Flat Login Form_files/css(1): -------------------------------------------------------------------------------- 1 | /* cyrillic-ext */ 2 | @font-face { 3 | font-family: 'Montserrat'; 4 | font-style: normal; 5 | font-weight: 400; 6 | src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); 7 | unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; 8 | } 9 | /* cyrillic */ 10 | @font-face { 11 | font-family: 'Montserrat'; 12 | font-style: normal; 13 | font-weight: 400; 14 | src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); 15 | unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 16 | } 17 | /* vietnamese */ 18 | @font-face { 19 | font-family: 'Montserrat'; 20 | font-style: normal; 21 | font-weight: 400; 22 | src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); 23 | unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; 24 | } 25 | /* latin-ext */ 26 | @font-face { 27 | font-family: 'Montserrat'; 28 | font-style: normal; 29 | font-weight: 400; 30 | src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); 31 | unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 32 | } 33 | /* latin */ 34 | @font-face { 35 | font-family: 'Montserrat'; 36 | font-style: normal; 37 | font-weight: 400; 38 | src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); 39 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 40 | } 41 | /* cyrillic-ext */ 42 | @font-face { 43 | font-family: 'Montserrat'; 44 | font-style: normal; 45 | font-weight: 700; 46 | src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3gTD_u50.woff2) format('woff2'); 47 | unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; 48 | } 49 | /* cyrillic */ 50 | @font-face { 51 | font-family: 'Montserrat'; 52 | font-style: normal; 53 | font-weight: 700; 54 | src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3g3D_u50.woff2) format('woff2'); 55 | unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 56 | } 57 | /* vietnamese */ 58 | @font-face { 59 | font-family: 'Montserrat'; 60 | font-style: normal; 61 | font-weight: 700; 62 | src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3gbD_u50.woff2) format('woff2'); 63 | unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; 64 | } 65 | /* latin-ext */ 66 | @font-face { 67 | font-family: 'Montserrat'; 68 | font-style: normal; 69 | font-weight: 700; 70 | src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3gfD_u50.woff2) format('woff2'); 71 | unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 72 | } 73 | /* latin */ 74 | @font-face { 75 | font-family: 'Montserrat'; 76 | font-style: normal; 77 | font-weight: 700; 78 | src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v14/JTURjIg1_i6t8kCHKm45_dJE3gnD_g.woff2) format('woff2'); 79 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 80 | } 81 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/upLoadServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.io.PrintWriter; 6 | import java.util.List; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | 14 | import org.apache.commons.fileupload.FileItem; 15 | import org.apache.commons.fileupload.disk.DiskFileItemFactory; 16 | import org.apache.commons.fileupload.servlet.ServletFileUpload; 17 | 18 | 19 | /** 20 | * Servlet implementation class UploadServlet 21 | */ 22 | @WebServlet("/upLoadServlet") 23 | public class upLoadServlet extends HttpServlet { 24 | private static final long serialVersionUID = 1L; 25 | 26 | // 上传文件存储目录 27 | private static final String UPLOAD_DIRECTORY = "upload"; 28 | 29 | // 上传配置 30 | private static final int MEMORY_THRESHOLD = 1024 * 1024 * 3; // 3MB 31 | private static final int MAX_FILE_SIZE = 1024 * 1024 * 40; // 40MB 32 | private static final int MAX_REQUEST_SIZE = 1024 * 1024 * 50; // 50MB 33 | 34 | /** 35 | * 上传数据及保存文件 36 | */ 37 | protected void doPost(HttpServletRequest request, 38 | HttpServletResponse response) throws ServletException, IOException { 39 | // 检测是否为多媒体上传 40 | if (!ServletFileUpload.isMultipartContent(request)) { 41 | // 如果不是则停止 42 | PrintWriter writer = response.getWriter(); 43 | writer.println("Error: 表单必须包含 enctype=multipart/form-data"); 44 | writer.flush(); 45 | return; 46 | } 47 | 48 | // 配置上传参数 49 | DiskFileItemFactory factory = new DiskFileItemFactory(); 50 | // 设置内存临界值 - 超过后将产生临时文件并存储于临时目录中 51 | factory.setSizeThreshold(MEMORY_THRESHOLD); 52 | // 设置临时存储目录 53 | factory.setRepository(new File(System.getProperty("java.io.tmpdir"))); 54 | 55 | ServletFileUpload upload = new ServletFileUpload(factory); 56 | 57 | // 设置最大文件上传值 58 | upload.setFileSizeMax(MAX_FILE_SIZE); 59 | 60 | // 设置最大请求值 (包含文件和表单数据) 61 | upload.setSizeMax(MAX_REQUEST_SIZE); 62 | 63 | // 中文处理 64 | upload.setHeaderEncoding("UTF-8"); 65 | 66 | // 构造临时路径来存储上传的文件 67 | // 这个路径相对当前应用的目录 68 | String uploadPath = getServletContext().getRealPath("/") + File.separator + UPLOAD_DIRECTORY; 69 | 70 | 71 | // 如果目录不存在则创建 72 | File uploadDir = new File(uploadPath); 73 | if (!uploadDir.exists()) { 74 | uploadDir.mkdir(); 75 | } 76 | 77 | try { 78 | // 解析请求的内容提取文件数据 79 | @SuppressWarnings("unchecked") 80 | List formItems = upload.parseRequest(request); 81 | 82 | if (formItems != null && formItems.size() > 0) { 83 | // 迭代表单数据 84 | for (FileItem item : formItems) { 85 | // 处理不在表单中的字段 86 | if (!item.isFormField()) { 87 | String fileName = new File(item.getName()).getName(); 88 | String filePath = uploadPath + File.separator + fileName; 89 | File storeFile = new File(filePath); 90 | // 在控制台输出文件的上传路径 91 | System.out.println(filePath); 92 | // 保存文件到硬盘 93 | item.write(storeFile); 94 | request.setAttribute("message", 95 | "文件上传成功!"); 96 | request.getRequestDispatcher("manager_index.jsp").forward(request, response); 97 | } 98 | } 99 | } 100 | } catch (Exception ex) { 101 | request.setAttribute("message", 102 | "错误信息: " + ex.getMessage()); 103 | } 104 | request.getRequestDispatcher("manager_index.jsp").forward(request, response); 105 | } 106 | } -------------------------------------------------------------------------------- /web/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/ModifyInfoServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.AdminDao; 4 | import com.javaweb.demo.dao.MonitorDao; 5 | import com.javaweb.demo.dao.TeacherDao; 6 | import com.javaweb.demo.dao.impl.AdiminDaoImpl; 7 | import com.javaweb.demo.dao.impl.MonitorDaoImpl; 8 | import com.javaweb.demo.dao.impl.TeacherDaoImpl; 9 | import com.javaweb.demo.entity.Admin; 10 | 11 | import javax.servlet.ServletException; 12 | import javax.servlet.annotation.WebServlet; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import java.io.IOException; 17 | 18 | @WebServlet("/ModifyInfoServlet") 19 | public class ModifyInfoServlet extends HttpServlet { 20 | AdminDao ad = new AdiminDaoImpl(); 21 | TeacherDao te = new TeacherDaoImpl(); 22 | MonitorDao mo = new MonitorDaoImpl(); 23 | 24 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 25 | request.setCharacterEncoding("utf-8"); 26 | response.setCharacterEncoding("utf-8"); 27 | String option = request.getParameter("option"); 28 | if ("updateManagerInfo".equals(option)) { 29 | updateManagerInfo(request, response); 30 | } else if ("updateTeacherInfo".equals(option)) { 31 | updateTeacherInfo(request, response); 32 | }else if ("updateMonitorInfo".equals(option)) { 33 | updateMonitorInfo(request, response); 34 | } 35 | 36 | } 37 | 38 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 39 | this.doPost(request, response); 40 | } 41 | 42 | private void updateManagerInfo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 43 | boolean flag =false; 44 | String Mno = request.getParameter("mno"); 45 | String Mname = request.getParameter("mname"); 46 | String Mtel = request.getParameter("mtel"); 47 | String Memail = request.getParameter("memail"); 48 | flag=ad.updateInfo(Mno, Mname, Mtel,Memail); 49 | if(flag){ 50 | request.setAttribute("msg","修改成功" ); 51 | request.getRequestDispatcher("manager_index.jsp").forward(request, response); 52 | } 53 | else { 54 | request.setAttribute("msg","修改失败" ); 55 | // request.getRequestDispatcher("manager_modify_info.jsp").forward(request, response); 56 | response.sendRedirect(getServletContext().getContextPath()+"/manager_modify_info.jsp"); 57 | } 58 | 59 | 60 | } 61 | 62 | private void updateTeacherInfo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 63 | boolean flag =false; 64 | String Tno = request.getParameter("tno"); 65 | String name = request.getParameter("name"); 66 | String dept = request.getParameter("dept"); 67 | String tel = request.getParameter("tel"); 68 | String email = request.getParameter("email"); 69 | te.updateTeacher( Tno, name, dept, tel, email); 70 | if(flag){ 71 | request.setAttribute("msg","修改成功" ); 72 | request.getRequestDispatcher("teacher_index.jsp").forward(request, response); 73 | } 74 | else { 75 | request.setAttribute("msg","修改失败" ); 76 | request.getRequestDispatcher("teacher_modify_info.jsp").forward(request, response); 77 | } 78 | 79 | } 80 | 81 | private void updateMonitorInfo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 82 | boolean flag =false; 83 | String Cno = request.getParameter("cno"); 84 | String cnum = request.getParameter("cnum"); 85 | mo.update(Cno,cnum); 86 | if(flag){ 87 | request.setAttribute("msg","修改成功" ); 88 | response.sendRedirect(getServletContext().getContextPath()+"/manager_modify_info.jsp"); 89 | } 90 | else { 91 | request.setAttribute("msg","修改失败" ); 92 | request.getRequestDispatcher("monitor_modify_info.jsp").forward(request, response); 93 | } 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /web/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 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 | 45 |
46 |
47 |
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 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /web/css/style.css: -------------------------------------------------------------------------------- 1 | /* ======================================================= 2 | * 3 | * Template Style 4 | * Edit this section 5 | * 6 | * ======================================================= */ 7 | body { 8 | font-family: "Open Sans", Arial, sans-serif; 9 | line-height: 1.5; 10 | font-size: 16px; 11 | color: #848484; 12 | background-color: #f0f0f0; 13 | } 14 | body.style-2 { 15 | background-color: #ffffff; 16 | background-size: cover; 17 | background-position: -30% center; 18 | background-repeat: no-repeat; 19 | background-image: url(../images/bg_2.jpg); 20 | height: 100%; 21 | } 22 | body.style-3 { 23 | background: #ffffff url(../images/geometry2.png) repeat; 24 | } 25 | 26 | a { 27 | color: #33cccc; 28 | -moz-transition: all 0.3s ease; 29 | -o-transition: all 0.3s ease; 30 | -webkit-transition: all 0.3s ease; 31 | -ms-transition: all 0.3s ease; 32 | transition: all 0.3s ease; 33 | } 34 | a:hover { 35 | color: #29a3a3; 36 | } 37 | 38 | .menu { 39 | padding: 0; 40 | margin: 30px 0 0 0; 41 | } 42 | .menu li { 43 | list-style: none; 44 | margin-bottom: 10px; 45 | display: -moz-inline-stack; 46 | display: inline-block; 47 | zoom: 1; 48 | *display: inline; 49 | } 50 | .menu li a { 51 | padding: 5px; 52 | } 53 | .menu li.active a { 54 | color: #b3b3b3; 55 | } 56 | 57 | .fh5co-form { 58 | padding: 30px; 59 | margin-top: 4em; 60 | -webkit-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 61 | -moz-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 62 | -o-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 63 | box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 64 | background: #ffffff; 65 | } 66 | .style-2 .fh5co-form { 67 | -webkit-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 68 | -moz-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 69 | -o-box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 70 | box-shadow: -4px 7px 46px 2px rgba(0, 0, 0, 0.1); 71 | } 72 | @media screen and (max-width: 768px) { 73 | .fh5co-form { 74 | padding: 15px; 75 | } 76 | } 77 | .fh5co-form h2 { 78 | text-transform: uppercase; 79 | letter-spacing: 2px; 80 | font-size: 20px; 81 | margin: 0 0 30px 0; 82 | color: #000000; 83 | } 84 | .fh5co-form .form-group { 85 | margin-bottom: 30px; 86 | } 87 | .fh5co-form .form-group p { 88 | font-size: 14px; 89 | color: #9f9f9f; 90 | font-weight: 300; 91 | } 92 | .fh5co-form .form-group p a { 93 | color: #000000; 94 | } 95 | .fh5co-form label { 96 | font-weight: 300; 97 | font-size: 14px; 98 | font-weight: 300; 99 | } 100 | .fh5co-form .form-control { 101 | font-size: 16px; 102 | font-weight: 300; 103 | height: 50px; 104 | padding-left: 0; 105 | padding-right: 0; 106 | border: none; 107 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); 108 | -webkit-box-shadow: none; 109 | -moz-box-shadow: none; 110 | -o-box-shadow: none; 111 | box-shadow: none; 112 | -webkit-border-radius: 0px; 113 | -moz-border-radius: 0px; 114 | -ms-border-radius: 0px; 115 | border-radius: 0px; 116 | -moz-transition: all 0.3s ease; 117 | -o-transition: all 0.3s ease; 118 | -webkit-transition: all 0.3s ease; 119 | -ms-transition: all 0.3s ease; 120 | transition: all 0.3s ease; 121 | } 122 | .fh5co-form .form-control::-webkit-input-placeholder { 123 | color: rgba(0, 0, 0, 0.3); 124 | text-transform: uppercase; 125 | } 126 | .fh5co-form .form-control::-moz-placeholder { 127 | color: rgba(0, 0, 0, 0.3); 128 | text-transform: uppercase; 129 | } 130 | .fh5co-form .form-control:-ms-input-placeholder { 131 | color: rgba(0, 0, 0, 0.3); 132 | text-transform: uppercase; 133 | } 134 | .copyrights{ 135 | text-indent:-9999px; 136 | height:0; 137 | line-height:0; 138 | font-size:0; 139 | overflow:hidden; 140 | } 141 | .fh5co-form .form-control:-moz-placeholder { 142 | color: rgba(0, 0, 0, 0.3); 143 | text-transform: uppercase; 144 | } 145 | .fh5co-form .form-control:focus, .fh5co-form .form-control:active { 146 | border-bottom: 1px solid rgba(0, 0, 0, 0.4); 147 | } 148 | 149 | .btn-primary { 150 | height: 50px; 151 | padding-right: 20px; 152 | padding-left: 20px; 153 | border: none; 154 | background: #33cccc; 155 | color: #ffffff; 156 | -webkit-box-shadow: -2px 10px 20px -1px rgba(51, 204, 204, 0.4); 157 | -moz-box-shadow: -2px 10px 20px -1px rgba(51, 204, 204, 0.4); 158 | -o-box-shadow: -2px 10px 20px -1px rgba(51, 204, 204, 0.4); 159 | box-shadow: -2px 10px 20px -1px rgba(51, 204, 204, 0.4); 160 | } 161 | .btn-primary:hover, .btn-primary:focus, .btn-primary:active { 162 | color: #ffffff; 163 | background: #47d1d1 !important; 164 | outline: none; 165 | } 166 | 167 | input, textarea { 168 | color: #000; 169 | } 170 | 171 | .placeholder { 172 | color: #aaa; 173 | } 174 | 175 | .js .animate-box { 176 | opacity: 0; 177 | } 178 | 179 | /*# sourceMappingURL=style.css.map */ 180 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/TeacherServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.TeacherDao; 4 | import com.javaweb.demo.dao.impl.TeacherDaoImpl; 5 | import com.javaweb.demo.entity.Teacher; 6 | import com.javaweb.demo.entity.Teacher; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | import java.io.IOException; 14 | import java.util.List; 15 | 16 | @WebServlet("/TeacherServlet") 17 | public class TeacherServlet extends HttpServlet { 18 | TeacherDao teacher = new TeacherDaoImpl(); 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | String option = request.getParameter("option"); 21 | if ("deleteTeacher".equals(option)) { 22 | deleteTeacher(request, response); 23 | } else if ("showAllTeachers".equals(option)) { 24 | showAllTeachers(request, response); 25 | } else if ("addTeacher".equals(option)) { 26 | addTeacher(request, response); 27 | } else if ("updateTeacherByManager".equals(option)) { 28 | updateTeacherByManager(request, response); 29 | } else if ("FindTeacher".equals(option)) { 30 | FindTeacher(request, response); 31 | } 32 | } 33 | 34 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 35 | this.doPost(request, response); 36 | 37 | } 38 | 39 | private void showAllTeachers(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 40 | List teachers =teacher.getTeacherAll(); 41 | request.setAttribute("teachers",teachers ); 42 | request.getRequestDispatcher("manager_teacher_management.jsp").forward(request, response); 43 | } 44 | 45 | private void deleteTeacher(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 46 | String id = request.getParameter("id"); 47 | teacher.deleteTeacher(id); 48 | showAllTeachers(request, response); 49 | } 50 | 51 | private void updateTeacherByManager(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 52 | String tno = request.getParameter("tno"); 53 | String name = request.getParameter("name"); 54 | String dept = request.getParameter("dept"); 55 | String tel = request.getParameter("tel"); 56 | String email = request.getParameter("email"); 57 | String cno = request.getParameter("cno"); 58 | //String password = request.getParameter("password"); 59 | Teacher te= new Teacher(); 60 | te.setTno(tno); 61 | te.setTname(name); 62 | te.setTdept(dept); 63 | //te.setPassword(password); 64 | te.setTtel(tel); 65 | te.setTcno(cno); 66 | te.setTemail(email); 67 | System.out.println(te.getTcno()); 68 | teacher.updateTeacher(te); 69 | showAllTeachers(request, response); 70 | } 71 | private void FindTeacher(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 72 | String Tno = request.getParameter("Tno"); 73 | String Tname= request.getParameter("Tname"); 74 | String Tdept = request.getParameter("Tdept"); 75 | String CCno= request.getParameter("Cno"); 76 | Teacher te =new Teacher(); 77 | te.setTno(Tno); 78 | te.setTname(Tname); 79 | te.setTdept(Tdept); 80 | te.setTcno(CCno); 81 | 82 | List teachers =teacher.topQuery(te); 83 | request.setAttribute("teachers",teachers ); 84 | request.getRequestDispatcher("manager_teacher_management.jsp").forward(request, response); 85 | } 86 | 87 | private void addTeacher(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 88 | String id = request.getParameter("Tno"); 89 | String name = request.getParameter("Tname"); 90 | String dept = request.getParameter("Tdept"); 91 | String tel = request.getParameter("Ttel"); 92 | String email = request.getParameter("Temail"); 93 | String cno = request.getParameter("CCno"); 94 | String pwd = request.getParameter("password"); 95 | Teacher td = new Teacher(); 96 | td.setTno(id); 97 | td.setTname(name); 98 | td.setTdept(dept); 99 | td.setTemail(email); 100 | td.setTcno(cno); 101 | td.setPassword(pwd); 102 | td.setTtel(tel); 103 | System.out.println(td.getTcno()); 104 | teacher.addTeacher(td); 105 | showAllTeachers(request, response); 106 | } 107 | } 108 | 109 | -------------------------------------------------------------------------------- /web/teacher_course.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/8 5 | Time: 16:39 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 13 | 14 | 15 | layout 后台大布局 - Layui 16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 34 |
35 | 36 |
37 |
38 | 39 | 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 | 83 | 84 | 93 | 94 | 95 | 96 | 97 |
课程号课程名操作
${course.cno}${course.cname} 85 | <%--
--%> 86 | <%-- --%> 87 | <%--
--%> 88 | <% 89 | // request.setAttribute("id",'${course.cno}'); 90 | %> 91 | 添加教材 92 |
98 | 99 |
100 |
101 | 102 |
103 | 104 | 107 | 108 |
109 | 110 | 111 | 124 | 125 | -------------------------------------------------------------------------------- /web/monitor_modify_info.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/8 5 | Time: 8:58 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%-- 9 | Created by IntelliJ IDEA. 10 | User: mazhixiu 11 | Date: 2020/1/7 12 | Time: 21:28 13 | To change this template use File | Settings | File Templates. 14 | --%> 15 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 16 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |
28 | 29 | 30 | 41 |
42 | 43 |
44 |
45 | 46 | 62 |
63 |
64 | 65 |
66 |
67 |
修改班级信息
68 |
69 |
70 |
71 | 72 |
73 | 74 |
75 |
76 |
77 | 78 |
79 | 80 |
81 |
82 |
83 |
84 | 85 | 86 |
87 |
88 | 89 |
90 |
91 |
92 |
93 | 94 | 97 | 98 | 101 | 102 | 103 |
104 | 105 | 106 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/ImportMsg.java: -------------------------------------------------------------------------------- 1 | //package com.javaweb.demo.servlet; 2 | // 3 | // 4 | //import java.io.File; 5 | //import java.io.FileOutputStream; 6 | //import java.io.IOException; 7 | //import java.io.InputStream; 8 | //import java.io.PrintWriter; 9 | //import java.sql.Connection; 10 | //import java.sql.DriverManager; 11 | //import java.sql.PreparedStatement; 12 | //import java.sql.SQLException; 13 | //import java.util.ArrayList; 14 | //import java.util.Iterator; 15 | //import java.util.List; 16 | // 17 | //import javax.servlet.ServletException; 18 | //import javax.servlet.annotation.WebServlet; 19 | //import javax.servlet.http.HttpServlet; 20 | //import javax.servlet.http.HttpServletRequest; 21 | //import javax.servlet.http.HttpServletResponse; 22 | // 23 | //import jxl.Cell; 24 | //import jxl.Sheet; 25 | //import jxl.Workbook; 26 | //import jxl.read.biff.BiffException; 27 | // 28 | //import org.apache.commons.fileupload.FileItem; 29 | //import org.apache.commons.fileupload.FileItemFactory; 30 | //import org.apache.commons.fileupload.FileUploadException; 31 | //import org.apache.commons.fileupload.disk.DiskFileItemFactory; 32 | //import org.apache.commons.fileupload.servlet.ServletFileUpload; 33 | // 34 | //import databaseOrm.DatabaseOperation; 35 | // 36 | ///** 37 | // * Servlet implementation class ImportMsg 38 | // */ 39 | //@WebServlet("/ImportMsg") 40 | //public class ImportMsg extends HttpServlet { 41 | // private static final long serialVersionUID = 1L; 42 | // 43 | // // JDBC 驱动名及数据库 URL 44 | // static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; 45 | // static final String DB_URL = "jdbc:mysql://localhost:3306/sx"; 46 | // 47 | // // 数据库的用户名与密码,需要根据自己的设置 48 | // static final String USER = "root"; 49 | // static final String PASS = "******";//此处为自己数据库的密码 50 | // 51 | // protected void doGet(HttpServletRequest request, 52 | // HttpServletResponse response) throws ServletException, IOException { 53 | // doPost(request, response); 54 | // } 55 | // 56 | // protected void doPost(HttpServletRequest request, 57 | // HttpServletResponse response) throws ServletException, IOException { 58 | // 59 | // FileItemFactory factory = new DiskFileItemFactory(); 60 | // ServletFileUpload upload = new ServletFileUpload(factory); 61 | // 62 | // java.sql.Connection conn = null; 63 | // java.sql.Statement stmt = null; 64 | // try { 65 | // // 注册 JDBC 驱动器 66 | // Class.forName("com.mysql.jdbc.Driver"); 67 | // // 打开一个连接 68 | // conn = DriverManager.getConnection(DB_URL, USER, PASS); 69 | // // 执行 SQL 查询 70 | // stmt = conn.createStatement(); 71 | // } catch (Exception e) { 72 | // // TODO: handle exception 73 | // e.printStackTrace(); 74 | // } 75 | // 76 | // try { 77 | // List items = upload.parseRequest(request); 78 | // InputStream is = null; 79 | // Iterator iter = items.iterator(); 80 | // while (iter.hasNext()) { 81 | // FileItem item = (FileItem) iter.next(); 82 | // if (!item.isFormField()) { 83 | // is = item.getInputStream(); 84 | // } 85 | // } 86 | // Workbook workbook = Workbook.getWorkbook(is); 87 | // Sheet sheet = workbook.getSheet(0); 88 | // // 行数 89 | // int rows = sheet.getColumns(); 90 | // // 列数 91 | // int columns = sheet.getColumns(); 92 | // 93 | // PreparedStatement ps = conn 94 | // .prepareStatement("insert into students(sid,sname,ssex,stelephone) values(?,?,?,?)"); 95 | // 96 | // for (int i = 0; i < rows; i++) { 97 | // if (i == 0) {// 第一行是属性,不读取 98 | // continue; 99 | // } 100 | // Cell ce0 = ((jxl.Sheet) sheet).getCell(0, i); 101 | // Cell ce1 = ((jxl.Sheet) sheet).getCell(1, i); 102 | // Cell ce2 = ((jxl.Sheet) sheet).getCell(2, i); 103 | // Cell ce3 = ((jxl.Sheet) sheet).getCell(3, i); 104 | // 105 | // String c0 = ce0.getContents(); 106 | // String c1 = ce1.getContents(); 107 | // String c2 = ce2.getContents(); 108 | // String c3 = ce3.getContents(); 109 | // 110 | // ps.setString(1, c0); 111 | // ps.setString(2, c1); 112 | // ps.setString(3, c2); 113 | // ps.setString(4, c3); 114 | // ps.execute(); 115 | // } 116 | // ps.close(); 117 | // conn.close(); 118 | // response.sendRedirect("ImportMsgSuccess.html");// 重定向到成功插入学生数据的页面 119 | // } catch (FileUploadException e) { 120 | // e.printStackTrace(); 121 | // } catch (BiffException e) { 122 | // e.printStackTrace(); 123 | // } catch (SQLException e) { 124 | // e.printStackTrace(); 125 | // } catch (Exception e) { 126 | // e.printStackTrace(); 127 | // } 128 | // } 129 | // 130 | //} 131 | -------------------------------------------------------------------------------- /web/teacher_modify_pwd.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/7 5 | Time: 23:01 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 9 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 10 | 11 | 12 | 13 | 14 | 15 | 修改教师密码 16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 34 |
35 | 36 |
37 |
38 | 39 | 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 | 83 |
84 |
85 | 86 |
87 |
88 | 89 | 90 |
91 |
92 | 93 |
94 |
95 | 96 |
97 |
98 | 99 | 102 | 103 | 106 | 107 | 108 |
109 | 110 | 111 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /web/monitor_modify_pwd.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/8 5 | Time: 8:58 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%-- 9 | Created by IntelliJ IDEA. 10 | User: mazhixiu 11 | Date: 2020/1/7 12 | Time: 23:01 13 | To change this template use File | Settings | File Templates. 14 | --%> 15 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 16 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 17 | 18 | 19 | 20 | 21 | 22 | 修改班长密码 23 | 24 | 25 | 26 |
27 |
28 | 29 | 30 | 41 |
42 | 43 |
44 |
45 | 46 | 62 |
63 |
64 | 65 |
66 |
67 |
修改个人信息
68 |
69 |
70 |
71 | 72 |
73 | 74 |
75 |
76 |
77 | 78 |
79 | 80 |
81 |
82 |
83 | 84 |
85 | 86 |
87 |
88 | 89 |
90 |
91 | 92 | 93 |
94 |
95 | 96 |
97 |
98 | 99 |
100 |
101 | 102 | 105 | 106 | 109 | 110 | 111 |
112 | 113 | 114 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /web/manager_index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.javaweb.demo.entity.Admin" %> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | 9 | layout 后台大布局 - Layui 10 | 11 | 12 | 13 |
14 |
15 | 16 | 17 | 28 |
29 | 30 |
31 |
32 | 33 | 81 |
82 |
83 | 84 |
85 | 86 |
87 |
88 | <% 89 | HttpSession session1 = request.getSession(); 90 | Admin user = (Admin) session1.getAttribute("user"); 91 | out.println("欢迎您,管理员:"+user.getMname()); 92 | %> 93 |
94 |
95 | 96 |
97 |
98 | 99 |
100 | 101 | 104 | 105 | 108 | 109 | 110 |
111 | 112 | 113 | 126 | 127 | -------------------------------------------------------------------------------- /src/com/javaweb/demo/servlet/LoginServlet.java: -------------------------------------------------------------------------------- 1 | package com.javaweb.demo.servlet; 2 | 3 | import com.javaweb.demo.dao.AdminDao; 4 | import com.javaweb.demo.dao.MonitorDao; 5 | import com.javaweb.demo.dao.TeacherDao; 6 | 7 | import com.javaweb.demo.dao.impl.AdiminDaoImpl; 8 | import com.javaweb.demo.dao.impl.MonitorDaoImpl; 9 | import com.javaweb.demo.dao.impl.TeacherDaoImpl; 10 | import com.javaweb.demo.entity.Admin; 11 | import com.javaweb.demo.entity.Monitor; 12 | import com.javaweb.demo.entity.Teacher; 13 | 14 | 15 | import javax.servlet.ServletException; 16 | import javax.servlet.annotation.WebServlet; 17 | import javax.servlet.http.HttpServlet; 18 | import javax.servlet.http.HttpServletRequest; 19 | import javax.servlet.http.HttpServletResponse; 20 | import javax.servlet.http.HttpSession; 21 | import java.io.IOException; 22 | 23 | @WebServlet("/LoginServlet") 24 | 25 | public class LoginServlet extends HttpServlet { 26 | TeacherDao te = new TeacherDaoImpl(); 27 | AdminDao ad = new AdiminDaoImpl(); 28 | MonitorDao mo = new MonitorDaoImpl(); 29 | 30 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 31 | request.setCharacterEncoding("utf-8"); 32 | response.setCharacterEncoding("utf-8"); 33 | String option = request.getParameter("option"); 34 | if ("signIn".equals(option)) { 35 | signIn(request, response); 36 | }else if ("quit".equals(option)){ 37 | quit(request, response); 38 | } 39 | 40 | } 41 | 42 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 43 | this.doPost(request, response); 44 | } 45 | 46 | private void signIn(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 47 | String type = request.getParameter("type"); 48 | String username = request.getParameter("username"); 49 | String password = request.getParameter("password"); 50 | if ("manager".equals(type)) { 51 | //用户为管理员 52 | Admin admin = ad.FindAdmin(username); 53 | if (admin == null) { 54 | //用户不存在 55 | String msg = "用户不存在"; 56 | request.setAttribute("msg", msg); 57 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 58 | return; 59 | } else if (admin.getMno().equals(username) &&admin.getPassword().equals(password)){ 60 | //账号密码正确 61 | HttpSession session = request.getSession(); 62 | session.setAttribute("user", admin); 63 | response.sendRedirect(getServletContext().getContextPath()+"/manager_index.jsp"); 64 | return; 65 | } else { 66 | //密码错误 67 | String msg = "密码错误"; 68 | request.setAttribute("msg", msg); 69 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 70 | return; 71 | } 72 | } 73 | if ("teacher".equals(type)) { 74 | 75 | //用户为教师 76 | 77 | Teacher teacher = te.FindTeacher(username); 78 | 79 | if (teacher == null) { 80 | //用户不存在 81 | String msg = "用户不存在"; 82 | request.setAttribute("msg", msg); 83 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 84 | return; 85 | } else if (teacher.getTno().equals(username) && teacher.getPassword().equals(password)){ 86 | //账号密码正确 87 | 88 | HttpSession session = request.getSession(); 89 | session.setAttribute("user", teacher); 90 | response.sendRedirect(getServletContext().getContextPath()+"/teacher_index.jsp"); 91 | return; 92 | } else { 93 | //密码错误 94 | String msg = "密码错误"; 95 | request.setAttribute("msg", msg); 96 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 97 | return; 98 | } 99 | } 100 | if ("monitor".equals(type)) { 101 | //用户为教师 102 | Monitor monitor = mo.findMonitorByCno1(username); 103 | if (monitor == null) { 104 | //用户不存在 105 | String msg = "用户不存在"; 106 | request.setAttribute("msg", msg); 107 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 108 | return; 109 | } else if (monitor.getCno().equals(username) && monitor.getPassword().equals(password)){ 110 | //账号密码正确 111 | 112 | HttpSession session = request.getSession(); 113 | session.setAttribute("user", monitor); 114 | response.sendRedirect(getServletContext().getContextPath()+"/monitor_index.jsp"); 115 | return; 116 | } else { 117 | //密码错误 118 | String msg = "密码错误"; 119 | request.setAttribute("msg", msg); 120 | request.getRequestDispatcher("sign-in.jsp").forward(request, response); 121 | return; 122 | } 123 | } 124 | 125 | } 126 | 127 | 128 | private void quit(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 129 | HttpSession session = request.getSession(); 130 | session.removeAttribute("user"); 131 | response.sendRedirect("sign-in.jsp"); 132 | } 133 | 134 | } 135 | -------------------------------------------------------------------------------- /web/manager_initial.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: mazhixiu 4 | Date: 2020/1/8 5 | Time: 1:13 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page import="com.javaweb.demo.entity.Admin" %> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %> 10 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 11 | 12 | 13 | 14 | 15 | 16 | layout 后台大布局 - Layui 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 35 |
36 | 37 |
38 |
39 | 40 | 88 |
89 |
90 | 91 |
92 | 93 |
94 |
95 |
96 | 选择课程文件: 97 | 98 |

99 | 100 |
101 |
102 |
103 | 104 |
105 |
106 | 107 | 108 | 109 |
110 | 111 | 114 | 115 |
116 | 117 | 118 | 131 | 132 | -------------------------------------------------------------------------------- /web/css/templatemo-style.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | body { 4 | font-family: 'Open Sans', Helvetica, Arial, sans-serif; 5 | font-size: 24px; 6 | font-weight: 300; 7 | overflow-x: hidden; 8 | 9 | } 10 | 11 | a, button { 12 | transition: all 0.3s ease; 13 | color: #FFFFFF; 14 | } 15 | 16 | button:focus { 17 | outline: none; 18 | } 19 | 20 | a:hover { 21 | color: #FFFF00; 22 | text-decoration: underline; 23 | } 24 | a:focus { 25 | text-decoration: none; 26 | outline: none; 27 | } 28 | 29 | h1 { 30 | color: #FFFFFF; 31 | font-size: 4rem; 32 | } 33 | 34 | p { 35 | color: #FFFFFF; 36 | } 37 | 38 | #particles-js { 39 | position: absolute; 40 | top: 0; 41 | left: 0; 42 | z-index: 1000; 43 | width: 100%; 44 | height: 99%; 45 | } 46 | 47 | .cb-slideshow-text-container { 48 | height: 100vh; 49 | display: flex; 50 | align-items: center; 51 | } 52 | 53 | .tm-content { 54 | z-index: 1001; 55 | } 56 | 57 | .form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */ 58 | color: white; 59 | } 60 | .form-control::-moz-placeholder { /* Firefox 19+ */ 61 | color: white; 62 | } 63 | .form-control:-ms-input-placeholder { /* IE 10+ */ 64 | color: white; 65 | } 66 | .form-control:-moz-placeholder { /* Firefox 18- */ 67 | color: white; 68 | } 69 | 70 | .form-control::placeholder { 71 | color: white; 72 | } 73 | 74 | .form-control { 75 | color: #FFFFFF; 76 | border-radius: .5rem; 77 | background-color: transparent; 78 | border: 1px solid #FFFFFF; 79 | padding-top: 10px; 80 | padding-bottom: 10px; 81 | font-size: 1.4rem; 82 | font-weight: 300; 83 | padding: 0.75rem 1.2rem; 84 | } 85 | 86 | .form-section { 87 | color: #FFFFFF; 88 | background-color: transparent; 89 | margin-bottom: 100px; 90 | 91 | } 92 | 93 | .contact_email { 94 | color: #FFFFFF; 95 | } 96 | .tm-btn-subscribe { 97 | background-color: #006699; 98 | border-radius: .5rem; 99 | border-color: white; 100 | padding: 0.75rem 1.6rem; 101 | font-weight: 300; 102 | font-size: 1.4rem; 103 | cursor: pointer; 104 | } 105 | 106 | .tm-btn-subscribe:hover { 107 | background-color: #055278; 108 | } 109 | 110 | .tm-social-icons-container { 111 | margin: 10px; 112 | } 113 | 114 | .tm-social-link { 115 | border-color: #FFFFFF; 116 | color: black; 117 | display: inline-block; 118 | width: 50px; 119 | height: 50px; 120 | text-align: center; 121 | } 122 | 123 | .fa { 124 | color: #FFFFFF; 125 | } 126 | 127 | .footer-link { 128 | margin: 20px; 129 | font-size: 18px; 130 | position: absolute; 131 | bottom: 0; 132 | left: 0; 133 | color: white; 134 | text-align:center; 135 | width:100%; 136 | z-index: 1001; 137 | } 138 | 139 | /* Animation */ 140 | .cb-slideshow, 141 | .cb-slideshow:after { 142 | position: fixed; 143 | width: 100%; 144 | height: 100%; 145 | top: 0px; 146 | left: 0px; 147 | z-index: 0; 148 | } 149 | 150 | .cb-slideshow li { 151 | width: 100%; 152 | height: 100%; 153 | position: absolute; 154 | top: 0px; 155 | left: 0px; 156 | color: transparent; 157 | background-size: cover; 158 | background-position: 50% 50%; 159 | background-repeat: none; 160 | opacity: 0; 161 | z-index: 0; 162 | -webkit-backface-visibility: hidden; 163 | -webkit-animation: imageAnimation 72s linear infinite 0s; 164 | -moz-animation: imageAnimation 72s linear infinite 0s; 165 | -o-animation: imageAnimation 72s linear infinite 0s; 166 | -ms-animation: imageAnimation 72s linear infinite 0s; 167 | animation: imageAnimation 72s linear infinite 0s; 168 | 169 | } 170 | 171 | 172 | .cb-slideshow li:nth-child(1) { 173 | background-image: url(../img/letter_bg_01.jpg) 174 | } 175 | .cb-slideshow li:nth-child(2) { 176 | background-image: url(../img/letter_bg_02.jpg); 177 | -webkit-animation-delay: 12s; 178 | -moz-animation-delay: 12s; 179 | -o-animation-delay: 12s; 180 | -ms-animation-delay: 12s; 181 | animation-delay: 12s; 182 | } 183 | .cb-slideshow li:nth-child(3) { 184 | background-image: url(../img/letter_bg_03.jpg); 185 | -webkit-animation-delay: 24s; 186 | -moz-animation-delay: 24s; 187 | -o-animation-delay: 24s; 188 | -ms-animation-delay: 24s; 189 | animation-delay: 24s; 190 | } 191 | .cb-slideshow li:nth-child(4) { 192 | background-image: url(../img/letter_bg_01.jpg); 193 | animation-delay: 36s; 194 | } 195 | .cb-slideshow li:nth-child(5) { 196 | background-image: url(../img/letter_bg_02.jpg); 197 | animation-delay: 48s; 198 | } 199 | .cb-slideshow li:nth-child(6) { 200 | background-image: url(../img/letter_bg_03.jpg); 201 | animation-delay: 60s; 202 | } 203 | 204 | 205 | @keyframes imageAnimation { 206 | 0% { 207 | opacity: 0; 208 | animation-timing-function: ease-in; 209 | } 210 | 8% { 211 | opacity: 1; 212 | transform: scale(1.15); 213 | animation-timing-function: ease-out; 214 | } 215 | 17% { 216 | opacity: 1; 217 | transform: scale(1.20); 218 | } 219 | 25% { 220 | opacity: 0; 221 | transform: scale(1.40); 222 | } 223 | 100% { opacity: 0 } 224 | } 225 | 226 | 227 | @media screen and (max-width: 1140px) { 228 | .cb-slideshow li div h3 { font-size: 140px } 229 | } 230 | @media screen and (max-width: 600px) { 231 | .cb-slideshow li div h3 { font-size: 80px } 232 | .tm-content { 233 | margin-top: 80px; 234 | } 235 | } 236 | 237 | @media screen and (max-width: 576px) { 238 | .cb-slideshow li div h3 { font-size: 80px } 239 | 240 | .tm-btn-subscribe { 241 | margin-top: 20px; 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /web/css1/templatemo-style.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | body { 4 | font-family: 'Open Sans', Helvetica, Arial, sans-serif; 5 | font-size: 24px; 6 | font-weight: 300; 7 | overflow-x: hidden; 8 | 9 | } 10 | 11 | a, button { 12 | transition: all 0.3s ease; 13 | color: #FFFFFF; 14 | } 15 | 16 | button:focus { 17 | outline: none; 18 | } 19 | 20 | a:hover { 21 | color: #FFFF00; 22 | text-decoration: underline; 23 | } 24 | a:focus { 25 | text-decoration: none; 26 | outline: none; 27 | } 28 | 29 | h1 { 30 | color: #FFFFFF; 31 | font-size: 4rem; 32 | } 33 | 34 | p { 35 | color: #FFFFFF; 36 | } 37 | 38 | #particles-js { 39 | position: absolute; 40 | top: 0; 41 | left: 0; 42 | z-index: 1000; 43 | width: 100%; 44 | height: 99%; 45 | } 46 | 47 | .cb-slideshow-text-container { 48 | height: 100vh; 49 | display: flex; 50 | align-items: center; 51 | } 52 | 53 | .tm-content { 54 | z-index: 1001; 55 | } 56 | 57 | .form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */ 58 | color: white; 59 | } 60 | .form-control::-moz-placeholder { /* Firefox 19+ */ 61 | color: white; 62 | } 63 | .form-control:-ms-input-placeholder { /* IE 10+ */ 64 | color: white; 65 | } 66 | .form-control:-moz-placeholder { /* Firefox 18- */ 67 | color: white; 68 | } 69 | 70 | .form-control::placeholder { 71 | color: white; 72 | } 73 | 74 | .form-control { 75 | color: #FFFFFF; 76 | border-radius: .5rem; 77 | background-color: transparent; 78 | border: 1px solid #FFFFFF; 79 | padding-top: 10px; 80 | padding-bottom: 10px; 81 | font-size: 1.4rem; 82 | font-weight: 300; 83 | padding: 0.75rem 1.2rem; 84 | } 85 | 86 | .form-section { 87 | color: #FFFFFF; 88 | background-color: transparent; 89 | margin-bottom: 100px; 90 | 91 | } 92 | 93 | .contact_email { 94 | color: #FFFFFF; 95 | } 96 | .tm-btn-subscribe { 97 | background-color: #006699; 98 | border-radius: .5rem; 99 | border-color: white; 100 | padding: 0.75rem 1.6rem; 101 | font-weight: 300; 102 | font-size: 1.4rem; 103 | cursor: pointer; 104 | } 105 | 106 | .tm-btn-subscribe:hover { 107 | background-color: #055278; 108 | } 109 | 110 | .tm-social-icons-container { 111 | margin: 10px; 112 | } 113 | 114 | .tm-social-link { 115 | border-color: #FFFFFF; 116 | color: black; 117 | display: inline-block; 118 | width: 50px; 119 | height: 50px; 120 | text-align: center; 121 | } 122 | 123 | .fa { 124 | color: #FFFFFF; 125 | } 126 | 127 | .footer-link { 128 | margin: 20px; 129 | font-size: 18px; 130 | position: absolute; 131 | bottom: 0; 132 | left: 0; 133 | color: white; 134 | text-align:center; 135 | width:100%; 136 | z-index: 1001; 137 | } 138 | 139 | /* Animation */ 140 | .cb-slideshow, 141 | .cb-slideshow:after { 142 | position: fixed; 143 | width: 100%; 144 | height: 100%; 145 | top: 0px; 146 | left: 0px; 147 | z-index: 0; 148 | } 149 | 150 | .cb-slideshow li { 151 | width: 100%; 152 | height: 100%; 153 | position: absolute; 154 | top: 0px; 155 | left: 0px; 156 | color: transparent; 157 | background-size: cover; 158 | background-position: 50% 50%; 159 | background-repeat: none; 160 | opacity: 0; 161 | z-index: 0; 162 | -webkit-backface-visibility: hidden; 163 | -webkit-animation: imageAnimation 72s linear infinite 0s; 164 | -moz-animation: imageAnimation 72s linear infinite 0s; 165 | -o-animation: imageAnimation 72s linear infinite 0s; 166 | -ms-animation: imageAnimation 72s linear infinite 0s; 167 | animation: imageAnimation 72s linear infinite 0s; 168 | 169 | } 170 | 171 | 172 | .cb-slideshow li:nth-child(1) { 173 | background-image: url(../img/letter_bg_01.jpg) 174 | } 175 | .cb-slideshow li:nth-child(2) { 176 | background-image: url(../img/letter_bg_02.jpg); 177 | -webkit-animation-delay: 12s; 178 | -moz-animation-delay: 12s; 179 | -o-animation-delay: 12s; 180 | -ms-animation-delay: 12s; 181 | animation-delay: 12s; 182 | } 183 | .cb-slideshow li:nth-child(3) { 184 | background-image: url(../img/letter_bg_03.jpg); 185 | -webkit-animation-delay: 24s; 186 | -moz-animation-delay: 24s; 187 | -o-animation-delay: 24s; 188 | -ms-animation-delay: 24s; 189 | animation-delay: 24s; 190 | } 191 | .cb-slideshow li:nth-child(4) { 192 | background-image: url(../img/letter_bg_01.jpg); 193 | animation-delay: 36s; 194 | } 195 | .cb-slideshow li:nth-child(5) { 196 | background-image: url(../img/letter_bg_02.jpg); 197 | animation-delay: 48s; 198 | } 199 | .cb-slideshow li:nth-child(6) { 200 | background-image: url(../img/letter_bg_03.jpg); 201 | animation-delay: 60s; 202 | } 203 | 204 | 205 | @keyframes imageAnimation { 206 | 0% { 207 | opacity: 0; 208 | animation-timing-function: ease-in; 209 | } 210 | 8% { 211 | opacity: 1; 212 | transform: scale(1.15); 213 | animation-timing-function: ease-out; 214 | } 215 | 17% { 216 | opacity: 1; 217 | transform: scale(1.20); 218 | } 219 | 25% { 220 | opacity: 0; 221 | transform: scale(1.40); 222 | } 223 | 100% { opacity: 0 } 224 | } 225 | 226 | 227 | @media screen and (max-width: 1140px) { 228 | .cb-slideshow li div h3 { font-size: 140px } 229 | } 230 | @media screen and (max-width: 600px) { 231 | .cb-slideshow li div h3 { font-size: 80px } 232 | .tm-content { 233 | margin-top: 80px; 234 | } 235 | } 236 | 237 | @media screen and (max-width: 576px) { 238 | .cb-slideshow li div h3 { font-size: 80px } 239 | 240 | .tm-btn-subscribe { 241 | margin-top: 20px; 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /web/css1/demo.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'BebasNeueRegular'; 3 | src: url('fonts/BebasNeue-webfont.eot'); 4 | src: url('fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'), 5 | url('fonts/BebasNeue-webfont.woff') format('woff'), 6 | url('fonts/BebasNeue-webfont.ttf') format('truetype'), 7 | url('fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | .TopAd{ 12 | margin-top: 100px; 13 | } 14 | /* CSS reset */ 15 | body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 16 | margin:0; 17 | padding:0; 18 | } 19 | html,body { 20 | margin:0; 21 | padding:0; 22 | } 23 | table { 24 | border-collapse:collapse; 25 | border-spacing:0; 26 | } 27 | fieldset,img { 28 | border:0; 29 | } 30 | input{ 31 | border:1px solid #b0b0b0; 32 | padding:3px 5px 4px; 33 | color:#979797; 34 | width:190px; 35 | } 36 | address,caption,cite,code,dfn,th,var { 37 | font-style:normal; 38 | font-weight:normal; 39 | } 40 | ol,ul { 41 | list-style:none; 42 | } 43 | caption,th { 44 | text-align:left; 45 | } 46 | h1,h2,h3,h4,h5,h6 { 47 | font-size:100%; 48 | font-weight:normal; 49 | } 50 | q:before,q:after { 51 | content:''; 52 | } 53 | abbr,acronym { border:0; 54 | } 55 | /* General Demo Style */ 56 | body{ 57 | font-family: Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif; 58 | background: #000; 59 | font-weight: 400; 60 | font-size: 15px; 61 | color: #aa3e03; 62 | overflow-y: scroll; 63 | overflow-x: hidden; 64 | } 65 | .ie7 body{ 66 | overflow:hidden; 67 | } 68 | a{ 69 | color: #333; 70 | text-decoration: none; 71 | } 72 | .container{ 73 | position: relative; 74 | } 75 | .clr{ 76 | clear: both; 77 | } 78 | .container > header{ 79 | padding: 30px 30px 10px 20px; 80 | margin: 0px 20px 10px 20px; 81 | position: relative; 82 | display: block; 83 | text-shadow: 1px 1px 1px rgba(0,0,0,0.2); 84 | text-align: left; 85 | } 86 | .container > header h1{ 87 | font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif; 88 | font-size: 35px; 89 | line-height: 35px; 90 | position: relative; 91 | font-weight: 400; 92 | color: #fff; 93 | text-shadow: 1px 1px 1px rgba(0,0,0,0.3); 94 | padding: 0px 0px 5px 0px; 95 | } 96 | .container > header h1 span{ 97 | 98 | } 99 | .container > header h2, p.info{ 100 | font-size: 16px; 101 | font-style: italic; 102 | color: #f8f8f8; 103 | text-shadow: 1px 1px 1px rgba(0,0,0,0.6); 104 | } 105 | /* Header Style */ 106 | .codrops-top{ 107 | font-family: Arial, sans-serif; 108 | line-height: 24px; 109 | font-size: 11px; 110 | width: 100%; 111 | background: #000; 112 | opacity: 0.9; 113 | text-transform: uppercase; 114 | z-index: 9999; 115 | position: relative; 116 | -moz-box-shadow: 1px 0px 2px #000; 117 | -webkit-box-shadow: 1px 0px 2px #000; 118 | box-shadow: 1px 0px 2px #000; 119 | } 120 | .codrops-top a{ 121 | padding: 0px 10px; 122 | letter-spacing: 1px; 123 | color: #ddd; 124 | display: block; 125 | float: left; 126 | } 127 | .codrops-top a:hover{ 128 | color: #fff; 129 | } 130 | .codrops-top span.right{ 131 | float: right; 132 | } 133 | .codrops-top span.right a{ 134 | float: none; 135 | display: inline; 136 | } 137 | 138 | p.codrops-demos{ 139 | display: block; 140 | padding: 15px 0px; 141 | } 142 | p.codrops-demos a, 143 | p.codrops-demos a.current-demo, 144 | p.codrops-demos a.current-demo:hover{ 145 | display: inline-block; 146 | border: 1px solid #6d0019; 147 | padding: 4px 10px 3px; 148 | font-size: 13px; 149 | line-height: 18px; 150 | margin: 2px 3px; 151 | font-weight: 800; 152 | -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); 153 | -moz-box-shadow:0px 1px 1px rgba(0,0,0,0.1); 154 | box-shadow: 0px 1px 1px rgba(0,0,0,0.1); 155 | color:#fff; 156 | -webkit-border-radius: 5px; 157 | -moz-border-radius: 5px; 158 | border-radius: 5px; 159 | background: #a90329; 160 | background: -moz-linear-gradient(top, #a90329 0%, #8f0222 44%, #6d0019 100%); 161 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a90329), color-stop(44%,#8f0222), color-stop(100%,#6d0019)); 162 | background: -webkit-linear-gradient(top, #a90329 0%,#8f0222 44%,#6d0019 100%); 163 | background: -o-linear-gradient(top, #a90329 0%,#8f0222 44%,#6d0019 100%); 164 | background: -ms-linear-gradient(top, #a90329 0%,#8f0222 44%,#6d0019 100%); 165 | background: linear-gradient(top, #a90329 0%,#8f0222 44%,#6d0019 100%); 166 | } 167 | p.codrops-demos a:hover{ 168 | background: #6d0019; 169 | } 170 | p.codrops-demos a:active{ 171 | background: #6d0019; 172 | background: -moz-linear-gradient(top, #6d0019 0%, #8f0222 56%, #a90329 100%); 173 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6d0019), color-stop(56%,#8f0222), color-stop(100%,#a90329)); 174 | background: -webkit-linear-gradient(top, #6d0019 0%,#8f0222 56%,#a90329 100%); 175 | background: -o-linear-gradient(top, #6d0019 0%,#8f0222 56%,#a90329 100%); 176 | background: -ms-linear-gradient(top, #6d0019 0%,#8f0222 56%,#a90329 100%); 177 | background: linear-gradient(top, #6d0019 0%,#8f0222 56%,#a90329 100%); 178 | -webkit-box-shadow: 0px 1px 1px rgba(255,255,255,0.9); 179 | -moz-box-shadow:0px 1px 1px rgba(255,255,255,0.9); 180 | box-shadow: 0px 1px 1px rgba(255,255,255,0.9); 181 | } 182 | p.codrops-demos a.current-demo, 183 | p.codrops-demos a.current-demo:hover{ 184 | color: #A5727D; 185 | background: #6d0019; 186 | } 187 | /* Media Queries */ 188 | @media screen and (max-width: 767px) { 189 | .container > header{ 190 | text-align: center; 191 | } 192 | p.codrops-demos { 193 | position: relative; 194 | top: auto; 195 | left: auto; 196 | } 197 | } -------------------------------------------------------------------------------- /web/layui/lay/modules/transfer.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
','
','","
","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
    ',"
    "].join("")},v=['
    ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
    ','",'","
    ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
    "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
  • ",'',"
  • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

    '+(t||"")+"

    ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return a.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); -------------------------------------------------------------------------------- /web/js1/modernizr.custom.86080.js: -------------------------------------------------------------------------------- 1 | /* Modernizr 2.0.6 (Custom Build) | MIT & BSD 2 | * Build: http://www.modernizr.com/download/#-cssanimations-iepp-cssclasses-testprop-testallprops-domprefixes-load 3 | */ 4 | ;window.Modernizr=function(a,b,c){function A(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+n.join(c+" ")+c).split(" ");return z(d,b)}function z(a,b){for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function y(a,b){return!!~(""+a).indexOf(b)}function x(a,b){return typeof a===b}function w(a,b){return v(prefixes.join(a+";")+(b||""))}function v(a){k.cssText=a}var d="2.0.6",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l,m=Object.prototype.toString,n="Webkit Moz O ms Khtml".split(" "),o={},p={},q={},r=[],s,t={}.hasOwnProperty,u;!x(t,c)&&!x(t.call,c)?u=function(a,b){return t.call(a,b)}:u=function(a,b){return b in a&&x(a.constructor.prototype[b],c)},o.cssanimations=function(){return A("animationName")};for(var B in o)u(o,B)&&(s=B.toLowerCase(),e[s]=o[B](),r.push((e[s]?"":"no-")+s));v(""),j=l=null,a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b