<%@include file="../comm/init.txt"%><%@ page buffer="true" import="kgweb.web.Frame;kgweb.bean.ForumBean;java.util.List;kgweb.table.TForumsubject;kgweb.table.TForumcontent;kgweb.table.TForumfile_if"%><%@include file="../comm/datetimeformat.txt"%><% ForumBean actionBean = new ForumBean(); Frame forumcontentFrame = Frame.processMultiPageFrame(actionBean, out, session, request, _charsetName, /*request的参数*/ "pageId", "tforumsubject.id", "_title_upid", "forumSubjectPageId"); // ExeEvent exeEvent = new ExeEvent(session, response, _thisFileName+'$'+$ke$sourceLineNumber, _thisFileName, actionBean ); //执行读取论坛跟帖的内容 int actionId = actionBean.getTForumcontentPageDataActionOptionalForumSubjectid(_loginTuser); // if (actionId < -1) { //发生了除了没有找到记录以外的错误 //根据执行结果进行跳转 exeEvent.action(actionId); return; } //没有发生错误则继续下去 List forumcontentList = actionBean.getForumcontentList(); //当前分论坛信息 String submitParameters = "?_title_upid=" + actionBean.get_title_upid() + "&tforumsubject.id=" + actionBean.getTforumsubject().getId() + "&forumContentPageId=" + actionBean.getPageId() + "&forumSubjectPageId=" + actionBean.getForumSubjectPageId(); %> <%out.print(/*Title.getTitle(_bundle, _thisFileName) + " " +*/ Frame.get_content(actionBean.getForumTitle()), _charsetName);%>
<%@include file = "../comm/navigation.txt"%>

<%//begin%> <%//end%>
<% Long uid; for(int i = 0; i < forumcontentList.size(); i++) { //#start%> <%} //#end%>
<%out.print(_bundle.getString("comm_subject") + Frame.get_content(actionBean.getForumTitle()), _charsetName);%> <%forumcontentFrame.h_text_link("rtTopicList", response, actionBean.getRtUrl() + "?pageId=" + actionBean.getForumSubjectPageId(), _bundle.getString("comm_return_topic_list"));%>


<% if (forumcontentList.get(i).getRegauthor() == null || (uid = forumcontentList.get(i).getRegauthor().getId()) == null) { out.print("" + _bundle.getString("comm_guest") + forumcontentList.get(i).getAuthorip() + "", _charsetName); } else { out.print(kgweb.web.Frame.getAccountViewLinkUrl(response, uid, _bundle.getString("comm_uid") + uid), _charsetName); } %>
<%out.print(_bundle.getString("comm_publish_date") + _dateTimeFormat.format(forumcontentList.get(i).getPublishtime()), _charsetName);%>
#<%=i + actionBean.getNoteBaseNo()%>
<%out.print(forumcontentList.get(i).getContent(), _charsetName);%> <%if (forumcontentList.get(i).getForumfileSet() != null && !forumcontentList.get(i).getForumfileSet().isEmpty()) { //has attachement file(s)%>

<%out.print(_bundle.getString("comm_attachment"), _charsetName);%>
<%java.util.Iterator it = forumcontentList.get(i).getForumfileSet().iterator(); TForumfile_if tempForumfile; String attUrl=""; while (it.hasNext()) { tempForumfile = it.next(); Integer imageSize = tempForumfile.getImageresize(); // if (tempForumfile.getAccesspsw() != null) { //need use password to visit it attUrl = forumcontentFrame.getPswForumFileUrl(tempForumfile.getId(), i + actionBean.getNoteBaseNo() == 0); } else { //need check role if (kgweb.role.WebRole.pass(tempForumfile.getAccessrole(), _roleId)) { //can download file if (imageSize == null) attUrl = forumcontentFrame.getForumFileDownloadUrl(tempForumfile.getId(), i + actionBean.getNoteBaseNo() == 0,tempForumfile.getAfilename()); else attUrl = forumcontentFrame.getImageForumFileUrl(tempForumfile.getId(), i + actionBean.getNoteBaseNo() == 0, imageSize); } else { attUrl = forumcontentFrame.getNoRoleDownloadForumFileUrl(); } }%> <%//%> <%}%>
<%out.print(attUrl, _charsetName);%>download time = 5
<%}%>

<%out.print(_bundle.getString("> <%out.print(_bundle.getString(">

<%out.print(_bundle.getString("comm_per_day_hotspot"), _charsetName);%>
<%forumcontentFrame.h_text_link("topicteplyLink", response, "/forum/topicreply.htm" + submitParameters, _bundle.getString("comm_reply_topic"));%>

<%forumcontentFrame.h_multipage_link("custompage", response, submitParameters + "&pageId=", actionBean.getPageId(), actionBean.getPageCount());%>

<%if (_loginTuser != null) {%>
" method="post" enctype="multipart/form-data" onkeydown="return ctlent()" onsubmit="return f_submit()">
<%out.print(_bundle.getString("comm_content"), _charsetName);%>

<%forumcontentFrame.h_input_textarea("tforumcontent.content", 8, 60, _bundle.getString("comm_forum_input_prompt"));%>

<%forumcontentFrame.h_output_button("B1", "submit", _bundle.getString("comm_speak"));%> <%forumcontentFrame.h_output_fcontent_preview_button("B2", _bundle.getString("comm_preview"), response);%>
<%out.print(_bundle.getString("comm_fast_reply_topic"), _charsetName);%>
<%forumcontentFrame.h_checkbox("enableUbbImg", true);%> <%forumcontentFrame.h_output_pop_ubb_img("ubbImg", response, "addForumcontentForm", "tforumcontent.content", "enableUbbImg", _bundle.getString("ubb_img_ubb_img_pop_link_name"));%>
<%forumcontentFrame.h_checkbox("enableUbbCode", true);%> <%forumcontentFrame.h_output_pop_ubb_code("ubbCode", response, "addForumcontentForm", "tforumcontent.content", "enableUbbCode", _bundle.getString("ubb_img_ubb_code_pop_link_name"));%>
<%}%>
<%@include file="../comm/end.txt"%>