?? subjects_mgmt_pro.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="yy.*,java.io.*,java.sql.*,java.util.*"%>
<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>社區(qū)名稱</td>
<td>狀態(tài)</td>
<td>斑竹</td>
<td>最近發(fā)帖人</td>
<td>最近發(fā)帖時(shí)間</td>
<td>帖子總數(shù)</td>
<td>創(chuàng)建時(shí)間</td>
</tr>
<%
Collection ret=cmtMgmt.getAllCommunity();
Iterator it=ret.iterator();
while(it.hasNext()){
Community temp=(Community)it.next();
%>
<tr>
<td><a href="/subjects_mgmt.jsp"><%=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><%=temp.getLastPublisher()%></td>
<td><%=temp.getLastPublishTime()%></td>
<td><%=temp.getNumOfMessage()%></td>
<td><%=temp.getCreateTime()%></td>
</tr>
<%}%>
</table>
</center>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -