📄 custmainindex.jsp
字号:
<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="24%"> <span class="biaoti">客户名称</span></td>
<td width="60%" class="table_left_right_xian"> <span class="biaoti">标题</span></td>
<td width="16%" align="center"><span class="biaoti">更新日期</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">
<%
String own_id="",title="",content="",publish_date="",cust_name="",entity_id="";
if(custActionList!=null && custActionList.size()>0){
for(int i = 0;i<custActionList.size();i++){
HashMap custActionMap = (HashMap)custActionList.get(i);
if(custActionMap.get("publish_date")!=null){publish_date=custActionMap.get("publish_date").toString().substring(0,10);}
if(custActionMap.get("content")!=null){content=custActionMap.get("content").toString();}
if(custActionMap.get("title")!=null){
title=custActionMap.get("title").toString();
if(title.length()>25){
title = title.substring(0,25)+"...";
}
}
if(custActionMap.get("entity_id")!=null){entity_id=custActionMap.get("entity_id").toString();}
if(custActionMap.get("own_id")!=null){
own_id=custActionMap.get("own_id").toString();
cust_name = custInfo.getCustNameById(own_id);
}
%>
<tr>
<td width="24%">
<span class="list_news">
<a href="/customerMgr/Custinfo.jsp?obj_cust_id=<%=own_id %>" TARGET=appwin onclick="mydefss()" title="点击查看客户详细资料">
<%=cust_name %>
</a>
</span>
</td>
<td width="60%" bgcolor="F9F9F9" class="table_left_right_xian"> <span class="list_news">
<a href="/actionMgr/disAction.jsp?entity_id=<%=entity_id %>" TARGET=appwin onclick="mydefss()" title="点击查看客户动态内容">
<%=title %>
</a></span>
</td>
<td width="16%" align="center"><%=publish_date %></td>
</tr>
<%
}
}
%>
</table>
<!--重复//-->
</td>
</tr>
</table></td>
</tr>
</table>
<!--最新联系人动态-->
<%
ArrayList custConList = action.getNewAction(cust_id,"0");
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="chag4" 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="18%"> <span class="biaoti">联系人</span></td>
<td width="66%" class="table_left_right_xian"> <span class="biaoti">标题</span></td>
<td width="16%" align="center"><span class="biaoti">更新日期</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(custConList!=null && custConList.size()>0){
String own_id1="",title1="",content1="",publish_date1="",cust_name1="",entity_id1="";
for(int i = 0;i<custConList.size();i++){
HashMap custConMap = (HashMap)custConList.get(i);
if(custConMap.get("publish_date")!=null){publish_date1=custConMap.get("publish_date").toString().substring(0,10);}
if(custConMap.get("content")!=null){content1=custConMap.get("content").toString();}
if(custConMap.get("title")!=null){
title1=custConMap.get("title").toString();
if(title1.length()>25){
title1 = title1.substring(0,25)+"...";
}
}
if(custConMap.get("entity_id")!=null){entity_id1=custConMap.get("entity_id").toString();}
if(custConMap.get("own_id")!=null){
own_id1=custConMap.get("own_id").toString();
cust_name1 = custConMap.get("rsrv_str10").toString();//custInfo.getCustNameById(own_id1);
}
%>
<tr>
<td width="18%">
<span class="list_news"><a href="/customerMgr/Custinfo.jsp?obj_cust_id=<%=own_id1 %>" TARGET=appwin onclick="mydefss()" title="点击查看联系人详细资料"><%=cust_name1 %></a>
</span>
</td>
<td width="66%" bgcolor="F9F9F9" class="table_left_right_xian"> <span class="list_news">
<a href="/actionMgr/disAction.jsp?entity_id=<%=entity_id1 %>" TARGET=appwin onclick="mydefss()" title="点击查看联系人动态内容">
<%=title1 %>
</a>
</td>
<td width="16%" align="center"><%=publish_date1 %></td>
</tr>
<%
}
}
%>
</table>
<!--重复//-->
</td>
</tr>
</table></td>
</tr>
</table>
<!--最新竞争情报-->
<%
ArrayList custOppList = action.getNewAction(cust_id,"2");
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="chag5" 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="24%"> <span class="biaoti">竞争对手</span></td>
<td width="60%" class="table_left_right_xian"> <span class="biaoti">标题</span></td>
<td width="16%" align="center"><span class="biaoti">更新日期</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">
<%
String own_id2="",title2="",content2="",publish_date2="",cust_name2="",entity_id2="";
if(custOppList!=null && custOppList.size()>0){
for(int i = 0;i<custOppList.size();i++){
HashMap custOppMap = (HashMap)custOppList.get(i);
if(custOppMap.get("publish_date")!=null){publish_date2=custOppMap.get("publish_date").toString().substring(0,10);}
if(custOppMap.get("content")!=null){content2=custOppMap.get("content").toString();}
if(custOppMap.get("title")!=null){
title2=custOppMap.get("title").toString();
if(title2.length()>25){
title2 = title2.substring(0,25)+"...";
}
}
if(custOppMap.get("entity_id")!=null){entity_id2=custOppMap.get("entity_id").toString();}
if(custOppMap.get("own_id")!=null){
own_id2=custOppMap.get("own_id").toString();
cust_name2 = custInfo.getCustNameById(own_id2);
}
%>
<tr>
<td width="24%">
<span class="list_news">
<a href="/customerMgr/Custinfo.jsp?obj_cust_id=<%=own_id2 %>" TARGET=appwin onclick="mydefss()" title="点击查看竞争对手详细资料">
<%=cust_name2 %>
</a>
</span>
</td>
<td width="60%" bgcolor="F9F9F9" class="table_left_right_xian"> <span class="list_news">
<a href="/actionMgr/disAction.jsp?entity_id=<%=entity_id2 %>" TARGET=appwin onclick="mydefss()" title="点击查看竞争情报内容">
<%=title2 %>
</a></span></td>
<td width="16%" align="center"><%=publish_date2 %></td>
</tr>
<%
}
}
%>
</table>
<!--重复//-->
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -