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

📄 searchresults.jsp

📁 pebble-blog 博客源码博客源码博客源码
💻 JSP
字号:
<div class="contentItem">  <h1><fmt:message key="search.results" /></h1>  <h2>"${searchResults.query}"</h2>  <div class="contentItemBody">    <c:choose>      <c:when test="${searchResults.numberOfHits > 0}">        <c:set var="pageableUrl" value="search.action?query=${query}&amp;sort=${param.sort}" scope="request" />        <jsp:include page="/WEB-INF/fragments/pageable.jsp">          <jsp:param name="url" value="${pageableUrl}" />        </jsp:include>        <br />        <table width="99%" cellspacing="0" cellpadding="4">          <thead>            <tr>              <th></th>              <th><fmt:message key="search.header.titleAndSummary" /></th>              <th align="right"><fmt:message key="search.header.dateTime" /></th>            </tr>          </thead>          <tbody>          <c:forEach var="hit" items="${pageable.listForPage}" varStatus="status">            <c:choose>              <c:when test="${status.count % 2 == 0}">                <tr class="even small">              </c:when>              <c:otherwise>                  <tr class="odd small">              </c:otherwise>            </c:choose>            <td width="2%" valign="top">              <fmt:formatNumber value="${hit.number}"/>              <br />            </td>            <td valign="top">              <a href="${hit.permalink}" title="${hit.score}">${hit.title}</a>              <br />              ${hit.excerpt}            </td>            <td align="right" valign="top" width="15%">              <fmt:formatDate value="${hit.date}" type="date" dateStyle="medium" /><br />              <fmt:formatDate value="${hit.date}" type="time" dateStyle="medium" />            </td>          </tr>          </c:forEach>          </tbody>        </table>        <br />        <c:set var="pageableUrl" value="search.action?query=${query}&amp;sort=${param.sort}" scope="request" />        <jsp:include page="/WEB-INF/fragments/pageable.jsp">          <jsp:param name="url" value="${requestScope.pageableUrl}" />        </jsp:include>      </c:when>      <c:otherwise>          <fmt:message key="search.noResults" />      </c:otherwise>    </c:choose>  </div></div>

⌨️ 快捷键说明

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