📄 index.jsp
字号:
}else{
out.println("现在还没有帖子");
}
out.println("</TD></TR>");
}
}catch(Exception e){
//e.printStackTrace();
}
out.println("</table>");
}
}catch(Exception e){
//e.printStackTrace();
}
out.println(brTable);
//
try{
Vector forumLinkVector=new Vector();
forumLinkVector=ForumLinkFactory.getForumLinks();
if(!forumLinkVector.isEmpty()){
out.println("<table cellspacing=0 border=0 width=" + tableWidth + " bgcolor=\""+tableBackColor+"\" align=center><tr><td height=1></td></tr></table>"+
"<table cellpadding=6 cellspacing=0 width=" + tableWidth + " align=center bordercolor=\""+tableBackColor+"\" border=1>"+
"<TR><TD bgColor=\""+tableTitleColor+"\" colSpan=2><b><font color="+ tableFontColor +">友情论坛</font></b></TD></TR>"+
"<TR><TD vAlign=top align=middle width=26 bgColor=\""+aTableBodyColor+"\"><IMG src=pic/shareforum.gif></TD>"+
"<TD vAlign=top bgColor=\""+tableBodyColor+"\"><table width='100%'><tr>");
int j = 0;
for( i=0;i<forumLinkVector.size();i++){
ForumLink forumLink=(ForumLink)forumLinkVector.get(i);
out.println("<td width='12%'><a href=\""+forumLink.getForumURL()+"\" target=\"_blank\" alt=\""+forumLink.getReadMe()+"\">"+forumLink.getForumName()+"</a></td>");
if(j==7){
out.println("</tr><tr>");
j = 0;
}
j++;
}
out.println("</tr></table></TD></TR></table>");
}
}catch(ForumLinkNotFoundException e){
//e.printStackTrace();
}
out.println(brTable+
"<table cellspacing=0 border=0 width=" + tableWidth + " bgcolor=\""+tableBackColor+"\" align=center><tr><td height=1></td></tr></table>"+
"<table cellpadding=6 cellspacing=0 width=" + tableWidth + " align=center bordercolor=\""+tableBackColor+"\" border=1>"+
"<TR><TD bgColor=\""+tableTitleColor+"\" colSpan=2><b><font color="+ tableFontColor +">用户来访信息</font></b></TD></TR>"+
"<TR><TD vAlign=top align=middle width=26 bgColor=\""+aTableBodyColor+"\"><IMG align=absMiddle src=pic/inboxnonew.gif> </TD>"+
"<TD vAlign=top bgColor=\""+tableBodyColor+"\">");
if(!foundUser){
%>
<form action="chklogin.jsp" method="post">
<font COLOR="<%=tableFontColor%>">用户名: </font>
<input type="text" size=9 name="userName" >
<font COLOR="<%=tableFontColor%>">密码: </font>
<input name="userPassword" type="password" size=9 >
<input type="reset" name="Reset" value="重写" class="btnclass">
<input type="submit" name="Submit" value="提交" class="btnclass">
</form>
<%
}
String ip=request.getRemoteAddr();
String[] addr=IPLocalizer.search(request);
out.println("您的IP 是:"+ip+",来自:"+addr[0]+addr[1]+","+OLUser.getUserSystem(request.getHeader("User-Agent"))+", "+OLUser.getUserBrowser(request.getHeader("User-Agent")));
out.println("</TD></TR></TABLE>");
out.println(brTable);
out.println("<table cellspacing=0 border=0 width=" + tableWidth + " bgcolor="+tableBackColor+" align=center><tr><td height=1></td></tr></table>");
out.println("<table cellpadding=6 cellspacing=0 width=" + tableWidth + " align=center bordercolor=\""+tableBackColor+"\" border=1 style=\"word-break:break-all;\">"+
"<TR><TD bgColor=\""+tableTitleColor+"\" colSpan=2><b><font color="+ tableFontColor +">论坛在线统计</font></b>");
if("online".equals(ParamUtil.getString(request,"action"))){
out.println("<a href=index.jsp><font color="+ tableFontColor +">[关闭详细列表]</font></a>");
}else{
out.println("<a href=index.jsp?action=online><font color="+ tableFontColor +">[显示详细列表]</font></a>");
}
out.println("<a href=online.jsp><font color="+tableFontColor+">[在线用户]</font></a></TD></TR>"+
"<TR><TD vAlign=top align=middle width=26 bgColor=\""+aTableBodyColor+"\"><IMG align=absMiddle src=pic/pmlogin.gif> </TD>"+
"<TD vAlign=top bgColor=\""+tableBodyColor+"\">现在论坛上共有 <b>"+ForumFactory.getOLMemberUsersNum()+"</b> 位会员与 <b>"+ForumFactory.getOLGuestUsersNum()+"</b> 位客人,同时在线峰值<b>"+maxOnline +"</b>,发生时刻<b>"+maxOnlineDate+"</b>。<br>");
out.println("<font color="+alertFontColor+">在线名单图例</font>:<img src="+picURL+picOM+"> 总坛主 ‖ <img src="+picURL+picOB+"> 论坛坛主 ‖ <img src="+picURL+picOV+"> 论坛贵宾 ‖ <img src="+picURL+picOH+"> 普通会员 ‖ <img src="+picURL+picOU+"> 客人或隐身会员<hr size=1><table width=100% border=0 cellspacing=0 cellpadding=0>");
if("online".equals(ParamUtil.getString(request,"action"))){
Vector OLUsers = ForumFactory.getOLUsers("total");
for(i=0;i<OLUsers.size();i++){
if(i%7==0){
out.println("<tr><td width=\"14%\">");
}else{
out.println("<td width=\"14%\">");
}
//
OLUser theUser=(OLUser)OLUsers.get(i);
if (theUser.getUserClass().equals("总版主")){
out.println( "<img src="+picURL+picOM+" alt=总坛主 width=12 height=11> ");
}else if (theUser.getUserClass().equals("版主")){
out.println( "<img src="+picURL+picOB+" alt=版主 width=12 height=11> ");
}else if (theUser.getUserClass().equals("贵宾")){
out.println( "<img src="+picURL+picOV+" alt=贵宾 width=12 height=11> ");
}else if (theUser.getUserClass().equals("客人")){
out.println( "<img src="+picURL+picOU+" width=12 height=11> ");
}else{
out.println( "<img src="+picURL+picOH+" width=12 height=11> ");
}
out.println( "<a href=dispuser.jsp?name="+response.encodeURL(theUser.getUserName())+" target=_blank ");
out.println( "alt=\"目前位置:"+theUser.getStats()+"<br>来访时间:"+theUser.getStartTime()+"<br>活动时间:"+theUser.getLastTimeBK()+"<br>"+theUser.getUserSystem()+"<br>"+theUser.getUserBrowser());
out.println( "<br>真实IP:");
if(("0").equals(ipFlag)){
if (forumMaster || master){
if (theUser.getUserIP()!=null)
out.println(theUser.getUserIP());
}else{
out.println( "已设置保密");
}
}else{
if (theUser.getUserIP()!=null){
out.println(theUser.getUserIP());
}
}
out.println( "<br>来源鉴定:");
if (fromFlag.equals("0")){
if (forumMaster || master){
if (theUser.getComeFrom()!=null)
out.println(theUser.getComeFrom());
}else{
out.println( "已设置保密");
}
}else{
if (theUser.getComeFrom()!=null){
out.println(theUser.getComeFrom());
}
}
out.println( "\">");
out.println(theUser.getUserName());
//
out.println( "</a> ");
out.println( "</td>");
if((i+1)%7==0&&i!=0) out.println( "</tr>");
if(i == 27) out.print("<tr><td colspan=7 width=\"100%\"><a href=\"online.jsp\"><hr size=1>查看更多在线用户</a></td></tr>");
}
}else{
out.println("<a href=index.jsp?action=online>[显示详细列表]</a>");
}
out.println("</table></TD></TR></TABLE>");
out.println(brTable);
//
out.println("<table cellspacing=0 cellpadding=0 width=" + tableWidth + " bgcolor=\""+tableBackColor+"\" align=center border=0>"+
"<tr><td><table cellspacing=1 cellpadding=3 width=100% border=0>"+
"<tr><td width=75% bgcolor="+ tableTitleColor +"><font color="+ tableFontColor +">"+
"<b> "+ forumName +"图例</b></font></td>"+
"<td align=right noWrap bgcolor="+ tableTitleColor +" width=\"25%\">所有时间均为 - 北京时间 </td></tr>"+
"<tr><td bgcolor="+ tableBodyColor +" colspan=3>"+
"<table cellspacing=4 cellpadding=0 width=92% border=0 align=center>"+
"<tr><td colspan=6>论坛图例仅当你登陆并且上次访问后才显示 (您必须登陆才能查看详情,否则只显示该论坛的无新贴图例)</font></div></td></tr>"+
"<tr><td alt=允许注册会员发言和回复><font color="+ alertFontColor +">常规论坛</font></td>"+
"<td alt=只允许登陆用户浏览发言和回复><font color="+ alertFontColor +">正规论坛</font></td>"+
"<td alt=允许任何人发言和回复><font color="+ alertFontColor +">开放论坛</font></td>"+
"<td alt=允许坛主和版主发言,其他注册用户只能回复><font color="+ alertFontColor +">评论论坛</font></td>"+
"<td alt=允许拥有访问密码或已经经过认证的注册会员发言><font color="+ alertFontColor +">认证论坛</font></td>"+
"<td colspan=2><font color="+ alertFontColor +">特殊论坛</font></td></tr>"+
"<tr><td><img src=pic/foldernew.gif> 有新的贴子</td>"+
"<td><img src=pic/foldernew.gif> 有新的贴子</td>"+
"<td><img src=pic/folderallnew.gif> 有新的贴子</td>"+
"<td><img src=pic/follownew.gif> 有新的贴子</td>"+
"<td><img src=pic/lock_l.gif> 有新的贴子</td>"+
"<td alt=只允许坛主和版主发言和操作><img src=pic/jinghua.gif> 只读精华区</td>"+
"<td align=right valign=top rowspan=2></td></tr>"+
"<tr><td><img src=pic/ifolder.gif> 没有新贴子</td>"+
"<td><img src=pic/ifolder.gif> 没有新贴子</td>"+
"<td><img src=pic/folderall.gif> 没有新贴子</td>"+
"<td><img src=pic/follow.gif> 没有新贴子</td>"+
"<td><img src=pic/lock_b.gif> 没有新贴子</td>"+
"<td alt=和本论坛友情链接的联盟论坛><img src=pic/shareforum.gif> 联盟论坛区</td></tr>"+
"</table></td></tr></table></td></tr></table></CENTER>");
%>
<%@ include file="foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -