?? managedproduct.jsp
字號(hào):
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@page contentType="text/html; charset=GBK"%>
<html:html>
<head>
<title>商品管理</title>
<script language="JavaScript" type="text/javascript" >
function doDifferent(obj)
{
document.managedProductForm.event.value= obj;
document.managedProductForm.submit();
}
</script></head>
<body>
<%@include file="manageMenu.jsp"%>
<html:form action="/managedProductAction.do" method="POST">
<logic:notEqual name="managedProductForm" property="msg" value="">
<bean:write name="managedProductForm" property="msg"/>
</logic:notEqual>
<html:hidden property="event" value="save"/>
<table width="100%" border="0">
<tr>
<td bgcolor="#EEEEEE">
<div align="center"> 商品管理
<table border="1">
<tr>
<td>商品名稱</td>
<td>商品描述</td>
<td>價(jià)格</td>
<td colspan="2">操作</td>
</tr>
<logic:iterate id="item" name="managedProductForm" property="productList">
<tr>
<td>
<bean:write name="item" property="name"/>
</td>
<td>
<bean:write name="item" property="note"/>
</td>
<td>
<bean:write name="item" property="price" format="####.##"/>
</td>
<td>
<a href="managedProductAction.do?event=delete&productId=<bean:write name="item" property="productId" />">刪除</a>
</td>
<td>
<a href="managedProductAction.do?event=edit&productId=<bean:write name="item" property="productId" />">修改</a>
</td>
</tr>
</logic:iterate>
</table>
</div>
</td>
</tr>
</table>
<div align="center">
<html:button property="" value="添加商品" onclick="doDifferent('add')"/>
</div>
</html:form>
</body>
</html:html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -