【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“Epiboly_Index.jsp”一文,供大家参考学习
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<% request.setCharacterEncoding("gb2312"); %>
<%@ 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>
<body>
<%
String id=request.getParameter("id");
String clientname=request.getParameter("clientName");
%>
<img src="../images/Manual1.gif" width="16" height="16"> 合同编号:<font color="#993300"><%=id%></font> <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="Epiboly_Index_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" bgcolor="#EEF2F9"> <a href="Contract_matter_Index.jsp?id=<%=id%>&&clientName=<%=clientname%>">合同内容</a> </td>
<td width="74" align="center"><a href="Get_Log_Index.jsp?id=<%=id%>&&clientName=<%=clientname%>">收款记录</a></td>
<td width="93" align="center" bgcolor="#BBBBFF">外包费记录</td>
<td width="110" align="center" bgcolor="#EEF2F9"><a href="pargain_Index.jsp?id=<%=id%>&&clientName=<%=clientname%>">合同变更记录</a></td>
<td width="110" align="center" bgcolor="#EEF2F9"> </td>
<td width="500" bgcolor="#EEF2F9"> </td>
</tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#003366" >
<tr align="center" bgcolor="#EEF2F9">
<td width="16%" height="25">外包日期</td>
<td width="19%">外包金额</td>
<td width="49%">外包项目</td>
<td width="16%">操作</td>
</tr>
<jsp:useBean id="pat" scope="page" class="com.zh.util.epibolysql"></jsp:useBean>
<%
int showpage=1;
int pagecount=0;
int pagesize=5;
int i;
String topage=request.getParameter("topage");
if(topage==null){
showpage=1;
}else{
showpage=Integer.parseInt(topage);
}
if(showpage<0){
showpage=1;
}
Vector vec=pat.Init(id,showpage,5);
for(i=0;i<vec.size();i++){
gathersql gath=(gathersql)vec.elementAt(i);
%>
<tr align="center">
<td height="25"><%=gath.getDattime()%></td>
<td height="25"><%=gath.getMoney()%></td>
<td height="25"><%=gath.getTest()%></td>
<td height="25"><a href="Epiboly_Index_Update.jsp?cid=<%=gath.getId()%>&&del=del&&id=<%=id%>&&clientName=<%=clientname%>"><img src="../images/ico/a_delete.gif" width="52" height="16" border="0"></a></td>
</tr>
<%
}
pagecount=(((i%pagesize)==0)?(i/pagesize):(i/pagesize+1));
if(showpage>pagecount){
showpage=pagecount;
}
%>
<tr align="center" bgcolor="#EFF3FF">
<td height="25" colspan="4"><a href="Epiboly_Index.jsp?topage=<%=showpage-1%>&&id=<%=id%>&&clientName=<%=clientname%>"><img src="../images/1-prev.gif" width="36" height="11" border="0"></a> <a href="Epiboly_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>