📄 first.jsp
字号:
<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<%@page import="com.laoer.bbscs.comm.*"%>
<%@page import="java.util.*"%>
<%@page import="com.laoer.bbscs.bean.*"%>
<jsp:useBean id="bmap" scope="request" type="java.util.Map"></jsp:useBean>
<jsp:useBean id="actionUrl" scope="request" type="java.lang.String"></jsp:useBean>
<jsp:useBean id="tourl" scope="request" type="java.lang.String"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
<bbscs:webinfo type="forumname"/>
- 社区首页
<bbscs:webinfo type="poweredby"/>
</title>
<bbscs:webinfo type="meta"/>
<link href="css/incss.css" rel="stylesheet" type="text/css"/>
<link href="css/css1.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="head">
<div id="head1">
<div id="headl">
<bbscs:webinfo type="forumname"/>
</div>
</div>
<div id="head2">
<div id="headr">
<html:link action="/reg" target="_top">注册</html:link>
<html:link action="/login" target="_top">登录</html:link>
<html:link action="/cpasswd?action=index">修改密码</html:link>
<html:link action="/inCoverManage?action=inmanage&bid=0">管理</html:link>
<html:link action="/logout" target="_top">注销</html:link>
</div>
</div>
</div>
<div id="info">
<div id="info1">
<bbscs:webinfo type="sysinfo" sysStatServiceName="sysStatService"/>
<a href="rss" target="_blank"><img alt="Rss" src="images/rss200.png" border="0" align="absmiddle"/></a>
</div>
<div id="info2">
当前在线:注册用户 <html:link action="/online?action=user"><bean:write name="onlineNum"/></html:link> 游客 <bean:write name="onlineGuestNum"/>
/
<bbscs:webinfo type="onlinehighest" sysStatServiceName="sysStatService"/>
</div>
</div>
<logic:equal value="false" name="isGuest" scope="request">
<div id="myinfo">
<div id="myinfo1">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%">
<div align="center">
<bbscs:face name="user_session" property="id" scope="session"/>
</div>
</td>
<td width="50%" valign="top">
<div id="logininfo1">
欢迎登录:<strong><bean:write name="user_session" property="userName" scope="session"/></strong>
<br/>
上次登录:<bean:write name="lastLoginTime" format="yyyy-MM-dd HH:mm:ss"/>
<br/>
<bean:write name="titleValue"/>(<bean:write name="userTitle"/>)
<br/>
悄悄话:<html:link action="/note"><bean:write name="newNoteNumInbox"/>/<bean:write name="noteAllNumInbox"/></html:link>
<br/>
好友:<html:link action="/online?action=friend"><bean:write name="friendOnlineNum"/></html:link>/<html:link action="/friendSet"><bean:write name="friendNum"/></html:link>
</div>
</td>
<td width="30%" valign="top">
<div id="usertools1">
<strong>个人中心</strong>
<br/>
<html:link action="/signSet">修改签名</html:link>
<html:link action="/nickNameSet">修改昵称</html:link>
<br/>
<html:link action="/userConfig">个人参数</html:link>
<html:link action="/friendSet">编辑好友</html:link>
<br/>
<html:link action="/bookMark">书签管理</html:link>
<html:link action="/userFace?action=index">编辑头像</html:link>
<br/>
<html:link action="/userDetailSet?action=index">个人资料</html:link>
<html:link action="/boardSaveManage">珍藏管理</html:link>
</div>
</td>
</tr>
</table>
</div>
</div>
</logic:equal>
<logic:equal value="true" name="isGuest" scope="request">
<div id="login">
<div id="login1">
<logic:equal value="true" name="usepass" scope="request">
<form id="form1" name="form1" method="post" action="<%=actionUrl%>" target="_top">
<input type="hidden" name="tourl" value="<%=tourl%>"/>
用户名
<input name="username" type="text" class="input2" size="15" maxlength="20"/>
密码
<input name="passwd" type="password" class="input2" size="15"/>
<input name="Submit" type="submit" class="button1" value="登录"/>
</form>
</logic:equal>
<logic:equal value="false" name="usepass" scope="request">
<form id="form1" name="form1" method="post" action="<%=actionUrl%>" target="_top">
<input type="hidden" name="tourl" value="<%=tourl%>"/>
<input type="hidden" name="action" value="login"/>
用户名
<input name="username" type="text" class="input2" size="15" maxlength="20"/>
密码
<input name="passwd" type="password" class="input2" size="15"/>
验证码
<input name="authCode" type="text" class="input2" size="5" maxlength="4"/>
<img alt="验证码" src="authimg" align="absmiddle"/>
隐身登录
<input type="checkbox" name="hiddenLogin" value="1"/>
<input name="Submit" type="submit" class="button1" value="登录"/>
</form>
</logic:equal>
</div>
</div>
</logic:equal>
<div id="board">
<div id="boardl">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="bgColor1">
<table width="100%" border="0" cellpadding="5" cellspacing="1">
<tr class="bgColor3">
<td width="10%"><div align="center"></div></td>
<td width="70%"><div align="center"><strong>论坛</strong></div></td>
<td width="10%"><div align="center"><strong>主题</strong></div></td>
<td width="10%"><div align="center"><strong>文章</strong></div></td>
</tr>
<logic:iterate id="board" name="blist" scope="request" type="com.laoer.bbscs.bean.Board">
<logic:equal value="1" name="board" property="boardType">
<tr>
<td colspan="4" class="bgColor4"><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
<strong class="font1">
<logic:equal value="true" name="URR" scope="request">
<bean:define id="bid" name="board" property="id"/>
<a href="forum-index-<%=bid%>.html"><bean:write name="board" property="boardName"/></a>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id">
<bean:write name="board" property="boardName"/>
</html:link>
</logic:notEqual>
</strong>
</td>
</tr>
<tr>
<td><bean:write name="board" property="explains"/></td>
</tr>
<tr>
<td>版主 <bbscs:boardmaster name="board" property="boardMaster"/></td>
</tr>
</table></td>
</tr>
</logic:equal>
<logic:equal value="3" name="board" property="boardType">
<tr>
<td valign="middle" class="bgColor4"><div align="center"></div></td>
<td class="bgColor2"><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
<strong class="font1">
<logic:equal value="true" name="URR" scope="request">
<bean:define id="bid" name="board" property="id"/>
<a href="forum-index-<%=bid%>.html"><bean:write name="board" property="boardName"/></a>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id">
<bean:write name="board" property="boardName"/>
</html:link>
</logic:notEqual>
</strong>
</td>
</tr>
<tr>
<td><bean:write name="board" property="explains"/></td>
</tr>
<tr>
<td>版主 <bbscs:boardmaster name="board" property="boardMaster"/></td>
</tr>
</table></td>
<td class="bgColor4"><div align="center"><bean:write name="board" property="mainPostNum"/></div></td>
<td class="bgColor2"><div align="center"><bean:write name="board" property="postNum"/></div></td>
</tr>
</logic:equal>
<%
List bl2 = (List)bmap.get(board.getId());
%>
<logic:iterate id="b" collection="<%=bl2%>" type="com.laoer.bbscs.bean.Board">
<tr>
<td valign="middle" class="bgColor4"><div align="center"></div></td>
<td class="bgColor2"><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td>
<strong class="font1">
<logic:equal value="true" name="URR" scope="request">
<bean:define id="bid" name="b" property="id"/>
<a href="forum-index-<%=bid%>.html"><bean:write name="b" property="boardName"/></a>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<html:link action="/forum?action=index" paramId="bid" paramName="b" paramProperty="id">
<bean:write name="b" property="boardName"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -