You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.9 KiB
66 lines
1.9 KiB
<%@ page language="java" import="com.ace.shopping.beans.*,java.util.*" pageEncoding="gbk"%>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
%>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<base href="<%=basePath%>">
|
|
|
|
<title>My JSP 'T_boardManage.jsp' starting page</title>
|
|
|
|
<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="styles.css">
|
|
-->
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
<h1>公告管理</h1>
|
|
<h3>添加公告</h3>
|
|
<form action="servlet/T_boardServlet?op=add" method="post" >
|
|
<textarea name="textarea" rows="7" cols="60" ></textarea></br>
|
|
<input type="submit" name="add1" value="添加">
|
|
<a href="servlet/T_boardServlet?op=show" target="_blank">发布公告</a>
|
|
</form>
|
|
|
|
<h3>公告</h3>
|
|
<table border="1">
|
|
<tr>
|
|
<th> ID</th>
|
|
<th> 内容</th>
|
|
<th> 发布时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
|
|
<%
|
|
|
|
List<T_board> list = (List<T_board>) request.getSession().getAttribute("list");
|
|
for(T_board e:list)
|
|
{
|
|
%>
|
|
<tr >
|
|
<td><%=e.getB_ID()%></td>
|
|
<td width="250px"><%=e.getB_Content() %></td>
|
|
<td><%=e.getB_Posttime() %></td>
|
|
<td>
|
|
<a href="servlet/T_boardServlet?op=delete&b_ID=<%=e.getB_ID() %>">删除</a>
|
|
<%-- <a href="servlet/T_boardServlet?op=update&b_ID=<%=e.getB_ID() %>">修改</a>--%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
}
|
|
%>
|
|
|
|
</table>
|
|
</body>
|
|
</html> |