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

📄 stockinquiry.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<jsp:useBean id="stock" class="com.saas.biz.stockorderMgr.StockInfo" scope="page" />
<jsp:useBean id="cust" class="com.saas.biz.custMgr.Custinfo" scope="page" />
<jsp:useBean id="level" class="com.saas.biz.custMgr.CustClass" scope="page" />
<%
  String stock_id="",cust_name="",title="",addr="",content="",
  publish_date="",end_date="",s_id="";
  if(request.getParameter("stock_id")!=null){
    stock_id=request.getParameter("stock_id");
  }
  HashMap map=stock.getStockInfoById(stock_id);
  HttpSession  logsession = request.getSession(); 
   if(map.get("cust_id")!=null){
    String sale_unit=map.get("cust_id").toString();
    ArrayList list=cust.genSpecCustInfo(sale_unit);
    if(list!=null && list.size()>0){
      HashMap customer=(HashMap)list.get(0);
      if(customer.get("cust_name")!=null){
        cust_name=customer.get("cust_name").toString();
      }
    }
   }
   if(logsession.getAttribute("SESSION_USER_ID")==null){
      cust_name="登录后可见";
   }else{
      s_id=(String)logsession.getAttribute("SESSION_USER_ID");
   }
  if(map.get("title")!=null){title=map.get("title").toString();}
  if(map.get("sale_addr")!=null){addr=map.get("sale_addr").toString();}
  if(map.get("content") !=null){content=map.get("content").toString();}
  if(map.get("publish_date")!=null){
      publish_date=map.get("publish_date").toString();
      if(publish_date.length()>10){
        publish_date=publish_date.substring(0,10);
      }
    }
  if(map.get("end_date")!=null){
      end_date=map.get("end_date").toString();
      if(end_date.length()>10){
        end_date=end_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="/zone_b2b/images/cp.gif";;
	}
    String sale_unit="",cust_class="";
	if(map.get("sale_unit")!=null){
	     sale_unit=map.get("sale_unit").toString();
	     cust_class=level.cust_Class_Name(sale_unit);
	}
%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
	<title>求购详细信息</title>
	
	<script type="text/javascript" src="/js/prototype.js"></script>
	<script type="text/javascript" src="/zone_b2b/supply/inquiry.js"></script>
	
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
	}
	#login{
     position: relative;
     display: none;
         top: 20px;
         left: 30px;
         background-color: #ffffff;
         text-align: center;
         border: solid 1px;
         padding: 10px;
         z-index: 1;
   }
	-->
	</style>
	<link href="/zone_b2b/css/css.css" rel="stylesheet" type="text/css" />
	
</head>

<body>
   <jsp:include flush="true" page="/zone_b2b/top.html"/>
	<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td height="20"></td>
		</tr>
	</table>
	<table width="980" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="DCDCDC">
		<tr>
			<td height="29" background="/zone_b2b/images/Content_03.gif" bgcolor="#FFFFFF">
				&nbsp;&nbsp;您当前位置: <a href="/zone_b2b/">首页</a> <img src="/zone_b2b/images/lujian.gif" border="0"> <a href="/zone_b2b/stock/">求购信息</a> / 查看求购信息 
			</td>
		</tr>
	</table>
	<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td height="20"></td>
		</tr>
	</table>
	<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="740" valign="top">

				<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">
							求购信息
						</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 width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="FFC367">
					<tr>
						<td height="255" valign="top" bgcolor="FFFFFF">
							<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
								<tr>
									<td width="47%" align="center">
										<table width="100%" border="0" cellspacing="0" cellpadding="5">
											<tr>
												<td align="center">
													<img src="<%=file_path%>" width="270" height="246" border="0">
												</td>
											</tr>
											<tr>
												<td align="center">
												</td>
											</tr>
										</table>
									</td>
									<td width="53%" valign="top">
										<table width="100%" border="0" cellspacing="0" cellpadding="2">
											<tr>
												<td width="20%">
													公 司 名:
												</td>
												<td width="80%">
													<%=cust_name%>
												</td>
											</tr>
											<tr>
												<td>
													经营模式:
												</td>
												<td>
													生产型 贸易型
												</td>
											</tr>
											<tr>
												<td colspan="2">
													<table width="86%" border="0" cellpadding="5" cellspacing="1" bgcolor="FFC367">
														<tr>
															<td bgcolor="FFF8EE">
																<div style=" height:30;">
																	<img src="/zone_b2b/images/jingao.gif" width="10" height="13">
																	<%if(s_id!=null && !s_id.equals("")){
																	 out.print("该信息由 "+cust_class+" 发布!");
																	}else{%>
																	该信息由 <%=cust_class%> 发布,请 <a href="javascript:openWindow();">登录</a> 后可报价
																	<%}%>
																</div>
																<div>
																<%
																  if(s_id!=null && !s_id.equals("")){
																%>
																	<a href="sendInquiryInfo.jsp?stock_id=<%=stock_id%>" target="_self"><img src="/zone_b2b/images/baojia.gif" width="118" height="34" border="0" alt="点此报价"></a>
																<%}else{%>
																 <a href="javascript:openWindow();"><img src="/zone_b2b/images/baojia.gif" width="118" height="34" border="0" alt="点此报价"></a>
																<%}%>
																</div>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td>
													所 在 地:
												</td>
												<td>
													<%=addr%>
												</td>
											</tr>
											<tr>
												<td>
													发布日期:
												</td>
												<td>
													<%=publish_date%>
												</td>
											</tr>
											<tr>
												<td>
													有 效 期:
												</td>
												<td>
													<%=end_date%>
												</td>
											</tr>
											 <form action="/doTradeReg.do" name="loginForm" method="post" target="_self">
											<div id="login">
											  <span>用户登录</span>
											   <div id="panel">
												   用户名:<input type="text" name="user_name"  id="user_name" size="20" />
												   <br>密&nbsp;&nbsp;码:<input type="password" name="passwd" id="passwd" size="20">
											   </div>
											   <input type="hidden" name="trade_type_code" id="trade_type_code" value="1304">
											   <input type="submit" value="登录" onclick=" return checkLogin()" />
											   <a href="javascript:close();" style="color:red">取消</a>  
											</div>
											</form>
										</table>
										<table width="100%" border="0" cellspacing="1" cellpadding="0">
											<tr>
												<td height="1" class="xian"></td>
											</tr>
											<tr>
												<td height="30">
													
												</td>
											</tr>
											<tr>
												<td height="1" class="xian"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
							<table width="100%" border="0" cellspacing="1" cellpadding="0">
								<tr>
									<td>
										&nbsp;
									</td>
								</tr>
							</table>
							<table width="95%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="E1E1E1">
								<tr>
									<td width="19%" bgcolor="F2F2F2">
										<span class="STYLE1"><strong>详细信息</strong>
										</span>
										<br>
										<br>
									</td>
									<td width="81%" align="right" bgcolor="F2F2F2">
									<%
									  if(s_id!=null && !s_id.equals("")){
									%>
										<a href="sendInquiryInfo.jsp?stock_id=<%=stock_id%>" target="_self"><img src="/zone_b2b/images/zx.gif" width="75" height="21" border="0">
										</a>&nbsp;
									<%}else{ %>
									<a href="javascript:openWindow();"><img src="/zone_b2b/images/zx.gif" width="75" height="21" border="0">
										</a>&nbsp;
									<%}%>
									</td>
								</tr>
								<tr>
									<td align="right" bgcolor="F2F2F2">
										<strong>供应标题:</strong>
									</td>
									<td bgcolor="#FFFFFF">
										<%=title%>
									</td>
								</tr>
								<tr>
									<td align="right" bgcolor="F2F2F2">
										<strong>详细说明:</strong>
									</td>
									<td bgcolor="#FFFFFF">
										<%=content%>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td valign="top">
				&nbsp;
			</td>
			<td width="228" valign="top">
				<jsp:include flush="true" page="/zone_b2b/supply/sale_right.jsp"/>
			</td>
		</tr>
	</table>
	<jsp:include flush="true" page="/zone_b2b/footer.jsp" />
	<script language="javascript">
	function ResizeImages()
	{
	   var myimg,oldwidth;
	   var maxwidth=600;
	   for(i=0;i<document.images.length;i++){
	     myimg = document.images[i];
	     if(myimg.width > maxwidth)
	     {
	        oldwidth = myimg.width;
	        myimg.style.width = maxwidth;
	        myimg.style.height = "auto";
	     }
	   }
	}
	ResizeImages();
   </script>
</body>
</html>

⌨️ 快捷键说明

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