提交 08e8c582 编写于 作者: 7 7wc98#14

commit

上级 dab5e4e2
......@@ -56,15 +56,10 @@ public class WebController {
""
);
model.addAttribute("msg", msg);
model.addAttribute("curUse",s);
return "page/Home";
}
@RequestMapping("/learn")
public String learn(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
return "page/Learn";
}
@RequestMapping("/userCenter")
......@@ -80,44 +75,24 @@ public class WebController {
@RequestMapping("/toAddFriend")
public String toAddFriend(Model model, HttpSession session)
{
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
Msg msg = new Msg("注意","添加好友时请输入对方的学号,而不是姓名!","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
return "page/AddFriend";
}
@RequestMapping("/toHelp")
public String toHelp(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
return "page/Help";
}
@RequestMapping("/toEnglish")
public String toEnglish(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
return "page/English";
}
@RequestMapping("/toMath")
public String toMath(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
return "page/Math";
}
@RequestMapping("/toPhilosophy")
public String toPhilosophy(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
return "page/Philosophy";
}
@RequestMapping("/toMyFriend")
......@@ -128,7 +103,6 @@ public class WebController {
List<FriendList> tempFl = friendListRepository.toNameIsFalseByFromName(currentStudentId);
List<FriendList> Fl = friendListRepository.findMyFriendsByFromName(currentStudentId);
List<FriendList> Fl1 = friendListRepository.findMyFriendsByToName(currentStudentId);
model.addAttribute("curUse",s);
model.addAttribute("tempFl",tempFl);
model.addAttribute("Fl",Fl);
model.addAttribute("Fl1",Fl1);
......@@ -144,19 +118,14 @@ public class WebController {
studentRepository.setOnlineStatus(onlineStatus,currentStudentId);
Msg msg = new Msg("","","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
return "page/UserCenter";
}
@RequestMapping("/toBrowseFriendInfo")
public String toBrowseFriendInfo(Model model, HttpSession session,
@Param("toName")String toName){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
Student stu = studentRepository.findNameByStudentID(toName);
Msg msg = new Msg("","","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
model.addAttribute("stu",stu);
return "page/BrowseFriendInfo";
}
......@@ -165,21 +134,16 @@ public class WebController {
@Param("fromName")String fromName,
@Param("toName")String toName){
Student stu = studentRepository.findAllByStudentID(toName);
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
if(stu==null)
{
Msg msg = new Msg("错误","你所添加的用户不存在,请检查输入是否错误","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
return "page/AddFriend";
}
FriendList fl = new FriendList(fromName,toName);
friendListRepository.save(fl);
Msg msg = new Msg("OK","请耐心等待对方通过申请","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
return "page/AddFriend";
}
@RequestMapping("/toVerifyFriend")
......@@ -191,7 +155,6 @@ public class WebController {
int len = fl.size();
Msg msg = new Msg("待验证好友申请数量:", "一共"+len+"个","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
model.addAttribute("fl",fl);
return "page/VerifyFriend";
}
......@@ -207,13 +170,11 @@ public class WebController {
if(result!=0){
Msg msg = new Msg("待验证好友申请数量:", "一共"+len+"个","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
model.addAttribute("fl",fl);
return "page/VerifyFriend";
}
Msg msg = new Msg("错误:", "请检查输入的学号","");
model.addAttribute("msg",msg);
model.addAttribute("curUse",s);
model.addAttribute("fl",fl);
return "page/VerifyFriend";
}
......@@ -413,10 +374,6 @@ public class WebController {
{
System.out.println("更新失败!");
}
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Student> students = studentRepository.findAll();
model.addAttribute("students", students);
return "page/ManageUser";
......@@ -435,10 +392,6 @@ public class WebController {
{
System.out.println("更新失败!");
}
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Student> students = studentRepository.findAll();
model.addAttribute("students", students);
return "page/ManageUser";
......@@ -455,10 +408,6 @@ public class WebController {
@RequestMapping("/news")
public String news(Model model,HttpSession session)
{
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<News> news = newsRepository.findAll();
model.addAttribute("news",news);
return "page/BrowseNews";
......@@ -504,8 +453,6 @@ public class WebController {
public String toQueryGrade(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Grade> gradeList = gradeRepository.findAllByStudentID(currentStudentId);
model.addAttribute("gradeItems", gradeList);
return "page/QueryGrade";
......@@ -515,16 +462,14 @@ public class WebController {
public String queryByTerm(Model model, HttpSession session, @Param("term")String term){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Grade> gradeLists = gradeRepository.findAllByTermAndStudentID(term, currentStudentId);
model.addAttribute("gradeItems", gradeLists);
return "page/QueryGrade";
}
@RequestMapping("/test")
/*@RequestMapping("/test")
public List<Grade> test(@Param("stuId")String studentId) {
return gradeRepository.findAllByStudentID(studentId);
}
}*/
@RequestMapping("/toImportGrade")
public String toImportGrade(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
......@@ -558,20 +503,12 @@ public class WebController {
g.setName(name);
g.setStudentID(studentID);
gradeRepository.save(g);
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
Msg msg = new Msg("提示","导入成功","");
model.addAttribute("msg",msg);
return "page/ImportGrade";
}
@RequestMapping("/toUpQuestion")
public String toUpQuestion(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
Msg msg = new Msg("","","");
model.addAttribute("msg", msg);
return "page/UpQuestion";
......@@ -581,10 +518,6 @@ public class WebController {
public String upQuestion(Model model, HttpSession session,
@Param("mail")String mail, @Param("name")String name,
@Param("title")String title, @Param("content")String content,@Param("reward")String reward){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
try{
MailConfig mailConfig = new MailConfig();
JavaMailSender sender = mailConfig.getMailSender();
......@@ -609,10 +542,6 @@ public class WebController {
public String feedback(Model model, HttpSession session,
@Param("mail")String mail, @Param("name")String name,
@Param("title")String title, @Param("content")String content){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
try{
MailConfig mailConfig = new MailConfig();
JavaMailSender sender = mailConfig.getMailSender();
......@@ -635,20 +564,12 @@ public class WebController {
}
@RequestMapping("/toFeedBack")
public String toFeedBack(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
Msg msg = new Msg("","","");
model.addAttribute("msg",msg);
return "page/FeedBack";
}
@RequestMapping("/toPublishQuestion")
public String toPublishQuestion(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
Msg msg = new Msg("", "", "");
model.addAttribute("msg", msg);
return "page/PublishQuestion";
......@@ -658,10 +579,6 @@ public class WebController {
@Param("mail")String mail,
@RequestParam(value = "PublisherName", required = false)String publisher,
@RequestParam(value = "QuestionType", required = false)String type, @Param("content")String content, @Param("reward")String reward){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
try{
Question question = new Question();
question.setPublisher(publisher);
......@@ -684,10 +601,6 @@ public class WebController {
final QuestionRepository questionRepository;
@RequestMapping("/toBrowserQuestion")
public String toBrowserQuestion(Model model, HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Question> questions = questionRepository.findAll();
model.addAttribute("questions", questions);
return "page/BrowserQuestion";
......@@ -695,20 +608,12 @@ public class WebController {
@RequestMapping("/queryByQuestionType")
public String queryByQuestionType(Model model, HttpSession session,
@RequestParam(value = "TypeOfQuestion", required = false)String type){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Question> questions = questionRepository.findAllByType(type);
model.addAttribute("questions", questions);
return "page/BrowserQuestion";
}
@RequestMapping("/manageUser")
public String findUserExceptCurUser(Model model,HttpSession session){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Student> students = studentRepository.findAll();
model.addAttribute("students", students);
return "page/ManageUser";
......@@ -716,20 +621,12 @@ public class WebController {
@RequestMapping("/findUserByStudentIDLike")
public String findUserByStudentIDLike(Model model, HttpSession session,
@RequestParam(value = "ClassPrefix", required = false)String classPrefix){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
List<Student> students = studentRepository.query01(classPrefix+'%');
model.addAttribute("students", students);
return "page/ManageUser";
}
@RequestMapping("/delStuByStuId")
public String delStuByStuId(Model model,HttpSession session,@RequestParam(value = "studentId", required = false)String stuId){
SecurityContextImpl securityContext = (SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT");
String currentStudentId = ((UserDetails) securityContext.getAuthentication().getPrincipal()).getUsername();
Student s = studentRepository.findNameByStudentID(currentStudentId);
model.addAttribute("curUse",s);
studentRepository.delByStudentID(stuId);
sysUserRepository.delByUsername(stuId);
List<Student> students = studentRepository.findAll();
......
......@@ -108,10 +108,10 @@
<li><a href="/toPhilosophy">哲学</a></li>
</ul>
</li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -103,10 +103,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="#">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" >用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......@@ -117,7 +117,7 @@
<div class="col-sm-4">
<h2>网站管理菜单</h2>
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="/publishNews">新闻发布</a> </li>
<li><a href="/publishNews">新闻发布</a> </li>
<li><a href="/toImportGrade">成绩导入</a> </li>
<li><a href="/toPublishQuestion">发布悬赏问题</a> </li>
<li><a href="/manageUser">管理用户</a> </li>
......
......@@ -108,10 +108,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -105,9 +105,9 @@
</ul>
</li>
<li><a href="#">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -103,10 +103,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -94,9 +94,9 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -105,10 +105,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -105,10 +105,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -135,9 +135,9 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -111,10 +111,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -94,9 +94,9 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -108,10 +108,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......@@ -189,6 +189,7 @@
</div>
<button type="submit" class="btn btn-danger">解冻</button>
</form>
</div>
</div>
</div>
......
......@@ -94,9 +94,9 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -112,10 +112,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -94,9 +94,9 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a></li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
</div>
......
......@@ -105,10 +105,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="#">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -111,10 +111,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -107,10 +107,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -111,10 +111,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
......@@ -108,10 +108,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="#" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="#" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="#" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="#" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......@@ -135,7 +135,7 @@
</ul>
<hr class="hidden-sm hidden-md hidden-lg">
</div>
<div class="col-sm-8" style="height: 800px;">
<div class="col-sm-8">
<div class="starter-template">
<h1 th:text="${msg.title}"></h1>
<p class="bg-primary" th:text="${msg.content}"></p>
......
......@@ -110,10 +110,10 @@
</ul>
</li>
<li><a href="/news">校内新闻</a></li>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
<li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
</li>
<li><a href="/toHelp">帮助中心</a> </li>
</ul>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册