?? community_mgmt.jsp
字號:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="yy.CmtMgmt,java.io.*,java.sql.*,java.util.*"%>
<!--<%@ page import="yy.Community"%>-->
<jsp:useBean id="cmtMgmt" class="yy.CmtMgmt" scope="page"/>
<html>
<head>
<title>community management</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<center>
<table width="80%" align="center" border=1 brcolor=99ccff cellspacing="0"
cellpadding="0" bordercolordark="#000000" bordercolorlight="#CCCC99">
<tr>
<td>社區名稱</td>
<td>狀態</td>
<td>斑竹</td>
<td>最近發帖人</td>
<td>最近發帖時間</td>
<td>帖子總數</td>
<td>創建時間</td>
</tr>
<%
Collection ret=cmtMgmt.getAllCommunity();
Iterator it=ret.iterator();
while(it.hasNext()){
Community temp=(Community)it.next();
%>
<tr>
<td><a href="/forum1/one_community_mgmt.jsp?cmtId=<%=temp.getCmtId()%>"><%=temp.getCmtName()%></a></td>
<td>
<%int i=temp.getState();
if(i==0)
out.println("禁用");
else
out.println("可用");
%>
</td>
<td>
<%if(temp.getHostName()==null)
out.println("暫缺");
else
out.println(temp.getHostName());
%>
</td>
<td><%
if(temp.getLastPublisher()!=null)
out.println(temp.getLastPublisher());
%>
</td>
<td><%
if(temp.getLastPublishTime()!=null)
out.println(temp.getLastPublishTime());
%>
</td>
<td><%=temp.getNumOfMessage()%></td>
<td><%=temp.getCreateTime()%></td>
</tr>
<%}%>
</table>
<br>
<a href="/forum1/add_new_community.jsp">增加一個新社區</a>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -