├── .gitignore ├── .idea ├── .rebel-remote.xml.bak ├── .rebel.xml.bak ├── artifacts │ └── DbCourseDesign_war_exploded.xml ├── libraries │ ├── lib.xml │ └── libs.xml ├── misc.xml ├── modules.xml ├── uiDesigner.xml ├── vcs.xml └── workspace.xml ├── DbCourseDesign.iml ├── README.md ├── lib ├── javax.annotation.jar ├── javax.ejb.jar ├── javax.jms.jar ├── javax.persistence.jar ├── javax.resource.jar ├── javax.servlet.jar ├── javax.servlet.jsp.jar ├── javax.servlet.jsp.jstl.jar └── javax.transaction.jar ├── libs ├── commons-logging-4.0.6.jar ├── fastjson-1.2.9.jar ├── jstl-1.2.jar └── mysql-connector-java-8.0.12.jar ├── sql ├── course.sql ├── course_runtime.sql ├── course_semester.sql ├── message.sql ├── notice.sql ├── select_list.sql ├── semester.sql ├── student.sql ├── study_course.sql ├── teacher.sql └── user.sql ├── src ├── DB │ ├── CourseDB.java │ ├── CourseSemesterDB.java │ ├── Course_teacheDB.java │ ├── DB.java │ ├── MessageDB.java │ ├── NoticeDB.java │ ├── SelectListDB.java │ ├── SemesterDB.java │ ├── StudentDB.java │ ├── StudyCourseDB.java │ ├── TeacherDB.java │ └── UserDB.java ├── model │ ├── Course.java │ ├── CourseSemester.java │ ├── Notice.java │ ├── SelectList.java │ ├── Student.java │ ├── StudyCourse.java │ ├── Teacher.java │ ├── User.java │ └── message.java ├── rebel-remote.xml ├── rebel.xml ├── servlets │ ├── content.java │ ├── course │ │ ├── AddCourseServlet.java │ │ ├── accessnewcourse.java │ │ ├── getcourseinfo.java │ │ ├── handlehelp.java │ │ ├── newcourse.java │ │ ├── searcharrange.java │ │ ├── searchclass.java │ │ ├── searchhelp.java │ │ ├── searchnew.java │ │ └── studenthelp.java │ ├── publicfun │ │ ├── LoginServlet.java │ │ ├── LogoutServlet.java │ │ ├── changePasswordServlet.java │ │ └── changeinfo.java │ ├── root │ │ ├── addpeople.java │ │ ├── addselectlist.java │ │ ├── arrangecourse.java │ │ ├── managerun.java │ │ ├── runinfo.java │ │ ├── runingcontrol.java │ │ ├── searchnotice.java │ │ ├── searchselectlist.java │ │ └── sendnotice.java │ ├── student │ │ ├── course_table.java │ │ ├── gradelist.java │ │ ├── select_course.java │ │ └── sendMessageServlet.java │ └── teacher │ │ ├── coursegrademanage.java │ │ ├── grademanage.java │ │ ├── studentlist.java │ │ └── teachlist.java └── view │ ├── CourseTable.java │ ├── Course_select.java │ ├── Course_teach.java │ └── StudentInfo.java ├── web ├── WEB-INF │ ├── lib │ │ └── jstl-1.2.jar │ └── web.xml ├── app │ ├── addcourse.jsp │ ├── changepassword.jsp │ ├── content.jsp │ ├── include │ │ ├── changepasswordbody.jsp │ │ ├── htmlFooter.jsp │ │ ├── htmlHead.jsp │ │ ├── managepersonalinfobody.jsp │ │ ├── rootheader.jsp │ │ ├── rootleft.jsp │ │ ├── rootright.jsp │ │ ├── studentheader.jsp │ │ ├── stuleft.jsp │ │ ├── sturight.jsp │ │ ├── teacherheader.jsp │ │ ├── teacherleft.jsp │ │ └── teacherright.jsp │ ├── managepersonalinfo.jsp │ ├── root │ │ ├── addnewpeople.jsp │ │ ├── coursearrangement.jsp │ │ ├── courseinfo.jsp │ │ ├── createlist.jsp │ │ ├── newcourse.jsp │ │ ├── runingcontrol.jsp │ │ ├── sendnotice.jsp │ │ └── studenthelp.jsp │ ├── student │ │ ├── course_table.jsp │ │ ├── gradelist.jsp │ │ ├── noticedetail.jsp │ │ ├── select_course.jsp │ │ ├── sendmessage.jsp │ │ └── sendmessagebody.jsp │ └── teacher │ │ ├── gradecourse.jsp │ │ ├── gradestudentlist.jsp │ │ ├── studentlist.jsp │ │ └── teachlist.jsp ├── css │ ├── add.css │ ├── bootstrap.min.css │ ├── course_table.css │ ├── error.css │ ├── jquery.validate-min.css │ ├── login.css │ └── zftal-ui.css ├── images │ ├── ico_but18.png │ ├── ico_but19.png │ ├── ico_but28.png │ ├── ico_but30.png │ ├── ico_but31.png │ ├── ico_but36.png │ ├── ico_but42.png │ ├── ico_but46.png │ ├── ico_but83.png │ ├── log_ic01.png │ ├── log_ic02.png │ ├── login.png │ ├── login_bg_pic.jpg │ ├── logo_jw_d.png │ ├── logo_jw_w.png │ └── user_logo.jpg ├── index.jsp └── js │ ├── bootstrap.min.js │ ├── jquery-1.12.4.min.js │ ├── jquery.extends.contact-min.js │ ├── jquery.utils.contact-min.js │ ├── jquery.zftal_zh_CN-min.js │ └── login.js └── 北京化工大学数据库原理课程设计报告_计科1601_高谦_2016014302.docx /.gitignore: -------------------------------------------------------------------------------- 1 | out.idea 2 | 3 | -------------------------------------------------------------------------------- /.idea/.rebel-remote.xml.bak: -------------------------------------------------------------------------------- 1 | 2 | 3 | DbCourseDesign 4 | 5 | -------------------------------------------------------------------------------- /.idea/.rebel.xml.bak: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/artifacts/DbCourseDesign_war_exploded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/out/artifacts/DbCourseDesign_war_exploded 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/libraries/lib.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/libs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /DbCourseDesign.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 30 | 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 | -------------------------------------------------------------------------------- /lib/javax.annotation.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.annotation.jar -------------------------------------------------------------------------------- /lib/javax.ejb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.ejb.jar -------------------------------------------------------------------------------- /lib/javax.jms.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.jms.jar -------------------------------------------------------------------------------- /lib/javax.persistence.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.persistence.jar -------------------------------------------------------------------------------- /lib/javax.resource.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.resource.jar -------------------------------------------------------------------------------- /lib/javax.servlet.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.servlet.jar -------------------------------------------------------------------------------- /lib/javax.servlet.jsp.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.servlet.jsp.jar -------------------------------------------------------------------------------- /lib/javax.servlet.jsp.jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.servlet.jsp.jstl.jar -------------------------------------------------------------------------------- /lib/javax.transaction.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/lib/javax.transaction.jar -------------------------------------------------------------------------------- /libs/commons-logging-4.0.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/libs/commons-logging-4.0.6.jar -------------------------------------------------------------------------------- /libs/fastjson-1.2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/libs/fastjson-1.2.9.jar -------------------------------------------------------------------------------- /libs/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/libs/jstl-1.2.jar -------------------------------------------------------------------------------- /libs/mysql-connector-java-8.0.12.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/libs/mysql-connector-java-8.0.12.jar -------------------------------------------------------------------------------- /sql/course.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `course` VALUES ('0001', '高等数学', 1, '理学院', '', '这是基础课,比高中数学难一点', '2016014302'); 2 | INSERT INTO `course` VALUES ('0002', '线性代数', 1, '信息科学与技术学院', '', '线性代数是数学的一个分支,它的研究对象是向量,向量空间(或称线性空间),线性变换和有限维的线性方程组。向量空间是现代数学的一个重要课题;因而,线性代数被广泛地应用于抽象代数和泛函分析中;通过解析几何,线性代数得以被具体表示。线性代数的理论已被泛化为算子理论。由于科学研究中的非线性模型通常可以被近似为线性模型,使得线性代数被广泛地应用于自然科学和社会科学中。', '2016014302'); 3 | INSERT INTO `course` VALUES ('0003', '程序设计基础', 1, '信息科学与技术学院', '', '通过C语言进行程序设计和开发,使得学生掌握基本的程序设计语言,达到可以用程序解决问题的水平,培养学生编程思维,为以后的程序开发打下基础。', '2016014302'); 4 | INSERT INTO `course` VALUES ('0004', '中国近现代史纲要', 0, '文法学院', '', '中国近现代史纲要,了解历史,以史为鉴。', '2016014302'); 5 | INSERT INTO `course` VALUES ('0005', '大学物理I', 1, '理学院', '0001', '大学物理,是大学理工科类的一门基础课程,通过课程的学习,使学生熟悉自然界物质的结构,性质,相互作用及其运动的基本规律,为后继专业基础与专业课程的学习及进一步获取有关知识奠定必要的物理基础。但工科专业以力学基础和电磁学为主要授课。', '2016014302'); 6 | INSERT INTO `course` VALUES ('0006', '大学物理II', 0, '理学院', '0005', '大学物理,是大学理工科类的一门基础课程,通过课程的学习,使学生熟悉自然界物质的结构,性质,相互作用及其运动的基本规律,为后继专业基础与专业课程的学习及进一步获取有关知识奠定必要的物理基础。但工科专业以力学基础和电磁学为主要授课。这是大学物理I的续集,很精彩', '2016014302'); 7 | INSERT INTO `course` VALUES ('0007', '形式与政策I', 1, '文法学院', '0000', '形势与政策”课是高校思想政治理论课的重要组成部分,是对学生进行形势与政策教育的主要渠道和主要阵地,是每个大学生的一门必修课程。\r\n它以马克思主义和中国特色社会主义理论为指导,以高校培养目标为依据,紧密结合国内外形势和大学生的思想实际,对大学生进行比较系统的党的路线、方针和政策教育的思想政治教育课程。\r\n本课程主要采用专题讲解的形式,重点讲述当前一个时期的时事热点问题,对于帮助当代大学生正确认清国内外形势,准确把握党在现时期的重大方针政策,坚定走中国特色社会主义道路的信心,积极投身改革开放和现代化建设的伟大事业,牢固树立马克思主义的形势观和政策观均具有十分重要的作用和意义。', '2016014302'); 8 | INSERT INTO `course` VALUES ('0008', '军事理论', 1, '文法学院', '0000', '有关军队和战争的概念、范畴、原理、原则等的体系。科学的军事理论是军事活动的本质及其客观规律的正确反映。来源于军事实践,经理论概括后给军事实践以指导,并在不断接受军事实践检验的基础上得到丰富和发展。', '2016014302'); 9 | INSERT INTO `course` VALUES ('0009', '大学英语C', 1, '理学院', '', '《大学英语》创刊于1983年,是面向大学生和英语自学者的双语教学辅导刊物。旨在紧密结合大学英语的教学实际,反映教与学两方面的要求,满足不同层次读者的需要。也指大学后所学习英语课程。', '9999999999'); 10 | -------------------------------------------------------------------------------- /sql/course_runtime.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0001', 1, 1, 2); 2 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0001', 3, 6, 7); 3 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0002', 3, 6, 7); 4 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0003', 1, 3, 5); 5 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0005', 2, 1, 2); 6 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0005', 4, 6, 7); 7 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0007', 6, 11, 13); 8 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0008', 5, 6, 9); 9 | INSERT INTO `course_runtime` VALUES ('2018-2019学年第1学期', '0009', 2, 1, 2); 10 | -------------------------------------------------------------------------------- /sql/course_semester.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `course_semester` VALUES ('0009', '2018-2019学年第1学期', '9999999999', 1, 17, 45, 'B-204', 0); 2 | INSERT INTO `course_semester` VALUES ('0001', '2018-2019学年第1学期', '1111111111', 1, 17, 180, '北阶四', 0); 3 | INSERT INTO `course_semester` VALUES ('0002', '2018-2019学年第1学期', '2222222222', 1, 17, 180, '北阶六', 0); 4 | INSERT INTO `course_semester` VALUES ('0003', '2018-2019学年第1学期', '4444444444', 1, 15, 40, 'A-206', 0); 5 | INSERT INTO `course_semester` VALUES ('0005', '2018-2019学年第1学期', '3333333333', 1, 17, 180, 'A阶-103', 0); 6 | INSERT INTO `course_semester` VALUES ('0007', '2018-2019学年第1学期', '2016014302', 1, 16, 180, 'A阶-302', 0); 7 | INSERT INTO `course_semester` VALUES ('0008', '2018-2019学年第1学期', '2016014302', 1, 14, 180, '图书馆学术报告厅', 0); 8 | -------------------------------------------------------------------------------- /sql/message.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `message` VALUES (5, '2016014302', '老师您好,我想问一下形式与政策课为啥要考试', '2018-12-13 18:09:40', 0, '课程问题'); 2 | INSERT INTO `message` VALUES (6, '2016014302', '老师,请问面向对象可以不考试,直接都满分给大家么', '2018-12-14 11:34:35', 1, '面向对象程序设计成绩问题'); 3 | INSERT INTO `message` VALUES (7, '2016014302', '这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容这里是内容,这里是内容', '2018-12-14 11:54:02', 1, '成绩查询查询不了,显示未评价'); 4 | INSERT INTO `message` VALUES (8, '2016014302', '形式与政策可不可以不要考试,真的很烦。', '2018-12-19 21:41:01', 0, '形势与政策课程问题'); 5 | INSERT INTO `message` VALUES (9, '2016014302', '老师,为什么Linux编程课没了,不能选。大三上只有三门选修课,大三下是要累死我们么?', '2018-12-19 21:43:25', 0, '不能选修Linux编程课程问题'); 6 | -------------------------------------------------------------------------------- /sql/notice.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `notice` VALUES (1, '2018-11-25 10:28:01', '各位考生\r\n\r\n2018年下半年全国大学英语四、六级口语考试将于11月17、18日举行,现将相关事宜通知如下\r\n\r\n 一、考试时间\r\n\r\n 1. 11月17日:全国大学英语四级口语考试(CET-SET4)\r\n\r\n 2. 11月18日:全国大学英语六级口语考试(CET-SET6)\r\n\r\n二、考试地点:\r\n\r\n 第七微机室 实验楼A407\r\n\r\n 三、考生准考证\r\n\r\n考生登录全国大学英语四、六级考试网站http://cet.kwgl.etest.net.cn自行打印准考证。', '关于大学英语四六级考试的通知'); 2 | INSERT INTO `notice` VALUES (2, '2018-12-15 01:50:46', '注意,这是一条测试内容', '测试的文章公告标题'); 3 | INSERT INTO `notice` VALUES (4, '2018-12-15 10:12:59', '各位考生\r\n\r\n2018年下半年全国大学英语四、六级口语考试将于11月17、18日举行,现将相关事宜通知如下\r\n\r\n 一、考试时间\r\n\r\n 1. 11月17日:全国大学英语四级口语考试(CET-SET4)\r\n\r\n 2. 11月18日:全国大学英语六级口语考试(CET-SET6)\r\n\r\n二、考试地点:\r\n\r\n 第七微机室 实验楼A407\r\n\r\n 三、考生准考证\r\n\r\n考生登录全国大学英语四、六级考试网站http://cet.kwgl.etest.net.cn自行打印准考证。\r\n五、考试基本流程及考试注意事项\r\n\r\n1.考试基本流程:\r\n\r\n考生请按《考试场次及候场时间表》中”候场时间”到达考试地点——安检后,到候场室(第五微机室),——核查”二证”准考证和身份证——在《考生签到表》上签字,观看有关考试的PPT,熟悉考试系统的操作——听从监考老师引导进入考场第七微机室——考生自行选择贴有粉色桌号的机位——立即登录进行系统测试——考试正式开始——至停止作答——系统回收答案,答案回收成功后,考生方可离场。\r\n\r\nCET-SET为计算机化考试,请提前登录www.cet.edu.cn,熟悉考试系统操作\r\n\r\n2.考试注意事项:\r\n\r\n① 不得跨考试场次考试,需上一场次考生离开考场后,方可进入考场。\r\n\r\n② 系统在自我介绍部分自动对考生声音质量进行检测,如果检测未通过,则要求考生再次完成该部分,若两次均未通过,则该考生与同组考生退出本场考试,转移至其它场次再次进行考试。\r\n\r\n③ 考试过程中,如某台考试机出现故障,则该考试机的考生及与其配对的考生均须延至下一考试场次完成考试。\r\n\r\n④ 考生只允许携带准考证和身份证进入考场。其他物品一律不得带入考场,否则按作弊处理。\r\n\r\n教务处\r\n2018年11月12日', '2018年11月全国大学英语四、六级口语考试相关事宜通知'); 4 | INSERT INTO `notice` VALUES (7, '2018-12-15 10:20:52', '全校通识课程之网络课程的导课将于10月23日(星期二)13:50-15:30在A阶203开课,面向对网课有疑问的本科生和预科生。课程将由智慧树的公司技术人员给大家讲解,主要内容包含网络课程的上课方式,考核方式和特殊问题的处理。请同学们准时上课。', '全校通识课程之网络课程导课通知(昌平校区)'); 5 | INSERT INTO `notice` VALUES (8, '2018-12-15 10:21:22', '11月17、18日两天昌平校区部分学生参加大学英语口语考试,由于涉及人数较少,考试时间较短(每位考生考试时间约1小时),且每位考生的考试时间时段不同,因此不统一停课。\r\n\r\n 相关任课老师和考生请注意:考生若有课程或实验与此口语考试时间冲突,请在11月15日前携带本人《口语考试准考证》与任课老师请假, 并与任课老师协商补课或补做实验的时间。\r\n\r\n 在正式口语考试前,学校将组织一次模拟口语考试,报考口语考试的考生可自愿参加。具体模拟考试时间、地点及要求将通过教务处网站及微信企业号推送,请相关同学密切关注。\r\n\r\n 特此通知。', '关于口语考试有关事宜的通知'); 6 | INSERT INTO `notice` VALUES (9, '2018-12-15 10:24:29', '全体本科生:\r\n\r\n现将2018-2019-1学期课程的选课安排和注意事项通知如下,请大家务必在规定时间内完成选课。\r\n\r\n网上选课路径:http://jwglxt.buct.edu.cn\r\n\r\n用户名为学号。密码忘记的同学请到各学院教务办公室联系重置密码。\r\n\r\n 一、选课时间安排\r\n\r\n正选阶段:2018年7月9日12:30--2018年7月16日16:00。\r\n\r\n退补选、重修、学籍异动选课阶段:2018-2019-1学期开学后1-3周(具体安排届时另行发布通知)。\r\n\r\n二、重点说明\r\n\r\n1、为了缓解选课开放时网络拥堵,提高学生的选课体验,体育项目选课本次由原来的“先到先得”的方式,调整为“志愿优先 余量补选”的方式,分为两个时段进行,请同学们关注《体育课选课操作指南》。本次选课手机端无法实现部分选课功能,请大家在电脑端操作。\r\n\r\n2、同一课程名称的课程可能存在学分、课程性质(必修或选修)、开班类型(正常开班、单开班)等不同,请大家选课时一定要仔细核对任课教师,课程代码,课程性质,学分,校区等信息,避免错选。\r\n\r\n3、所选自修课程若是考查课,考试时间不会在系统中显示,学生有义务自己主动获取这门课的考试安排,否则后果自负。\r\n\r\n4、每位学生只能使用自己的学号和密码进行网上选课和查询信息。密码一定要牢记并切勿转告他人,因密码保密不善造成的一切后果,责任自负。学生未经授权不得使用他人账号及密码进入系统,不得代替他人选课。\r\n\r\n5、请同学们要严格遵守选课时间,选课结束后,不再做选课的后补工作。\r\n\r\n6、学生选修高年级课程须符合《北京化工大学本科生学籍管理规定》的相关规定。\r\n\r\n7、由于有停课,预置课程等多种情况,同学们要及时确认课表,不要按照手抄版或者截图版上课,避免遗漏课程。补退选结束后3个工作日内,学生务必上网再次核对选课结果。如有误者,请立即打印出本人课程表后,到教务处查询,过期一律不再变更。\r\n\r\n8、学生应在选课前完成评教,否则不能选课。\r\n\r\n9、超出教室容量或上课时间冲突的课程不能选课。\r\n\r\n10、2017级学生修业期间内,必须至少选2学分的创新创业教育课程(课程代码以IEE开头的课程),否则无法毕业。\r\n\r\n11、在选课期间内,选课服务器24小时对学生开放。学生可根据自己的实际情况选择在非高峰时期上网选课。建议在校园网内选课,以获得较快的网络连接速度。', '2018-2019-1学期课程正选阶段选课通知'); 7 | -------------------------------------------------------------------------------- /sql/select_list.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `select_list` VALUES ('计算机科学与技术', '2018-2019学年第1学期', '(\"0001\",\"0009\",\"0002\",\"0003\",\"0007\",\"0008\")', '1'); 2 | -------------------------------------------------------------------------------- /sql/semester.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `semester` VALUES ('2016', '2017', 1); 2 | INSERT INTO `semester` VALUES ('2016', '2017', 2); 3 | INSERT INTO `semester` VALUES ('2017', '2018', 1); 4 | INSERT INTO `semester` VALUES ('2017', '2018', 2); 5 | INSERT INTO `semester` VALUES ('2018', '2019', 1); 6 | -------------------------------------------------------------------------------- /sql/student.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `student` VALUES ('2016014302', '高谦', '信息科学与技术学院', '男', '计算机科学与技术', '计科1601', '河北省', '保定市', '1997年3月29日', '15801209263', '1905946527', '18733834968', '2016014302@mail.buct.edu.cn', '中共党员', '汉族', '河北定兴第三中学', '英语', '1'); 2 | -------------------------------------------------------------------------------- /sql/study_course.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/sql/study_course.sql -------------------------------------------------------------------------------- /sql/teacher.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `teacher` VALUES ('1111111111', '杨卫星', '理学院', '副教授', '10086', '昌平校区图书馆516', '女', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 2 | INSERT INTO `teacher` VALUES ('2016014302', '高谦', '信息科学与技术学院', '副教授', '15801209263', '昌平校区实验楼A417', '男', '河北省', '保定市', '2016', '1905946527', '18733834968', '2016014302@mail.buct.edu.cn', '北京化工大学', '学士', '没研究啥'); 3 | INSERT INTO `teacher` VALUES ('2222222222', '王一多', '信息科学与技术学院', '讲师', '10086', '昌平校区实验楼AA-408', '男', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 4 | INSERT INTO `teacher` VALUES ('3333333333', '郎海涛', '理学院', '教授', '10086', '昌平校区图书馆514', '男', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 5 | INSERT INTO `teacher` VALUES ('4444444444', '高敬阳', '信息科学与技术学院', '教授', '10086', '昌平校区图书馆513', '女', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 6 | INSERT INTO `teacher` VALUES ('5555555555', '曹曦', '信息科学与技术学院', '讲师', '10086', '昌平校区图书馆511', '男', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 7 | INSERT INTO `teacher` VALUES ('6666666666', '陈磊', '信息科学与技术学院', '副教授', '10086', '昌平校区图书馆510', '男', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 8 | INSERT INTO `teacher` VALUES ('7777777777', '史晟辉', '信息科学与技术学院', '副教授', '10086', '昌平校区图书馆509', '女', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 9 | INSERT INTO `teacher` VALUES ('8888888888', '胡伟', '信息科学与技术学院', '副教授', '10086', '昌平校区图书馆516', '男', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 10 | INSERT INTO `teacher` VALUES ('9999999999', '陈雪峰', '理学院', '副教授', '10086', '昌平校区图书馆420', '女', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 11 | -------------------------------------------------------------------------------- /sql/user.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO `user` VALUES ('1111111111', 'teacher', '1111111111'); 2 | INSERT INTO `user` VALUES ('2016014301', 'student', 'erzi'); 3 | INSERT INTO `user` VALUES ('2016014301', 'teacher', 'erzi'); 4 | INSERT INTO `user` VALUES ('2016014302', 'root', '19970329'); 5 | INSERT INTO `user` VALUES ('2016014302', 'student', '19970329'); 6 | INSERT INTO `user` VALUES ('2016014302', 'teacher', '19970329'); 7 | INSERT INTO `user` VALUES ('2222222222', 'teacher', '2222222222'); 8 | INSERT INTO `user` VALUES ('3333333333', 'teacher', '3333333333'); 9 | INSERT INTO `user` VALUES ('4444444444', 'teacher', '4444444444'); 10 | INSERT INTO `user` VALUES ('5555555555', 'teacher', '5555555555'); 11 | INSERT INTO `user` VALUES ('6666666666', 'teacher', '6666666666'); 12 | INSERT INTO `user` VALUES ('7777777777', 'teacher', '7777777777'); 13 | INSERT INTO `user` VALUES ('8888888888', 'teacher', '8888888888'); 14 | INSERT INTO `user` VALUES ('9999999999', 'teacher', '9999999999'); 15 | -------------------------------------------------------------------------------- /src/DB/Course_teacheDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | import view.Course_teach; 3 | import java.sql.Connection; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | import java.util.ArrayList; 8 | public class Course_teacheDB { 9 | public ArrayList getTeachList(String semester,String tno) throws SQLException { 10 | Connection connection=DB.getConnection(); 11 | String sql="SELECT course. cname,course_semester.*,course_runtime.runday,course_runtime.begintime,course_runtime.endtime from course_semester " + 12 | "left join course on course_semester.cno=course.cno " + 13 | "left join course_runtime on course_semester.cno=course_runtime.cno and course_semester.semester=course_runtime.semester" + 14 | " where course_semester.semester=? and course_semester.tno=?"; 15 | PreparedStatement ps=connection.prepareStatement(sql); 16 | ps.setString(1,semester); 17 | ps.setString(2,tno); 18 | ResultSet resultSet=ps.executeQuery(); 19 | ArrayList result=new ArrayList(); 20 | String [] arr={"零","一","二","三","四","五","六","日"}; 21 | while(resultSet.next()){ 22 | Course_teach temp=new Course_teach(); 23 | temp.setCname(resultSet.getString("cname")); 24 | temp.setLocation(resultSet.getString("location")); 25 | temp.setSemester(semester); 26 | temp.setWeektime(resultSet.getString("weekbegin")+"-"+resultSet.getString("weekend")+"周"); 27 | temp.setTeachtime("周"+arr[Integer.parseInt(resultSet.getString("runday"))]+"第"+ 28 | resultSet.getString("begintime")+"-"+ resultSet.getString("endtime")+"节"); 29 | result.add(temp); 30 | } 31 | DB.close(connection,ps,resultSet); 32 | return result; 33 | } 34 | 35 | public ArrayList getTeachListMore(String tno, String semester) throws SQLException { 36 | ArrayList result=new ArrayList(); 37 | String sql="select course.cname,course_semester.*,course_runtime.runday,course_runtime.begintime,course_runtime.endtime " + 38 | "from course_semester " + 39 | "left join course on course.cno=course_semester.cno " + 40 | "left join course_runtime on course_semester.cno=course_runtime.cno" + 41 | " where course_semester.semester=? and course_semester.tno=?"; 42 | Connection connection=DB.getConnection(); 43 | PreparedStatement ps=connection.prepareStatement(sql); 44 | ps.setString(1,semester); 45 | ps.setString(2,tno); 46 | ResultSet resultSet=ps.executeQuery(); 47 | while(resultSet.next()) 48 | { 49 | Course_teach temp=new Course_teach(); 50 | temp.setCname(resultSet.getString("cname")); 51 | temp.setLocation(resultSet.getString("location")); 52 | temp.setSemester(semester); 53 | temp.setWeektime(resultSet.getString("weekbegin")+"-"+resultSet.getString("weekend")+"周"); 54 | temp.setCno(resultSet.getString("cno")); 55 | temp.setCapacity(Integer.parseInt(resultSet.getString("capacity"))); 56 | result.add(temp); 57 | } 58 | DB.close(connection,ps,resultSet); 59 | return result; 60 | } 61 | 62 | public ArrayList getTeachTime(String semester, String cno) throws SQLException { 63 | Connection connection=DB.getConnection(); 64 | String sql="select * from course_runtime where semester=? and cno=?"; 65 | PreparedStatement ps=connection.prepareStatement(sql); 66 | ps.setString(1,semester); 67 | ps.setString(2,cno); 68 | ResultSet resultSet=ps.executeQuery(); 69 | ArrayList res=new ArrayList(); 70 | String [] arr={"零","一","二","三","四","五","六","日"}; 71 | while(resultSet.next()) 72 | { 73 | String temp="星期"+arr[Integer.parseInt(resultSet.getString("runday"))]+" 第 "+ 74 | resultSet.getString("begintime")+"-"+ resultSet.getString("endtime")+" 节"; 75 | res.add(temp); 76 | } 77 | return res; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/DB/DB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | import java.sql.*; 3 | public class DB { 4 | //初始化连接参数; 5 | public static String url="jdbc:mysql://localhost:3306/db?serverTimezone=UTC&useSSL=false&characterEncoding=utf8"; 6 | public static String user="root"; 7 | public static String password="root"; 8 | //初始化驱动加载: 9 | static{ 10 | try { 11 | Class.forName("com.mysql.cj.jdbc.Driver"); 12 | } catch (ClassNotFoundException e) { 13 | e.printStackTrace(); 14 | } 15 | } 16 | public static Connection getConnection() 17 | { 18 | try { 19 | Connection connection=DriverManager.getConnection(url,user,password); 20 | return connection; 21 | } catch (SQLException e) { 22 | e.printStackTrace(); 23 | } 24 | return null; 25 | } 26 | public static void close(Connection connection,Statement st,ResultSet rs) 27 | { 28 | try { 29 | connection.close(); 30 | st.close(); 31 | rs.close(); 32 | } 33 | catch(Exception e) { 34 | e.printStackTrace(); 35 | } 36 | } 37 | public static void close(Connection connection,PreparedStatement st) 38 | { 39 | try { 40 | connection.close(); 41 | st.close(); 42 | } 43 | catch(Exception e) 44 | { 45 | e.printStackTrace(); 46 | } 47 | } 48 | public static void close(Statement st) 49 | { 50 | try { 51 | st.close(); 52 | } 53 | catch(Exception e) 54 | { 55 | e.printStackTrace(); 56 | } 57 | } 58 | public static void close(Connection connection) 59 | { 60 | try { 61 | connection.close(); 62 | } 63 | catch(Exception e) 64 | { 65 | e.printStackTrace(); 66 | } 67 | } 68 | public static void close(ResultSet resultSet) 69 | { 70 | try { 71 | resultSet.close(); 72 | } 73 | catch(Exception e) 74 | { 75 | e.printStackTrace(); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/DB/NoticeDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | 3 | import model.Notice; 4 | 5 | import java.sql.Connection; 6 | import java.sql.PreparedStatement; 7 | import java.sql.ResultSet; 8 | import java.sql.SQLException; 9 | import java.util.ArrayList; 10 | import java.util.List; 11 | 12 | public class NoticeDB { 13 | public List getNotice() throws SQLException { 14 | Connection connection=DB.getConnection(); 15 | String sql="select * from notice order by sendtime desc limit 10"; 16 | PreparedStatement ps=connection.prepareStatement(sql); 17 | ResultSet resultSet=ps.executeQuery(); 18 | List res=new ArrayList(); 19 | while (resultSet.next()) 20 | { 21 | Notice notice=new Notice(); 22 | notice.setContent(resultSet.getString("content")); 23 | notice.setSendtime(resultSet.getString("sendtime")); 24 | notice.setId(resultSet.getInt("id")); 25 | notice.setTitle(resultSet.getString("title")); 26 | res.add(notice); 27 | } 28 | DB.close(connection,ps,resultSet); 29 | return res; 30 | } 31 | public List SelectById(int id) throws SQLException { 32 | Connection connection=DB.getConnection(); 33 | String sql="select * from notice where id =?"; 34 | PreparedStatement ps=connection.prepareStatement(sql); 35 | ps.setInt(1,id); 36 | ResultSet resultSet=ps.executeQuery(); 37 | List res=new ArrayList(); 38 | if(resultSet.next()) 39 | { 40 | Notice notice=new Notice(); 41 | notice.setContent(resultSet.getString("content")); 42 | notice.setSendtime(resultSet.getString("sendtime")); 43 | notice.setId(resultSet.getInt("id")); 44 | notice.setTitle(resultSet.getString("title")); 45 | res.add(notice); 46 | } 47 | DB.close(connection,ps,resultSet); 48 | return res; 49 | } 50 | public Boolean add(String content,String title) throws SQLException { 51 | String sql="insert into notice set content=?,sendtime=NOW(),title=?"; 52 | Connection connection=DB.getConnection(); 53 | PreparedStatement ps=connection.prepareStatement(sql); 54 | ps.setString(1,content); 55 | ps.setString(2,title); 56 | Integer rows=ps.executeUpdate(); 57 | if(rows>0) 58 | return true; 59 | return false; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/DB/SelectListDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | 3 | import model.SelectList; 4 | import java.sql.Connection; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | public class SelectListDB { 12 | public ArrayList getinfoByCondition(String major, String semester,String status) throws SQLException { 13 | ArrayList result=new ArrayList(); 14 | String sql="select * from select_list where 1 "; 15 | String sql1="and 1 "; 16 | String sql2="and 1 "; 17 | String sql3="and 1 "; 18 | List par=new ArrayList(); 19 | if(!major.equals("all")) 20 | { 21 | sql1="and major = ? "; 22 | par.add(major); 23 | } 24 | if(!semester.equals("all")) 25 | { 26 | sql2=" and semester = ? "; 27 | par.add(semester); 28 | } 29 | if(!status.equals("all")) 30 | { 31 | sql3="and status=? "; 32 | par.add(status); 33 | } 34 | sql+=sql1+sql2+sql3; 35 | Connection connection=DB.getConnection(); 36 | PreparedStatement ps=connection.prepareStatement(sql); 37 | for(Integer i=0;i0) 62 | return true; 63 | return false; 64 | } 65 | public Boolean del(String semester,String major,String cno) throws SQLException { 66 | String sql="delete from select_list where semester=? and major=? and cno=?"; 67 | Connection connection=DB.getConnection(); 68 | PreparedStatement ps=null; 69 | ps=connection.prepareStatement(sql); 70 | Integer rows=ps.executeUpdate(); 71 | if(rows>0) 72 | return true; 73 | return false; 74 | } 75 | 76 | public Boolean changeStatus(String type, String semester, String major) throws SQLException { 77 | Connection connection=DB.getConnection(); 78 | String sql="update select_list set status=? where semester=? and major=?"; 79 | PreparedStatement ps=connection.prepareStatement(sql); 80 | if(type.equals("stop")) 81 | ps.setString(1,"0"); 82 | else 83 | ps.setString(1,"1"); 84 | ps.setString(2,semester); 85 | ps.setString(3,major); 86 | Integer rows=ps.executeUpdate(); 87 | DB.close(connection,ps); 88 | if(rows>0) 89 | return true; 90 | return false; 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /src/DB/SemesterDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | 3 | import javax.xml.transform.Result; 4 | import java.sql.Connection; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.util.ArrayList; 9 | 10 | public class SemesterDB { 11 | public String getCurrentSemester() throws SQLException { 12 | Connection connection=DB.getConnection(); 13 | String sql="SELECT * FROM `semester` order by beginyear desc,endyear desc,number desc LIMIT 1"; 14 | PreparedStatement ps=connection.prepareStatement(sql); 15 | ResultSet resultSet=ps.executeQuery(); 16 | String result=""; 17 | if(resultSet.next()) 18 | { 19 | result+=resultSet.getString("beginyear")+"-"; 20 | result+=resultSet.getString("endyear")+"学年第"; 21 | result+=resultSet.getString("number")+"学期"; 22 | } 23 | DB.close(connection,ps); 24 | return result; 25 | } 26 | public ArrayList getSemesterList() throws SQLException{ 27 | ArrayList result=new ArrayList(); 28 | String sql="SELECT * FROM `semester` order by beginyear desc,endyear desc,number desc"; 29 | Connection connection=DB.getConnection(); 30 | PreparedStatement ps=connection.prepareStatement(sql); 31 | ResultSet resultSet=ps.executeQuery(); 32 | while(resultSet.next()) 33 | { 34 | String temp=""; 35 | temp+=resultSet.getString("beginyear")+"-"; 36 | temp+=resultSet.getString("endyear")+"学年第"; 37 | temp+=resultSet.getString("number")+"学期"; 38 | result.add(temp); 39 | } 40 | DB.close(connection,ps,resultSet); 41 | return result; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/DB/StudentDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | import model.Student; 3 | import java.sql.Connection; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | 8 | public class StudentDB { 9 | public Student getInfo(String sno) 10 | { 11 | Connection connection=null; 12 | PreparedStatement ps=null; 13 | ResultSet res=null; 14 | String sql="select * from student where sno=?"; 15 | try { 16 | connection = DB.getConnection(); 17 | ps = connection.prepareStatement(sql); 18 | ps.setString(1,sno); 19 | res=ps.executeQuery(); 20 | if(res.next()) 21 | { 22 | Student student=new Student(); 23 | student.setCollege(res.getString("college")); 24 | student.setKlass(res.getString("klass")); 25 | student.setMajor(res.getString("major")); 26 | student.setSno(res.getString("sno")); 27 | student.setSname(res.getString("sname")); 28 | student.setSex(res.getString("sex")); 29 | student.setBirthday(res.getString("birthday")); 30 | student.setEmail(res.getString("email")); 31 | student.setCity(res.getString("city")); 32 | student.setPhone(res.getString("phone")); 33 | student.setForeignlanguage(res.getString("foreignlanguage")); 34 | student.setWechat(res.getString("wechat")); 35 | student.setStatus(res.getString("status")); 36 | student.setQq(res.getString("qq")); 37 | student.setPoliticalstatus(res.getString("politicalstatus")); 38 | student.setNation(res.getString("nation")); 39 | student.setProvince(res.getString("province")); 40 | student.setNation(res.getString("nation")); 41 | student.setHighschool(res.getString("highschool")); 42 | student.setStatus(res.getString("status")); 43 | return student; 44 | } 45 | }catch(Exception e) 46 | { 47 | e.printStackTrace(); 48 | } 49 | finally { 50 | DB.close(connection,ps,res); 51 | } 52 | return null; 53 | } 54 | 55 | public Boolean add(Student student) throws SQLException { 56 | Connection connection=null; 57 | PreparedStatement ps=null; 58 | String sql="insert into student set sno=?,sname=?,sex=?,klass=?,college=?,major=?"; 59 | connection=DB.getConnection(); 60 | ps=connection.prepareStatement(sql); 61 | ps.setString(1,student.getSno()); 62 | ps.setString(2,student.getSname()); 63 | ps.setString(3,student.getSex()); 64 | ps.setString(4,student.getKlass()); 65 | ps.setString(5,student.getCollege()); 66 | ps.setString(6,student.getMajor()); 67 | Integer rows=ps.executeUpdate(); 68 | if(rows>0) { 69 | sql="insert into user set account=?,password=?,type=?"; 70 | ps=connection.prepareStatement(sql); 71 | ps.setString(1,student.getSno()); 72 | ps.setString(2,student.getSno()); 73 | ps.setString(3,"student"); 74 | rows=ps.executeUpdate(); 75 | DB.close(connection,ps); 76 | if(rows>0) 77 | return true; 78 | } 79 | return false; 80 | } 81 | 82 | public Boolean changeInfo(String sql, String account, String kind, String value) throws SQLException { 83 | sql+=kind+"=? where sno=?"; 84 | Connection connection=DB.getConnection(); 85 | PreparedStatement ps=connection.prepareStatement(sql); 86 | ps.setString(1,value); 87 | ps.setString(2,account); 88 | System.out.println(ps.toString()); 89 | Integer rows=ps.executeUpdate(); 90 | DB.close(connection,ps); 91 | if(rows>0) 92 | return true; 93 | else 94 | return false; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /src/DB/TeacherDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | 3 | import model.Teacher; 4 | 5 | import java.sql.Connection; 6 | import java.sql.PreparedStatement; 7 | import java.sql.ResultSet; 8 | import java.sql.SQLException; 9 | 10 | public class TeacherDB { 11 | public Teacher getInfo(String tno) 12 | { 13 | Connection connection=null; 14 | PreparedStatement ps=null; 15 | ResultSet res=null; 16 | connection=DB.getConnection(); 17 | String sql="select * from teacher where tno=?"; 18 | try { 19 | ps = connection.prepareStatement(sql); 20 | ps.setString(1,tno); 21 | res = ps.executeQuery(); 22 | if(res.next()) 23 | { 24 | //查到老师的相关信息: 25 | Teacher teacher=new Teacher(); 26 | teacher.setTno(res.getString("tno")); 27 | teacher.setTname(res.getString("tname")); 28 | teacher.setTdept(res.getString("tdept")); 29 | teacher.setRank(res.getString("rank")); 30 | teacher.setPhone(res.getString("phone")); 31 | teacher.setSex(res.getString("sex")); 32 | teacher.setLocation(res.getString("location")); 33 | 34 | teacher.setWechat(res.getString("wechat")); 35 | teacher.setQq(res.getString("qq")); 36 | teacher.setProvince(res.getString("province")); 37 | teacher.setGraduateschool(res.getString("graduateschool")); 38 | teacher.setEmail(res.getString("email")); 39 | teacher.setDegree(res.getString("degree")); 40 | teacher.setComeyear(res.getString("comeyear")); 41 | teacher.setCity(res.getString("city")); 42 | teacher.setDirecition(res.getString("direction")); 43 | return teacher; 44 | } 45 | }catch(Exception e) 46 | { 47 | e.printStackTrace(); 48 | } 49 | finally { 50 | DB.close(connection,ps,res); 51 | } 52 | return null; 53 | } 54 | 55 | public Boolean add(Teacher teacher) throws SQLException { 56 | Connection connection=DB.getConnection(); 57 | String sql="insert into teacher set tno=?,tname=?,tdept=?,rank=?,phone=?,location=?,sex=?"; 58 | PreparedStatement ps=connection.prepareStatement(sql); 59 | ps.setString(1,teacher.getTno()); 60 | ps.setString(2,teacher.getTname()); 61 | ps.setString(3,teacher.getTdept()); 62 | ps.setString(4,teacher.getRank()); 63 | ps.setString(5,teacher.getPhone()); 64 | ps.setString(6,teacher.getLocation()); 65 | ps.setString(7,teacher.getSex()); 66 | Integer rows=ps.executeUpdate(); 67 | if(rows>0) 68 | { 69 | sql="insert into user set account=?,password=?,type=?"; 70 | ps=connection.prepareStatement(sql); 71 | ps.setString(1,teacher.getTno()); 72 | ps.setString(2,teacher.getTno()); 73 | ps.setString(3,"teacher"); 74 | rows=ps.executeUpdate(); 75 | DB.close(connection,ps); 76 | if(rows>0) 77 | return true; 78 | } 79 | return false; 80 | } 81 | 82 | public Boolean changeInfo(String sql,String account, String kind, String value) throws SQLException { 83 | Connection connection=DB.getConnection(); 84 | sql+=kind+"=? where tno=?"; 85 | PreparedStatement ps=connection.prepareStatement(sql); 86 | ps.setString(1,value); 87 | ps.setString(2,account); 88 | Integer rows=ps.executeUpdate(); 89 | DB.close(connection,ps); 90 | if(rows>0) 91 | return true; 92 | else 93 | return false; 94 | } 95 | } 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /src/DB/UserDB.java: -------------------------------------------------------------------------------- 1 | package DB; 2 | 3 | import model.User; 4 | import java.sql.Connection; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | 8 | public class UserDB { 9 | public User login(String account,String password,String type) 10 | { 11 | Connection connection=null; 12 | PreparedStatement ps=null; 13 | ResultSet res=null; 14 | try{ 15 | connection=DB.getConnection(); 16 | String sql="select * from user where account=? and password=? and type=?"; 17 | ps=connection.prepareStatement(sql); 18 | ps.setString(1,account); 19 | ps.setString(2,password); 20 | ps.setString(3,type); 21 | res=ps.executeQuery(); 22 | if(res.next()) 23 | { 24 | User user=new User(); 25 | user.setAccount(res.getString("account")); 26 | user.setPassword(res.getString("password")); 27 | user.setType(res.getString("type")); 28 | return user; 29 | } 30 | } 31 | catch(Exception e) 32 | { 33 | e.printStackTrace(); 34 | } 35 | finally { 36 | DB.close(connection,ps,res); 37 | } 38 | return null; 39 | } 40 | public Boolean changePassword(String account,String oldpassword,String type,String newpassword) 41 | { 42 | Connection connection=null; 43 | PreparedStatement ps=null; 44 | connection=DB.getConnection(); 45 | String sql="update user set user.password=? where account=" + 46 | "(select temp.account from (select account from user where type=? and account=?)temp)"; 47 | try { 48 | ps = connection.prepareStatement(sql); 49 | ps.setString(1, newpassword); 50 | ps.setString(2, type); 51 | ps.setString(3, account); 52 | Integer result = ps.executeUpdate(); 53 | if(result!=0) 54 | return true; 55 | }catch (Exception e) { 56 | e.printStackTrace(); 57 | } 58 | finally { 59 | DB.close(connection,ps); 60 | } 61 | return false; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/model/Course.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class Course { 4 | private Integer id; 5 | private String cno; 6 | private String cname; 7 | private String dept; 8 | private String pcno; 9 | private Integer status; 10 | private String settno; 11 | private String introduction; 12 | 13 | public void setIntroduction(String introduction) { 14 | this.introduction = introduction; 15 | } 16 | 17 | public String getIntroduction() { 18 | return introduction; 19 | } 20 | 21 | public String getSettno() { 22 | return settno; 23 | } 24 | 25 | public void setSettno(String settno) { 26 | this.settno = settno; 27 | } 28 | 29 | public Integer getStatus() { 30 | return status; 31 | } 32 | 33 | public void setStatus(Integer status) { 34 | this.status = status; 35 | } 36 | 37 | public Integer getId() { 38 | return id; 39 | } 40 | 41 | public void setId(Integer id) { 42 | this.id = id; 43 | } 44 | 45 | public String getPcno() { 46 | return pcno; 47 | } 48 | 49 | public void setPcno(String pcno) { 50 | this.pcno = pcno; 51 | } 52 | 53 | public String getDept() { 54 | return dept; 55 | } 56 | 57 | public void setDept(String dept) { 58 | this.dept = dept; 59 | } 60 | 61 | public String getCno() { 62 | return cno; 63 | } 64 | 65 | public void setCno(String cno) { 66 | this.cno = cno; 67 | } 68 | 69 | public String getCname() { 70 | return cname; 71 | } 72 | 73 | public void setCname(String cname) { 74 | this.cname = cname; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/model/CourseSemester.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class CourseSemester { 4 | private String cno; 5 | private String semester; 6 | private String tno; 7 | private Integer weekbegin; 8 | private Integer weekend; 9 | private Integer capacity; 10 | private String location; 11 | private Integer status; 12 | 13 | //以下是视图属性 14 | private String cname; 15 | private String tname; 16 | private Integer runday; 17 | private Integer begintime; 18 | private Integer endtime; 19 | 20 | public String getTname() { 21 | return tname; 22 | } 23 | 24 | public Integer getBegintime() { 25 | return begintime; 26 | } 27 | 28 | public Integer getEndtime() { 29 | return endtime; 30 | } 31 | 32 | public Integer getRunday() { 33 | return runday; 34 | } 35 | 36 | public void setTname(String tname) { 37 | this.tname = tname; 38 | } 39 | 40 | public void setBegintime(Integer begintime) { 41 | this.begintime = begintime; 42 | } 43 | 44 | public void setEndtime(Integer endtime) { 45 | this.endtime = endtime; 46 | } 47 | 48 | public void setRunday(Integer runday) { 49 | this.runday = runday; 50 | } 51 | 52 | public void setCname(String cname) { 53 | this.cname = cname; 54 | } 55 | 56 | public String getCname() { 57 | return cname; 58 | } 59 | 60 | public String getCno() { 61 | return cno; 62 | } 63 | 64 | public Integer getStatus() { 65 | return status; 66 | } 67 | 68 | public String getTno() { 69 | return tno; 70 | } 71 | 72 | public Integer getCapacity() { 73 | return capacity; 74 | } 75 | 76 | public String getLocation() { 77 | return location; 78 | } 79 | 80 | public Integer getWeekbegin() { 81 | return weekbegin; 82 | } 83 | 84 | public Integer getWeekend() { 85 | return weekend; 86 | } 87 | 88 | public String getSemester() { 89 | return semester; 90 | } 91 | 92 | public void setStatus(Integer status) { 93 | this.status = status; 94 | } 95 | 96 | public void setCno(String cno) { 97 | this.cno = cno; 98 | } 99 | 100 | public void setTno(String tno) { 101 | this.tno = tno; 102 | } 103 | 104 | public void setCapacity(Integer capacity) { 105 | this.capacity = capacity; 106 | } 107 | 108 | public void setLocation(String location) { 109 | this.location = location; 110 | } 111 | 112 | public void setSemester(String semester) { 113 | this.semester = semester; 114 | } 115 | 116 | public void setWeekbegin(Integer weekbegin) { 117 | this.weekbegin = weekbegin; 118 | } 119 | 120 | public void setWeekend(Integer weekend) { 121 | this.weekend = weekend; 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /src/model/Notice.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class Notice { 4 | private Integer id; 5 | private String content; 6 | private String sendtime; 7 | private String title; 8 | 9 | public String getSendtime() { 10 | return sendtime; 11 | } 12 | 13 | public Integer getId() { 14 | return id; 15 | } 16 | 17 | public String getContent() { 18 | return content; 19 | } 20 | 21 | public void setSendtime(String sendtime) { 22 | this.sendtime = sendtime; 23 | } 24 | 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | 29 | public void setContent(String content) { 30 | this.content = content; 31 | } 32 | 33 | public void setTitle(String title) { 34 | this.title=title; 35 | } 36 | 37 | public String getTitle() { 38 | return title; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/model/SelectList.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class SelectList { 4 | public String semester; 5 | public String cno; 6 | public String major; 7 | private String status; 8 | 9 | public String getSemester() { 10 | return semester; 11 | } 12 | 13 | public String getCno() { 14 | return cno; 15 | } 16 | 17 | public String getMajor() { 18 | return major; 19 | } 20 | 21 | public void setSemester(String semester) { 22 | this.semester = semester; 23 | } 24 | 25 | public void setCno(String cno) { 26 | this.cno = cno; 27 | } 28 | 29 | public void setMajor(String major) { 30 | this.major = major; 31 | } 32 | 33 | public void setStatus(String status) { 34 | this.status=status; 35 | } 36 | public String getStatus() 37 | { 38 | return this.status; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/model/Student.java: -------------------------------------------------------------------------------- 1 | package model; 2 | public class Student { 3 | private Integer id; 4 | private String sno; 5 | private String sname; 6 | private String college; 7 | private String sex; 8 | private String major; 9 | private String klass; 10 | private String type="student"; 11 | 12 | 13 | private String province; 14 | private String city; 15 | private String birthday; 16 | private String phone; 17 | private String qq; 18 | private String wechat; 19 | private String email; 20 | private String politicalstatus; 21 | private String nation; 22 | private String highschool; 23 | private String foreignlanguage; 24 | private String status; 25 | 26 | public String getType() { 27 | return type; 28 | } 29 | 30 | public void setType(String type) { 31 | this.type = type; 32 | } 33 | 34 | public Integer getId() { 35 | return id; 36 | } 37 | 38 | public String getCollege() { 39 | return college; 40 | } 41 | 42 | public String getKlass() { 43 | return klass; 44 | } 45 | 46 | public String getMajor() { 47 | return major; 48 | } 49 | 50 | public String getSex() { 51 | return sex; 52 | } 53 | 54 | public String getSname() { 55 | return sname; 56 | } 57 | 58 | public String getSno() { 59 | return sno; 60 | } 61 | 62 | public void setId(Integer id) { 63 | this.id = id; 64 | } 65 | 66 | public void setCollege(String college) { 67 | this.college = college; 68 | } 69 | 70 | public void setKlass(String klass) { 71 | this.klass = klass; 72 | } 73 | 74 | public void setMajor(String major) { 75 | this.major = major; 76 | } 77 | 78 | public void setSex(String sex) { 79 | this.sex = sex; 80 | } 81 | 82 | public void setSname(String sname) { 83 | this.sname = sname; 84 | } 85 | 86 | public void setSno(String sno) { 87 | this.sno = sno; 88 | } 89 | 90 | public String getBirthday() { 91 | return birthday; 92 | } 93 | 94 | public void setPhone(String phone) { 95 | this.phone = phone; 96 | } 97 | 98 | public String getCity() { 99 | return city; 100 | } 101 | 102 | public String getEmail() { 103 | return email; 104 | } 105 | 106 | public String getNation() { 107 | return nation; 108 | } 109 | 110 | public String getForeignlanguage() { 111 | return foreignlanguage; 112 | } 113 | 114 | public String getHighschool() { 115 | return highschool; 116 | } 117 | 118 | public String getPhone() { 119 | return phone; 120 | } 121 | 122 | public String getPoliticalstatus() { 123 | return politicalstatus; 124 | } 125 | 126 | public String getProvince() { 127 | return province; 128 | } 129 | 130 | public String getQq() { 131 | return qq; 132 | } 133 | 134 | public String getWechat() { 135 | return wechat; 136 | } 137 | 138 | public String getStatus() { 139 | return status; 140 | } 141 | 142 | public void setBirthday(String birthday) { 143 | this.birthday = birthday; 144 | } 145 | 146 | public void setCity(String city) { 147 | this.city = city; 148 | } 149 | 150 | public void setEmail(String email) { 151 | this.email = email; 152 | } 153 | 154 | public void setHighschool(String highschool) { 155 | this.highschool = highschool; 156 | } 157 | 158 | public void setStatus(String status) { 159 | this.status = status; 160 | } 161 | 162 | public void setNation(String nation) { 163 | this.nation = nation; 164 | } 165 | 166 | public void setForeignlanguage(String foreignlanguage) { 167 | this.foreignlanguage = foreignlanguage; 168 | } 169 | 170 | public void setPoliticalstatus(String politicalstatus) { 171 | this.politicalstatus = politicalstatus; 172 | } 173 | 174 | public void setProvince(String province) { 175 | this.province = province; 176 | } 177 | 178 | public void setQq(String qq) { 179 | this.qq = qq; 180 | } 181 | 182 | public void setWechat(String wechat) { 183 | this.wechat = wechat; 184 | } 185 | } 186 | -------------------------------------------------------------------------------- /src/model/StudyCourse.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class StudyCourse { 4 | private String sno; 5 | private String semester; 6 | private String cno; 7 | private String grade; 8 | 9 | //下面的是view 属性 10 | private String sname; 11 | private String cname; 12 | public String getCname() { 13 | return cname; 14 | } 15 | 16 | public void setCname(String cname) { 17 | this.cname = cname; 18 | } 19 | 20 | public String getSname() { 21 | return sname; 22 | } 23 | 24 | public void setSname(String sname) { 25 | this.sname = sname; 26 | } 27 | 28 | public String getSemester() { 29 | return semester; 30 | } 31 | 32 | public String getCno() { 33 | return cno; 34 | } 35 | 36 | public String getSno() { 37 | return sno; 38 | } 39 | 40 | public String getGrade() { 41 | return grade; 42 | } 43 | 44 | public void setSemester(String semester) { 45 | this.semester = semester; 46 | } 47 | 48 | public void setCno(String cno) { 49 | this.cno = cno; 50 | } 51 | 52 | public void setSno(String sno) { 53 | this.sno = sno; 54 | } 55 | 56 | public void setGrade(String grade) { 57 | this.grade = grade; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/model/Teacher.java: -------------------------------------------------------------------------------- 1 | package model; 2 | public class Teacher { 3 | private Integer id; 4 | private String tno; 5 | private String tname; 6 | private String tdept; 7 | private String rank; 8 | private String phone; 9 | private String location; 10 | private String sex; 11 | private String type="teacher"; 12 | 13 | private String province; 14 | private String city; 15 | private String comeyear; 16 | private String qq; 17 | private String wechat; 18 | private String email; 19 | private String graduateschool; 20 | private String degree; 21 | private String direction; 22 | 23 | public String getWechat() { 24 | return wechat; 25 | } 26 | 27 | public String getQq() { 28 | return qq; 29 | } 30 | 31 | public String getProvince() { 32 | return province; 33 | } 34 | 35 | public String getEmail() { 36 | return email; 37 | } 38 | 39 | public String getCity() { 40 | return city; 41 | } 42 | 43 | public String getComeyear() { 44 | return comeyear; 45 | } 46 | 47 | public String getDegree() { 48 | return degree; 49 | } 50 | 51 | public String getGraduateschool() { 52 | return graduateschool; 53 | } 54 | 55 | public void setWechat(String wechat) { 56 | this.wechat = wechat; 57 | } 58 | 59 | public void setQq(String qq) { 60 | this.qq = qq; 61 | } 62 | 63 | public void setProvince(String province) { 64 | this.province = province; 65 | } 66 | 67 | public void setEmail(String email) { 68 | this.email = email; 69 | } 70 | 71 | public void setCity(String city) { 72 | this.city = city; 73 | } 74 | 75 | public void setComeyear(String comeyear) { 76 | this.comeyear = comeyear; 77 | } 78 | 79 | public void setDegree(String degree) { 80 | this.degree = degree; 81 | } 82 | 83 | public void setGraduateschool(String graduaeschool) { 84 | this.graduateschool = graduaeschool; 85 | } 86 | 87 | public Integer getId() { 88 | return id; 89 | } 90 | 91 | public String getPhone() { 92 | return phone; 93 | } 94 | 95 | public String getLocation() { 96 | return location; 97 | } 98 | 99 | public String getRank() { 100 | return rank; 101 | } 102 | 103 | public String getTdept() { 104 | return tdept; 105 | } 106 | 107 | public String getTname() { 108 | return tname; 109 | } 110 | 111 | public String getTno() { 112 | return tno; 113 | } 114 | 115 | public void setId(Integer id) { 116 | this.id = id; 117 | } 118 | 119 | public void setLocation(String location) { 120 | this.location = location; 121 | } 122 | 123 | public void setPhone(String phone) { 124 | this.phone = phone; 125 | } 126 | 127 | public void setRank(String rank) { 128 | this.rank = rank; 129 | } 130 | 131 | public void setTdept(String tdept) { 132 | this.tdept = tdept; 133 | } 134 | 135 | public void setTname(String tname) { 136 | this.tname = tname; 137 | } 138 | 139 | public void setTno(String tno) { 140 | this.tno = tno; 141 | } 142 | 143 | public String getType() { 144 | return type; 145 | } 146 | 147 | public void setType(String type) { 148 | this.type = type; 149 | } 150 | 151 | public String getSex() { 152 | return sex; 153 | } 154 | 155 | public void setSex(String sex) { 156 | this.sex = sex; 157 | } 158 | 159 | public void setDirecition(String direction) { 160 | this.direction=direction; 161 | } 162 | public String getDirection() 163 | { 164 | return this.direction; 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /src/model/User.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class User { 4 | private Integer id; 5 | private String account; 6 | private String password; 7 | private String type; 8 | 9 | public Integer getId() { 10 | return id; 11 | } 12 | 13 | public String getType() { 14 | return type; 15 | } 16 | 17 | public String getAccount() { 18 | return account; 19 | } 20 | 21 | public String getPassword() { 22 | return password; 23 | } 24 | 25 | public void setAccount(String account) { 26 | this.account = account; 27 | } 28 | 29 | public void setId(Integer id) { 30 | this.id = id; 31 | } 32 | 33 | public void setPassword(String password) { 34 | this.password = password; 35 | } 36 | 37 | public void setType(String type) { 38 | this.type = type; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/model/message.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class Message { 4 | private Integer id; 5 | private String sno; 6 | private String content; 7 | private String sendtime; 8 | private Integer status; 9 | private String title; 10 | public Integer getId() { 11 | return id; 12 | } 13 | public String getSno() { 14 | return sno; 15 | } 16 | public String getContent() { 17 | return content; 18 | } 19 | 20 | public String getSendtime() { 21 | return sendtime; 22 | } 23 | 24 | public String getTitle() { 25 | return title; 26 | } 27 | 28 | public void setTitle(String title) { 29 | this.title = title; 30 | } 31 | 32 | public void setSendtime(String sendtime) { 33 | this.sendtime = sendtime; 34 | } 35 | 36 | public void setId(Integer id) { 37 | this.id = id; 38 | } 39 | 40 | public void setSno(String sno) { 41 | this.sno = sno; 42 | } 43 | 44 | public void setContent(String content) { 45 | this.content = content; 46 | } 47 | 48 | 49 | public void setStatus(Integer status) { 50 | this.status = status; 51 | } 52 | 53 | public Integer getStatus() { 54 | return status; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/rebel-remote.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | DbCourseDesign 4 | 5 | -------------------------------------------------------------------------------- /src/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/servlets/content.java: -------------------------------------------------------------------------------- 1 | package servlets; 2 | 3 | import DB.*; 4 | import model.*; 5 | import view.Course_select; 6 | import view.Course_teach; 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 javax.servlet.http.HttpSession; 14 | import java.io.IOException; 15 | import java.io.PrintWriter; 16 | import java.sql.SQLException; 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | 20 | @WebServlet("/content") 21 | public class content extends HttpServlet { 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | HttpSession session=request.getSession(); 24 | try { 25 | String type = (String) session.getAttribute("type"); 26 | if (type.equals("root")) { 27 | MessageDB messageDB = new MessageDB(); 28 | List result = messageDB.getAllUncomplete(); 29 | CourseDB courseDB = new CourseDB(); 30 | List courseapp = courseDB.getAllUncompleCourse(); 31 | request.setAttribute("helpList", result); 32 | request.setAttribute("newcourse", courseapp); 33 | request.getRequestDispatcher("app/content.jsp").forward(request, response); 34 | } else if (type.equals("student")) { 35 | Student student =(Student) session.getAttribute("userinfo"); 36 | String sno=student.getSno(); 37 | String semester=(String) session.getAttribute("semester"); 38 | if(semester==null) { 39 | response.setStatus(500); 40 | PrintWriter printWriter =response.getWriter(); 41 | printWriter.print(""); 42 | printWriter.flush(); 43 | printWriter.close(); 44 | } 45 | NoticeDB noticeDB = new NoticeDB(); 46 | StudyCourseDB studyCourseDB=new StudyCourseDB(); 47 | try { 48 | List result = noticeDB.getNotice(); 49 | List course_table=studyCourseDB.getCourseTableList(sno,semester); 50 | List gradelist=studyCourseDB.getGradeList(sno,semester); 51 | request.setAttribute("noticelist", result); 52 | request.setAttribute("course_table_list",course_table); 53 | request.setAttribute("grade_list",gradelist); 54 | request.getRequestDispatcher("app/content.jsp").forward(request, response); 55 | } catch (SQLException e) { 56 | e.printStackTrace(); 57 | } 58 | } else if (type.equals("teacher")) { 59 | String semester=(String) session.getAttribute("semester"); 60 | Teacher teacher=(Teacher) session.getAttribute("userinfo"); 61 | String tno=teacher.getTno(); 62 | NoticeDB noticeDB = new NoticeDB(); 63 | Course_teacheDB db=new Course_teacheDB(); 64 | ArrayList teach_list=db.getTeachList(semester,tno); 65 | List result = noticeDB.getNotice(); 66 | request.setAttribute("noticelist", result); 67 | request.setAttribute("teachlist",teach_list); 68 | request.getRequestDispatcher("app/content.jsp").forward(request, response); 69 | } 70 | } 71 | catch (Exception e) 72 | { 73 | PrintWriter printWriter=response.getWriter(); 74 | printWriter.println(""); 75 | printWriter.flush(); 76 | printWriter.close(); 77 | } 78 | } 79 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 80 | doPost(request,response); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/servlets/course/AddCourseServlet.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | import DB.CourseDB; 3 | import model.Course; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.annotation.WebServlet; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import java.io.IOException; 10 | import java.io.PrintWriter; 11 | @WebServlet("/AddCourseServlet") 12 | public class AddCourseServlet extends HttpServlet { 13 | protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 | request.setCharacterEncoding("utf-8"); 15 | response.setCharacterEncoding("utf-8"); 16 | response.setContentType("text/html"); 17 | String cno=request.getParameter("cno"); 18 | String cname=request.getParameter("cname"); 19 | String dept=request.getParameter("dept"); 20 | String pcno=request.getParameter("pcno"); 21 | String settno=request.getParameter("settno"); 22 | String introduction =request.getParameter("introduce"); 23 | Course course=new Course(); 24 | course.setCname(cname); 25 | course.setCno(cno); 26 | course.setDept(dept); 27 | course.setPcno(pcno); 28 | course.setSettno(settno); 29 | course.setIntroduction(introduction); 30 | System.out.println(course.getDept()); 31 | System.out.println(course.getSettno()); 32 | CourseDB courseDB=new CourseDB(); 33 | Boolean result=courseDB.addCourse(course); 34 | PrintWriter printWriter=response.getWriter(); 35 | if(result){ 36 | String content=""; 38 | printWriter.print(content); 39 | } 40 | else 41 | { 42 | printWriter.print(""); 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /src/servlets/course/accessnewcourse.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | 3 | import DB.CourseDB; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.io.PrintWriter; 12 | import java.sql.SQLException; 13 | 14 | @WebServlet("/accessnewcourse") 15 | public class accessnewcourse extends HttpServlet { 16 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 17 | String cno=request.getParameter("cno"); 18 | response.setCharacterEncoding("utf-8"); 19 | response.setContentType("text/html"); 20 | CourseDB courseDB=new CourseDB(); 21 | try { 22 | Boolean ok=courseDB.accessCourse(cno); 23 | if(ok) 24 | { 25 | response.setStatus(200); 26 | } 27 | else{ 28 | response.setStatus(500); 29 | PrintWriter printWriter=response.getWriter(); 30 | printWriter.println(""); 31 | printWriter.flush(); 32 | printWriter.close(); 33 | } 34 | } catch (SQLException e) { 35 | e.printStackTrace(); 36 | } 37 | } 38 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 39 | doGet(request,response); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/servlets/course/handlehelp.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | import DB.MessageDB; 3 | import model.Message; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.io.PrintWriter; 12 | @WebServlet("/handlehelp") 13 | public class handlehelp extends HttpServlet { 14 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 15 | String id=request.getParameter("helpid"); 16 | MessageDB messageDB=new MessageDB(); 17 | Boolean ok=messageDB.changeStatus(Integer.parseInt(id)); 18 | if(ok) 19 | { 20 | response.setStatus(200); 21 | } 22 | else 23 | { 24 | response.setStatus(500); 25 | PrintWriter printWriter=response.getWriter(); 26 | printWriter.println(""); 27 | printWriter.flush(); 28 | printWriter.close(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/servlets/course/newcourse.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | import DB.CourseDB; 3 | import model.Course; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.util.List; 12 | @WebServlet("/newcourse") 13 | public class newcourse extends HttpServlet { 14 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 15 | CourseDB courseDB=new CourseDB(); 16 | List result=courseDB.getAllUncompleCourse(); 17 | request.setAttribute("courselist",result); 18 | request.getRequestDispatcher("app/root/newcourse.jsp").forward(request,response); 19 | } 20 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 21 | doPost(request,response); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/servlets/course/searcharrange.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | 3 | import DB.CourseDB; 4 | import model.Course; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | @WebServlet("/searcharrange") 18 | public class searcharrange extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | request.setCharacterEncoding("utf-8"); 21 | response.setCharacterEncoding("utf-8"); 22 | String cno=request.getParameter("cno"); 23 | String cname=request.getParameter("cname"); 24 | String dept=request.getParameter("college"); 25 | String status=request.getParameter("status"); 26 | CourseDB courseDB=new CourseDB(); 27 | try { 28 | List courselist=courseDB.SearchClass(cno,cname,dept,status); 29 | request.setAttribute("courselist",courselist); 30 | request.getRequestDispatcher("app/root/coursearrangement.jsp").forward(request,response); 31 | } catch (SQLException e) { 32 | e.printStackTrace(); 33 | } 34 | } 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | String cno=request.getParameter("cno"); 37 | CourseDB courseDB=new CourseDB(); 38 | Course course= null; 39 | try { 40 | course = courseDB.SelectByCno(cno); 41 | List courselist=new ArrayList(); 42 | courselist.add(course); 43 | request.setAttribute("courselist",courselist); 44 | request.getRequestDispatcher("app/root/courseinfo.jsp").forward(request,response); 45 | } catch (SQLException e) { 46 | e.printStackTrace(); 47 | PrintWriter printWriter=response.getWriter(); 48 | printWriter.println(""); 49 | printWriter.flush(); 50 | printWriter.close(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/servlets/course/searchclass.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | 3 | import DB.CourseDB; 4 | import model.Course; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | @WebServlet("/searchclass") 18 | public class searchclass extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | request.setCharacterEncoding("utf-8"); 21 | response.setCharacterEncoding("utf-8"); 22 | String cno=request.getParameter("cno"); 23 | String cname=request.getParameter("cname"); 24 | String dept=request.getParameter("college"); 25 | String status=request.getParameter("status"); 26 | CourseDB courseDB=new CourseDB(); 27 | try { 28 | List courselist=courseDB.SearchClass(cno,cname,dept,status); 29 | request.setAttribute("courselist",courselist); 30 | request.getRequestDispatcher("app/root/courseinfo.jsp").forward(request,response); 31 | } catch (SQLException e) { 32 | e.printStackTrace(); 33 | } 34 | } 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | String cno=request.getParameter("cno"); 37 | CourseDB courseDB=new CourseDB(); 38 | Course course= null; 39 | try { 40 | course = courseDB.SelectByCno(cno); 41 | List courselist=new ArrayList(); 42 | courselist.add(course); 43 | request.setAttribute("courselist",courselist); 44 | request.getRequestDispatcher("app/root/courseinfo.jsp").forward(request,response); 45 | } catch (SQLException e) { 46 | e.printStackTrace(); 47 | PrintWriter printWriter=response.getWriter(); 48 | printWriter.println(""); 49 | printWriter.flush(); 50 | printWriter.close(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/servlets/course/searchhelp.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | 3 | import DB.MessageDB; 4 | import model.Message; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | @WebServlet("/searchhelp") 18 | public class searchhelp extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | String sno=request.getParameter("sno"); 21 | String status=request.getParameter("status"); 22 | MessageDB messageDB=new MessageDB(); 23 | List helplist= null; 24 | try { 25 | helplist = messageDB.SelectByCondition(sno,status); 26 | request.setAttribute("helplist",helplist); 27 | request.getRequestDispatcher("app/root/studenthelp.jsp").forward(request,response); 28 | } catch (SQLException e) { 29 | e.printStackTrace(); 30 | PrintWriter printWriter=response.getWriter(); 31 | printWriter.println(""); 32 | printWriter.flush(); 33 | printWriter.close(); 34 | } 35 | } 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | String id=request.getParameter("id"); 38 | MessageDB messageDB=new MessageDB(); 39 | List helplist=new ArrayList(); 40 | try { 41 | Message message=messageDB.SelectById(Integer.parseInt(id)); 42 | helplist.add(message); 43 | request.setAttribute("helplist",helplist); 44 | request.getRequestDispatcher("app/root/studenthelp.jsp").forward(request,response); 45 | } catch (SQLException e) { 46 | e.printStackTrace(); 47 | PrintWriter printWriter=response.getWriter(); 48 | printWriter.println(""); 49 | printWriter.flush(); 50 | printWriter.close(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/servlets/course/searchnew.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | 3 | import DB.CourseDB; 4 | import model.Course; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | 17 | @WebServlet("/searchnew") 18 | public class searchnew extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | request.setCharacterEncoding("utf-8"); 21 | String tno=request.getParameter("tno"); 22 | String college=request.getParameter("college"); 23 | CourseDB courseDB=new CourseDB(); 24 | try { 25 | List courselist=courseDB.SelectByCondition(tno,college); 26 | request.setAttribute("courselist",courselist); 27 | request.getRequestDispatcher("app/root/newcourse.jsp").forward(request,response); 28 | } catch (SQLException e) { 29 | e.printStackTrace(); 30 | } 31 | } 32 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 33 | String cno=request.getParameter("cno"); 34 | CourseDB courseDB=new CourseDB(); 35 | Course course= null; 36 | try { 37 | course = courseDB.SelectByCno(cno); 38 | List courselist=new ArrayList(); 39 | courselist.add(course); 40 | request.setAttribute("courselist",courselist); 41 | request.getRequestDispatcher("app/root/newcourse.jsp").forward(request,response); 42 | } catch (SQLException e) { 43 | e.printStackTrace(); 44 | PrintWriter printWriter=response.getWriter(); 45 | printWriter.println(""); 46 | printWriter.flush(); 47 | printWriter.close(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/servlets/course/studenthelp.java: -------------------------------------------------------------------------------- 1 | package servlets.course; 2 | import DB.CourseDB; 3 | import DB.MessageDB; 4 | import model.Course; 5 | import model.Message; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import java.io.IOException; 13 | import java.util.List; 14 | 15 | @WebServlet("/studenthelp") 16 | public class studenthelp extends HttpServlet { 17 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | MessageDB messageDB=new MessageDB(); 19 | List result=messageDB.getAllUncomplete(); 20 | request.setAttribute("helplist",result); 21 | request.getRequestDispatcher("app/root/studenthelp.jsp").forward(request,response); 22 | } 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | doPost(request,response); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/servlets/publicfun/LogoutServlet.java: -------------------------------------------------------------------------------- 1 | package servlets.publicfun; 2 | 3 | import javax.servlet.ServletException; 4 | import javax.servlet.annotation.WebServlet; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import javax.servlet.http.HttpSession; 9 | import java.io.IOException; 10 | 11 | @WebServlet("/LogoutServlet") 12 | public class LogoutServlet extends HttpServlet { 13 | protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 | HttpSession session=request.getSession(); 15 | session.setAttribute("userinfo",null); 16 | response.sendRedirect(request.getContextPath()+"/index.jsp"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/servlets/publicfun/changePasswordServlet.java: -------------------------------------------------------------------------------- 1 | package servlets.publicfun; 2 | import DB.UserDB; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.annotation.WebServlet; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import java.io.IOException; 9 | import java.io.PrintWriter; 10 | @WebServlet("/changePasswordServlet") 11 | public class changePasswordServlet extends HttpServlet { 12 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 13 | response.setCharacterEncoding("utf-8"); 14 | response.setContentType("text/html"); 15 | String account=request.getParameter("account"); 16 | String type=request.getParameter("type"); 17 | String oldpassword=request.getParameter("oldpassword"); 18 | String newpassword=request.getParameter("newpassword"); 19 | UserDB userDB=new UserDB(); 20 | Boolean res=userDB.changePassword(account,oldpassword,type,newpassword); 21 | PrintWriter printWriter=response.getWriter(); 22 | if(res) 23 | printWriter.print(");"); 24 | else 25 | printWriter.print(""); 26 | printWriter.flush(); 27 | printWriter.close(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/servlets/publicfun/changeinfo.java: -------------------------------------------------------------------------------- 1 | package servlets.publicfun; 2 | 3 | import DB.StudentDB; 4 | import DB.TeacherDB; 5 | import com.sun.org.apache.xpath.internal.operations.Bool; 6 | import model.Student; 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.sql.SQLException; 15 | 16 | @WebServlet("/changeinfo") 17 | public class changeinfo extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | request.setCharacterEncoding("utf-8"); 20 | response.setCharacterEncoding("utf-8"); 21 | response.setContentType("text/html"); 22 | String identity = request.getParameter("identity"); 23 | String kind = request.getParameter("kind"); 24 | String value = request.getParameter("value"); 25 | String account = request.getParameter("account"); 26 | if (identity.equals("teacher")) { 27 | String sql = "update teacher set "; 28 | TeacherDB teacherDB = new TeacherDB(); 29 | Boolean ok = null; 30 | try { 31 | ok = teacherDB.changeInfo(sql,account, kind, value); 32 | } catch (SQLException e) { 33 | e.printStackTrace(); 34 | } 35 | if (ok) { 36 | response.setStatus(200); 37 | } else { 38 | response.setStatus(404); 39 | } 40 | } else { 41 | String sql = "update student set "; 42 | StudentDB studentDB = new StudentDB(); 43 | Boolean ok = null; 44 | try { 45 | ok = studentDB.changeInfo(sql,account, kind, value); 46 | } catch (SQLException e) { 47 | e.printStackTrace(); 48 | } 49 | if (ok) { 50 | response.setStatus(200); 51 | } else { 52 | response.setStatus(404); 53 | } 54 | } 55 | } 56 | 57 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 58 | doPost(request,response); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/servlets/root/addpeople.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.StudentDB; 4 | import DB.TeacherDB; 5 | import model.Student; 6 | import model.Teacher; 7 | import model.User; 8 | 9 | import javax.servlet.ServletException; 10 | import javax.servlet.annotation.WebServlet; 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.io.PrintWriter; 16 | import java.sql.SQLException; 17 | 18 | @WebServlet("/addpeople") 19 | public class addpeople extends HttpServlet { 20 | private static void tips(Boolean ok,HttpServletResponse response,HttpServletRequest request) throws IOException { 21 | if(ok) 22 | { 23 | response.setStatus(200); 24 | PrintWriter printWriter=response.getWriter(); 25 | printWriter.println(""); 26 | printWriter.flush(); 27 | printWriter.close(); 28 | } 29 | else 30 | { 31 | response.setStatus(500); 32 | PrintWriter printWriter=response.getWriter(); 33 | printWriter.println(""); 34 | printWriter.flush(); 35 | printWriter.close(); 36 | } 37 | } 38 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 39 | request.setCharacterEncoding("utf-8"); 40 | response.setCharacterEncoding("utf-8"); 41 | response.setContentType("text/html"); 42 | String type=request.getParameter("type"); 43 | if(type.equals("student")) 44 | { 45 | String sno=request.getParameter("sno"); 46 | String sname=request.getParameter("sname"); 47 | String sex=request.getParameter("sex"); 48 | String klass=request.getParameter("klass"); 49 | String college=request.getParameter("college"); 50 | String major=request.getParameter("major"); 51 | Student student=new Student(); 52 | student.setSex(sex); 53 | student.setSname(sname); 54 | student.setSno(sno); 55 | student.setMajor(major); 56 | student.setCollege(college); 57 | student.setKlass(klass); 58 | StudentDB studentDB=new StudentDB(); 59 | Boolean ok= null; 60 | try { 61 | ok = studentDB.add(student); 62 | } catch (SQLException e) { 63 | e.printStackTrace(); 64 | PrintWriter printWriter=response.getWriter(); 65 | printWriter.println(""); 66 | printWriter.flush(); 67 | printWriter.close(); 68 | } 69 | tips(ok,response,request); 70 | } 71 | else if(type.equals("teacher")) 72 | { 73 | String tno=request.getParameter("tno"); 74 | String tname=request.getParameter("tname"); 75 | String sex=request.getParameter("sex"); 76 | String rank=request.getParameter("rank"); 77 | String tdept=request.getParameter("tdept"); 78 | String location1=request.getParameter("location1"); 79 | String location2=request.getParameter("location2"); 80 | String phone=request.getParameter("phone"); 81 | Teacher teacher=new Teacher(); 82 | teacher.setLocation(location1+location2); 83 | teacher.setSex(sex); 84 | teacher.setTdept(tdept); 85 | teacher.setTname(tname); 86 | teacher.setRank(rank); 87 | teacher.setPhone(phone); 88 | teacher.setTno(tno); 89 | TeacherDB teacherDB=new TeacherDB(); 90 | Boolean ok= null; 91 | try { 92 | ok = teacherDB.add(teacher); 93 | } catch (SQLException e) { 94 | e.printStackTrace(); 95 | PrintWriter printWriter=response.getWriter(); 96 | printWriter.println(""); 97 | printWriter.flush(); 98 | printWriter.close(); 99 | } 100 | tips(ok,response,request); 101 | } 102 | } 103 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 104 | 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /src/servlets/root/addselectlist.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.SelectListDB; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.sql.SQLException; 12 | 13 | @WebServlet("/addselectlist") 14 | public class addselectlist extends HttpServlet { 15 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 16 | String semester=request.getParameter("semester"); 17 | String major=request.getParameter("major"); 18 | String cnoset=request.getParameter("cno"); 19 | String cno="("+cnoset.substring(1,cnoset.length()-1)+")"; 20 | SelectListDB selectListDB=new SelectListDB(); 21 | Boolean ok= true; 22 | Integer status=200; 23 | try { 24 | ok = selectListDB.add(semester,major,cno); 25 | } catch (SQLException e) { 26 | e.printStackTrace(); 27 | status=500; 28 | } 29 | if(!ok) 30 | status=502; 31 | response.setStatus(status); 32 | } 33 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/servlets/root/managerun.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.SelectListDB; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.sql.SQLException; 12 | 13 | @WebServlet("/managerun") 14 | public class managerun extends HttpServlet { 15 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 16 | request.setCharacterEncoding("utf-8"); 17 | response.setCharacterEncoding("utf-8"); 18 | response.setContentType("text/html"); 19 | String type=request.getParameter("type"); 20 | String semester=request.getParameter("semester"); 21 | String major=request.getParameter("major"); 22 | SelectListDB selectListDB=new SelectListDB(); 23 | Boolean ok= null; 24 | try { 25 | ok = selectListDB.changeStatus(type,semester,major); 26 | } catch (SQLException e) { 27 | e.printStackTrace(); 28 | } 29 | if(ok) 30 | response.setStatus(200); 31 | else{ 32 | response.setStatus(501); 33 | } 34 | } 35 | 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/servlets/root/runinfo.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | import com.alibaba.fastjson.JSONArray; 3 | import com.alibaba.fastjson.JSONObject; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | import java.io.PrintWriter; 12 | @WebServlet("/runinfo") 13 | public class runinfo extends HttpServlet { 14 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 15 | request.setCharacterEncoding("utf-8"); 16 | response.setCharacterEncoding("utf-8"); 17 | response.setContentType("text/html"); 18 | String cno=request.getParameter("cno"); 19 | Object[] res=new Object[2]; 20 | String [] row=new String[3]; 21 | row[0]="高谦"; 22 | row[1]="2016014302"; 23 | row[2]="1-17周"; 24 | res[0]=row; 25 | String[] row2=new String[3]; 26 | row2[0]="周一"; 27 | row2[1]="3-5节"; 28 | row2[2]="B阶-104"; 29 | res[1]=row2; 30 | Object Infotemp= JSONObject.toJSON(res); 31 | Object returnvalue= JSONArray.toJSON(Infotemp); 32 | PrintWriter printWriter=response.getWriter(); 33 | printWriter.println(returnvalue); 34 | response.setStatus(200); 35 | printWriter.flush(); 36 | printWriter.close(); 37 | } 38 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/servlets/root/runingcontrol.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.DB; 4 | import javafx.scene.control.SeparatorMenuItem; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.sql.SQLException; 13 | import java.util.ArrayList; 14 | 15 | import DB.SemesterDB; 16 | 17 | @WebServlet("/runingcontrol") 18 | public class runingcontrol extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | request.setCharacterEncoding("utf-8"); 21 | response.setCharacterEncoding("utf-8"); 22 | response.setContentType("text/html"); 23 | SemesterDB semesterDB =new SemesterDB(); 24 | ArrayList result= new ArrayList(); 25 | try { 26 | result = semesterDB.getSemesterList(); 27 | } catch (SQLException e) { 28 | e.printStackTrace(); 29 | } 30 | request.setAttribute("semester",result); 31 | request.getRequestDispatcher("app/root/runingcontrol.jsp").forward(request,response); 32 | } 33 | 34 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 35 | doPost(request,response); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/servlets/root/searchnotice.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.NoticeDB; 4 | import model.Notice; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.List; 15 | 16 | @WebServlet("/searchnotice") 17 | public class searchnotice extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | 20 | } 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | request.setCharacterEncoding("utf-8"); 23 | response.setContentType("text/html"); 24 | response.setCharacterEncoding("utf-8"); 25 | String id=request.getParameter("id"); 26 | NoticeDB noticeDB=new NoticeDB(); 27 | try { 28 | List result=noticeDB.SelectById(Integer.parseInt(id)); 29 | request.setAttribute("noticelist",result); 30 | request.getRequestDispatcher("app/student/noticedetail.jsp").forward(request,response); 31 | } catch (SQLException e) { 32 | e.printStackTrace(); 33 | PrintWriter printWriter=response.getWriter(); 34 | printWriter.println(""); 35 | printWriter.flush(); 36 | printWriter.close(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/servlets/root/searchselectlist.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.SelectListDB; 4 | import com.alibaba.fastjson.JSON; 5 | import model.SelectList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import java.io.IOException; 13 | import java.io.PrintWriter; 14 | import java.sql.SQLException; 15 | import java.util.ArrayList; 16 | 17 | @WebServlet("/searchselectlist") 18 | public class searchselectlist extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | request.setCharacterEncoding("utf-8"); 21 | response.setCharacterEncoding("utf-8"); 22 | response.setContentType("text/html"); 23 | String semester=request.getParameter("semester"); 24 | String major=request.getParameter("major"); 25 | String status=request.getParameter("status"); 26 | SelectListDB selectListDB=new SelectListDB(); 27 | ArrayList result=new ArrayList(); 28 | try { 29 | result=selectListDB.getinfoByCondition(major,semester,status); 30 | } catch (SQLException e) { 31 | e.printStackTrace(); 32 | } 33 | String jsonString= JSON.toJSONString(result); 34 | PrintWriter printWriter=response.getWriter(); 35 | printWriter.println(jsonString); 36 | printWriter.flush(); 37 | printWriter.close(); 38 | response.setStatus(200); 39 | } 40 | 41 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 42 | 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/servlets/root/sendnotice.java: -------------------------------------------------------------------------------- 1 | package servlets.root; 2 | 3 | import DB.NoticeDB; 4 | import model.Notice; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | import java.sql.SQLException; 14 | import java.util.List; 15 | 16 | @WebServlet("/sendnotice") 17 | public class sendnotice extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | request.setCharacterEncoding("utf-8"); 20 | response.setContentType("text/html"); 21 | response.setCharacterEncoding("utf-8"); 22 | String content=request.getParameter("content"); 23 | String title=request.getParameter("title"); 24 | NoticeDB noticeDB=new NoticeDB(); 25 | try { 26 | Boolean ok=noticeDB.add(content,title); 27 | if(ok) 28 | { 29 | PrintWriter printWriter=response.getWriter(); 30 | printWriter.println(""); 31 | printWriter.flush(); 32 | printWriter.close(); 33 | } 34 | else 35 | { 36 | PrintWriter printWriter=response.getWriter(); 37 | printWriter.println(""); 38 | printWriter.flush(); 39 | printWriter.close(); 40 | } 41 | } catch (SQLException e) { 42 | e.printStackTrace(); 43 | PrintWriter printWriter=response.getWriter(); 44 | printWriter.println(""); 45 | printWriter.flush(); 46 | printWriter.close(); 47 | } 48 | } 49 | 50 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 51 | doPost(request,response); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/servlets/student/course_table.java: -------------------------------------------------------------------------------- 1 | package servlets.student; 2 | 3 | import DB.CourseSemesterDB; 4 | import DB.SemesterDB; 5 | import DB.StudyCourseDB; 6 | import com.alibaba.fastjson.JSON; 7 | import model.CourseSemester; 8 | import model.Student; 9 | import model.StudyCourse; 10 | import view.CourseTable; 11 | 12 | import javax.servlet.ServletException; 13 | import javax.servlet.annotation.WebServlet; 14 | import javax.servlet.http.HttpServlet; 15 | import javax.servlet.http.HttpServletRequest; 16 | import javax.servlet.http.HttpServletResponse; 17 | import javax.servlet.http.HttpSession; 18 | import java.io.IOException; 19 | import java.io.PrintWriter; 20 | import java.sql.SQLException; 21 | import java.util.ArrayList; 22 | 23 | @WebServlet("/course_table") 24 | public class course_table extends HttpServlet { 25 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 26 | request.setCharacterEncoding("utf-8"); 27 | response.setCharacterEncoding("utf-8"); 28 | response.setContentType("text/html"); 29 | HttpSession session=request.getSession(); 30 | if(session==null) 31 | { 32 | request.getRequestDispatcher(request.getContextPath()).forward(request,response); 33 | } 34 | String semester=request.getParameter("semester"); 35 | String sno=request.getParameter("sno"); 36 | StudyCourseDB db=new StudyCourseDB(); 37 | ArrayList res= null; 38 | try { 39 | res = db.getCourseTable(semester,sno); 40 | } catch (SQLException e) { 41 | e.printStackTrace(); 42 | } 43 | String json= JSON.toJSONString(res); 44 | PrintWriter printWriter=response.getWriter(); 45 | printWriter.print(json); 46 | printWriter.flush(); 47 | printWriter.close(); 48 | response.setStatus(200); 49 | } 50 | 51 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 52 | HttpSession session=request.getSession(); 53 | if(session==null) 54 | { 55 | request.getRequestDispatcher(request.getContextPath()).forward(request,response); 56 | } 57 | SemesterDB semesterDB=new SemesterDB(); 58 | ArrayList semesterlist=null; 59 | try { 60 | semesterlist=semesterDB.getSemesterList(); 61 | } catch (SQLException e) { 62 | e.printStackTrace(); 63 | } 64 | request.setAttribute("semesterlist",semesterlist); 65 | request.getRequestDispatcher("app/student/course_table.jsp").forward(request,response); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/servlets/student/gradelist.java: -------------------------------------------------------------------------------- 1 | package servlets.student; 2 | 3 | import DB.SemesterDB; 4 | import DB.StudyCourseDB; 5 | import com.alibaba.fastjson.JSON; 6 | import model.StudyCourse; 7 | import model.User; 8 | 9 | import javax.servlet.ServletException; 10 | import javax.servlet.annotation.WebServlet; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import javax.servlet.http.HttpSession; 15 | import java.io.IOException; 16 | import java.io.PrintWriter; 17 | import java.sql.SQLException; 18 | import java.util.ArrayList; 19 | 20 | @WebServlet("/gradelist") 21 | public class gradelist extends HttpServlet { 22 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | response.setContentType("text/html"); 26 | String cno=request.getParameter("cno"); 27 | String cname=request.getParameter("cname"); 28 | String semester=request.getParameter("semester"); 29 | StudyCourseDB db=new StudyCourseDB(); 30 | ArrayList courselist= null; 31 | try { 32 | courselist = db.searchGrade(cno,cname,semester); 33 | } catch (SQLException e) { 34 | e.printStackTrace(); 35 | } 36 | String json= JSON.toJSONString(courselist); 37 | PrintWriter p=response.getWriter(); 38 | p.print(json); 39 | p.flush(); 40 | p.close(); 41 | response.setStatus(200); 42 | } 43 | 44 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 45 | HttpSession session=request.getSession(); 46 | if(session==null) 47 | { 48 | request.getRequestDispatcher(request.getContextPath()).forward(request,response); 49 | } 50 | SemesterDB semesterDB=new SemesterDB(); 51 | ArrayList semesterlist=null; 52 | try { 53 | semesterlist=semesterDB.getSemesterList(); 54 | } catch (SQLException e) { 55 | e.printStackTrace(); 56 | } 57 | request.setAttribute("semesterlist",semesterlist); 58 | request.getRequestDispatcher("app/student/gradelist.jsp").forward(request,response); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/servlets/student/sendMessageServlet.java: -------------------------------------------------------------------------------- 1 | package servlets.student; 2 | 3 | import DB.MessageDB; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.annotation.WebServlet; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import java.io.IOException; 10 | import java.io.PrintWriter; 11 | @WebServlet("/sendMessageServlet") 12 | public class sendMessageServlet extends HttpServlet { 13 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 | request.setCharacterEncoding("utf-8"); 15 | response.setContentType("text/html"); 16 | response.setCharacterEncoding("utf-8"); 17 | String sno=request.getParameter("sno"); 18 | String title=request.getParameter("title"); 19 | String content=request.getParameter("content"); 20 | MessageDB messageDB=new MessageDB(); 21 | Boolean result=messageDB.add(sno,content,title); 22 | PrintWriter printWriter=response.getWriter(); 23 | if(result) 24 | { 25 | printWriter.print(""); 26 | printWriter.flush(); 27 | } 28 | else 29 | { 30 | printWriter.print(""); 31 | printWriter.flush(); 32 | } 33 | printWriter.close(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/servlets/teacher/coursegrademanage.java: -------------------------------------------------------------------------------- 1 | package servlets.teacher; 2 | 3 | import DB.StudyCourseDB; 4 | import jdk.nashorn.internal.ir.LiteralNode; 5 | import model.StudyCourse; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import java.io.IOException; 13 | import java.sql.SQLException; 14 | import java.util.ArrayList; 15 | 16 | @WebServlet("/coursegrademanage") 17 | public class coursegrademanage extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | String cno=request.getParameter("cno"); 20 | String semester=request.getParameter("semester"); 21 | String sno=request.getParameter("sno"); 22 | Integer grade=Integer.parseInt(request.getParameter("grade")); 23 | StudyCourseDB db=new StudyCourseDB(); 24 | Integer status=200; 25 | Boolean ok= false; 26 | try { 27 | ok = db.changeGrade(sno,semester,cno,grade); 28 | } catch (SQLException e) { 29 | e.printStackTrace(); 30 | } 31 | if(!ok) 32 | status=404; 33 | response.setStatus(status); 34 | } 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | request.setCharacterEncoding("utf-8"); 37 | response.setCharacterEncoding("utf-8"); 38 | response.setContentType("text/html"); 39 | String cno=request.getParameter("cno"); 40 | String semester=request.getParameter("semester"); 41 | StudyCourseDB db=new StudyCourseDB(); 42 | ArrayList result=new ArrayList(); 43 | try { 44 | result=db.getStudents(cno,semester); 45 | } catch (SQLException e) { 46 | e.printStackTrace(); 47 | } 48 | request.setAttribute("studentlist",result); 49 | request.getRequestDispatcher("app/teacher/gradestudentlist.jsp").forward(request,response); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/servlets/teacher/grademanage.java: -------------------------------------------------------------------------------- 1 | package servlets.teacher; 2 | 3 | import DB.CourseSemesterDB; 4 | import model.CourseSemester; 5 | import model.Teacher; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | import java.io.IOException; 14 | import java.io.PrintWriter; 15 | import java.sql.SQLException; 16 | import java.util.ArrayList; 17 | 18 | @WebServlet("/grademanage") 19 | public class grademanage extends HttpServlet { 20 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 21 | } 22 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | response.setContentType("text/html"); 26 | HttpSession session=request.getSession(); 27 | Teacher teacher=(Teacher) session.getAttribute("userinfo"); 28 | if(teacher==null) 29 | { 30 | response.setStatus(302); 31 | response.sendRedirect(request.getContextPath()); 32 | } 33 | String semester=(String) session.getAttribute("semester"); 34 | String tno=teacher.getTno(); 35 | CourseSemesterDB db=new CourseSemesterDB(); 36 | Integer status=0; 37 | ArrayList arr= null; 38 | try { 39 | arr = db.getTeachlist(tno,semester,status); 40 | } catch (SQLException e) { 41 | e.printStackTrace(); 42 | } 43 | request.setAttribute("gradelist",arr); 44 | request.getRequestDispatcher("app/teacher/gradecourse.jsp").forward(request,response); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/servlets/teacher/studentlist.java: -------------------------------------------------------------------------------- 1 | package servlets.teacher; 2 | 3 | import DB.CourseSemesterDB; 4 | import DB.StudentDB; 5 | import DB.StudyCourseDB; 6 | import DB.TeacherDB; 7 | import model.CourseSemester; 8 | import model.Teacher; 9 | import view.StudentInfo; 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 javax.servlet.http.HttpSession; 17 | import java.io.IOException; 18 | import java.sql.SQLException; 19 | import java.util.ArrayList; 20 | 21 | @WebServlet("/studentlist") 22 | public class studentlist extends HttpServlet { 23 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | request.setCharacterEncoding("utf-8"); 25 | response.setCharacterEncoding("utf-8"); 26 | response.setContentType("text/html"); 27 | HttpSession session=request.getSession(); 28 | if(session==null) 29 | { 30 | request.getRequestDispatcher(request.getContextPath()).forward(request,response); 31 | } 32 | String semester=(String) session.getAttribute("semester"); 33 | String tempvalue=request.getParameter("cno"); 34 | String [] t=tempvalue.split("-"); 35 | String cno=t[0]; 36 | String cname=t[1]; 37 | String sno=request.getParameter("sno"); 38 | Teacher teacher=(Teacher) session.getAttribute("userinfo"); 39 | String tno=teacher.getTno(); 40 | StudyCourseDB db=new StudyCourseDB(); 41 | CourseSemesterDB dbseme=new CourseSemesterDB(); 42 | ArrayList resseme= null; 43 | ArrayList res= null; 44 | try { 45 | resseme = dbseme.getCourseList(tno,semester); 46 | res = db.getStudentList(sno,cno,semester,cname); 47 | } catch (SQLException e) { 48 | e.printStackTrace(); 49 | } 50 | request.setAttribute("courselist",resseme); 51 | request.setAttribute("studentlist",res); 52 | request.getRequestDispatcher("app/teacher/studentlist.jsp").forward(request,response); 53 | } 54 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 55 | HttpSession session =request.getSession(); 56 | if(session==null) 57 | { 58 | request.getRequestDispatcher(request.getContextPath()).forward(request,response); 59 | } 60 | Teacher teacher=(Teacher) session.getAttribute("userinfo"); 61 | String tno=teacher.getTno(); 62 | String semester=(String) session.getAttribute("semester"); 63 | CourseSemesterDB db=new CourseSemesterDB(); 64 | ArrayList res= null; 65 | try { 66 | res = db.getCourseList(tno,semester); 67 | } catch (SQLException e) { 68 | e.printStackTrace(); 69 | } 70 | request.setAttribute("courselist",res); 71 | request.getRequestDispatcher("app/teacher/studentlist.jsp").forward(request,response); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/servlets/teacher/teachlist.java: -------------------------------------------------------------------------------- 1 | package servlets.teacher; 2 | 3 | import DB.Course_teacheDB; 4 | import com.alibaba.fastjson.JSON; 5 | import model.Teacher; 6 | import view.Course_teach; 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 javax.servlet.http.HttpSession; 14 | import java.io.IOException; 15 | import java.io.PrintWriter; 16 | import java.sql.SQLException; 17 | import java.util.ArrayList; 18 | 19 | @WebServlet("/teachlist") 20 | public class teachlist extends HttpServlet { 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | request.setCharacterEncoding("utf-8"); 23 | response.setCharacterEncoding("utf-8"); 24 | response.setContentType("text/html"); 25 | String semester=request.getParameter("semester"); 26 | String cno=request.getParameter("cno"); 27 | Course_teacheDB db=new Course_teacheDB(); 28 | ArrayList result= null; 29 | try { 30 | result = db.getTeachTime(semester,cno); 31 | } catch (SQLException e) { 32 | e.printStackTrace(); 33 | } 34 | String json= JSON.toJSONString(result); 35 | PrintWriter printWriter=response.getWriter(); 36 | printWriter.print(json); 37 | printWriter.flush(); 38 | printWriter.close(); 39 | response.setStatus(200); 40 | } 41 | 42 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 43 | HttpSession session=request.getSession(); 44 | Teacher teacher=(Teacher) session.getAttribute("userinfo"); 45 | if(teacher==null) 46 | { 47 | PrintWriter printWriter=response.getWriter(); 48 | printWriter.print(""); 50 | printWriter.flush(); 51 | printWriter.close(); 52 | } 53 | else{ 54 | String semester=(String) session.getAttribute("semester"); 55 | String tno=teacher.getTno(); 56 | Course_teacheDB db=new Course_teacheDB(); 57 | ArrayList courselist= null; 58 | try { 59 | courselist = db.getTeachListMore(tno,semester); 60 | } catch (SQLException e) { 61 | e.printStackTrace(); 62 | PrintWriter printWriter=response.getWriter(); 63 | printWriter.print("fail to get the list!"); 64 | printWriter.flush(); 65 | printWriter.close(); 66 | } 67 | request.setAttribute("courselist",courselist); 68 | request.getRequestDispatcher("app/teacher/teachlist.jsp").forward(request,response); 69 | 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/view/CourseTable.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | public class CourseTable { 4 | private String cno; 5 | private String semester; 6 | private String tno; 7 | private Integer weekbegin; 8 | private Integer weekend; 9 | private Integer capacity; 10 | private String location; 11 | private Integer status; 12 | //以下是视图属性 13 | private String cname; 14 | private String tname; 15 | private Integer runday; 16 | private Integer begintime; 17 | private Integer endtime; 18 | 19 | public Integer getRunday() { 20 | return runday; 21 | } 22 | 23 | public Integer getEndtime() { 24 | return endtime; 25 | } 26 | 27 | public Integer getBegintime() { 28 | return begintime; 29 | } 30 | 31 | public String getTname() { 32 | return tname; 33 | } 34 | 35 | public String getCname() { 36 | return cname; 37 | } 38 | 39 | public String getCno() { 40 | return cno; 41 | } 42 | 43 | public Integer getCapacity() { 44 | return capacity; 45 | } 46 | 47 | public String getLocation() { 48 | return location; 49 | } 50 | 51 | public String getSemester() { 52 | return semester; 53 | } 54 | 55 | public String getTno() { 56 | return tno; 57 | } 58 | 59 | public Integer getWeekend() { 60 | return weekend; 61 | } 62 | 63 | public Integer getWeekbegin() { 64 | return weekbegin; 65 | } 66 | 67 | public Integer getStatus() { 68 | return status; 69 | } 70 | 71 | public void setRunday(Integer runday) { 72 | this.runday = runday; 73 | } 74 | 75 | public void setEndtime(Integer endtime) { 76 | this.endtime = endtime; 77 | } 78 | 79 | public void setBegintime(Integer begintime) { 80 | this.begintime = begintime; 81 | } 82 | 83 | public void setTname(String tname) { 84 | this.tname = tname; 85 | } 86 | 87 | public void setCname(String cname) { 88 | this.cname = cname; 89 | } 90 | 91 | public void setCno(String cno) { 92 | this.cno = cno; 93 | } 94 | 95 | public void setCapacity(Integer capacity) { 96 | this.capacity = capacity; 97 | } 98 | 99 | public void setLocation(String location) { 100 | this.location = location; 101 | } 102 | 103 | public void setSemester(String semester) { 104 | this.semester = semester; 105 | } 106 | 107 | public void setStatus(Integer status) { 108 | this.status = status; 109 | } 110 | 111 | public void setTno(String tno) { 112 | this.tno = tno; 113 | } 114 | 115 | public void setWeekend(Integer weekend) { 116 | this.weekend = weekend; 117 | } 118 | 119 | public void setWeekbegin(Integer weekbegin) { 120 | this.weekbegin = weekbegin; 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/view/Course_select.java: -------------------------------------------------------------------------------- 1 | package view; 2 | public class Course_select { 3 | private String cno; 4 | private String semester; 5 | private String tno; 6 | private Integer weekbegin; 7 | private Integer weekend; 8 | private Integer capacity; 9 | private String location; 10 | private String status; 11 | private String cname; 12 | private String tname; 13 | private String isselected; 14 | private String Introduction; 15 | 16 | public String getIntroduction() { 17 | return Introduction; 18 | } 19 | public void setIntroduction(String introduction) { 20 | Introduction = introduction; 21 | } 22 | public String getCno() { 23 | return cno; 24 | } 25 | 26 | public String getSemester() { 27 | return semester; 28 | } 29 | 30 | public String getCname() { 31 | return cname; 32 | } 33 | 34 | public Integer getWeekend() { 35 | return weekend; 36 | } 37 | 38 | public String getLocation() { 39 | return location; 40 | } 41 | 42 | public Integer getCapacity() { 43 | return capacity; 44 | } 45 | 46 | public String getTno() { 47 | return tno; 48 | } 49 | 50 | public String getStatus() { 51 | return status; 52 | } 53 | 54 | public String getTname() { 55 | return tname; 56 | } 57 | 58 | public Integer getWeekbegin() { 59 | return weekbegin; 60 | } 61 | 62 | public void setCno(String cno) { 63 | this.cno = cno; 64 | } 65 | 66 | public void setSemester(String semester) { 67 | this.semester = semester; 68 | } 69 | 70 | public void setCname(String cname) { 71 | this.cname = cname; 72 | } 73 | 74 | public void setWeekend(Integer weekend) { 75 | this.weekend = weekend; 76 | } 77 | 78 | public void setLocation(String location) { 79 | this.location = location; 80 | } 81 | 82 | public void setCapacity(Integer capacity) { 83 | this.capacity = capacity; 84 | } 85 | 86 | public void setTno(String tno) { 87 | this.tno = tno; 88 | } 89 | 90 | public void setStatus(String status) { 91 | this.status = status; 92 | } 93 | 94 | public void setTname(String tname) { 95 | this.tname = tname; 96 | } 97 | 98 | public void setWeekbegin(Integer weekbwgin) { 99 | this.weekbegin = weekbwgin; 100 | } 101 | 102 | public String getIsselected() { 103 | return isselected; 104 | } 105 | 106 | public void setIsselected(String isselected) { 107 | this.isselected = isselected; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/view/Course_teach.java: -------------------------------------------------------------------------------- 1 | package view; 2 | 3 | public class Course_teach { 4 | public String cname; 5 | public String cno; 6 | public String location; 7 | public String semester; 8 | public String weektime; 9 | public String teachtime; 10 | public Integer capacity; 11 | 12 | public String getCno() { 13 | return cno; 14 | } 15 | 16 | public void setCno(String cno) { 17 | this.cno = cno; 18 | } 19 | 20 | public Integer getCapacity() { 21 | return capacity; 22 | } 23 | 24 | public void setCapacity(Integer capacity) { 25 | this.capacity = capacity; 26 | } 27 | 28 | public String getSemester() { 29 | return semester; 30 | } 31 | 32 | public String getLocation() { 33 | return location; 34 | } 35 | 36 | public String getCname() { 37 | return cname; 38 | } 39 | 40 | public String getWeektime() { 41 | return weektime; 42 | } 43 | 44 | public String getTeachtime() { 45 | return teachtime; 46 | } 47 | 48 | public void setSemester(String semester) { 49 | this.semester = semester; 50 | } 51 | 52 | public void setLocation(String location) { 53 | this.location = location; 54 | } 55 | 56 | public void setCname(String cname) { 57 | this.cname = cname; 58 | } 59 | 60 | public void setWeektime(String weektime) { 61 | this.weektime = weektime; 62 | } 63 | 64 | public void setTeachtime(String teachtime) { 65 | this.teachtime = teachtime; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/view/StudentInfo.java: -------------------------------------------------------------------------------- 1 | package view; 2 | public class StudentInfo { 3 | private String sno; 4 | private String sname; 5 | private String college; 6 | private String sex; 7 | private String major; 8 | private String klass; 9 | private String cname; 10 | 11 | public String getCname() { 12 | return cname; 13 | } 14 | 15 | public String getSno() { 16 | return sno; 17 | } 18 | 19 | public String getMajor() { 20 | return major; 21 | } 22 | 23 | public String getSex() { 24 | return sex; 25 | } 26 | 27 | public String getSname() { 28 | return sname; 29 | } 30 | 31 | public String getKlass() { 32 | return klass; 33 | } 34 | 35 | public String getCollege() { 36 | return college; 37 | } 38 | 39 | public void setCname(String cname) { 40 | this.cname = cname; 41 | } 42 | 43 | public void setSno(String sno) { 44 | this.sno = sno; 45 | } 46 | 47 | public void setMajor(String major) { 48 | this.major = major; 49 | } 50 | 51 | public void setSex(String sex) { 52 | this.sex = sex; 53 | } 54 | 55 | public void setSname(String sname) { 56 | this.sname = sname; 57 | } 58 | 59 | public void setKlass(String klass) { 60 | this.klass = klass; 61 | } 62 | 63 | public void setCollege(String college) { 64 | this.college = college; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /web/WEB-INF/lib/jstl-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/WEB-INF/lib/jstl-1.2.jar -------------------------------------------------------------------------------- /web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | -------------------------------------------------------------------------------- /web/app/addcourse.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 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 | 47 |
48 |
49 | 50 | 51 |
52 |
53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 |
61 |
62 | 63 | 66 | 67 | <%@include file="include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/changepassword.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <% request.setCharacterEncoding("utf-8");%> 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 | 31 | 32 | <%@include file="include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/content.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <% request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | <%@include file="include/stuleft.jsp"%> 15 | <%@include file="include/sturight.jsp"%> 16 |
17 |
18 |
19 | 20 | 21 | 22 | 23 |
24 |
25 | <%@include file="include/teacherleft.jsp"%> 26 | <%@include file="include/teacherright.jsp"%> 27 |
28 |
29 |
30 | 31 | 32 | 33 | 34 |
35 |
36 | <%@include file="include/rootleft.jsp"%> 37 | <%@include file="include/rootright.jsp"%> 38 |
39 |
40 |
41 |
42 | 43 | 46 | 47 | <%@include file="include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/include/changepasswordbody.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 14 |
15 |
16 |
17 |
18 |
19 |

20 | 密码修改 21 |

22 |
23 | " name="type"> 24 | " name="account"> 25 |
26 | 27 | 28 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |
37 | 38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | -------------------------------------------------------------------------------- /web/app/include/htmlFooter.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 6 | 35 | 36 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /web/app/include/htmlHead.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | 8 | <%= request.getParameter("title")%> 9 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 31 | -------------------------------------------------------------------------------- /web/app/include/rootheader.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 28 | 77 | 78 | -------------------------------------------------------------------------------- /web/app/include/rootleft.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 |
4 | 45 |
46 | -------------------------------------------------------------------------------- /web/app/include/rootright.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="model.Message" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 5 | <%List helpList = (List) request.getAttribute("helpList");%> 6 |
7 |
8 |
9 | 34 |
35 | 62 |
63 |
64 | -------------------------------------------------------------------------------- /web/app/include/studentheader.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 28 | 70 | -------------------------------------------------------------------------------- /web/app/include/stuleft.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 |
4 |
5 |

我的应用

6 | 38 |
39 |
40 | -------------------------------------------------------------------------------- /web/app/include/sturight.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 |
4 |
5 | 32 |
33 |
34 |
35 | 通知公告 36 |
37 | 58 |
59 |
60 |
61 | 88 |
89 |
90 |
91 | -------------------------------------------------------------------------------- /web/app/include/teacherheader.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 29 | 72 | -------------------------------------------------------------------------------- /web/app/include/teacherleft.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | -------------------------------------------------------------------------------- /web/app/include/teacherright.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 66 | -------------------------------------------------------------------------------- /web/app/managepersonalinfo.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | <%request.setCharacterEncoding("utf-8");%> 8 | 37 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | <%@include file="include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/root/newcourse.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 | 新课审核 11 |
12 |
13 |
14 |
15 | 16 | 17 | 27 | 28 |
29 |
30 |
31 | 32 |
33 | 40 |
41 |
42 |
课程号:${course.getCno()}
43 |
开课学院:${course.getDept()}
44 |
45 | 课程描述
46 | ${course.getIntroduction()} 47 |
48 |
49 | 50 |
51 |
52 |
53 |
54 |
55 | 66 |
67 |
68 |
69 |
70 |
71 |
72 | <%@include file="../include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/root/sendnotice.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 |

11 | 输入公告的内容 12 |

13 |
14 | 15 |
16 | 17 |
18 | 19 |
20 |
21 |
22 |
23 | <%@include file="../include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/root/studenthelp.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 | 学生求助 11 |
12 |
13 |
14 |
15 | 16 | 17 | 22 | 23 |
24 |
25 |
26 | 27 |
28 | 35 |
36 |
37 |
反馈学生:${help.getSno()}
38 |
反馈时间:${help.getSendtime()}
39 |
40 | 问题描述
41 | ${help.getContent()} 42 |
43 | 44 |
45 | 46 |
47 |
48 |
49 |
50 |
51 |
52 | 63 |
64 |
65 |
66 |
67 |
68 |
69 | <%@include file="../include/htmlFooter.jsp"%> -------------------------------------------------------------------------------- /web/app/student/gradelist.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | 35 |
36 |
37 |
38 | 学生成绩查询 39 |
40 |
41 |
42 | 43 | 48 | 50 | 52 | 54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | -------------------------------------------------------------------------------- /web/app/student/noticedetail.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 | 公告详情 11 |
12 |
13 |
14 |
15 | 16 |

${notice.getTitle()}

17 |
18 | 22 |
23 | 发布时间 24 | ${notice.getSendtime()} 25 |
26 |
27 |
28 |
29 | ${notice.getContent()}
30 | 
31 |
32 |
33 |
34 |
35 |
36 |
37 |
-------------------------------------------------------------------------------- /web/app/student/sendmessage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /web/app/student/sendmessagebody.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 11 | 25 |
26 |
27 |
28 |

29 | 输入反馈的内容 30 |

31 |
32 | "> 33 | 34 |
35 | 36 |
37 | 38 |
39 |
40 |
41 |
42 | -------------------------------------------------------------------------------- /web/app/teacher/gradecourse.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 | 课程成绩管理 11 |
12 |
13 |
14 | 15 |
16 | 23 |
24 |
25 |
课程号:${course.getCno()}
26 |
教学学期:${course.getSemester()}
27 | 课程成绩管理 29 |
30 |
31 |
32 |
33 | 34 |

当前不是给成绩的时间,如有需要请联系管理员老师修改!

35 |
36 |
37 |
38 |
39 |
-------------------------------------------------------------------------------- /web/app/teacher/gradestudentlist.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 |
8 |
9 |
10 | 课程学生分数管理 11 |
12 |
13 |
14 | 15 |
16 | 23 |
24 |
25 |
课程号:${student.getCno()}
26 |
学期:${student.getSemester()}
27 |
分数:${student.getGrade()}
28 | 29 | 30 | 33 | 34 | 35 | 37 | 40 | 41 |
42 |
43 |
44 |
45 | 46 |

当前课程无学生选课

47 |
48 |
49 |
50 |
51 |
52 | -------------------------------------------------------------------------------- /web/app/teacher/studentlist.jsp: -------------------------------------------------------------------------------- 1 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | 5 | 6 | 7 | 14 |
15 |
16 |
17 | 学生信息查询 18 |
19 |
20 |
21 |
22 | 23 | 28 | 30 | 31 |
32 |
33 |
34 | 35 |
36 | 43 |
44 |
45 |
学号:${student.getSno()}
46 |
姓名:${student.getSname()}
47 |
性别:${student.getSex()}
48 |
班级:${student.getKlass()}
49 |
课程:${student.getCname()}
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
-------------------------------------------------------------------------------- /web/css/add.css: -------------------------------------------------------------------------------- 1 | .right_more{ 2 | float: right; 3 | margin-top: 15px; 4 | margin-right: 20px; 5 | } 6 | .help_message_title{ 7 | font-size: 20px; 8 | font-size: 20px; 9 | margin-top: 20px; 10 | margin-bottom: 20px; 11 | width: 50%; 12 | padding:5px; 13 | } 14 | .sno_help{ 15 | float: right; 16 | } 17 | .title_help{ 18 | margin-left: 10px; 19 | } 20 | .detail_title{ 21 | position: absolute; 22 | left: 0; 23 | top: 0; 24 | width: 100%; 25 | background-color: #0483d4; 26 | line-height: 60px; 27 | padding-left: 100px; 28 | font-size: 25px; 29 | color: white; 30 | font-weight: bold; 31 | letter-spacing: 5px; 32 | min-height: 60px; 33 | } 34 | .fu-title{ 35 | font-size: 20px; 36 | text-align: right; 37 | } 38 | .people-account{ 39 | font-size: 13px; 40 | display: inline-block; 41 | padding-right: 20px; 42 | } 43 | .send-time{ 44 | font-size: 13px; 45 | display: inline-block; 46 | } 47 | .article-content{ 48 | font-size: 20px; 49 | margin-top: 20px; 50 | } 51 | .operation{ 52 | font-size: 14px; 53 | text-align: right; 54 | margin-top: 20px; 55 | } 56 | .mess-status{ 57 | font-size: 13px; 58 | display: inline-block; 59 | } 60 | .new_course_search_div{ 61 | margin-bottom: 30px; 62 | } 63 | .tno-search{ 64 | width: 15%; 65 | display: inline-block; 66 | margin-right: 20px; 67 | height: 34px; 68 | } 69 | .college-search{ 70 | width: 15%; 71 | display: inline-block; 72 | margin-right: 20px; 73 | } 74 | .search_btn{ 75 | height: 34px; 76 | position: relative; 77 | bottom: 2px; 78 | } 79 | .course_cno{ 80 | font-size: 20px; 81 | margin-bottom: 10px; 82 | } 83 | .course_college{ 84 | font-size:20px; 85 | margin-bottom: 10px; 86 | } 87 | .course_description{ 88 | font-size: 20px; 89 | margin-bottom: 20px; 90 | } 91 | .course_operation{ 92 | font-size: 20px; 93 | float: right; 94 | } 95 | .content{ 96 | width:80%; 97 | height: 300px; 98 | font-size: 15px; 99 | } 100 | .info-item{ 101 | margin-top: 20px; 102 | } 103 | .run-week{ 104 | margin-top: 20px; 105 | font-weight: bold; 106 | font-size: 20px; 107 | margin-left: 90px; 108 | } 109 | .run-eachtime{ 110 | margin-top: 20px; 111 | font-size: 15px; 112 | margin-left: 90px; 113 | } 114 | .run-day{ 115 | margin-right: 20px; 116 | } 117 | .run-jie{ 118 | margin-right: 20px; 119 | } 120 | .arragementinfo{ 121 | margin-top: 10px; 122 | margin-bottom: 10px; 123 | width: 80%; 124 | } 125 | 126 | .selection_list{ 127 | margin-bottom: 40px; 128 | } 129 | .selection_list li{ 130 | font-size: 19px; 131 | display: inline; 132 | margin-right: 10px; 133 | padding: 10px; 134 | background-color: #91ea91; 135 | color: #fff; 136 | } 137 | .add_cname{ 138 | font-size: 18px; 139 | display: inline-block; 140 | width: 24%; 141 | } 142 | .add_cno{ 143 | font-size: 18px; 144 | display: inline-block; 145 | width: 23%; 146 | } 147 | .add_semester{ 148 | font-size: 18px; 149 | display: inline-block; 150 | width: 27%; 151 | } 152 | .add_capacity{ 153 | font-size: 18px; 154 | display: inline-block; 155 | width: 24%; 156 | } 157 | .add_title{ 158 | margin-top: 30px; 159 | margin-bottom: 20px; 160 | } 161 | .add_title h3{ 162 | width: 24%; 163 | display: inline-block; 164 | } 165 | .course_item{ 166 | background-color: #c4eae0; 167 | padding: 5px; 168 | margin-bottom: 5px; 169 | } 170 | .select_list_item{ 171 | font-size: 10px; 172 | background-color: #7dbbb9; 173 | padding: 8px; 174 | width: 84%; 175 | color: white; 176 | font-weight: bold; 177 | margin-bottom: 8px; 178 | } 179 | .select_list_control{ 180 | font-size: 20px; 181 | display: inline-block; 182 | float: right; 183 | position: relative; 184 | top: -3px; 185 | right: 5px; 186 | } 187 | .semester_name{ 188 | font-size: 17px; 189 | display: inline-block; 190 | width: 30%; 191 | } 192 | .major_name{ 193 | font-size: 17px; 194 | display: inline-block; 195 | width: 30%; 196 | } 197 | .cname_have_selected{ 198 | font-size: 18px; 199 | margin-right: 30px; 200 | line-height: 34px; 201 | display: inline-block; 202 | } 203 | .have_selected{ 204 | border: 1px solid #00ffbc; 205 | border-radius: 7px; 206 | padding-left: 15px; 207 | padding-top: 5px; 208 | padding-bottom: 5px; 209 | margin-top: 5px; 210 | background-color: #00f0ff1f; 211 | } 212 | .clocation_have_selected{ 213 | font-size: 18px; 214 | margin-right: 30px; 215 | line-height: 34px; 216 | display: inline-block; 217 | float: right; 218 | } -------------------------------------------------------------------------------- /web/css/course_table.css: -------------------------------------------------------------------------------- 1 | .main{ 2 | height: 400px; 3 | background-color: red; 4 | } -------------------------------------------------------------------------------- /web/css/jquery.validate-min.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | /* screen.css */ 3 | em.error {text-align:left;color:#a94442;background:url("../images/unchecked.gif") no-repeat 0px 3px;padding-left:16px;margin-left:5px;word-wrap:break-word;word-break:normal;white-space:nowrap;line-height:22px;display:inline;} 4 | em.success {text-align:left;color:#3c763d;background:url("../images/checked.gif") no-repeat 0px 3px;padding-left:16px;margin-left:5px;word-wrap:break-word;word-break:normal;white-space:nowrap;line-height:22px;display:inline;} 5 | /* tooltips-1.0.0.css */ 6 | .tooltips{position:absolute;z-index:1070;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity = 0);opacity:0;}.tooltips.in{filter:alpha(opacity = 100);opacity:1;}.tooltips.top{padding:5px 0;margin-top:-3px;}.tooltips.right{padding:0 5px;margin-left:3px;}.tooltips.bottom{padding:5px 0;margin-top:3px;}.tooltips.left{padding:0 5px;margin-left:-3px;}.tooltips-inner{min-width:80px;max-width:500px;padding:3px 8px;text-align:center;text-decoration:none;border-radius:4px;color:#4D4D4D;background-color:#FDF2F0;border:1px solid #FD807E;}.tooltips-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;}.tooltips.top .tooltips-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#FD807E;}.tooltips.top-left .tooltips-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#FD807E;}.tooltips.top-right .tooltips-arrow{right:5px;bottom:0;border-width:5px 5px 0;border-top-color:#FD807E;}.tooltips.right .tooltips-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#FD807E;}.tooltips.left .tooltips-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#FD807E;}.tooltips.bottom .tooltips-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#FD807E;}.tooltips.bottom-left .tooltips-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#FD807E;}.tooltips.bottom-right .tooltips-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#FD807E;} -------------------------------------------------------------------------------- /web/css/login.css: -------------------------------------------------------------------------------- 1 | body { 2 | 3 | } 4 | 5 | .wrap { 6 | height: 383px; 7 | margin-top: 8%; 8 | width:100%; 9 | background-color: #115095; 10 | 11 | 12 | } 13 | 14 | .wrap > .container { 15 | width:1024px; 16 | min-height: 383px; 17 | background-image:url("../images/login.png") ; 18 | -moz-background-size:1024px 383px; 19 | -webkit-background-size:1024px 383px; 20 | -o-background-size:1024px 383px; 21 | background-size:1024px 383px; 22 | } 23 | 24 | .footer { 25 | width:100%; 26 | margin:0 auto; 27 | text-align:center; 28 | font-size:16px; 29 | font-family:"Microsoft YaHei"; 30 | padding-top:30px; 31 | } 32 | 33 | .jumbotron { 34 | text-align: center; 35 | background-color: transparent; 36 | } 37 | 38 | .jumbotron .btn { 39 | font-size: 21px; 40 | padding: 14px 24px; 41 | } 42 | 43 | .not-set { 44 | color: #c55; 45 | font-style: italic; 46 | } 47 | 48 | .login_form { 49 | width:30%; 50 | background: rgba(255,255,255,.6); 51 | padding: 50px 30px; 52 | margin:5% auto auto 60%; 53 | } 54 | 55 | .input-tips { 56 | font-size:16px; 57 | font-family:"Microsoft YaHei"; 58 | } 59 | 60 | .inputArea { 61 | margin-top:10px; 62 | } 63 | 64 | .inputArea input { 65 | width:100%; 66 | height:50px; 67 | font-size:16px; 68 | font-family:"Microsoft YaHei"; 69 | border:0px; 70 | padding:6px 50px; 71 | } 72 | 73 | #u { 74 | background: rgba(255,255,255,0.9) url(../images/user.png) no-repeat 5% center; 75 | } 76 | 77 | #p { 78 | background: rgba(255,255,255,0.9) url(../images/locked.png) no-repeat 5% center; 79 | } 80 | 81 | input[type="checkbox"] { 82 | width:18px; 83 | height:18px; 84 | margin-top:10px; 85 | margin-left:2%; 86 | vertical-align:bottom; 87 | } 88 | 89 | .form-group { 90 | margin-bottom:1px; 91 | } 92 | .login-footer{ 93 | 94 | } 95 | 96 | textarea:-webkit-autofill, select:-webkit-autofill { 97 | 98 | } -------------------------------------------------------------------------------- /web/images/ico_but18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but18.png -------------------------------------------------------------------------------- /web/images/ico_but19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but19.png -------------------------------------------------------------------------------- /web/images/ico_but28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but28.png -------------------------------------------------------------------------------- /web/images/ico_but30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but30.png -------------------------------------------------------------------------------- /web/images/ico_but31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but31.png -------------------------------------------------------------------------------- /web/images/ico_but36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but36.png -------------------------------------------------------------------------------- /web/images/ico_but42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but42.png -------------------------------------------------------------------------------- /web/images/ico_but46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but46.png -------------------------------------------------------------------------------- /web/images/ico_but83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/ico_but83.png -------------------------------------------------------------------------------- /web/images/log_ic01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/log_ic01.png -------------------------------------------------------------------------------- /web/images/log_ic02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/log_ic02.png -------------------------------------------------------------------------------- /web/images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/login.png -------------------------------------------------------------------------------- /web/images/login_bg_pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/login_bg_pic.jpg -------------------------------------------------------------------------------- /web/images/logo_jw_d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/logo_jw_d.png -------------------------------------------------------------------------------- /web/images/logo_jw_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/logo_jw_w.png -------------------------------------------------------------------------------- /web/images/user_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/web/images/user_logo.jpg -------------------------------------------------------------------------------- /web/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 盗版教务系统 8 | 9 | 10 | 11 | 12 |
13 |
14 | 37 |
38 |
39 | 40 | 41 | 47 | 48 | -------------------------------------------------------------------------------- /web/js/jquery.zftal_zh_CN-min.js: -------------------------------------------------------------------------------- 1 | (function(a){a.i18n=a.i18n||{};a.i18n.zftal=a.i18n.zftal||{};a.extend(a.i18n.zftal,{statusCode:{"400":"\u9519\u8bef\u8bf7\u6c42,\u8bf7\u68c0\u67e5\u53c2\u6570\u662f\u5426\u6b63\u786e!","401":"\u8bbf\u95ee\u88ab\u62d2\u7edd\uff0c\u8bd5\u56fe\u672a\u7ecf\u6388\u6743\u8bbf\u95ee\u53d7\u5bc6\u7801\u4fdd\u62a4\u7684\u9875\u9762!","404":"\u8bf7\u6c42\u4e0d\u5b58\u5728\u7684\u8d44\u6e90\u6216\u7f51\u9875!","408":"\u670d\u52a1\u5668\u7b49\u5019\u8bf7\u6c42\u65f6\u53d1\u751f\u8d85\u65f6,\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u786e!","500":"\u670d\u52a1\u5668\u53d1\u751f\u9519\u8bef\uff0c\u65e0\u6cd5\u5b8c\u6210\u8bf7\u6c42!","502":"\u670d\u52a1\u5668\u4f5c\u4e3a\u7f51\u5173\u6216\u4ee3\u7406\uff0c\u4ece\u4e0a\u6e38\u670d\u52a1\u5668\u6536\u5230\u65e0\u6548\u54cd\u5e94!","503":"\u670d\u52a1\u5668\u76ee\u524d\u65e0\u6cd5\u4f7f\u7528\uff08\u7531\u4e8e\u8d85\u8f7d\u6216\u505c\u673a\u7ef4\u62a4\uff09\u3002\u8bf7\u670d\u52a1\u542f\u52a8\u540e\u518d\u6b21\u5c1d\u8bd5!","504":"\u670d\u52a1\u5668\u4f5c\u4e3a\u7f51\u5173\u6216\u4ee3\u7406\uff0c\u8bf7\u6c42\u4e0a\u6e38\u670d\u52a1\u5668\u8d85\u65f6!","901":"\u5f53\u524d\u767b\u5f55\u7528\u6237\u5df2\u9000\u51fa\u767b\u5f55\u6216\u8005\u4f1a\u8bdd\u5df2\u8fc7\u671f,\u8bf7\u91cd\u65b0\u767b\u5f55!","902":"\u5f53\u524d\u7528\u6237\u767b\u5f55\u7684\u89d2\u8272\u65e0\u6b64\u529f\u80fd\u6743\u9650!","903":"\u540c\u4e00\u6d4f\u89c8\u5668\u4e2d\u53ea\u5141\u8bb8\u4e00\u4e2a\u7528\u6237\u767b\u5f55!","904":"\u8bf7\u52ff\u9891\u7e41\u5237\u65b0\u6216\u8005\u70b9\u51fb\u83dc\u5355!~","905":"\u5f53\u524d\u8bf7\u6c42\u8def\u5f84\u542f\u7528\u53c2\u6570\u503c\u4e00\u81f4\u6027\u6821\u9a8c\u8fc7\u6ee4\uff0c\u60a8\u65e0\u6743\u8bbf\u95ee\u975e\u81ea\u5df1\u6743\u9650\u5185\u7684\u6570\u636e!","906":"\u5f53\u524d\u8bf7\u6c42\u8def\u5f84\u542f\u7528IP\u5730\u5740\u767d\u540d\u5355\u8fc7\u6ee4\uff0c\u53d1\u73b0\u975e\u6cd5IP\u5ba2\u6237\u7aef\u8bbf\u95ee!","907":"\u5f53\u524d\u8bf7\u6c42\u8def\u5f84\u542f\u7528Mac\u5730\u5740\u767d\u540d\u5355\u8fc7\u6ee4\uff0c\u53d1\u73b0\u975e\u6cd5Mac\u5ba2\u6237\u7aef\u8bbf\u95ee!","908":"\u5f53\u524d\u8bf7\u6c42\u8def\u5f84\u542f\u7528\u5371\u9669\u8bbf\u95ee\u6765\u6e90\u8fc7\u6ee4\uff0c\u53d1\u73b0\u975e\u6cd5\u8bf7\u6c42\u6765\u6e90!","909":"\u5904\u7406http\u8bf7\u6c42\u7684Action\u5bf9\u8c61\u672a\u521d\u59cb\u5316!","910":"\u8bf7\u6c42\u7684\u65b9\u6cd5\u5728Action\u5bf9\u8c61\u4e2d\u672a\u5b9a\u4e49!","911":"\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u671f\u95f4\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u67e5\u770b\u5f02\u5e38\u65e5\u5fd7!"},login:{user_empty:"\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01",pwd_empty:"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01",yzm_empty:"\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01"},workFlow:{chooseWorkFlow:"\u9009\u62e9\u5ba1\u6279\u6d41\u7a0b",viewWorkFlow:"\u6d41\u7a0b\u8ddf\u8e2a"},titles:{pwd:"\u4fee\u6539\u5bc6\u7801"},utils:{strength:{label:"\u5bc6\u7801\u5f3a\u5ea6",ratings:["\u5f31","\u5f31","\u4e2d","\u5f3a","\u5f3a","\u672a\u8bc4\u7ea7"]}}})}(jQuery)); 2 | -------------------------------------------------------------------------------- /北京化工大学数据库原理课程设计报告_计科1601_高谦_2016014302.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qianqianjun/DB_Course_Design/2d8801a96483ffc53ff1fa989d4da502a170b121/北京化工大学数据库原理课程设计报告_计科1601_高谦_2016014302.docx --------------------------------------------------------------------------------