📄 goodslist.jsp
字号:
<%@ page contentType="text/html;charset=gbk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>商品信息</title>
<script type = "text/javascript" src="js/choose.js"></script>
</head>
<body>
<br><br>
<form method="post" name="form1" id="form1" action="GoodsDel">
<table cellpadding="1" cellspacing="1" border="1" align="center">
<tr>
<th align="center" width="50">选择</th>
<th align="center" width="150">商品条形码</th>
<th align="center" width="150">商品名称</th>
<th align="center" width="80">进货价格</th>
<th align="center" width="80">出售价格</th>
<th align="center" width="80">库存数量</th>
<th align="center" width="80">商品类别</th>
<th align="center" width="50">操作</th>
</tr>
<c:forEach var="m" items="${col}">
<tr>
<td align="center"><input type="checkbox" value="${m.id}" name="delete" class="del" onclick="check1()"></td>
<td align="center"><c:out value="${m.code}"/> </td>
<td align="center"><c:out value="${m.tname}"/> </td>
<td align="center"><c:out value="${m.bprice}"/> </td>
<td align="center"><c:out value="${m.sprice}"/> </td>
<td align="center"><c:out value="${m.amount}"/> </td>
<td align="center"><c:out value="${m.type}"/> </td>
<td align="center"><input type="button" value="编辑" onClick="location.href='GoodsEdit?id=${m.id}'"></td>
</tr>
</c:forEach>
<tr align="right">
<td colspan="2" align="left">
<input type="checkbox" value="all" name="checkall" id="checkall" onClick="check()"> 全选
<input type="button" value="删除" name="del" id="del" onClick="warn()">
<input type="button" value="添加" onClick="location.href='goods/addGoods.jsp'">
</td>
<td colspan="6" align="right">
<% if(request.getAttribute("page") != null){out.println(request.getAttribute("page"));}%>
</td>
</tr>
</table>
</form>
<%
try{
if(Long.parseLong((String)request.getAttribute("totals")) == 0){
%>
<br><br>
<center><font size=4 color="blue">抱歉,数据库中没有商品信息!</font></center>
<%
}
}
catch(Exception e){
System.out.println(e);
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -