1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <%@ page language="java" pageEncoding="UTF-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%
- String path = request.getContextPath();
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="pragma" content="no-cache" />
- <meta http-equiv="cache-control" content="no-cache" />
- <meta http-equiv="expires" content="0" />
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
- <meta http-equiv="description" content="This is my page" />
- <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
-
- <script language="javascript">
- function catelogDel(catelogId)
- {
- if(confirm('您确定删除吗?'))
- {
- window.location.href="<%=path %>/catelogDel.action?catelogId="+catelogId;
- }
- }
-
- function catelogEditPre(catelogId)
- {
- window.location.href="<%=path %>/catelogEditPre.action?catelogId="+catelogId;
- }
-
- function catelogAdd()
- {
- var url="<%=path %>/admin/catelog/catelogAdd.jsp";
- //var n="";
- //var w="480px";
- //var h="500px";
- //var s="resizable:no;help:no;status:no;scroll:yes";
- //openWin(url,n,w,h,s);
- window.location.href=url;
- }
- </script>
- </head>
- <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
- <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
- <tr bgcolor="#E7E7E7">
- <td height="14" colspan="4" background="<%=path %>/images/tbg.gif"> 商品类别维护 </td>
- </tr>
- <tr align="center" bgcolor="#FAFAF1" height="22">
- <td width="80px">ID</td>
- <td width="200px">分类名称</td>
- <td >分类描述</td>
- <td width="200px">操作</td>
- </tr>
-
- <c:forEach items="${cateLogList}" var="catelog">
-
- <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
- <td bgcolor="#FFFFFF" align="center">
- ${catelog.catelogId}
- </td>
- <td bgcolor="#FFFFFF" align="center">
- ${catelog.catelogName}
-
- </td>
- <td bgcolor="#FFFFFF" align="center">
- ${catelog.catelogMiaoshu}
- </td>
- <td bgcolor="#FFFFFF" align="center">
- <a href="#" onclick="catelogEditPre(${catelog.catelogId})" class="pn-loperator">修改</a>
- <a href="#" onclick="catelogDel(${catelog.catelogId})" class="pn-loperator">删除</a>
- </td>
- </tr>
- </c:forEach>
- </table>
-
- <table width='98%' border='0'style="margin-top:8px;margin-left: 5px;">
- <tr>
- <td>
- <input type="button" value="添加" style="width: 80px;" onclick="catelogAdd()" />
- </td>
- </tr>
- </table>
- </body>
- </html>
|