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,9 +5,10 @@
<title>书籍管理系统</title> <title>书籍管理系统</title>
</head> </head>
<body> <body>
<h5>欢迎进入书籍管理系统</h5> <div align="center">
<h2>欢迎进入书籍管理系统</h2>
<table border="1"> <table border="1">
<tr style="color: cornflowerblue"> <tr>
<td>id</td> <td>id</td>
<td>书名</td> <td>书名</td>
<td>作者</td> <td>作者</td>
@ -28,6 +29,13 @@
</tr> </tr>
</table> </table>
</br> </br>
<Button><a th:href="@{/addbooks}" style="text-decoration: none;color: darkblue">添加书籍</a></Button> <Button><a th:href="@{/addbooks}" style="text-decoration: none;width: 400px">添加书籍</a></Button>
<br>
<br>
<button><a href="/reviews">书籍借阅界面</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>
<div align="center">
<h5>登录页面</h5> <h5>登录页面</h5>
<form th:action="@{/book}" method="post"> <form th:action="@{/book}" method="post">
<input type="text" name="username" placeholder="用户名"/></br> <input type="text" name="username" placeholder="用户名"/></br>
<input type="text" name="password" placeholder="密码"/></br></br> <input type="text" name="password" placeholder="密码"/></br></br>
<input type="submit" value="登录"/> <input type="submit" value="登录" style="display: flex;"/>
</form> </form>
</br> </br>
<button ><a href="/register" style="text-decoration: none">注册</a></button> <button ><a href="/register" style="text-decoration: none">注册</a></button>
</div>
</body> </body>
</html> </html>