【JSP开源代码栏目提醒】:网学会员,鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“Follow_Index.jsp”一文,供大家参考学习!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page import="com.zh.util.*"%>
<%@ page import="com.zh.conpool.*"%>
<%
String sess=(String)session.getAttribute("username");
if(sess==null||sess.equals("")){
response.sendRedirect("../main.jsp");
}else{
swing.Rous rou=new swing.Rous();
boolean maybe=rou.toInt(sess,"row124");
if(!maybe){
response.sendRedirect("../notrous.jsp");
}
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../css/style1.css" rel="stylesheet">
</head>
<body>
<jsp:useBean id="pagi" class="com.zh.util.page"></jsp:useBean>
<%
String id=request.getParameter("id");
if(id==null){
id=(String)session.getAttribute("id");
}else{
session.setAttribute("id",id);
}
%>
<form action="Follow_Index.jsp" method="post" name="form1">
<table width="100%" height="25" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#F9FFF4">
<tr>
<td> <img src="../images/Manual14.gif" width="16" height="16">客户管理 >> <img src="../images/Manual65.gif" width="16" height="16"><a href="Follow_Index_Add.jsp?id=<%=id%>" target="mainName">添加跟进记录</a>
<hr color="#006699" size="1">
<img src="../images/icon_group.gif" width="15" height="15"><a href="Client_Index_Sql.jsp?id=<%=id%>&&tag=1">客户信息</a> <img src="../images/Manual54.gif" width="16" height="16"><a href="Stock_Index.jsp?id=<%=id%>">采购记录</a> <img src="../images/Manual65.gif" width="16" height="16"><a href="Follow_Index.jsp?id=<%=id%>">跟进记录</a> <img src="../images/Manual1.gif" width="16" height="16"><a href="Call_Index.jsp?id=<%=id%>">回访记录</a> <img src="../images/Manual11.gif" width="16" height="16"><a href="Demand_Index.jsp?id=<%=id%>">需求表</a> <img src="../images/icon_go_left.gif" width="15" height="15"><a href="Client_Index.jsp">返回</a>
<hr color="#cccccc" size="1"> </td>
</tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#Eff2fb" bordercolorlight="#FFFFFF">
<tr align="center">
<td width="10%" height="24" bgcolor="#Eff2fb">日期</td>
<td width="19%" bgcolor="#Eff2fb">客户联系人</td>
<td width="22%" bgcolor="#Eff2fb">跟进内容</td>
<td width="36%" bgcolor="#Eff2fb">跟进结果</td>
<td width="13%" bgcolor="#Eff2fb">操作</td>
</tr>
<%
String nowPage="";
String str_where="";//设置查询条件,默认值为空
String footer="";
nowPage=request.getParameter("pages");//获取地址栏传过来的pages参数
if (nowPage==null||nowPage.equals("null"))
nowPage="0"; //将当前页的具体页号置为0
pagi.setPages(5); //设置分页的每页条数
ResultSet rs = pagi.setQuerysql("tb_follow",str_where,"Follow_Index.jsp",nowPage);
footer = pagi.PageFooter(); //读分页栏
try{
int tag=0;
if (pagi.intPageCount>0){
int i=0;
while (rs.next()){
i++;
if (i>((pagi.intPage-1)*pagi.intPageSize) &&(i<=pagi.intPage*pagi.intPageSize)){
tag=rs.getInt(1);
%>
<tr align="center" >
<td height="24" align="center"><%=rs.getDate(3)%></td>
<td height="24" align="center"><%=rs.getString(4)%></td>
<td height="24" align="center"><%=rs.getString(5)%></td>
<td height="24" align="center"><%=rs.getString(6)%></td>
<td height="24" align="center"><a href="Follow_Index_Del.jsp?tag=<%=tag%>&&id=<%=id%>" target="bottomFrame"><img src="../images/ico/a_delete.gif" width="52" height="16" border="0"></a></td>
</tr>
<%
}
}
}
rs.close();
} catch(Exception e){
out.println(e.getMessage());
}
out.print("</table>");
out.println("<table border=0 width='70%' cellspacing='0' cellpadding='0' align='center' bordercolorlight='#000000' bordercolordark='#FFFFFF'><tr><td colspan=4 align=center>"+footer+"</td></tr>");
try{
pagi.closeConn();
}catch(Exception e){
}
%>
</table>
</form>
</body>
</html>
上一篇:
folders.jsp
下一篇:
法律专业开题报告范文