This commit is contained in:
lsy 2024-10-15 22:45:26 +08:00
parent 2760950190
commit 9251a2de4b
3 changed files with 44 additions and 35 deletions

View File

@ -5,29 +5,37 @@
<title>书籍管理系统</title>
</head>
<body>
<h5>欢迎进入书籍管理系统</h5>
<table border="1">
<tr style="color: cornflowerblue">
<td>id</td>
<td>书名</td>
<td>作者</td>
<td>ISBN号</td>
<td>出版社</td>
<td>出版日期</td>
<td colspan="2">操作</td>
</tr>
<tr th:each="book:${BookList}">
<td th:text="${book.id}"></td>
<td th:text="${book.title}"></td>
<td th:text="${book.author}"></td>
<td th:text="${book.isbn}"></td>
<td th:text="${book.publisher}"></td>
<td th:text="${book.published_date}"></td>
<td><a th:href="@{/deletebooks(id=${book.id})}" style="text-decoration: none;color: darkblue">删除</a></td>
<td><a th:href="@{/updatebooks(id=${book.id},title=${book.title},author=${book.author},isbn=${book.isbn},publisher=${book.publisher},published_date=${book.published_date})}" style="text-decoration: none;color: green">修改</a></td>
</tr>
</table>
</br>
<Button><a th:href="@{/addbooks}" style="text-decoration: none;color: darkblue">添加书籍</a></Button>
<div align="center">
<h2>欢迎进入书籍管理系统</h2>
<table border="1">
<tr>
<td>id</td>
<td>书名</td>
<td>作者</td>
<td>ISBN号</td>
<td>出版社</td>
<td>出版日期</td>
<td colspan="2">操作</td>
</tr>
<tr th:each="book:${BookList}">
<td th:text="${book.id}"></td>
<td th:text="${book.title}"></td>
<td th:text="${book.author}"></td>
<td th:text="${book.isbn}"></td>
<td th:text="${book.publisher}"></td>
<td th:text="${book.published_date}"></td>
<td><a th:href="@{/deletebooks(id=${book.id})}" style="text-decoration: none;color: darkblue">删除</a></td>
<td><a th:href="@{/updatebooks(id=${book.id},title=${book.title},author=${book.author},isbn=${book.isbn},publisher=${book.publisher},published_date=${book.published_date})}" style="text-decoration: none;color: green">修改</a></td>
</tr>
</table>
</br>
<Button><a th:href="@{/addbooks}" style="text-decoration: none;width: 400px">添加书籍</a></Button>
<br>
<br>
<button><a href="/reviews">书籍借阅界面</a></button>
</div>
</body>
</html>

View File

@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录失败</title>
<title>Fail</title>
</head>
<body>
<h6>用户名或密码错误,请返回重新登录</h6>
<h3>非法操作,请重试</h3>
</body>
</html>

View File

@ -5,14 +5,15 @@
<title>登录</title>
</head>
<body>
<h5>登录页面</h5>
<form th:action="@{/book}" method="post">
<input type="text" name="username" placeholder="用户名"/></br>
<input type="text" name="password" placeholder="密码"/></br></br>
<input type="submit" value="登录"/>
</form>
</br>
<button><a href="/register" style="text-decoration: none">注册</a></button>
<div align="center">
<h5>登录页面</h5>
<form th:action="@{/book}" method="post">
<input type="text" name="username" placeholder="用户名"/></br>
<input type="text" name="password" placeholder="密码"/></br></br>
<input type="submit" value="登录" style="display: flex;"/>
</form>
</br>
<button ><a href="/register" style="text-decoration: none">注册</a></button>
</div>
</body>
</html>