catelogMana.jsp 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <%@ page language="java" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%
  4. String path = request.getContextPath();
  5. %>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="pragma" content="no-cache" />
  10. <meta http-equiv="cache-control" content="no-cache" />
  11. <meta http-equiv="expires" content="0" />
  12. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
  13. <meta http-equiv="description" content="This is my page" />
  14. <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
  15. <script language="javascript">
  16. function catelogDel(catelogId)
  17. {
  18. if(confirm('您确定删除吗?'))
  19. {
  20. window.location.href="<%=path %>/catelogDel.action?catelogId="+catelogId;
  21. }
  22. }
  23. function catelogEditPre(catelogId)
  24. {
  25. window.location.href="<%=path %>/catelogEditPre.action?catelogId="+catelogId;
  26. }
  27. function catelogAdd()
  28. {
  29. var url="<%=path %>/admin/catelog/catelogAdd.jsp";
  30. //var n="";
  31. //var w="480px";
  32. //var h="500px";
  33. //var s="resizable:no;help:no;status:no;scroll:yes";
  34. //openWin(url,n,w,h,s);
  35. window.location.href=url;
  36. }
  37. </script>
  38. </head>
  39. <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
  40. <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
  41. <tr bgcolor="#E7E7E7">
  42. <td height="14" colspan="4" background="<%=path %>/images/tbg.gif">&nbsp;商品类别维护&nbsp;</td>
  43. </tr>
  44. <tr align="center" bgcolor="#FAFAF1" height="22">
  45. <td width="80px">ID</td>
  46. <td width="200px">分类名称</td>
  47. <td >分类描述</td>
  48. <td width="200px">操作</td>
  49. </tr>
  50. <c:forEach items="${cateLogList}" var="catelog">
  51. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
  52. <td bgcolor="#FFFFFF" align="center">
  53. ${catelog.catelogId}
  54. </td>
  55. <td bgcolor="#FFFFFF" align="center">
  56. ${catelog.catelogName}
  57. </td>
  58. <td bgcolor="#FFFFFF" align="center">
  59. ${catelog.catelogMiaoshu}
  60. </td>
  61. <td bgcolor="#FFFFFF" align="center">
  62. <a href="#" onclick="catelogEditPre(${catelog.catelogId})" class="pn-loperator">修改</a>
  63. <a href="#" onclick="catelogDel(${catelog.catelogId})" class="pn-loperator">删除</a>
  64. </td>
  65. </tr>
  66. </c:forEach>
  67. </table>
  68. <table width='98%' border='0'style="margin-top:8px;margin-left: 5px;">
  69. <tr>
  70. <td>
  71. <input type="button" value="添加" style="width: 80px;" onclick="catelogAdd()" />
  72. </td>
  73. </tr>
  74. </table>
  75. </body>
  76. </html>