Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

201836900114 zwq #17

Open
wants to merge 125 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
fede413
Delete 项目已经上传到这个网址.txt
vicky-ZhuWenqi Dec 9, 2020
21dbd9a
Delete pom.xml
vicky-ZhuWenqi Dec 9, 2020
e6e0396
Delete db.sql
vicky-ZhuWenqi Dec 9, 2020
7cabdbf
Delete .gitignore
vicky-ZhuWenqi Dec 9, 2020
978dcc2
Delete The things I have done.txt
vicky-ZhuWenqi Dec 9, 2020
752dda3
Delete WZF_OAPS.iml
vicky-ZhuWenqi Dec 9, 2020
2838756
Delete javax.annotation.jar
vicky-ZhuWenqi Dec 9, 2020
413e874
Delete javax.ejb.jar
vicky-ZhuWenqi Dec 9, 2020
64e2680
Delete javax.jms.jar
vicky-ZhuWenqi Dec 9, 2020
fb8afd1
Delete javax.persistence.jar
vicky-ZhuWenqi Dec 9, 2020
e9c1d99
Delete javax.resource.jar
vicky-ZhuWenqi Dec 9, 2020
c5a5c13
Delete javax.servlet.jar
vicky-ZhuWenqi Dec 9, 2020
b7ab331
Delete javax.servlet.jsp.jar
vicky-ZhuWenqi Dec 9, 2020
73ce499
Delete javax.transaction.jar
vicky-ZhuWenqi Dec 9, 2020
69041d9
Delete WZF_OAPS.war
vicky-ZhuWenqi Dec 9, 2020
e848f25
Delete DB.java
vicky-ZhuWenqi Dec 9, 2020
dd7927c
Delete Filter_AdminLogin.java
vicky-ZhuWenqi Dec 9, 2020
64f0c8a
Delete Administrator.java
vicky-ZhuWenqi Dec 9, 2020
5e6ad1d
Delete Article.java
vicky-ZhuWenqi Dec 9, 2020
c968ea7
Delete Author.java
vicky-ZhuWenqi Dec 9, 2020
e7efea4
Delete Subject.java
vicky-ZhuWenqi Dec 9, 2020
075a364
Delete AdministorController.java
vicky-ZhuWenqi Dec 9, 2020
4572cbf
Delete createdFiles.lst
vicky-ZhuWenqi Dec 9, 2020
07c25fa
Delete inputFiles.lst
vicky-ZhuWenqi Dec 9, 2020
e1f29a5
Delete success.jsp
vicky-ZhuWenqi Dec 9, 2020
ecf5704
Delete MANIFEST.MF
vicky-ZhuWenqi Dec 9, 2020
677f67f
Delete web.xml
vicky-ZhuWenqi Dec 9, 2020
db0693d
Delete DB.class
vicky-ZhuWenqi Dec 9, 2020
93ab310
Delete Filter_AdminLogin.class
vicky-ZhuWenqi Dec 9, 2020
135864c
Delete Administrator.class
vicky-ZhuWenqi Dec 9, 2020
ea1cc0f
Delete Article.class
vicky-ZhuWenqi Dec 9, 2020
b282b00
Delete Author.class
vicky-ZhuWenqi Dec 9, 2020
257faff
Delete Subject.class
vicky-ZhuWenqi Dec 9, 2020
828e4f4
Delete AdministorController.class
vicky-ZhuWenqi Dec 9, 2020
bee6233
Delete AuthorController.class
vicky-ZhuWenqi Dec 9, 2020
e382a32
Delete Controller.class
vicky-ZhuWenqi Dec 9, 2020
f07f2d9
Delete DownloadServlet.class
vicky-ZhuWenqi Dec 9, 2020
abfe1c1
Delete UploadServlet.class
vicky-ZhuWenqi Dec 9, 2020
6ad0b8b
Delete commons-fileupload-1.3.jar
vicky-ZhuWenqi Dec 9, 2020
75b4118
Delete commons-io-2.4.jar
vicky-ZhuWenqi Dec 9, 2020
ee10674
Delete javax.servlet-api-3.1.0.jar
vicky-ZhuWenqi Dec 9, 2020
d258f39
Delete jstl-1.2.jar
vicky-ZhuWenqi Dec 9, 2020
cf03587
Delete mysql-connector-java-5.1.32.jar
vicky-ZhuWenqi Dec 9, 2020
64228ad
Delete spring-aop-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
502f5e4
Delete spring-beans-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
69f43e3
Delete spring-context-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
98ffd5f
Delete spring-core-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
9ad36f3
Delete spring-expression-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
c2c4635
Delete spring-jcl-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
1279120
Delete spring-web-5.0.5.RELEASE.jar
vicky-ZhuWenqi Dec 9, 2020
7edc67e
Delete Python语言程序设计 .pdf
vicky-ZhuWenqi Dec 9, 2020
10fa54f
Delete kong.pdf
vicky-ZhuWenqi Dec 9, 2020
1ee68b0
Delete 第五章:循环.pdf
vicky-ZhuWenqi Dec 9, 2020
9d64157
Delete pom.properties
vicky-ZhuWenqi Dec 9, 2020
92cd086
Delete DB.class
vicky-ZhuWenqi Dec 9, 2020
984d3f3
Delete Filter_AdminLogin.class
vicky-ZhuWenqi Dec 9, 2020
276af10
Delete Administrator.class
vicky-ZhuWenqi Dec 9, 2020
a5aff4c
Delete Article.class
vicky-ZhuWenqi Dec 9, 2020
1f1e905
Delete Author.class
vicky-ZhuWenqi Dec 9, 2020
daf471d
Delete Subject.class
vicky-ZhuWenqi Dec 9, 2020
99c9b8b
Delete AdministorController.class
vicky-ZhuWenqi Dec 9, 2020
5dc2c8e
Delete AuthorController.class
vicky-ZhuWenqi Dec 9, 2020
ed7a4ab
Delete Controller.class
vicky-ZhuWenqi Dec 9, 2020
847aff4
Delete DownloadServlet.class
vicky-ZhuWenqi Dec 9, 2020
e7cd31f
Delete UploadServlet.class
vicky-ZhuWenqi Dec 9, 2020
a8f7068
Delete Aboutus.jsp
vicky-ZhuWenqi Dec 9, 2020
016799e
Delete AddSubject.jsp
vicky-ZhuWenqi Dec 9, 2020
7ef01c6
Delete Administrator.jsp
vicky-ZhuWenqi Dec 9, 2020
9f122a4
Delete AdministratorEdit.jsp
vicky-ZhuWenqi Dec 9, 2020
9872b39
Delete AdministratorHome.jsp
vicky-ZhuWenqi Dec 9, 2020
1ab5481
Delete Articles.jsp
vicky-ZhuWenqi Dec 9, 2020
859a06c
Delete Author.jsp
vicky-ZhuWenqi Dec 9, 2020
3921610
Delete Contact.jsp
vicky-ZhuWenqi Dec 9, 2020
a7d51b1
Delete AuthorArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
4b09093
Delete AuthorEdit.jsp
vicky-ZhuWenqi Dec 9, 2020
3c3cab3
Delete AuthorHome.jsp
vicky-ZhuWenqi Dec 9, 2020
7d58712
Delete AuthorRegister.jsp
vicky-ZhuWenqi Dec 9, 2020
39ad5e8
Delete Comments.jsp
vicky-ZhuWenqi Dec 9, 2020
253ec31
Delete NewFile.jsp
vicky-ZhuWenqi Dec 9, 2020
9700eed
Delete Master.jsp
vicky-ZhuWenqi Dec 9, 2020
dc78baf
Delete MasterArticles.jsp
vicky-ZhuWenqi Dec 9, 2020
ea3e5d5
Delete MasterAuthors.jsp
vicky-ZhuWenqi Dec 9, 2020
be7afcb
Delete MasterComments.jsp
vicky-ZhuWenqi Dec 9, 2020
05fe6ef
Delete MasterViewArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
43448fa
Delete PostArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
ef46ccb
Delete Search.jsp
vicky-ZhuWenqi Dec 9, 2020
9aa8249
Delete ViewArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
9dbbea4
Delete blocklist.jsp
vicky-ZhuWenqi Dec 9, 2020
2683aec
Delete index.jsp
vicky-ZhuWenqi Dec 9, 2020
a35274f
Delete style.css
vicky-ZhuWenqi Dec 9, 2020
9d679c1
Delete AuthorController.java
vicky-ZhuWenqi Dec 9, 2020
fa479ae
Delete Controller.java
vicky-ZhuWenqi Dec 9, 2020
6da7153
Delete DownloadServlet.java
vicky-ZhuWenqi Dec 9, 2020
3b7af0c
Delete UploadServlet.java
vicky-ZhuWenqi Dec 9, 2020
10b4b38
Delete web.xml
vicky-ZhuWenqi Dec 9, 2020
303aefa
Delete success.jsp
vicky-ZhuWenqi Dec 9, 2020
fcfad79
Delete Aboutus.jsp
vicky-ZhuWenqi Dec 9, 2020
e417cd6
Delete AdministratorEdit.jsp
vicky-ZhuWenqi Dec 9, 2020
be09e35
Delete AddSubject.jsp
vicky-ZhuWenqi Dec 9, 2020
4076063
Delete Administrator.jsp
vicky-ZhuWenqi Dec 9, 2020
a861da3
Delete AdministratorHome.jsp
vicky-ZhuWenqi Dec 9, 2020
b62f4ce
Delete Articles.jsp
vicky-ZhuWenqi Dec 9, 2020
37273a7
Delete Author.jsp
vicky-ZhuWenqi Dec 9, 2020
f75cd34
Delete AuthorArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
5e575ef
Delete AuthorEdit.jsp
vicky-ZhuWenqi Dec 9, 2020
73eebae
Delete AuthorHome.jsp
vicky-ZhuWenqi Dec 9, 2020
d79794f
Delete AuthorRegister.jsp
vicky-ZhuWenqi Dec 9, 2020
ff20ab3
Delete Comments.jsp
vicky-ZhuWenqi Dec 9, 2020
bf19924
Delete Contact.jsp
vicky-ZhuWenqi Dec 9, 2020
b92226b
Delete Master.jsp
vicky-ZhuWenqi Dec 9, 2020
f129223
Delete MasterArticles.jsp
vicky-ZhuWenqi Dec 9, 2020
46fc746
Delete MasterAuthors.jsp
vicky-ZhuWenqi Dec 9, 2020
3c3487a
Delete MasterComments.jsp
vicky-ZhuWenqi Dec 9, 2020
36d66c3
Delete MasterViewArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
6bc06d6
Delete NewFile.jsp
vicky-ZhuWenqi Dec 9, 2020
1d5b4c1
Delete PostArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
6193e67
Delete Search.jsp
vicky-ZhuWenqi Dec 9, 2020
692ed10
Delete ViewArticle.jsp
vicky-ZhuWenqi Dec 9, 2020
ecc8e7b
Delete blocklist.jsp
vicky-ZhuWenqi Dec 9, 2020
50bbd4e
Delete index.jsp
vicky-ZhuWenqi Dec 9, 2020
0d35389
Delete style.css
vicky-ZhuWenqi Dec 9, 2020
4803200
推送功能
vicky-ZhuWenqi Dec 9, 2020
968db2c
Update NewFile1.jsp
vicky-ZhuWenqi Dec 9, 2020
6dbc899
Add files via upload
vicky-ZhuWenqi Dec 9, 2020
f26d291
Update 201836900114_maintenance_story.txt
vicky-ZhuWenqi Dec 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

11 changes: 11 additions & 0 deletions 201836900114_maintenance_story.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
GitHub link:
https://github.com/lanlab-org/OAPS-Jifry/tree/201836900114-zwq

Group information:
201836900106 洪 仪
201836900113 许璐怡
201836900114 朱文琦
201836900115 诸斯涔

concise maintenance story:
添加了在主页自动推送popular article的功能,由于最初版本的jifry项目没有管理员界面,所以我们直接为项目在主页顶端添加了自动显示点赞最高的两篇文章以实现文章推荐功能,用户就可以根据推荐去浏览想看的文章。
7 changes: 0 additions & 7 deletions The things I have done.txt

This file was deleted.

19 changes: 0 additions & 19 deletions WZF_OAPS.iml

This file was deleted.

26 changes: 10 additions & 16 deletions src/main/webapp/Contact.jsp → WebContent/Aboutus.jsp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Contact</title>
<meta charset="ISO-8859-1">
<title>About us</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
Expand Down Expand Up @@ -33,7 +33,7 @@ header a
margin-left:25px;
text-decoration:none;
color:white;
cursor:default;
cursor:
}

header a:hover
Expand Down Expand Up @@ -77,43 +77,37 @@ footer
font-size:20px;
margin-top:50px;
}
.email {
text-align: center;
margin: 10px auto;
}

