📄 bookbase.jsp
字号:
<%@ page language="java" import="com.olr.util.Pager" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>书库</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<s:set name="pager" value="#request['bookBasePager']"/>
<s:set name="categoryList" value="#request['categoryList']"></s:set>
<table align="center" width="1000" cellpadding="0" cellspacing="0">
<tr><td><form action="bookBase!init.do" method="post" id="form0">
书库中共有<s:property value="rowCount"/>部作品-----书籍类别:<s:select list="categoryList" name="category" onchange="document.all.form0.submit();"></s:select>
排序方式:<s:select list="#{0:'更新时间',1:'点击率',2:'推荐数'}" name="sort" onchange="document.all.form0.submit();"></s:select>
<input type="submit" value="提交" /></form>
</td></tr>
<tr><td>
<table class="datalist">
<tr>
<th width="100">类别</th>
<th width="300">书名/当前章节</th>
<th width="100">状态</th>
<th width="75">点击率</th>
<th width="75">推荐</th>
<th width="100">作者</th>
<th width="250">更新时间</th>
</tr>
<s:iterator value="pager.resultList" status="st">
<s:if test="#st.odd">
<tr class="altrow">
</s:if>
<s:else>
<tr>
</s:else>
<td>[<s:property value="category"/>]</td>
<td align="center"><a href="reading!showBook.do?bookId=<s:property value="bookId"/>"><s:property value="bookname"/>/<s:property value="chapterCount"/> <s:property value="lastChapter"/></a></td>
<td >
<s:if test="status==0">新书上架</s:if>
<s:elseif test="status==1">更新中</s:elseif>
<s:else>已完结</s:else>
</td>
<td ><s:property value="clickCount"/></td>
<td><s:property value="recomCount"/></td>
<td><s:property value="writer"/></td>
<td><s:property value="updateTime"/> </td>
</tr>
<tr><td colspan="7"><hr></td></tr>
</s:iterator>
</table>
<s:form id="form1" action="bookBase!list.do" method="post">
<TABLE border="0" width="500" class="pager" align="center">
<TR>
<TD align="left">每页记录数
<s:select name="pageSize" key="pager.pagerSize" value="每页记录数:" list="pager.pageSizeIndexs" onchange="document.getElementById('pageNo').value='1';document.getElementById('form1').submit();"/>
</TD>
<TD align="center">
总记录数:<s:property value="pager.rowCount"/>
</TD>
<TD align="right">
<a href="javascript:document.getElementById('pageNo').value='<s:property value="pager.firstPageNo"/>';document.getElementById('form1').submit();">首页</a>
<a href="javascript:document.getElementById('pageNo').value='<s:property value="pager.prePageNo"/>';document.getElementById('form1').submit();">前一页</a>
<a href="javascript:document.getElementById('pageNo').value='<s:property value="pager.nextPageNo"/>';document.getElementById('form1').submit();">后一页</a>
<a href="javascript:document.getElementById('pageNo').value='<s:property value="pager.lastPageNo"/>';document.getElementById('form1').submit();">末页</a>
<s:select id="pageNo" name="pageNo" list="pager.pageNoIndexs" value="pager.pageNo" onchange="document.getElementById('form1').submit();"></s:select>
</TD>
<TD width="20"></TD>
</TR>
</TR>
</TABLE>
</s:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -