📄 stockorderlist.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<jsp:useBean id="tools" class="com.saas.biz.commen.PageTools" scope="page" />
<jsp:useBean id="stock" class="com.saas.biz.stockorderMgr.StockInfo" scope="page" />
<%
String iStart = "1";
if (request.getParameter("page") != null) {
iStart = request.getParameter("page");
}
int counter = stock.getNewStockInfoByCount();
ArrayList list=stock.getNewStockInfoByList(Integer.parseInt(iStart),5);
String pageTools = tools.getGoogleToolsBar(counter, "stock_List.jsp?sys_code=1&page=", Integer.parseInt(iStart),5);
String defaultImg="/zone_b2b/images/cp.gif";
int size=0;
%>
<table border="0" cellpadding="0" cellspacing="0" id="tbo0" align="top">
<tr style="width: 100%">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFC367">
<tr>
<td height="255" valign="top" bgcolor="FFFFFF">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="23%" height="30">
</td>
<td width="37%" class="STYLE2">
求购信息/公司
</td>
<td width="13%" class="STYLE2">
所在地
</td>
<td width="16%" class="STYLE2">
留言/联系
</td>
</tr>
<tr>
<td height="1" class="xian"></td>
<td class="xian"></td>
<td class="xian"></td>
<td class="xian"></td>
<td class="xian"></td>
</tr>
</table>
<table width="723" border="0" align="center" cellpadding="0" cellspacing="0">
<%
if(list !=null && list.size()>0){
size=list.size();
for(int i=0;i<list.size();i++){
HashMap map=(HashMap)list.get(i);
String stock_id=map.get("stock_id").toString();
String title="",pub_date="",content="",addr="",date="",cust_name="";
if(map.get("title")!=null){title=map.get("title").toString();}
if(map.get("stock_addr")!=null){addr=map.get("stock_addr").toString();}
if(map.get("content") !=null)
{
content=map.get("content").toString();
content=content.replaceAll("<[^<>]+>","");
if(content.length()>40)
{
content=content.substring(0,40)+"...";
}
}
if(map.get("publish_date")!=null){
pub_date=map.get("publish_date").toString();
if(pub_date.length()>10){
pub_date=pub_date.substring(0,10);
}
}
if(map.get("cust_name")!=null){cust_name=map.get("cust_name").toString();}
String file_path="";
if(map.get("file_path")!=null){
file_path=map.get("file_path").toString();
file_path=file_path.substring(23);
}else{
file_path=defaultImg;
}
%>
<tr>
<td height="30" width="28">
</td>
<td height="130" width="100">
<img name="" src="<%=file_path%>" width="100" height="100" alt="" />
</td>
<td align="left" width="280">
<a href="stockInquiry.jsp?stock_id=<%=stock_id%>" target="_blank" class="cpbt"><%=title%></a>
<br><%=cust_name%> <%=pub_date%>
<br>
<%=content%>
</td>
<td align="center" width="94">
<%=addr%>
</td>
<td width="116">
<a href="stockInquiry.jsp?stock_id=<%=stock_id%>"><img src="/zone_b2b/images/zx.gif" border="0" width="75" height="21" alt="点击报价"></a>
</td>
</tr>
<%}
}%>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10">
<input type="hidden" name="n_size" id="n_size" value=<%=size%>>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="E3E3E3">
<tr>
<td height="32" align="center" background="/zone_b2b/images/btt1.gif">
<%=pageTools%>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -