gonggaoMana.jsp 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 gonggaoDel(id)
  17. {
  18. if(confirm('您确定删除吗?'))
  19. {
  20. window.location.href="<%=path %>/gonggaoDel.action?id="+id;
  21. }
  22. }
  23. function gonggaoEditPre(id)
  24. {
  25. window.location.href="<%=path %>/gonggaoEditPre.action?id="+id;
  26. }
  27. function gonggaoAdd()
  28. {
  29. var url="<%=path %>/admin/gonggao/gonggaoAdd.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 >标题</td>
  46. <td width="15%">发布时间</td>
  47. <td width="200px">操作</td>
  48. </tr>
  49. <c:forEach items="${gonggaoList}" var="gonggao">
  50. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
  51. <td bgcolor="#FFFFFF" align="center">
  52. ${gonggao.title}
  53. </td>
  54. <td bgcolor="#FFFFFF" align="center">
  55. ${gonggao.shijian}
  56. </td>
  57. <td bgcolor="#FFFFFF" align="center">
  58. <a href="#" onclick="gonggaoEditPre(${gonggao.id})" class="pn-loperator">修改</a>
  59. <a href="#" onclick="gonggaoDel(${gonggao.id})" class="pn-loperator">删除</a>
  60. </td>
  61. </tr>
  62. </c:forEach>
  63. </table>
  64. <table width='98%' border='0'style="margin-top:8px;margin-left: 5px;">
  65. <tr>
  66. <td>
  67. <input type="button" value="添加" style="width: 80px;" onclick="gonggaoAdd()" />
  68. </td>
  69. </tr>
  70. </table>
  71. </body>
  72. </html>