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

📄 cust_list.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="com.saas.biz.custMgr.Custinfo" %>
<%@ page import="com.ahbay.commenMgr.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.util.*" %>
<%@ page import="tools.util.PageTools"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%@ page import="com.base.config.ProjectConfig"%>
<%
    HttpSession logsession = request.getSession();
		String cust_id = "";
		if (logsession.getAttribute("SESSION_CUST_ID") != null) 
		{
			cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
		}
	  ParamethodMgr comparList=new ParamethodMgr();
	  HashMap compMap=comparList.getCompareInfoByCode("CRM","cust_type");
    Custinfo custEntity=new Custinfo();
 
    String iStart ="0";
    if (request.getParameter("iStart") != null)
    {
        iStart = request.getParameter("iStart");
    }
    String cust_state="0";
    ArrayList custArray = custEntity.getCustListByState( Integer.parseInt(iStart),cust_state );
    int counter=custEntity.getCustStateNumber( cust_state );
    int pages=(int)counter/20 + 1;//分页数
	  int pageUp=0,pageDown=0;
	  int currenPage = Integer.valueOf(iStart).intValue();
		if( pages > currenPage )
		{
		 	if( currenPage > 0 )
		 	{
				pageUp = currenPage - 1;
			}
		  pageDown = currenPage + 1; 
		}
		else if( pages == currenPage )
		{
		 		pageUp = currenPage - 1;
		 		pageDown = currenPage;
		}
		 
%>


<html> 
	<head>
		<meta name="Generator" content ="Easy Struts Xslt generator for Eclipse (http://easystruts.sf.net).">
		<title>农业企业信息化服务平台</title>
		<link href="/style/css.css" rel="stylesheet" type="text/css">
		<style type="text/css">
			.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid;  background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px; margin-bottom:13px;}   /*横栏样式6---- 头部提醒1*/
			.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
			.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
			.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:12px;}  /*横栏样式1*/
			h1 {float:left;padding-left:8px; font-size:15px; font-weight:bold; padding-top:5px;}
		</style>
		<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
		<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
		<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
		<SCRIPT>
            WinLIKE.definewindows=mydefss;
            function mydefss() {
                
            	var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
            	j.Vis=false;
            	j.Nam='appwin';
            	WinLIKE.addwindow(j);
            };
</SCRIPT>
		
		
	</head>

<body>  
<div class="line6">
  <div class="img"><img src="/images/icon3_manager_rightbody.gif" /></div>
    <br/><br/><span class="title">您可以自定义以下客户的网页模板</span>
 </div>
<table width="727" border="0" cellpadding="2" cellspacing="1" align="center" bgcolor="#e7e7e7">
  <tr>    
    <td class="line1" style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:13px;" align="center" width="25%" align="center" width="35%">客户名称</td>
    <td style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:13px;" align="center" width="20%">公司网站</td> 
    <td style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:13px;" align="center" width="20%">联系电话</td> 
    <td style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:13px;" align="center" width="20%">电子邮件</td>
    <td style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:13px;" align="center" width="15%">修改模板</td>
  </tr>
<%
	if(custArray != null  && custArray.size()>0)
	{
	   
		  for (int i =0; i< custArray.size(); i++)
	    {
		    HashMap map=(HashMap)custArray.get(i);
		    cust_id="";
		    String cust_name="";
		    String cust_mail="";
		    String website="";
		    String group_contact_phone="";
   	    cust_id=map.get("cust_id").toString();
   	    cust_name=map.get("cust_name").toString();
   	    if(map.get("email")!=null)
   	    {
   	      cust_mail=map.get("email").toString();
   	    }
   	    if(map.get("website")!=null)
   	    {
   	      website=map.get("website").toString();
   	    }
   	    if(map.get("group_contact_phone")!=null)
   	    {
   	      group_contact_phone=map.get("group_contact_phone").toString();
   	    }
   %>
	 <tr style="background-color:#f9f9f9; " id="changcolor_tr<%=i%>" onmouseover="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#ffffff','DIV')" onmouseout="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#f9f9f9','DIV')">
	     <td style=" color:#000000;" align="left"><a href="/customerMgr/Custinfo.jsp?obj_cust_id=<%=cust_id%>&user_id=" TARGET=appwin onclick="mydefss()"><%=cust_name%></a></td>
	     <td style=" color:#000000;" align="center"><%=website%></td>
	     <td style=" color:#000000;" align="center"><%=group_contact_phone%></td>
	     <td style=" color:#000000;" align="center"><%=cust_mail%></td>
			 <td style=" color:#000000;" align="center">
			 	<a href="modifyRank.jsp?cust_id=<%=cust_id%>&cust_name=<%=cust_name%>" target="_self" >
			 		<img src="/img/edit.gif"  border="0"  width="16"  height="16">
			 	</a>
			 </td>
   </tr>
	<%
	 }	   
	%>
	   <tr>
			<td  align="left" colspan="2" style="font-weight:normal; padding:2px 5px;">共<%=counter%>条 &nbsp;第<%=Integer.parseInt(iStart)+1 %>页&nbsp;&nbsp;共<%=pages%>页</td>
			<td  align="right" colspan="3"  style=" padding:2px 5px;">
			<a href="userInfo.jsp?iStart=0" target="_self" >首页 </a>&nbsp; &nbsp;
			<% 
				if(Integer.parseInt(iStart)>0){
			%>
				<a href="userInfo.jsp?iStart=<%=pageUp%>"  target="_self" >上一页</a> &nbsp;
			<%
				}
				if(Integer.parseInt(iStart)<pages-1){
			%>
				<a href="userInfo.jsp?iStart=<%=pageDown%>"  target="_self" >下一页 </a>&nbsp; 
			<%
				}
			%>
			<a  href="userInfo.jsp?iStart=<%=pages-1%>"  target="_self" >尾页</a></td>

    </tr>
	   
	   
		<%
	}
   %>
    </table>
	<body>
</html>

⌨️ 快捷键说明

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