日期:2014-05-17 浏览次数:20853 次
<%@page contentType="text/html;charset=GBK" language="java" %>
<%@ include file="/pub/taglibs.jsp"%>
<%@ page import ="java.util.Vector" %>
<%@ page import ="com.dljt.action.sysframe.FuncModel" %>
<%@ page import="com.dljt.util.*"%>
<%@ page import="java.sql.*"%>
<jsp:useBean id="keyUserSessionModel" type="com.dljt.action.sysframe.UserSessionModel" scope="session"> </jsp:useBean>
<jsp:useBean id="jiaoCaiJiChuXinXiListdata" type="java.util.Vector" scope="request"> </jsp:useBean>
<%
com.dljt.pub.tag.sql.TagDAO myTagDAO = new com.dljt.pub.tag.sql.TagDAO();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>图书管理 </title>
<link href=" <%= request.getContextPath() %>/include/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="EFF2F4" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<%@ include file="/sysframe/tsheader.jsp" %>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background=" <%= request.getContextPath() %>/image/bj01.gif">
<%
//定义全局变量实现分页
int pageSize=5; //分页每页记录数
int rowCount; //总的记录数
int pageCount; //总的页数
int pageNow=0; //希望显示第几页
String s_pageNow=request.getParameter("pageNow");//从页面得到页数
if(s_pageNow==null)
{ pageNow=1; }
else
{
pageNow=Integer.parseInt(s_pageNow);
if(pageNow <1)
{ pageNow=1; }
}
Vector rs=jiaoCaiJiChuXinXiListdata;
rowCount=rs.size() ; //得到总的记录数
if(rowCount%pageSize==0){
pageCount=rowCount/pageSize; //得到总页数
}else{
pageCount=rowCount/pageSize+1;
}
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" valign="top" background="/image/leftbj02.gif"> <%@ include file="/sysframe/