?? waremanage.jsp
字號:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<html:base/>
<title>商品管理頁面</title>
<link rel="stylesheet" type="text/css" href="../../photo/css.css">
</head>
<body>
<jsp:include flush="true" page="head.jsp"></jsp:include>
<table width="70%" align="center" cellspacing="0" cellpadding="0" height="2px">
<tr>
<td align="right">
<html:form action="/wareManage.do?method=findByName" >
商品名 : <html:text property="wareName"/>
<html:submit/><html:errors property="wareName"/>
</html:form>
</td>
</tr>
</table>
<table width="70%" align="center" cellspacing="0" cellpadding="0" height="2px">
<tr>
<td align="right">
<a href="wareEdit.jsp">添加商品</a>
</td>
</tr>
</table>
<table border="1" width="70%" align="center" cellspacing="0" cellpadding="10" bordercolor="#8000ff">
<tr>
<td colspan="8" align="center"><h3>商品列表</h3></td>
</tr>
<tr>
<th>商品名</th><th>商品價格</th><th>商品狀態</th><th>商品信息</th><th>商品照片</th><th>商品加入時間</th>
</tr>
<logic:iterate id="ware" name="waresList" property="smallRecordSet">
<tr >
<td><c:out value="${ware.wareName}"/></td>
<td><c:out value="${ware.warePrice}"/></td>
<td><c:out value="${ware.wareState}"/></td>
<td ><c:out value="${ware.wareInfo}"/></td>
<td><html:img src="/shop/photo/${ware.warePhoto}"></html:img></td>
<td><c:out value="${ware.wareDate}"/></td>
<td><a href="<c:url value="/wareManage.do?method=findById&&wareId=${ware.wareId}" />">修改</a></td>
<td><a href="<c:url value="/wareManage.do?method=delete&&wareId=${ware.wareId}" />">刪除</a></td>
</tr>
</logic:iterate>
</table>
<table width="70%" align="center">
<tr>
<td>
<html:link action="/wareManage.do?method=pageFactory" >首頁</html:link>
<c:if test="${waresList.currentPageIndex!=1}">
<html:link action="/wareManage.do?method=pageFactory" paramId="currentPageIndex" paramName="waresList" paramProperty="prePageIndex">上一頁</html:link>
</c:if>
<c:if test="${waresList.currentPageIndex!=waresList.pageCount}">
<html:link action="/wareManage.do?method=pageFactory" paramId="currentPageIndex" paramName="waresList" paramProperty="nextPageIndex">下一頁</html:link>
</c:if>
<html:link action="/wareManage.do?method=pageFactory" paramId="currentPageIndex" paramName="waresList" paramProperty="pageCount">尾頁</html:link>
<c:out value="第${waresList.currentPageIndex}頁"></c:out>
<c:out value="共${waresList.pageCount}頁"></c:out>
<c:out value="${waresList.recordCount}條記錄"></c:out>
</td>
</tr>
</table>
<c:if test="${requestScope.deleteInfo=='hasChild'}">
<script type="text/javascript">
alert("此商品存在與某個訂單項中,不能刪除!");
</script>
</c:if>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -