diff --git a/project2/README.md b/project2/README.md new file mode 100644 index 0000000..617a1bd --- /dev/null +++ b/project2/README.md @@ -0,0 +1,167 @@ +# Readme + +- /course + - ~/all + - 课程信息页 [Get] + - admin,teacher,student + - courseList|courseList_t|courseList_s + - ~/infomodv2 + - 课程信息修改页 [Get] + - admin,teacher,student + - courseopv2|courseopv2_t|courseopv2_s + - ~/delinfo + - 课程信息删除 [Post] + - admin + - *Redirect*.infomodev2 + - ~/addinfo + - 课程信息添加 [Post] + - admin + - *Redirect*.infomodev2 + - ~/modinfo + - 课程信息修改 [Post] + - admin + - *Redirect*.infomodev2 + - ~/query + - 课程信息查询 [Post] + - admin,teacher,student + - courseQueryResult|courseQueryResult_t|courseQueryResult_s +- /output + - ~/export-csv [Get] + - 学生、课程、成绩、教师信息下载 + - admin,teacher + - ~/get-csv + - 获取已经生成的csv文件 [Get] + - admin,teacher +- /person + - ~/settings + - 个人设置页 [Get] + - admin,teacher,student + - person|person_t|person_s + - ~/uploadAvatar + - 头像上传 [Post] + - admin,teacher,student + - ~/image + - 获取用户头像 [Get] + - admin,teacher,student +- /score + - ~/all + - 学生成绩页 + - admin + - ~/all_t + - 学生成绩页(教师版) + - teacher + - ~/infomodv2 + - 学生成绩修改页 + - admin + - ~/infomodv2_t + - 学生成绩修改页(教师版) + - teacher + - ~/query + - 学生成绩查询 + - admin,teacher + - ~/modinfo + - 学生成绩修改 + - admin + - ~/delinfo + - 学生成绩删除 + - admin + - ~/addinfo + - 学生成绩添加 + - admin,teacher +- /student + - ~/all + - 学生信息查询页 + - admin + - ~/all_t + - 学生信息查询页(教师版) + - teacher + - ~/queryinfo + - 学生信息查询(条件)页 + - admin + - ~/queryinfo_t + - 学生信息查询(条件)页(教师版) + - teacher + - ~/query + - 学生信息查询 + - admin + - ~/modstep1 + - 学生信息修改页 + - admin + - ~/modinfo + - 学生信息修改 + - admin,teacher + - ~/infomodv2 + - 学生信息修改页(v2) + - admin + - ~/infomodv2_t + - 学生信息修改页(v2)(教师版) + - teacher + - ~/delinfo + - 学生信息删除 + - admin + - ~/delinfoT + - 学生信息删除(教师版) + - teacher + - ~/addinfo + - 学生信息添加 + - admin,teacher +- /system + - ~/settings + - 系统设置页 + - admin + - ~/clean + - 清理垃圾 + - admin +- /teacher + - ~/mamage + - 教师信息管理页 + - admin + - ~/query + - 教师信息查询 + - admin + - ~/mod + - 教师信息修改 + - admin + - ~/del + - 教师信息删除 + - admin + - ~/add + - 教师信息添加 + - admin +- /login + - 用户登录页(和/相同) + - everyone +- /signup + - 用户(管理员)注册 + - everyone +- /user + - ~/usermanage + - 用户管理页 + - admin + - ~/create + - 用户创建 + - admin + - ~/reset + - 重设密码 + - admin + - ~/userdisabled + - 禁用用户 + - admin + - ~/userenabled + - 启用用户 + - admin +- /success + - 废弃的成功状态页 + - None +- /fail + - 废弃的失败状态页 + - None +- /dashboard + - 管理员登陆后的首页 + - admin +- /dashboard-t + - 教师登陆后的首页 + - teacher +- /dashborad-s + - 学生登录后的首页 + - student \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class index 4585c0a..076765b 100644 Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class index 1d28fc4..30ece77 100644 Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/StudentController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/StudentController.class index 40bd91a..7757778 100644 Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/StudentController.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/StudentController.class differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class index 3614829..2be738c 100644 Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class differ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList_t.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList_t.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseQueryResult.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseQueryResult.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult.jsp diff --git a/project2/web/WEB-INF/views/courseQueryResult.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseQueryResult.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseopv2.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseopv2.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2.jsp diff --git a/project2/web/WEB-INF/views/courseopv2.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseopv2.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2_t.jsp diff --git a/project2/web/WEB-INF/views/person.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/person_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/person.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/person_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp new file mode 100644 index 0000000..863b862 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp @@ -0,0 +1,211 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
成绩ID学号学生姓名课程ID课程名成绩
${score.scoreID}${score.student.id}${score.student.name}${score.course.courseID}${score.course.courseName}${score.score}
+
+
+
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp new file mode 100644 index 0000000..341cca5 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp @@ -0,0 +1,298 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查看 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
信息修改
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp new file mode 100644 index 0000000..e4467ef --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp @@ -0,0 +1,177 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
+
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/project2/src/main/java/cyou/chenx221/controller/CourseController.java b/project2/src/main/java/cyou/chenx221/controller/CourseController.java index 2be5ee2..464bfcf 100644 --- a/project2/src/main/java/cyou/chenx221/controller/CourseController.java +++ b/project2/src/main/java/cyou/chenx221/controller/CourseController.java @@ -23,29 +23,26 @@ public class CourseController { this.courseService = courseService; } - @GetMapping("/all")//课程信息查询(不带条件) + @GetMapping("/all") public String getAllCourses(Model model) { String username = new UsernameHelper().getCurrentUsername(); + String role = new UsernameHelper().getCurrentRole(); if (username != null) { model.addAttribute("username", username); } List courses = courseService.getAllCourses(); model.addAttribute("courses", courses); - return "courseList"; // 重定向到 dashboard 页面 - } - - @GetMapping("/all_t")//课程信息查询(不带条件) - public String getAllCoursesT(Model model) { - String username = new UsernameHelper().getCurrentUsername(); - if (username != null) { - model.addAttribute("username", username); + if (role.equals("[ROLE_admin]")) + return "course/courseList"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseList_t"; + } else { + return "course/courseList_s"; } - List courses = courseService.getAllCourses(); - model.addAttribute("courses", courses); - return "courseList_t"; // 重定向到 dashboard 页面 + } - @GetMapping("/infomodv2")//处理学生信息修改页 + @GetMapping("/infomodv2") public String getInfoModv2(@RequestParam(value = "successMessage", required = false, defaultValue = "null") String successMessage, @RequestParam(value = "errorMessage", required = false, defaultValue = "null") String errorMessage, Model model) { @@ -55,16 +52,21 @@ public class CourseController { } List courses = courseService.getAllCourses(); model.addAttribute("courses", courses); -// 将消息添加到Model中 model.addAttribute("successMessage", successMessage); model.addAttribute("errorMessage", errorMessage); - - return "courseopv2"; + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "course/courseopv2"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseopv2_t"; + } else { + return "course/courseopv2_s"; + } } @PostMapping(value = "/delinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String DeleteCourseInfo(@RequestParam(value = "id") int id, - Model model) { + Model model) { Course temp = courseService.getCourseById(id); if (id <= 0 || temp == null) { model.addAttribute("errorMessage", "学生信息删除失败,可能是ID非法或者学生已删除"); @@ -82,7 +84,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - // + @PostMapping(value = "/addinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String InsertCourseInfo(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @@ -94,7 +96,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - // + @PostMapping(value = "/modinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String UpdateModInfo(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @@ -121,7 +123,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - @PostMapping(value = "/query", produces = "application/x-www-form-urlencoded;charset=UTF-8")//学生信息查询(带条件) + @PostMapping(value = "/query", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String getQueryCourses(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @RequestParam(value = "id", defaultValue = "-1", required = false) int id, @@ -139,9 +141,15 @@ public class CourseController { List courses; Course course; course = new Course((id == -1 ? null : id), name, description); -// System.out.println("id:" + id + " name:" + name + " description:" + description); courses = courseService.getQueryCourses(course); model.addAttribute("courses", courses); - return "courseQueryResult"; + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "course/courseQueryResult"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseQueryResult_t"; + } else { + return "course/courseQueryResult_s"; + } } } diff --git a/project2/src/main/java/cyou/chenx221/controller/PersonController.java b/project2/src/main/java/cyou/chenx221/controller/PersonController.java index 13331e9..1e93e75 100644 --- a/project2/src/main/java/cyou/chenx221/controller/PersonController.java +++ b/project2/src/main/java/cyou/chenx221/controller/PersonController.java @@ -2,7 +2,6 @@ package cyou.chenx221.controller; import cyou.chenx221.helper.UsernameHelper; import cyou.chenx221.mapper.UserMapper; -import cyou.chenx221.pojo.Course; import cyou.chenx221.pojo.User; import cyou.chenx221.service.PersonService; import org.springframework.beans.factory.annotation.Autowired; @@ -15,7 +14,6 @@ import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.util.HashMap; -import java.util.List; import java.util.Map; @Controller @@ -30,33 +28,34 @@ public class PersonController { this.personService = personService; } - @GetMapping("/settings")//课程信息查询(不带条件) + @GetMapping("/settings") public String getPersonSettings(Model model) { String username = new UsernameHelper().getCurrentUsername(); if (username != null) { model.addAttribute("username", username); } - return "person"; // 重定向到 dashboard 页面 + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "person/person"; + else if (role.equals("[ROLE_teacher]")) { + return "person/person_t"; + } else { + return "person/person_s"; + } } @ResponseBody @PostMapping("/uploadAvatar") public ResponseEntity> uploadAvatar(@RequestParam("avatar") MultipartFile file) { Map response = new HashMap<>(); - - // 处理上传的头像图片文件 //TODO: 清理没有关联的图像资源 + //TODO: 清理没有关联的图像资源 if (!file.isEmpty()) { try { -// String avatarUrl = personService.uploadAvatar(file); String object = personService.uploadAvatar(file); User user = new User(); user.setUsername(new UsernameHelper().getCurrentUsername()); user.setAvatar(object); userMapper.setAvatar(user); - // 设置返回的avatarUrl值 -// response.put("avatarUrl", "/person/image"); -// response.put("avatarUrl", avatarUrl); - // 返回成功消息和avatarUrl return ResponseEntity.ok(response); } catch (Exception e) { String errorMessage = "Error uploading file: " + e.getMessage(); @@ -77,7 +76,6 @@ public class PersonController { InputStreamResource imageResource = personService.getImage(objectName); return ResponseEntity.ok().body(imageResource); } catch (Exception e) { - // Handle exception and return appropriate response return ResponseEntity.notFound().build(); } } diff --git a/project2/src/main/java/cyou/chenx221/controller/StudentController.java b/project2/src/main/java/cyou/chenx221/controller/StudentController.java index d015459..6045a33 100644 --- a/project2/src/main/java/cyou/chenx221/controller/StudentController.java +++ b/project2/src/main/java/cyou/chenx221/controller/StudentController.java @@ -90,7 +90,6 @@ public class StudentController { if (!"null".equals(birthdayStr)) { birthday = Date.valueOf(birthdayStr); } -// System.out.println(birthday);//debug List students; Student student; if (classes.size() == 0) { diff --git a/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java b/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java index b8424c6..6520817 100644 --- a/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java +++ b/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java @@ -18,4 +18,12 @@ public class UsernameHelper { return null; } + public String getCurrentRole(){ + Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); + if (authentication != null && authentication.getPrincipal() instanceof UserDetails) { + UserDetails userDetails = (UserDetails) authentication.getPrincipal(); + return userDetails.getAuthorities().toString(); //[ROLE_admin],[ROLE_teacher],[ROLE_student] + } + return null; + } } diff --git a/project2/web/WEB-INF/views/courseList.jsp b/project2/web/WEB-INF/views/course/courseList.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseList.jsp rename to project2/web/WEB-INF/views/course/courseList.jsp diff --git a/project2/web/WEB-INF/views/courseList_t.jsp b/project2/web/WEB-INF/views/course/courseList_s.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseList_t.jsp rename to project2/web/WEB-INF/views/course/courseList_s.jsp diff --git a/project2/web/WEB-INF/views/course/courseList_t.jsp b/project2/web/WEB-INF/views/course/courseList_t.jsp new file mode 100644 index 0000000..d750cef --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseList_t.jsp @@ -0,0 +1,196 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查看 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult.jsp b/project2/web/WEB-INF/views/course/courseQueryResult.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp b/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp b/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2.jsp b/project2/web/WEB-INF/views/course/courseopv2.jsp new file mode 100644 index 0000000..fe4c944 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2.jsp @@ -0,0 +1,406 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ + + +
+ +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + +
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2_s.jsp b/project2/web/WEB-INF/views/course/courseopv2_s.jsp new file mode 100644 index 0000000..fc6b018 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2_s.jsp @@ -0,0 +1,285 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2_t.jsp b/project2/web/WEB-INF/views/course/courseopv2_t.jsp new file mode 100644 index 0000000..fc6b018 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2_t.jsp @@ -0,0 +1,285 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person.jsp b/project2/web/WEB-INF/views/person/person.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person_s.jsp b/project2/web/WEB-INF/views/person/person_s.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person_s.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person_t.jsp b/project2/web/WEB-INF/views/person/person_t.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person_t.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/scoreQueryResult_t.jsp b/project2/web/WEB-INF/views/scoreQueryResult_t.jsp new file mode 100644 index 0000000..863b862 --- /dev/null +++ b/project2/web/WEB-INF/views/scoreQueryResult_t.jsp @@ -0,0 +1,211 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
成绩ID学号学生姓名课程ID课程名成绩
${score.scoreID}${score.student.id}${score.student.name}${score.course.courseID}${score.course.courseName}${score.score}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/studentMod_t.jsp b/project2/web/WEB-INF/views/studentMod_t.jsp new file mode 100644 index 0000000..341cca5 --- /dev/null +++ b/project2/web/WEB-INF/views/studentMod_t.jsp @@ -0,0 +1,298 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查看 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
信息修改
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/studentQueryResult_t.jsp b/project2/web/WEB-INF/views/studentQueryResult_t.jsp new file mode 100644 index 0000000..e4467ef --- /dev/null +++ b/project2/web/WEB-INF/views/studentQueryResult_t.jsp @@ -0,0 +1,177 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file