topicmanager.jsp

来自「BBS论坛管理系统」· JSP 代码 · 共 88 行

JSP
88
字号
<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<html:html>
<head>
	<title>
		主题列表
	</title>
</head>

<link href="images/myStyleClass.css" rel="stylesheet" type="text/css">

<%@ include file="/common/header2.jsp"%>

<html:errors />
<body>
	<%@ page import="j2eebbs.*"%>
	<%@ page import="java.util.*"%>
	<%
		Vector topicVector = (Vector) session.getAttribute(Constants.TOPIC_LIST_KEY);
		Topic topic = null;
	%>
	<table width="80%" border="1" align="center">
		<tr bgcolor="#00CCFF">
			<td colspan="3" align="right">
				<A href="<%=request.getContextPath()%>/backtoadminindex.do">
					首页
				</A>
				&nbsp;
				<A href="adminlogoff.do">
					注销登录
				</A>
				&nbsp;
			</td>
		</tr>
		<tr align="center">
			<td colspan="3">
				主题管理
			</td>
		</tr>
		<tr align="center" bgcolor="#00CCFF">
			<td width="50%">
				文章标题
			</td>
			<td width="36%">
				作者
			</td>
			<td width="14%">
				删除
			</td>
		</tr>
		<%
			if (topicVector != null) {
				for (int i = 0; i < topicVector.size(); i++) {
					topic = (Topic) topicVector.get(i);
		%>
		<tr align="center">
			<td>
				<%=topic.getTitle()%>
			</td>
			<td>
				<%=topic.getAuthor()%>
			</td>
			<td>
				<a href="topicdelete.do?topicid=<%=topic.getId()%>">
					删除
				</a>
			</td>
		</tr>
		<%
				}
			}

		%>
		<tr align="center">
			<td colspan="3">
				<form method="post" action="topicsearch.do">
					<input type="text" name="title" size="15" maxlength="50">
					<input type="submit" name="Submit" value="查询">
					<input type="reset" name="Submit2" value="重置">
				</form>
			</td>
		</tr>
	</table>
	<%@ include file="/common/footer.jsp"%>
</body>
</html:html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?