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

📄 get_log_index.jsp

📁 《JSP数据库系统开发完全手册》配套关盘
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page import="com.zh.conpool.Condata"%>
<%@ page import="com.zh.util.ContractSql"%>
<%@ page import="java.util.Vector"%>
<%@ page import="com.zh.util.gathersql"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../css/style1.css" rel="stylesheet">
</head>
<%
String id=request.getParameter("id");
String clientname=request.getParameter("clientName");
%>
<body>
&nbsp;&nbsp;&nbsp;<img src="../images/Manual1.gif" width="16" height="16"> 合同编号:<font color="#993300"><%=id%></font>&nbsp;&nbsp;<img src="../images/ico/icon_group.gif" width="15" height="15">客户名称:<font color="#993300"><%=clientname%></font>
<img src="../images/Manual14.gif" width="16" height="16"> <a href="Get_Log_Add.jsp?id=<%=id%>&&clientName=<%=clientname%>" target="mainName">添加收款记录</a>
<hr align="center" size="0" color="#006699">
<table width="100%" height="25"  border="0" cellpadding="1" cellspacing="1" bgcolor="#EEF2F9" class="tableBorder">
  <tr bgcolor="#EEF2F9">
    <td width="83" align="center">&nbsp;<a href="Contract_matter_Index.jsp?id=<%=id%>&&clientName=<%=clientname%>">合同内容</a>&nbsp;</td>
    <td width="74" align="center" bgcolor="#BBBBFF">&nbsp;收款记录&nbsp;</td>
    <td width="93" align="center"><a href="Epiboly_Index.jsp?id=<%=id%>&&clientName=<%=clientname%>">外包=countpage;
  }
  %>  
  td width="110" align="center"><a href="#">合同变更记录</a></td>
    <td width="500">&nbsp;</td>
  </tr>
</table>
<table width="100%"  border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#003399">
  <tr align="center" bgcolor="#EEF2F9">
    <td width="17%" height="25" bgcolor="#EEF2F9">收款日期</td>
    <td width="19%" bgcolor="#EEF2F9">收款金额</td>
    <td width="50%">收款内容</td>
    <td width="14%">操作</td>
  </tr>
 <jsp:useBean id="gather" scope="page" class="com.zh.util.gatheradd"></jsp:useBean> 
  <%
  	int showpage=1;
	int countpage=0;
	int pagesize=5;
	int ii=0;
	int i;
	String topage=request.getParameter("topage");
	if(topage==null){
		showpage=1;
	}else{
		showpage=Integer.parseInt(topage);
	}
	if(showpage<0){
		showpage=1;
	}
  	Vector vec=gather.getRs(id,5,showpage);
	for(i=0;i<vec.size();i++){
		
		gathersql gath=(gathersql)vec.elementAt(i);
  %>
  <tr>
    <td height="25" align="center"><%=gath.getDattime()%></td>
    <td height="25" align="center"><%=gath.getMoney()%></td>
    <td height="25" align="center"><%=gath.getTest()%></td>
    <td height="25" align="center"><a href="Get_Log_Update.jsp?id=<%=gath.getId()%>&&modify=1&&cid=<%=id%>&&clientName=<%=clientname%>"><img src="../images/ico/a_delete.gif" width="52" height="16" border="0"></a></td>
  </tr>

  <%
  ii=i;
  }
  countpage=(((i%pagesize)==0)?(i/pagesize):(i/pagesize+1));
  if(showpage>countpage){
  	showpage=countpage;
  }
  %>  
  <tr bgcolor="#EFF3FF">
    <td height="25" colspan="4" align="center">当前是第【<font color="#FF0000"><%=showpage%></font>】页&nbsp;&nbsp;记录&nbsp;【<font color="#FF0000"><%=pagesize%></font>条】/页&nbsp;&nbsp;<a href="Get_Log_Index.jsp?topage=<%=showpage-1%>&&id=<%=id%>&&clientName=<%=clientname%>"><img src="../images/1-prev.gif" width="36" height="11" border="0"></a>&nbsp;&nbsp;<a href="Get_Log_Index.jsp?topage=<%=showpage+1%>&&id=<%=id%>&&clientName=<%=clientname%>"><img src="../images/1-next.gif" width="36" height="11" border="0"></a></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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