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

📄 search_product.jsp

📁 一个毕业设计网络招标系统实现了招标的业务逻辑内含了数据库sql server备份文件
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="C03.BO.*,C03.VO.*"%>
<%String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";

			%>
<%String kk = (String) session.getAttribute("kk");
			searchBO sb = new searchBO();
			Vector list = new Vector();
			list = sb.searchProduct(kk);
			session.removeAttribute("kk");

			%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'search_product.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
		<script>
if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){

if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
document.all.tooltip2.style.visibility="visible"
}

else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}

function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}

</script>
	//	<div id="tooltip2" style="position:absolute;clip:rect(0 150 50 0);width:150px;background-color:#99FF99; top: 31px; left: 103px; visibility: hidden; height: 13px">
		</div>
	</head>

	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><iframe  height=0></iframe>
		<center>
			<table width="850" border="0" cellspacing="0" cellpadding="0" height="103">

				<tr>
					<td width="850" height="112" valign="top" colspan="2">
						<a href="index.jsp"> <%@include file="top.inc"%> </a>
					</td>
				</tr>
			</table>
			<TABLE>
				<TR>
					<TD>
						<%@include file="love.inc"%>
					</TD>
				</TR>
			</TABLE>
			<table width="850">
				<tr>
					<td colspan="2" align="center">
						<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
							<tr bgcolor="0092B8">
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF">
										<tr align="center">
											<td>
												<table width="100%" border="0" cellspacing="1" cellpadding="0">
													<tr align="center" bgcolor="E1D1B7">
														<td height="25" align="center" colspan="13">
															<b><a href="product1.jsp">查询到的产品信息</a></b>
														</td>
													</tr>
													<tr bgcolor="F6F2E6" align="center">
														<td height="25" width="15%" align="left">
															<p>
																产品信息
															</p>
														</td>
														<td colspan="4" align="left">
															<%if (list != null) {
				for (int i = 0; i < list.size(); i++) {
					productBean pd = new productBean();
					pd = (productBean) list.get(i);
%>

															<%=i + 1%>
														:<a href="product2.jsp?pdid=<%=pd.getProduct_id()%>" onMouseOver=" showtip2(this,event,'<%=pd.getProduct_name()%> 的详细信息')" onMouseOut="hidetip2()"><%=pd.getProduct_name()%> </a>
															<br>
															<br>
															<%}
			}

		%>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
	</body>
</html>

⌨️ 快捷键说明

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