?? e0997976f42f001e1dbafb2c54965caa
字號:
<%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="err.jsp" %>
<html><script language="JavaScript"></script></html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='inc/FORUM.CSS'>
<META NAME="keywords" CONTENT="溢洋 溢洋論壇 xyworker@163.com java forum jsp forum">
<META NAME="description" CONTENT="溢洋 溢洋論壇 xyworker@163.com java forum jsp forum">
<script language="JavaScript">
function Popup(url, window_name, window_width, window_height)
{ settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width="+window_width+",height="+window_height;
NewWindow=window.open(url,window_name,settings); }
function icon(theicon) {
document.input.message.value += " "+theicon;
document.input.message.focus();
}
</script>
<title>溢洋論壇</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" width="99%" align="center">
<tr><td bgcolor="#009ACE">
<jsp:include page="inc/public.jsp" flush="true"/>
<tr>
<td width="734" class="tablerow" colspan="7" height="16">
<table border="0" cellspacing="0" width="100%" cellpadding="0">
<tr>
<td width="12%"><font color="#333399"><b><img src="image/gb.gif" width="21" height="14">論壇公告:</b></font></td>
<td width="88%"> <marquee width="648" height="12" direction="left">
<jsp:useBean id="yy" scope="page" class="yy.jdbc"/>
<%
Connection con=yy.getConn();
Statement stmt=con.createStatement();
ResultSet rs=null;
String sql="select 公告標(biāo)題,公告內(nèi)容,公告時間 from 公告 order by 公告id desc";
String Notice="";
int i=0;
rs=stmt.executeQuery(sql);
//rs.last();
//if (rs.getRow()>0)
//{
while ((rs.next())&&(i<5))
{
String Time=rs.getString("公告時間");
Time=Time.substring(5,16);
Notice="<B>"+rs.getString("公告標(biāo)題")+":</B><font color=black>"+rs.getString("公告內(nèi)容")+"</font><font color=gray> "+Time+"</font> "+Notice;;
i++;
}
out.println(Notice);
%>
</marquee> </td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#9CCFFF">
<td width="15" height="14"> </td>
<td width="247" height="14" bgcolor="#9CCFFF">論壇列表</td>
<td width="28" align="center" height="14">新窗</td>
<td width="58" align="center" height="14">主題數(shù)量</td>
<td width="57" align="center" height="14">貼子數(shù)量 </td>
<td width="170" align="center" height="14">最后回復(fù)</td>
<td width="63" align="center" height="14">版主</td>
</tr>
<%
sql="SELECT * FROM 論壇欄目";
rs=stmt.executeQuery(sql);
while (rs.next())
{
String Time_Str=rs.getString("最后發(fā)表時間");
String Man_Str=rs.getString("最后發(fā)表人");
String Forum_id=rs.getString("論壇id");
String Forum_Mastor=rs.getString("版主姓名");
if (Man_Str==null)
Man_Str="無";
else
Man_Str="<a href='member.jsp?member="+Man_Str+"'>"+Man_Str+"</a>";
if ((Forum_Mastor==null)||(Forum_Mastor.equals("")))
Forum_Mastor="招騁中...";
else
Forum_Mastor="<a href=member.jsp?member="+Forum_Mastor+">"+Forum_Mastor+"</a>";
%>
<tr bgcolor="#F7FBFF">
<td align="center" height="26" width="15"><img src="image/folder.gif" width="13" height="16"></td>
<td height="26" width="247" bgcolor="#F7FBFF"><a href="board.jsp?fid=<%=Forum_id%>"> <%=rs.getString("論壇名稱")%> </a>
<br />
</td>
<td align="center" height="26" width="28"> <a href="board.jsp?fid=<%=Forum_id%>" target="_blank"><img border="0" src="image/newwin.gif" width="14" height="11"></a></td>
<td align="center" height="26" width="58"><%=rs.getString("主題數(shù)量")%></td>
<td align="center" height="26" width="57"><%=rs.getString("貼子數(shù)量")%></td>
<td height="26" width="170">時間:<%=Time_Str.substring(0,16)%><br>
作者:<%=Man_Str%></a></td>
<td align="center" height="26" width="63"><%=Forum_Mastor%></td>
</tr>
<%
}
%>
<jsp:include page="inc/showonline.jsp" flush="true"/>
</table>
</td></tr></table>
<jsp:include page="inc/jumpboard.jsp" flush="true"/>
<html><script language="JavaScript"></script></html>
<%
try {
rs.close();
stmt.close();
con.close();
}
catch (Exception ex) {
}
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -