📄 categoryview.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "data.*, user.*"%>
<%
String userName = "";
if(session.getAttribute("user") != null){
User user = (User)session.getAttribute("user");
userName = user.getUserName();
}else{
out.print("<h3>请先登陆系统.</h3>");
return;
}
//创建数据类
StockManagementData stockManagementData = new StockManagementData();
//取得类别数组
String[][] categories = stockManagementData.getAllGoodsCategory();
%>
<html>
<head>
<title>商品类别页面:用户(<%=userName%>)</title>
</head>
<body bgcolor="#ffffff">
<center>
<h3>商品查看页面:用户(<%=userName%>)</h3>
<hr size="3" color="#0066FF">
<table width="90%" >
<tr align="left">
<td>序号</td>
<td>父索引</td>
<td>商品类别名称</td>
<td>商品类别描述</td>
</tr>
<%for (int i = 0; i < categories.length; i++){%>
<tr align="left">
<td><%=categories[i][0]%></td>
<td><%=categories[i][1]%></td>
<td>
<a href="goodsview.jsp?categoryId=<%=categories[i][0]%>" target="goods">
<%=categories[i][2]%>
</a>
</td>
<td><%=categories[i][3]%></td>
</tr>
<%}%>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -