📄 bbs_index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
</head>
<body topmargin=0 leftmargin=0>
<lybbs:web key="popMsg"/>
<a name="top"></a>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<TR>
<TD class=noBgStyle>
<lybbs:typeAdTag/>
</TD>
</TR>
<TR>
<TD height=4 class=bgStyle></TD>
</TR>
<tr>
<td class=menuStyle height=22>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=left>
<lybbs:typeUserHeaderTag forumID="0"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableNoBgStyle cellpadding=1 cellspacing=0 border=0 align=center>
<tr>
<logic:equal name="statusBean" property="announcementEnabled" value="true">
<td width=30>
<img src="lybbs/images/announce.gif" border=0 width=18 height=18>
</td>
<td align=left>
<script language=JavaScript>
document.ns = navigator.appName == "Microsoft Internet Explorer"
function showStr(str){
if(!document.ns){document.write(str[0]);}
else{
document.write('<div id="icefable1">'
+'<table width=570 border=0 cellspacing=0 cellpadding=0>');
for(var i=0,m=str.length;i<m;i++) {
document.write('<tr><td height=20>'+str[i]+'</td></tr>');
}
document.write('</table></div>');
}
}
function init_srolltext(){
marqueesHeight=20;//the height of scroll
stopscroll=false;
//icefable1.style.width=0;
icefable1.style.height=marqueesHeight;
icefable1.style.overflowX="hidden";
icefable1.style.overflowY="hidden";
icefable1.noWrap=true;
icefable1.onmouseover=new Function("stopscroll=true");
icefable1.onmouseout=new Function("stopscroll=false");
preTop=0;
currentTop=0;
firstTime=true;
stoptime=0;
icefable1.scrollTop=0;
setInterval("scrollUp()",50);//the time of scroll
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==21){
stoptime+=1;
currentTop-=1;
if(stoptime==40){
//the time of stop
currentTop=0;
stoptime=0;
firstTime=false;//scroll up util the end of first stop time
}
}
else if(firstTime==false) {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=0;
firstTime=true;//start again
}
}
}
var strArray1=new Array();
</script>
<lybbs:typeFirstAnnouncementTag forumID="0"/>
</td>
</logic:equal>
<logic:equal name="statusBean" property="announcementEnabled" value="false">
<td> </td>
</logic:equal>
<td width=20> </td>
<td width=60 align=right>
<a href="servlet/lybbs_rss" target="_blank"><img src="lybbs/images/rss2.gif" border="0" align="absmiddle"></a>
</td>
<logic:greaterThan name="statusBean" property="homePageGroupID" value="0">
<td width=90 align=right>
<img src="lybbs/images/team.gif" border="0" width="16" height="16" align="absmiddle"><a href="bbs_homePageGroup.do"><bean:write name="statusBean" property="homePageGroupName"/></a>
</td>
</logic:greaterThan>
<td width=90 align=right>
<img src="lybbs/images/team.gif" border="0" width="16" height="16" align="absmiddle"><a href="bbs_team.do"><bean:message key="common.lybbs.adminteam"/></a>
</td>
<td width=90 align=right>
<img src="lybbs/images/userlist.gif" border="0" width="16" height="16" align="absmiddle"><a href="bbs_memberList.do?a=4"><bean:message key="common.lybbs.userlist"/></a>
</td>
<td width=90 align=right>
<img src="lybbs/images/top.gif" border="0" width="16" height="16" align="absmiddle"><a href="bbs_memberList.do?a=1"><bean:message key="common.lybbs.postrank"/></a>
</td>
</tr>
</table>
<!--type announcement from JavaScript -->
<SCRIPT language=JavaScript src="lybbs/common/js/announcement.js"></SCRIPT>
<table border=0><tr><td height=1></td></tr></table>
<table class=tableCommonStyle cellpadding=6 cellspacing=1 align=center border=0>
<tr>
<td class=catStyle colspan=4>
<B>=> <bean:message key="common.lybbs.quicklogin.entrance"/></B>
[ <bean:message key="common.lybbs.online.ip"/><bean:write name="userBean" property="userIP" scope="session"/> <bean:message key="common.lybbs.online.os"/><bean:write name="userBean" property="userOS" scope="session"/> <bean:message key="common.lybbs.online.browser"/><bean:write name="userBean" property="userBrowser" scope="session"/> ]
</td>
</tr>
<FORM name=login method=post action=bbs_loginSubmit.do>
<tr>
<logic:equal name="userBean" property="userMode" value="0" scope="session">
<!--login start-->
<td class=forumColorOne align=center valign=middle width=20><img src=lybbs/images/userlist.gif></td>
<td class=forumColorTwo valign=middle>
<bean:message key="common.lybbs.username"/>: <input type=text name='userName' size=12 maxlength=16 tabindex=1>
<bean:message key="common.lybbs.password"/>: <input type=password name='password' size=12 maxlength=20 tabindex=2>
<bean:message key="common.lybbs.savedate"/>:
<select name=cookieDate tabindex=4>
<option value=0 selected><bean:message key="common.lybbs.savedate.dontsave"/></option>
<option value=1><bean:message key="common.lybbs.savedate.oneday"/></option>
<option value=2><bean:message key="common.lybbs.savedate.onemonth"/></option>
<option value=3><bean:message key="common.lybbs.savedate.forever"/></option>
</select>
<%
if(net.lybbs.util.PropertiesCache.getInstance().isValidateCodeEnabled()) {
%>
<br><bean:message key="common.lybbs.validatecode"/>: <input type=text name='validateCode' size=4 maxlength=4 tabindex=3>
<lybbs:web key="validateCode"/>
<%
}
%>
<input type=submit name='submit' value='<bean:message key="common.lybbs.login"/>'>
</td>
<!--login end-->
</logic:equal>
<logic:notEqual name="userBean" property="userMode" value="0" scope="session">
<lybbs:web key="userInfoAfterLogin"/>
</logic:notEqual>
<td class=forumColorTwo width=310>
<table width=100% border=0>
<tr>
<td>
<bean:message key="common.lybbs.user.totalusernumber"/>: <a href=bbs_memberList.do?a=3><b><bean:write name="lastStatusBean" property="totalAuthorNumber"/></b></a>
</td>
<td>
<bean:message key="common.lybbs.user.lastregister"/>:
<logic:equal name="lastStatusBean" property="totalAuthorNumber" value="0" scope="request">
<bean:message key="common.lybbs.user.nouser"/>
</logic:equal>
<logic:notEqual name="lastStatusBean" property="totalAuthorNumber" value="0" scope="request">
<a href='bbs_userShow.do?userID=<bean:write name="lastStatusBean" property="lastAuthorID"/>'><span class=lastPostUser><bean:write name="lastStatusBean" property="lastAuthorName"/></span></a>
</logic:notEqual>
</td>
</tr>
<tr>
<td>
<bean:message key="common.lybbs.post.todaynumber"/><bean:message key="common.lybbs.post.post"/>: <b><bean:write name="lastStatusBean" property="todayPostNumber"/></b>
</td>
<td>
<bean:message key="common.lybbs.post.yesterdaynumber"/><bean:message key="common.lybbs.post.post"/>: <b><bean:write name="lastStatusBean" property="yesterdayPostNumber"/></b>
</td>
</tr>
<tr>
<td>
<bean:message key="common.lybbs.post.topicnumber"/>: <b><bean:write name="lastStatusBean" property="totalTopicNumber"/></b>
</td>
<td>
<bean:message key="common.lybbs.post.replynumber"/>: <b><bean:write name="lastStatusBean" property="totalReplyNumber"/></b>
</td>
</tr>
<lybbs:web key="maxPostInfo"/>
</table>
</td>
</tr>
</form>
</table>
<table border=0><tr><td height=3></td></tr></table>
<lybbs:typeHomePageNewTopicTag/>
<span id="catalogStr0" style='DISPLAY: none'></span>
<span id="catalogStr1" style='DISPLAY: none'></span>
<span id="catalogStr2" style='DISPLAY: none'></span>
<span id="catalogStr3" style='DISPLAY: none'></span>
<span id="catalogStr4" style='DISPLAY: none'></span>
<span id="catalogStr5" style='DISPLAY: none'></span>
<span id="catalogStr6" style='DISPLAY: none'></span>
<span id="catalogStr7" style='DISPLAY: none'></span>
<span id="catalogStr8" style='DISPLAY: none'></span>
<span id="catalogStr9" style='DISPLAY: none'></span>
<span id="catalogStr10" style='DISPLAY: none'></span>
<span id="catalogStr11" style='DISPLAY: none'></span>
<span id="catalogStr13" style='DISPLAY: none'></span>
<span id="catalogStr14" style='DISPLAY: none'></span>
<span id="catalogStr15" style='DISPLAY: none'></span>
<span id="catalogStr16" style='DISPLAY: none'></span>
<span id="catalogStr17" style='DISPLAY: none'></span>
<span id="catalogStr18" style='DISPLAY: none'></span>
<span id="catalogStr19" style='DISPLAY: none'></span>
<span id="catalogStr20" style='DISPLAY: none'></span>
<lybbs:typeHomePageStarUserTag/>
<logic:present name="allianceListBean" scope="request">
<table class=tableCommonStyle cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td>
<table cellpadding=6 cellspacing=1 width=100%>
<tr>
<td colspan=2 class=catStyle>
<b>=> <bean:message key="tag.typealliance.allianceinfo"/> [<a href=javascript:openScript('bbs_lycode.do',480,240)><bean:message key="tag.typealliance.alliancecode"/></a>]
</td>
</tr>
<tr>
<td class=forumColorOne width=20 align=center>
<img src=lybbs/images/shareforum.gif width=16 height=16>
</td>
<td class=forumColorTwo width=98%>
<logic:iterate id="element" name="allianceListBean" indexId="indexId">
<%if(indexId.intValue()>0 && indexId.intValue()%6==0) out.print("<br>");%>
<logic:equal name="element" property="allianceLogo" value="">
<a href='<bean:write name="element" property="allianceUrl"/>' title='<bean:write name="element" property="allianceDescription"/>' target=_blank>
<bean:write name="element" property="allianceName"/>
</a>
</logic:equal>
<logic:notEqual name="element" property="allianceLogo" value="">
<a href='<bean:write name="element" property="allianceUrl"/>' target=_blank>
<img src='<bean:write name="element" property="allianceLogo"/>' border=0 title='<bean:write name="element" property="allianceName"/>
<bean:write name="element" property="allianceDescription"/>' width=88 height=31>
</a>
</logic:notEqual>
</logic:iterate>
</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</logic:present>
<br>
<logic:equal name="statusBean" property="dispBornEnabled" value="true">
<table class=tableCommonStyle cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td>
<table cellpadding=6 cellspacing=1 width=100%>
<tr>
<td class=catStyle colspan=2>
<bean:define id="birthdayUser" name="birthdayUser" type="net.lybbs.user.bean.IBirthdayUser"/>
<B>=> <bean:message key="tag.typebirthdayuser.birthday.msg" arg0="<%=String.valueOf(birthdayUser.getBirthdayUserNumber())%>"/></B>
</td>
</tr>
<tr>
<td class=forumColorOne align=center width=20>
<img src=lybbs/images/born.gif width=16 height=16>
</td>
<td class=forumColorTwo width=98%>
<logic:equal name="birthdayUser" property="birthdayUserNumber" value="0">
<bean:message key="tag.typebirthdayuser.birthday.nouser"/>
</logic:equal>
<logic:notEqual name="birthdayUser" property="birthdayUserNumber" value="0">
<%
String[] birthdayUserID=birthdayUser.getBirthdayUserID(),
birthdayUserName=birthdayUser.getBirthdayUserName(),
birthdayUserAge=birthdayUser.getBirthdayUserAge();
for(int i=0,m=birthdayUserID.length;i<m;i++) {
%>
<a href='bbs_userShow.do?userID=<%=birthdayUserID[i]%>' title="<bean:message key="tag.typebirthdayuser.birthday.happy" arg0="<%=birthdayUserName[i]%>" arg1="<%=birthdayUserAge[i]%>"/>">
<%=birthdayUserName[i]%>
</a>
<%
}
%>
</logic:notEqual>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</logic:equal>
<lybbs:typeOnlineTag forumID="0"/>
<script language="JavaScript" src="lybbs/common/js/online.js"></script>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -