水果库存管理系统
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>水果库存管理系统</title>
<link href="./style/index.css" rel="stylesheet">
</head>
<body>
<div>
<div>
<p>欢迎使用水果库存后台管理系统</p>
<div>
<form th:action="@{/index}">
请输入查询关键字:<input type="text" name="keyword" th:value="${session.keyword}"/>
<input type="submit" value="查询" class="btn"/>
</form>
<a th:href="@{/add.html}">添加新库存记录</a>
</div>
<table>
<tr>
<th>编号</th>
<th>名称</th>
<th>单价</th>
<th>库存</th>
<th>操作</th>
</tr>
<tr th:if="${session.fruitList.empty}">
<td colspan="5">对不起,库存为空!</td>
</tr>
<tr th:each="fruit : ${session.fruitList}">
<td th:text="${fruit.id}" scope="row">1</td>
<td><a th:text="${fruit.name}" th:href="@{'/Edit.do?id=' + ${fruit.id}}"></a></td>
<td th:text="${fruit.price}">5</td>
<td th:text="${fruit.count}">20</td>
<td>
<img src="imgs/del.jpg" class="delImg" onclick="delFruit(${fruit.id})"/>
<a th:href="@{'/Delate?id=' + ${fruit.id}}">删除</a>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/R71 著作权归作者所有。请勿转载和采集!