</style>
</head>
<body>

<header>
<nav>

<a href="Controller?page=home">Home</a>
<a href="Controller?page=aboutus">About us</a>
<a href="Controller?page=contact">Contact</a>
<a href="Controller?page=administrator">Admin</a>
<a href="Controller?page=admin">Admin</a>

<form action="Controller" method="post">
<form action="/OAPS/Controller" method="post">
<input type="hidden" name="page" value="select">
<select name="option">
<option value="Articles">Articles</option>
</select>
<button>go</button>
</form>

<form action="Controller" method="post">
<form action="/OAPS/Controller" method="post">
<input type="hidden" name="page" value="search">
<input type="text" name="search2" required>
<button>search</button>
</form>
</nav>
</header>

<h2 class="email">开发者邮箱:<a href="mailto:1614518467@qq.com">1614518467@qq.com</a></h2>
<footer>
2020 copyright&copy;Wu Zhongfu
2019 copyright&copy;mjh.mohamed
</footer>

</body>
</html>
</html>
27 changes: 12 additions & 15 deletions target/WZF_OAPS/Author.jsp → WebContent/Admin.jsp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="ISO-8859-1">
<title>Admin</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
Expand Down Expand Up @@ -36,7 +35,7 @@ header a
margin-left:25px;
text-decoration:none;
color:white;
cursor:default;
cursor:
}

