📄 topic.jsp
字号:
styleClass="bbs_layout tableWH" rowClasses="bbs_row2,bbs_row1" rows="#{bbs_topic.pageSize}" rowIndexVar="No" value="#{bbs_topic.replys}" var="reply" binding="#{bbs_topic.uiReplys}"> <h:column> <h:panelGrid border="0" columns="2" cellpadding="0" cellspacing="0" styleClass="bbs_table1 oStyle tableWH" columnClasses="tCol1,tCol2"> <h:panelGrid border="0" columns="1" width="100%" style="text-indent:5px;" cellpadding="1" cellspacing="1"> <h:outputText value="#{reply['userinfo'].byUser}"/> <h:graphicImage url="/bbs/images/upload/faces/#{reply['userinfo'].face}"/> <h:panelGroup> <h:outputText value="#{sayBBS.topic_group}"/> <h:outputText value="#{BBSApplication.groups[reply['userinfo'].group]['label']}"/> </h:panelGroup> <h:panelGroup> <h:outputText value="#{sayBBS.topic_topics}"/> <h:outputText value="#{reply['userinfo'].totalTopic}"/> </h:panelGroup> <h:panelGroup> <h:outputText value="#{sayBBS.topic_articles}"/> <h:outputText value="#{reply['userinfo'].totalArticle}"/> </h:panelGroup> <h:panelGrid columns="2" cellpadding="0" cellspacing="0"> <h:outputText value="#{sayBBS.topic_state}" style="margin-left:5px;"/> <h:graphicImage url="/common/images/#{ComApplication.visitorsOper.visitors[reply['userinfo'].byUser]['login'] && !ComApplication.visitorsOper.visitors[reply['userinfo'].byUser]['hidden']?'online.png':'offline.png'}"/> </h:panelGrid> <h:panelGroup> <h:outputText value="#{sayBBS.topic_lastVisited}"/> <h:outputText value="#{reply['userinfo'].lastOnline}"> <f:convertDateTime pattern="yyyy-MM-dd"/> </h:outputText> </h:panelGroup> </h:panelGrid> <h:panelGrid border="0" columns="1" cellpadding="1" cellspacing="1" styleClass="bbs_layout tableWH" rowClasses="tRow1,tRow2,tRow3"> <h:panelGrid border="0" columns="3" cellpadding="1" cellspacing="1" columnClasses="thCol1,thCol2,thCol3" styleClass="thStyle"> <h:panelGroup styleClass="colorGray"> <h:outputText value="#{sayBBS.topic_posted}"/> <h:outputText value="#{reply['reply'].date}"> <f:convertDateTime dateStyle="full" timeStyle="short"/> </h:outputText> </h:panelGroup> <h:panelGroup> <h:commandLink action="#{bbs_topic.toReplyByQuoteReply}" styleClass="thMargin"> <h:graphicImage url="/bbs/images/#{sayBBS.topic_imgQuote}"/> </h:commandLink> <h:commandLink action="#{bbs_topic.storeTopic}"> <h:graphicImage url="/bbs/images/#{sayBBS.topic_imgFavorite}"/> </h:commandLink> </h:panelGroup> <h:panelGrid border="0" columns="2" cellpadding="0" cellspacing="0" > <h:outputText value="#{No + 1}" styleClass="colorGray"/> <h:outputLink value="#top" title="#{sayBBS.topic_toTop}"> <h:graphicImage url="/bbs/images/top.gif"/> </h:outputLink> </h:panelGrid> </h:panelGrid> <h:panelGrid border="0" columns="1" styleClass="tableWH colorWhiteBG" cellpadding="3" cellspacing="3" columnClasses="tCol2" rowClasses="tRowContent,tRowSign"> <h:panelGroup> <h:outputText escape="false" value="#{reply['reply'].content}"/> <h:panelGrid border="0" width="100%" cellpadding="3" cellspacing="3" style="background: #F6F6F6" rendered="#{reply['file']!=null}"> <h:panelGrid columns="6" border="1" cellpadding="3" cellspacing="3" styleClass="table1" rowClasses="row2,row1" style="text-align:center;width:400px;"> <h:outputText value="#{sayBBS.topic_ffFile}"/> <h:outputText value="#{sayBBS.topic_ffType}"/> <h:outputText value="#{sayBBS.topic_ffSuffix}"/> <h:outputText value="#{sayBBS.topic_ffSize}"/> <h:outputText value="#{sayBBS.topic_ffDescription}"/> <h:outputText value="#{sayBBS.topic_ffSave}"/> <h:outputText value="#{reply['file'].name}"/> <h:outputText value="#{reply['file'].type}"/> <h:outputText value="#{reply['file'].suffix}"/> <h:outputText value="#{reply['file'].size} k"/> <h:outputText value="#{reply['file'].description}"/> <h:outputLink value="#{facesContext.externalContext.requestContextPath}/bbs/images/upload/file/#{reply['file'].name}"> <h:outputText value="#{sayBBS.topic_ffSave}"/> </h:outputLink> </h:panelGrid> <h:graphicImage url="/bbs/images/upload/file/#{reply['file'].name}" rendered="#{reply['file'].type=='image'}"/> </h:panelGrid> </h:panelGroup> <h:panelGrid border="0" columns="2" styleClass="tableWH" headerClass="th" columnClasses="tCol3,tCol4" rendered="#{reply['userinfo'].signable && BBSApplication.signable}"> <f:facet name="header"> <h:graphicImage url="/bbs/images/sign.gif"/> </f:facet> <h:panelGroup/> <h:outputText value="#{reply['userinfo'].sign}"/> </h:panelGrid> </h:panelGrid> <h:panelGrid border="0" columns="2" styleClass="tfStyle" columnClasses="tCol5,,"> <h:panelGroup> <h:commandLink styleClass="marginRight" action="#{bbs_topic.toShowToolsReply}"> <h:graphicImage url="/bbs/images/#{sayBBS.topic_imgEdit}"/> <f:setPropertyActionListener target="#{bbs_replyTools.reply}" value="#{reply['reply']}"/> </h:commandLink> <h:commandLink styleClass="marginRight"action="#{bbs_topic.toMessage}"> <h:graphicImage url="/bbs/images/#{sayBBS.topic_imgMessage}"/> <f:setPropertyActionListener target="#{mess_send.toUser}" value="#{reply['userinfo'].byUser}"/> </h:commandLink> </h:panelGroup> <h:panelGroup styleClass="colorGray" rendered="#{reply['reply'].editByUser!='undefine'}"> <h:outputText value="#{sayBBS.topic_lastEdit}"/> <h:outputText value="#{reply['reply'].editByDate}"> <f:convertDateTime dateStyle="full" timeStyle="short"/> </h:outputText> <h:outputText value=" by #{reply['reply'].editByUser}"/> </h:panelGroup> </h:panelGrid> </h:panelGrid> </h:panelGrid> </h:column> </t:dataTable> <!--===================== scroller =====================--> <h:panelGrid border="0" width="100%" columns="3" styleClass="scrollerTable tableWH" style="margin-top:1px;" columnClasses="scrollerCol1,scrollerCol2,scrollerCol3"> <t:dataScroller id="scroller_2" for="replys" rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCount" firstRowIndexVar="firstRow" lastRowIndexVar="lastRow" pageCountVar="pageCount" pageIndexVar="pageIndex"> <h:panelGroup rendered="#{rowsCount!=0}"> <h:outputText value="[#{sayBBS.all_pgTotal}#{rowsCount}]"/> <h:outputText value="[#{sayBBS.all_pgPage}#{pageCount}]"/> <h:outputText value="[#{sayBBS.all_pgCurrentPage}#{pageIndex}]"/> <h:outputText value="[#{sayBBS.all_pgShow}#{displayedRowsCount}]"/> <h:outputText value="[#{firstRow}#{sayBBS.all_pgTo}#{lastRow}]"/> </h:panelGroup> </t:dataScroller> <t:dataScroller id="scroller_1" for="replys" fastStep="50" paginator="true" paginatorMaxPages="9" paginatorActiveColumnClass="scrollerPACC" renderFacetsIfSinglePage="true"> <f:facet name="first"> <t:graphicImage url="/common/images/scroller/arrow-first.gif"/> </f:facet> <f:facet name="last"> <t:graphicImage url="/common/images/scroller/arrow-last.gif"/> </f:facet> <f:facet name="previous"> <t:graphicImage url="/common/images/scroller/arrow-previous.gif"/> </f:facet> <f:facet name="next"> <t:graphicImage url="/common/images/scroller/arrow-next.gif"/> </f:facet> <f:facet name="fastforward"> <t:graphicImage url="/common/images/scroller/arrow-ff.gif"/> </f:facet> <f:facet name="fastrewind"> <t:graphicImage url="/common/images/scroller/arrow-fr.gif"/> </f:facet> </t:dataScroller> <h:panelGrid columns="2" border="0"> <h:inputText value="#{bbs_topic.jumpTo}" style="width:20px;text-align:center"/> <h:commandButton value="转到" actionListener="#{bbs_topic.jump}"/> </h:panelGrid> </h:panelGrid> </h:form> <%@ include file="/bbs/include/jump.jsp"%> <!-- ===================快速回复================= --> <h:form style="margin-top: 10px;"> <h:panelGrid border="0" columns="1" cellpadding="1" cellspacing="0" styleClass="bbs_table1 tableWH" headerClass="th3" rendered="#{visitor.login && !bbs_topic.topic.beLock}"> <f:facet name="header"> <h:outputText value="#{sayBBS.topic_quickReply}:#{bbs_topic.topic.title}" styleClass="colorOrange"/> </f:facet> <h:panelGrid border="1" columns="2" cellpadding="3" cellspacing="3" styleClass="bbs_table2 tableWH"> <h:outputText value="#{sayBBS.topic_content}"/> <h:panelGrid border="0" columns="1" styleClass="tableWH"> <h:inputTextarea required="true" style="width:100%;height:150px" value="#{bbs_topic.quickReplyContent}"/> </h:panelGrid> <h:panelGroup/> <h:panelGroup> <h:commandButton value="#{sayBBS.topic_quickReply}" action="#{bbs_topic.quickReply}"/> <h:commandButton value="#{sayBBS.topic_cancel}" styleClass="marginLeft"/> </h:panelGroup> </h:panelGrid> </h:panelGrid> </h:form> <%@ include file="/common/footer.jsp" %> </body></html></f:view>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -