📄 search_maker.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.searchMaker(kk);
session.removeAttribute("kk");
%>
<%long page1 = 1;
if (request.getParameter("page1") != null)
page1 = Long.parseLong(request.getParameter("page1").trim());
long pagemax = 2;
long count;
pageBO pg = new pageBO();
count = pg.getMakerListCount();
Vector list2 = new Vector();
list2 = pg.getMakerList(page1, pagemax);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'search_maker.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>
<TR>
<TD>
<%@include file="top.inc"%>
</TD>
</TR>
</TABLE>
<TABLE>
<TR>
<TD>
<%@include file="love.inc"%>
</TD>
</TR>
</TABLE>
<BR>
<table width="850" border="0" cellspacing="0" cellpadding="0" height="88">
<tr>
<td align="center" height="67">
<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="764" border="0" cellspacing="1" cellpadding="0">
<tr align="center" bgcolor="E1D1B7">
<td height="25" align="center" colspan="7" width="758">
<b>厂商信息</b>
</td>
</tr>
<tr bgcolor="F6F2E6">
<td height="25" align="center" width="126">
<font color="#FF0000"> 厂商名称</font>
</td>
<td align="center" width="141">
<font color="#FF0000">总部地址</font>
</td>
<td align="center" width="87">
<font color="#FF0000">注册时间</font>
</td>
<td align="center" width="142">
<font color="#FF0000">注册地址</font>
</td>
<td align="center" width="76">
<font color="#FF0000">注册资金</font>
</td>
<td align="center" width="74">
<font color="#FF0000">法人姓名</font>
</td>
<td align="center" width="88">
<font color="#FF0000">详细信息</font>
</td>
</tr>
<%if (list != null) {
for (int i = 0; i < list.size(); i++) {
makerBean mk = new makerBean();
mk = (makerBean) list.elementAt(i);
%>
<tr bgcolor="F6F2E6" align="center">
<td height="25" width="126">
<p>
<a href="maker21.jsp?mkid=<%=mk.getMaker_id()%>" onMouseOver=" showtip2(this,event,'<%=mk.getMaker_name()%> 详细信息')" onMouseOut="hidetip2()"><%=mk.getMaker_name()%></a>
</p>
</td>
<td width="141">
<%=mk.getMaker_address()%>
</td>
<td width="87">
<%=mk.getMaker_Cr_time()
%>
</td>
<td width="142">
<%=mk.getMaker_Cr_address()
%>
</td>
<td width="76">
<%=mk.getMaker_Cr_cost()
%>
</td>
<td width="74">
<%=mk.getMaker_Fr_name()
%>
</td>
<td width="88">
<a href="makerinfo.jsp?mkid=<%=mk.getMaker_id()%>" target="_blank" onMouseOver="showtip2(this,event,'<%=mk.getMaker_name()%>的详细信息')" onMouseOut="hidetip2()">详细信息</a>
</td>
</tr>
<%}
}%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
</p>
<form method="post" action="search_maker.jsp">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr align="center" valign="top">
<td height="20">
<font face="宋体" size="2"><a href="search_maker.jsp?page1=1">首 页</a></font>
<%if (page1 >= 2) {%>
<font face="宋体" size="2"> <a href="search_maker.jsp?page1=<%=page1-1%>">上一页<img src="images/aleft.gif" width="18" height="16" border="0" align="absbottom"></a></font>
<%} else {%>
<font face="宋体" size="2">上一页</font>
<img src="images/top_close.gif" width="18" height="16" border="0" align="absbottom">
<%}%>
<font face="宋体" size="2"> 第<input type="text" name="page1" size="2" value="<%=page1%>" onkeydown="if(event.keyCode==13)this.form.submit()">页 <%if (page1 < (count / pagemax + 1)) {%> <font face="宋体" size="2"> <a
href="search_maker.jsp?page1=<%=(page1+1)%>"> <img src="images/top_open.gif" width="18" height="16" border="0" align="absbottom">下一页</a></font> <%} else {%><font face="宋体" size="2"><img src="images/aright.gif" width="18" height="16" border="0"
align="absbottom">下一页</font> <%}%> <font face="宋体" size="2"> <a href="guanli_maker.jsp?page1=<%=count/pagemax+1%>">最后一页</a> </font></font>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -