📄 topicmanager.jsp
字号:
<%@ 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="775" border="1" align="center">
<tr bgcolor="#00CCFF">
<td colspan="3" align="right">
<A href="<%=request.getContextPath()%>/backtoadminindex.do">
首页
</A>
<A href="adminlogoff.do">
注销登录
</A>
</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 align="left">
<%=topic.getTitle()%>
</td>
<td>
<%=topic.getAuthor()%>
</td>
<td>
<a href="topicdelete.do?topicid=<%=topic.getId()%>" onclick="if(confirm('确认删除?')){this.click();}else{return false;}">
删除
</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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -