修改部分页面布局

This commit is contained in:
LeeMONG 2024-09-22 16:37:12 +08:00
parent fb84382306
commit 4ee1ace139
3 changed files with 38 additions and 35 deletions

View File

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

View File

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

View File

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