⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadsprevnext2.jsp

📁 JiveJdon 3.0不只是一个论坛程序
💻 JSP
字号:
<%--
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/MultiPages.tld" prefix="MultiPages" %>
--%>
<%@ page contentType="text/html; charset=UTF-8" %>
<table cellpadding="0" cellspacing="2" border="0" width="100%" align="center">
<tr>
    <td width="1%" nowrap valign="top">

   
<%
java.util.ListIterator iter2 = (java.util.ListIterator)request.getAttribute("ThreadsPrevNext2");
if (iter2.hasPrevious()){
   com.jdon.jivejdon.model.ForumThread forumThreadPrev = (com.jdon.jivejdon.model.ForumThread)iter2.previous();
   request.setAttribute("forumThreadPrev", forumThreadPrev);
  // advance the iterator pointer back to the original index   
   iter2.next();
  %>
  <logic:notEmpty name="forumThreadPrev" >
  
     <a href="<%=request.getContextPath()%>/thread/<bean:write name="forumThreadPrev" property="threadId"/>.html"
      title="<bean:write name="forumThreadPrev" property="name"/>" class="forum">
    <html:img page="/images/prev.gif" width="10" height="10" hspace="2" altKey="forumThreadPrev.name" />
     上一主题
    </a>
   </logic:notEmpty>    
<%} else {
 %>&nbsp;<%
} %>

    </td>
    <td width="98%" align="center">

<table cellpadding="0" cellspacing="2" border="0">
<tr>

	<td><html:link page="/forum.jsp"  paramId="forumId" paramName="forum" paramProperty="forumId" title="返回主题列表">
        <html:img page="/images/back_to.gif" width="12" height="12" alt="Go back to the topic listing" border="0"/>
        </html:link>
    </td>
	<td nowrap>
        &nbsp;
        <html:link page="/forum.jsp"  paramId="forumId" paramName="forum" paramProperty="forumId" title="返回主题列表">
                      返回主题列表
        </html:link>
    </td>

    <td nowrap>&nbsp;&nbsp;</td>
	<td><a href="#top">
	<html:img page="/images/up_to.gif" width="12" height="12" alt="返回页首" border="0"/></a></td>
	<td nowrap>
        &nbsp;<a href="#top" title="返回页首">返回页首</a>


    </td>
</tr>
</table>

    </td>
    <td width="1%" nowrap valign="top">
<%    
if (iter2.hasNext())
    iter2.next();
if (iter2.hasNext()){
   com.jdon.jivejdon.model.ForumThread forumThreadNext = (com.jdon.jivejdon.model.ForumThread)iter2.next();
   request.setAttribute("forumThreadNext", forumThreadNext);
  %>
  <logic:notEmpty name="forumThreadNext" >
     <a href="<%=request.getContextPath()%>/thread/<bean:write name="forumThreadNext" property="threadId"/>.html"
      title="<bean:write name="forumThreadNext" property="name"/>" class="forum">
    <html:img page="/images/next.gif" width="10" height="10" hspace="2" altKey="forumThreadNext.name"/>
     下一主题
    </a>
  </logic:notEmpty>  
<%  } else { %>
    &nbsp;
<%  } %>    

    </td>
</tr>
</table>

<%-- reset for threadPrevNext3.jsp --%>
<%

if (iter2.hasPrevious()){
    iter2.previous();
    if (iter2.hasPrevious()){
       iter2.previous();
    }
}

%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -