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

📄 custnewsindex.jsp

📁 java阿里巴巴代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="com.saas.biz.custMgr.Custinfo"%>
<%@ page import="com.saas.biz.actionMgr.ActionMgr"%>
<%@ page import="com.saas.biz.relationUuMgr.RelationUUInfo"%>
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<%@ page contentType="text/html;charset=GBK"%>

<html>
<head>
<title></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="/css/tablecss.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--选项开始-->
<!--一、JavaScript部分-->
<SCRIPT>
		var aId=1;//当前
		function clickT(obj,sId){
			if(obj.className=="loginButton"){
				obj.className="loginCurrent";
				document.getElementById("item"+aId).className="loginButton";
				document.getElementById("chag"+aId).style.display="none";
				document.getElementById("chag"+sId).style.display="block";
				aId=sId;
			}
		}
	</SCRIPT>
	<!--HTML部分-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="655"><table width="440" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="2"><img src="/images/ti_03.gif" width="2" height="33"></td>
        <td align="center" background="/images/ti_04.gif" class="loginCurrent" id="item1" onmouseover="clickT(this,1)" style="padding-top:2"><span class="biaoti">最新联系人</span></td>
        <td width="2" align="center" background="/images/ti_04.gif"><span class="biaoti"><img src="/images/ti_06.gif" width="2" height="33" align="absmiddle"></span></td>
        <!--  
        <td align="center" background="/images/ti_04.gif" class="loginButton" id="item2" onmouseover="clickT(this,2)" style="padding-top:2"><span class="biaoti">最新竞争对手</span></td>
        <td width="2" align="center" background="/images/ti_04.gif"><span class="biaoti"><img src="/images/ti_06.gif" width="2" height="33" align="absmiddle"></span></td>
        -->
        <td align="center" background="/images/ti_04.gif" class="loginButton" id="item3" onmouseover="clickT(this,3)" style="padding-top:2"><span class="biaoti">最新客户动态</span></td>
        <td align="center" background="/images/ti_04.gif"><span class="biaoti"><img src="/images/ti_06.gif" width="2" height="33" align="absmiddle"></span></td>
        <td align="center" background="/images/ti_04.gif" class="loginButton" id="item4" onmouseover="clickT(this,4)" style="padding-top:2"><span class="biaoti">最新联系人动态</span></td>
        <!--  
        <td align="center" background="/images/ti_04.gif"><span class="biaoti"><img src="/images/ti_06.gif" width="2" height="33" align="absmiddle"></span></td>
        <td align="center" background="/images/ti_04.gif" class="loginButton" id="item5" onmouseover="clickT(this,5)" style="padding-top:2"><span class="biaoti">最新竞争情报</span></td>
        -->
        <td width="2"><img src="/images/ti_08.gif" width="2" height="33"></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="2" background="/images/kehu_list_03.gif" height="8"></td>
    <td width="704" background="/images/kehu_list_04.gif" height="8"></td>
    <td width="2" background="/images/kehu_list_06.gif" height="8"></td>
  </tr>
</table>

<!--最新客户-->
<% 
	HttpSession logsession = request.getSession();
	String cust_id = "";
	String user_id = "";
	if (logsession.getAttribute("SESSION_USER_ID") != null)
    {
        user_id = logsession.getAttribute("SESSION_USER_ID").toString();
    }
	if (logsession.getAttribute("SESSION_CUST_ID") != null) {
		cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
	}
	Custinfo custInfo = new Custinfo();
	ArrayList custList = custInfo.getIncludeJspByCustId(cust_id,"1");
	
	RelationUUInfo relation=new RelationUUInfo();
    ArrayList relationList =new ArrayList();
    relationList=relation.getNewContactList(user_id,"1");
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="chag1">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" background="/images/xi_06.gif"><table width="100%" border="0" cellspacing="0" cellpadding="3" >
            <tr>
              <td width="40%">
              		&nbsp;<span class="biaoti">联系人姓名</span>
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		<span class="list_news"><a href="/contactMgr/modify_index.jsp" TARGET=appwin onclick="mydefss()" title="点击查看所有客户">更多&gt;&gt;</a></span>
              </td>
              <td width="20%" align="center" class="table_left_right_xian"><span class="biaoti">联系电话</span></td>
              <td width="16%" align="center"><span class="biaoti">新增日期</span></td>
              <td width="24%" align="center" class="table_left_right_xian"><span class="biaoti"> Email</span></td>
            </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="E8E8E8">
        <tr>
          <td valign="top" bgcolor="#FFFFFF"><!--//重复-->
              <table width="100%" border="0" cellspacing="0" cellpadding="3" class="table_xian">
                <% 
			  	if(relationList!=null && relationList.size()>0){
			  		for(int i = 0;i<relationList.size();i++){
			  			HashMap contactMap = (HashMap)relationList.get(i);
				        String cust_name="";
				        String contact_phone="";
				        String email="";
				        String home_addr="";
				        String obj_cust_id="",start_date="";
				        String user="";
				        if(contactMap.get("cust_name") != null){cust_name=contactMap.get("cust_name").toString();}
				        if(contactMap.get("cust_id") != null){cust_id=contactMap.get("cust_id").toString();}
				        if(contactMap.get("user_id") != null){user=contactMap.get("user_id").toString();}
				        if(contactMap.get("start_date") != null){
				           start_date=contactMap.get("start_date").toString().substring(0,10);
				        }
				        if(contactMap.get("phone") != null){
				        	contact_phone=contactMap.get("phone").toString();
				        }
				        if(contact_phone.equals("")){
				        	contact_phone="暂无!";
				        }
				        if(contactMap.get("email") != null){email=contactMap.get("email").toString();}
				        if(email.equals("")){
				        	email="暂无!";
				        }
				        if(contactMap.get("home_addr") != null){home_addr=contactMap.get("home_addr").toString();}
				        if(home_addr.equals("")){
				        	home_addr="暂无!";
				        }
			  %>
                <tr>
                  <td width="40%">&nbsp;<span class="list_news"><a href="/contactMgr/modifyUserInfo.jsp?cust_id=<%=obj_cust_id%>&user_id=<%=user%>&view=view" TARGET=appwin onclick="mydefss()" title="点击查看联系详细资料"><%=cust_name %></a></span></td>
                  <td width="20%" align="center" bgcolor="F9F9F9" class="table_left_right_xian"><%=contact_phone %></td>
                  <td width="16%" align="center"><%=start_date %></td>
                  <td width="24%" align="center" bgcolor="F9F9F9" class="table_left_right_xian">
                  	<span  class="shanchu">
                  		<% 
                  			if(email!="暂无!"){
                  				
                  		%>
                  			<a href=mailto:<%=email %>  title="点击发送邮件">
                  		<%	
                  			}
                  		%>
                  		
                  			<%=email %>
                  		<% 
                  			if(email!="暂无!"){
                  		%>
                  			</a>
                  		<%	
                  			}
                  		%>	
                  		
                  	</span>
                  </td>
                </tr>
                <%
			  		}
			  	}
			  %>   
              </table>
            <!--重复//-->
          </td>
        </tr>
      </table></td>
  </tr>
</table>

<!--最新竞争对手-->
<% 
	ArrayList custNewOppList = custInfo.getIncludeJspByCustId(cust_id,"2");
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="chag2" style="display: none">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" background="/images/xi_06.gif"><table width="100%" border="0" cellspacing="0" cellpadding="3" >
            <tr>
              <td width="40%">&nbsp;<span class="biaoti">竞争对手名称</span>
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              		<span class="list_news"><a href="/opponentMgr/indexList.jsp" TARGET=appwin onclick="mydefss()" title="点击查看所有竞争对手">更多&gt;&gt;</a></span>
              </td>
              <td width="20%" align="center" class="table_left_right_xian"><span class="biaoti">联系电话</span></td>
              <td width="16%" align="center"><span class="biaoti">建立日期</span></td>
              <td width="24%" align="center" class="table_left_right_xian"><span class="biaoti"> Email</span></td>
            </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="E8E8E8">

⌨️ 快捷键说明

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