header a:hover
Expand Down Expand Up @@ -127,21 +126,20 @@ footer

<header>
<nav>

<a href="Controller?page=home">Home</a>
<a href="Controller?page=aboutus">About us</a>
<a href="Controller?page=contact">Contact</a>
<a href="Controller?page=administrator">Admin</a>
<a href="Controller?page=admin">Admin</a>

<form action="Controller" method="post">
<form action="/OAPS/Controller" method="post">
<input type="hidden" name="page" value="select">
<select name="option">
<option value="Articles">Articles</option>
</select>
<button>go</button>
</form>

<form action="Controller" method="post">
<form action="/OAPS/Controller" method="post">
<input type="hidden" name="page" value="search">
<input type="text" name="search2" required>
<button>search</button>
Expand All @@ -150,22 +148,21 @@ footer
</header>


<form action="AdministratorController" method="post" class="form1">
<form action="/OAPS/AdminController" method="post" class="form1">
<table>
<tr><td><h1>Admin Login</h1></td></tr>
<tr><td><input type="hidden" name="page" value="administrator"></td></tr>
<tr><td><input type="hidden" name="page" value="admin"></td></tr>
<tr><td><input type="email" name="email" required></td></tr>
<tr><td><input type="password" name="password" required></td></tr>
<tr><td><button>Admin Login</button></td></tr>
<tr><td> <a href="AuthorController?page=register">register</a> </td></tr>
<tr><td><button>login</button></td></tr>
<tr><td> <a href="AdminController?page=register">register</a> </td></tr>
<tr><td style="color:red"> <c:out value="${ msg}"></c:out> </td></tr>
</table>
</form>
<h3 style="text-align: center;">${advice}</h3>


<footer>
2020 copyright&copy;Wu Zhongfu
2019 copyright&copy;mjh.mohamed
</footer>

</body>
Expand Down
134 changes: 134 additions & 0 deletions WebContent/AdminEdit.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">

header h1
{
float:left;
color:white;
margin-left:20px;
}

header nav
{
float:right;
margin-right:20px;
}

.form1
{
width:60%;
margin: 0px auto;
font-size:20px;
}

table
{
margin:20px;
}

.form1 input
{
width:200%;
margin-bottom:15px;
border-radius:3px;
padding-left:5px;
}

footer
{
background:black;
height:40px;
color:white;
text-align:center;
padding:5px;
font-size:20px;
margin-top:50px;
}

</style>

</head>
<body>

<header>
<h1>Welcome Admin</h1>
<nav>
<a href="AdminController?page=home">Home</a>
<a href="AdminController?page=articles"></a>
<a href="AdminController?page=logout">logout</a>
</nav>
</header>


<sql:setDataSource user="root" password="1234" url="jdbc:mysql://localhost:3306/ooad?serverTimezone=UTC&&autoReconnect=true&&useSSL=false" driver="com.mysql.cj.jdbc.Driver" var="db" />

<sql:query var="result" dataSource="${ db}">
select * from article where title='<%= request.getAttribute("title")%>'
</sql:query>

<c:forEach items="${ result.rows}" var="row">


<form class="form1" action="/OAPS/AdminController" method="post">
<input type="hidden" name="page" value="edit-form">
<input type="hidden" name="old-title" value="<%= request.getAttribute("title")%>">
<table>

<tr>
<td>Current Subject</td>
</tr>

<tr>
<td><input type="text" name="subject" value="<c:out value="${ row.subject}"></c:out>" readonly style="background:lightgray"></td>
</tr>

<tr>
<td>Title</td>
</tr>

<tr>
<td><input type="text" name="title" value="<c:out value="${ row.title}"></c:out>" placeholder="Enter title" required></td>
</tr>

<tr>
<td>Highlights</td>
</tr>

<tr>
<td><input type="text" name="highlights" value="<c:out value="${ row.highlight}"></c:out>" placeholder="Enter highlights" required></td>
</tr>

<tr>
<td>Abstract</td>
</tr>

<tr>
<td><input type="text" name="abstracts" value="<c:out value="${ row.abstracts}"></c:out>" placeholder="Enter abstract" required></td>
</tr>


<tr>
<td><button>update</button></td>
</tr>

</table>
</form>

</c:forEach>

<footer>
2019 copyright&copy;mjh.mohamed
</footer>

</body>
</html>
Loading