📄 forum.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.*"%>
<bean:define id="boardid" name="board" scope="request" property="id"/>
<bean:define id="tagId" name="forumActionForm" scope="request" property="tagId" type="java.lang.String"/>
<bean:define id="pagesObj" name="pl" property="pages" scope="request" type="com.laoer.bbscs.service.web.Pages"/>
<bean:define id="forumList" name="pl" property="objectList" scope="request" type="java.util.List"/>
<bean:define id="tags" name="board" scope="request" property="boardTag" type="java.util.Set">
</bean:define>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html xhtml="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><bbscs:webinfo type="forumname"/> - <bean:write name="board" property="boardName"/><bbscs:webinfo type="poweredby"/></title>
<!--<bbscs:webinfo type="meta"/>-->
<link href="css/css1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript" src="js/jsMsg.jsp"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/comm.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
var ViewSummaryOjb = function(bid,id){
this.bid = bid;
this.id = id;
}
ViewSummaryOjb.prototype.execute = function(resText) {
$('s' + this.id).innerHTML = resText;
}
function viewSummary(bid,id) {
Element.show("s" + id);
$('s' + id).innerHTML = pageLoading;
var url = getActionMappingURL("/read");
var pars = "action=summary&ajax=shtml&id=" + id + "&bid=" + bid;
var myAjax = new Ajax.Updater('s' + id, url, {method: 'get', parameters: pars});
}
function closeSummary(id) {
$('s' + id).innerHTML = "";
hiddenElement("s" + id);
}
function load() {
var name=navigator.appName
var vers=navigator.appVersion
if(name=='Netscape'){
window.location.reload(true)
}
else{
history.go(0)
}
}
function boardsave(bid) {
showExeMsg();
var url = getActionMappingURL("/boardSave");
var pars = "action=save&ajax=xml&bid="+bid;
var myAjax = new Ajax.Request(url, {method: 'get', parameters: pars, onComplete: boardsaveComplete});
}
function boardsaveComplete(res) {
resXML = res.responseXML;
var codeid = getResponseXMLMsgsCodeid(resXML);
hiddenExeMsg();
alert(getResponseXMLMsgsMessage(resXML));
}
function changeBoard() {
var boardSelectObj = document.getElementById("boardSelect");
var boardId = boardSelectObj.options[boardSelectObj.selectedIndex].value;
var url = "";
if (useUrlRewrite == "true") {
url = "forum-index-" + boardId + ".html";
}
else {
url = getActionMappingURL("/forum?action=index&bid=" + boardId);
}
window.location.href = url;
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="100%" valign="top" class="bgColor3">
<span class="link2">
<html:link action="/in">社区封面</html:link>
<logic:iterate id="pboard" name="pboards" scope="request" type="com.laoer.bbscs.bean.Board">
»
<logic:equal value="true" name="URR" scope="request">
<a href="forum-index-<%=pboard.getId().longValue()%>.html"><bean:write name="pboard" property="boardName"/></a>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<html:link action="/forum?action=index" paramId="bid" paramName="pboard" paramProperty="id"><bean:write name="pboard" property="boardName"/></html:link>
</logic:notEqual>
</logic:iterate>
»
<logic:equal value="true" name="URR" scope="request">
<logic:equal value="0" name="forumActionForm" property="tagId">
<a href="forum-index-<%=boardid%>.html"><strong><bean:write name="board" property="boardName"/></strong></a>
</logic:equal>
<logic:notEqual value="0" name="forumActionForm" property="tagId">
<a href="forum-index-<%=boardid%>.html"><bean:write name="board" property="boardName"/></a>
</logic:notEqual>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<logic:equal value="0" name="forumActionForm" property="tagId">
<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id"><strong><bean:write name="board" property="boardName"/></strong></html:link>
</logic:equal>
<logic:notEqual value="0" name="forumActionForm" property="tagId">
<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id"><bean:write name="board" property="boardName"/></html:link>
</logic:notEqual>
</logic:notEqual>
<logic:notEmpty name="tags">
[
<logic:iterate id="tag" name="tags" type="com.laoer.bbscs.bean.BoardTag">
·
<logic:equal value="true" name="URR" scope="request">
<logic:equal value="<%=tag.getId()%>" name="forumActionForm" property="tagId">
<strong><a href="forum-index-<%=boardid%>-<%=tag.getId()%>-1-0.html"><bean:write name="tag" property="tagName"/></a></strong>
</logic:equal>
<logic:notEqual value="<%=tag.getId()%>" name="forumActionForm" property="tagId">
<a href="forum-index-<%=boardid%>-<%=tag.getId()%>-1-0.html"><bean:write name="tag" property="tagName"/></a>
</logic:notEqual>
</logic:equal>
<logic:notEqual value="true" name="URR" scope="request">
<%
HashMap values_link = new HashMap();
values_link.put("bid",String.valueOf(boardid));
values_link.put("tagId",tag.getId());
pageContext.setAttribute("values_link", values_link);
%>
<logic:equal value="<%=tag.getId()%>" name="forumActionForm" property="tagId">
<strong><html:link action="/forum?action=index" name="values_link"><bean:write name="tag" property="tagName"/></html:link></strong>
</logic:equal>
<logic:notEqual value="<%=tag.getId()%>" name="forumActionForm" property="tagId">
<html:link action="/forum?action=index" name="values_link"><bean:write name="tag" property="tagName"/></html:link>
</logic:notEqual>
</logic:notEqual>
</logic:iterate>
]
</logic:notEmpty>
</span>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="table8">
<tr>
<td width="1%"> </td>
<td width="1%" class="bgColor1"> </td>
<td width="98%"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="35%">
<strong><bean:write name="board" property="boardName"/></strong>
<logic:notEqual value="0" name="forumActionForm" property="tagId">
<bean:define id="b" name="board" type="com.laoer.bbscs.bean.Board"/>
-
<%=b.getBoardTagById(tagId).getTagName()%>
</logic:notEqual>
</td>
<!--<td width="65%" rowspan="3" valign="top">
<div>版面公告</div>
<div><bbscs:write name="board" property="bulletin" filter="false" userBr="true"/></div>
</td>-->
<td width="65%" rowspan="4" valign="middle">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9505761087047507";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "6699CC";
google_color_bg = "003366";
google_color_link = "FFFFFF";
google_color_text = "AECCEB";
google_color_url = "AECCEB";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
<tr>
<td>共 <strong><bean:write name="pagesObj" property="totalNum"/></strong> 帖 </td>
</tr>
<tr>
<td>版主:<bbscs:boardmaster name="board" property="boardMaster" scope="request"/></td>
</tr>
<tr>
<td><marquee direction="left" scrollamount="3" onMouseOver="this.stop();" onMouseOut="this.start();">版面公告:<bean:write name="board" property="bulletin" filter="false"/></marquee></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="2" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table9">
<html:form action="/forumSearch" method="POST">
<html:hidden property="bid"/>
<tr>
<td width="60%">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -