?? page_1.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ page import = "cn.com.dekn.cms.util.*" %>
<%
//當前頁數
int PN = StrUtil.getNotNullIntValue(request.getParameter("pn"),1);
int PAGE_COUNT = StrUtil.getNotNullIntValue((String)request.getAttribute("PAGE_COUNT"),1);
int ROW_COUNT = StrUtil.getNotNullIntValue((String)request.getAttribute("ROW_COUNT"),1);
int PAGE_SIZE = StrUtil.getNotNullIntValue((String)request.getAttribute("PAGE_SIZE"),1);
String FIRST_PAGE_URL = URLUtil.addParam(request,"pn","1");
String PREV_PAGE_URL = URLUtil.addParam(request,"pn",(String)request.getAttribute("PREV_PAGE"));
String NEXT_PAGE_URL = URLUtil.addParam(request,"pn",(String)request.getAttribute("NEXT_PAGE"));
String LAST_PAGE_URL = URLUtil.addParam(request,"pn",(String)request.getAttribute("LAST_PAGE"));
/***********************************
* CSS樣式 參數初始化
***********************************/
//CSS樣式
String CSS = StrUtil.getNotNullStringValue(request.getParameter("CSS"),"");
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr class="<%=CSS%>">
<td height="30" align="right">共有<%=ROW_COUNT%>條相關信息 頁次: <%=PN%>/<%=PAGE_COUNT%> 【<a href="<%=FIRST_PAGE_URL%>">第一頁</a>】【<a href="<%=PREV_PAGE_URL%>">上一頁</a>】 【<a href="<%=NEXT_PAGE_URL%>">下一頁</a>】 【<a href="<%=LAST_PAGE_URL%>">最未頁</a>】 每頁<%=PAGE_SIZE%>條</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -