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

📄 includestocklist.jsp

📁 java阿里巴巴代码
💻 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.infoClassMgr.CalalogInfo" scope="page" />
<%
    String iStart = "1",class_id="";
	if (request.getParameter("iStart") != null) {
		iStart = request.getParameter("iStart");
	}
	if (request.getParameter("class_id") != null) {
		class_id = request.getParameter("class_id");
	}
	int counter = stock.getStockInfoByClassCount(class_id);
	ArrayList list=stock.getStockInfoByClassGroup(Integer.parseInt(iStart),5,class_id);
	String pageTools = tools.getGoogleToolsBar(counter,  "/zone_b2b/calalogList.jsp?type=4&stock=1&class_id="+class_id+"&iStart=", Integer.parseInt(iStart),5);
	String defaultImg="/zone_b2b/images/cp.gif";
	int size=0;
%>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
	<tr>
		<td width="134" height="32" align="center" background="/zone_b2b/images/sup_03.gif" class="bthong">
			&nbsp;&nbsp;求购信息列表
		</td>
		<td align="right" background="/zone_b2b/images/sup_04.gif">
			<img src="/zone_b2b/images/sup_08.gif" align="absmiddle">
			&nbsp;
		</td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" id="tbo0" width="740">
<tr>
	<td>
		<table width="740" border="0" cellpadding="0" cellspacing="1" bgcolor="FFC367" height="259" style="width: 699px; height: 259px;">
			<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">
								&nbsp;
							</td>
							<td width="37%" class="STYLE2" colspan="2">
								求购信息/公司
							</td>
							<td width="13%" class="STYLE2">
								所在地
							</td>
							<td width="17%" 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="737" border="0" align="center" cellpadding="0" cellspacing="0" height="203">
					    <%
					     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="",cust_name="";
					        if(map.get("title")!=null){title=map.get("title").toString();}
					        if(map.get("cust_name")!=null){cust_name=map.get("cust_name").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);
						      }
						    }
						    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 width="23%" height="130">
								<a href="/zone_b2b/stock/stockInquiry.jsp?stock_id=<%=stock_id%>" target="_blank" class="cpbt"><img  src="<%=file_path%>" width="100" height="100" alt="" /></a>
							</td>
							<td width="37%">
								<a href="/zone_b2b/stock/stockInquiry.jsp?stock_id=<%=stock_id%>" target="_blank" class="cpbt"><%=title%></a>
								<br><%=cust_name%>  <%=pub_date%>
								<br>
								<%=content%>
							</td>
							<td width="13%">
								<%=addr%>
							</td>
							<td width="17%">
								<a href="/zone_b2b/stock/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="s_size" id="s_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 + -