?? receivestocklist.jsp
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.enquirytrackMgr.EnquirytrackInfo"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%@ page contentType="text/html;charset=GBK"%>
<%
HttpSession logsession = request.getSession();
String user_id = "";
String iStart ="0";
String meun_idx="";
if (request.getParameter("iStart") != null)
{
iStart = request.getParameter("iStart");
}
if (logsession.getAttribute("SESSION_USER_ID") != null)
{
user_id = logsession.getAttribute("SESSION_USER_ID").toString();
}
if (request.getParameter("menu_id") != null)
{
meun_idx = request.getParameter("menu_id");
logsession.setAttribute("menu_id",meun_idx);
}
if( logsession.getAttribute("menu_id")!= null)
{
meun_idx=(String)logsession.getAttribute("menu_id");
}
EnquirytrackInfo enquiryObj=new EnquirytrackInfo();
ArrayList newsList = enquiryObj.getStockListByUser(Integer.valueOf(iStart).intValue(),user_id);
// ParamethodMgr paramObj=new ParamethodMgr();
//HashMap typeMap=paramObj.getCompareInfoByCode("CRM","news_type");
int counter=enquiryObj.getStockNumberByUser(user_id);
int pages=counter/30+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>
<title>電子商務(wù)</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;} /*橫欄樣式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*/
</style>
</head>
<body>
<%
if(newsList == null || newsList.size()<1)
{
%>
<div class="line6">
<div class="img"><img src="/images/icon3_manager_rightbody.gif" /></div>
<span class="title">您暫時還沒有收到任何采購留言!</span><br />
</div>
<%
}
%>
<table width="727" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="13"></td>
</tr>
<tr>
<td>
<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%">采購主題</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="30%">留言內(nèi)容</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">留言人</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">留言時間</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">處理狀態(tài)</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%" >處理</td>
</tr>
<%
if(newsList != null && newsList.size()>0)
{ int i=0;
for (Iterator it = newsList.iterator(); it.hasNext();)
{
HashMap map = (HashMap) it.next();
String trade_id=map.get("trade_id").toString();
String title="";
String user_name="";
String enquiry_content="";
String enquiry_date="";
String deal_tag="";
if(map.get("title")!=null)
{
title=map.get("title").toString();
}
if(map.get("user_name")!=null)
{
user_name=map.get("user_name").toString();
}
if(map.get("enquiry_content")!=null)
{
enquiry_content=map.get("enquiry_content").toString();
if(enquiry_content.length()>30)
{
enquiry_content=enquiry_content.substring(0,30)+"...";
}
}
if(map.get("enquiry_date")!=null)
{
enquiry_date=map.get("enquiry_date").toString();
if(enquiry_date.length()>10)
{
enquiry_date=enquiry_date.substring(0,10);
}
}
if(map.get("deal_tag")!=null)
{
deal_tag=map.get("deal_tag").toString();
deal_tag=deal_tag.equals("0")?"未處理":"已處理";
}
%>
<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><%=title%></td>
<td style=" color:#000000;" align=left><%=enquiry_content%></td>
<td style=" color:#000000;" align=left><%=user_name%></td>
<td style=" color:#000000;" align=left><%=enquiry_date%></td>
<td style=" color:#000000;" align=left><%=deal_tag%></td>
<td style=" color:#000000;" align=center><a href=trackLevelInfo.jsp?trade_id=<%=trade_id%> target=blank><img src=/img/del.gif width=16 height=16 border=0></a></td>
</tr>
<%i++;
}
%>
<tr>
<td align="left" colspan="2" class="line1" style="font-weight:normal;">共<%=counter%>條 共<%=pages%>頁</td>
<td align="left" colspan="3"><a href="receivStockIndex.jsp?iStart=0&meun_id=<%=meun_idx%>">首頁 </a> <a href="receivStockIndex.jsp?iStart=<%=pageUp%>&meun_id=<%=meun_idx%>">上一頁</a> <a href="receivStockIndex.jsp?iStart=<%=pageDown%>&meun_id=<%=meun_idx%>">下一頁 </a> <a href="receivStockIndex.jsp?iStart=<%=pages%>&meun_id=<%=meun_idx%>">尾頁</a></td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td height="13"></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -