📄 s2earchresult.jsp
字号:
table=(Hashtable)list.get(i);
String username="",orderID="",addDay="",totalPrice="",consignment="";
username=table.get("username".toUpperCase()).toString();
orderID=table.get("orderID".toUpperCase()).toString();
addDay=table.get("addDay".toUpperCase()).toString();
totalPrice=table.get("totalPrice".toUpperCase()).toString();
consignment=table.get("consignment".toUpperCase()).toString();
%>
<a href="<%=request.getContextPath()%>/clientShowOneOrderListAction?orderID=<%=orderID%>" target="_blank"><font color="" size="2"><%=username%>?ú<%=addDay.substring(0,addDay.indexOf("<br>"))%>??μ???μ¥ò?·¢??</font></a><br>
<%
}
}
%>
</marquee>
</td>
</tr>
</table>
</td>
<td valign="top" width="546" >
<form action="print.jsp" name="form1" method="post" >
<table width=554 vspace="-7"> <tr>
<td height="13" colspan="5" align="right" background="<%=request.getContextPath()%>/image/top01_3.gif" bgColor=#e8eae9>
<% int dirPage=4;
int startPage=1;
int pageNumber=1;
if(session.getAttribute("pageNumber".toUpperCase())!=null){
pageNumber=Integer.parseInt(session.getAttribute("pageNumber".toUpperCase()).toString());
startPage=1+pageNumber-pageNumber%dirPage;
if(session.getAttribute("pages".toUpperCase()).toString().equals("0"))pageNumber=0;
out.print("<b><span class=\"index\">μú"+pageNumber+"ò3</span></b>/");
out.print("<span class=\"index\">12"+session.getAttribute("pages".toUpperCase()).toString()+"ò3 </span>");
if(pageNumber!=1){
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber=1\">μú1ò3</a>|</span>");
}else{
out.print("<span class=\"index\">|μú1ò3|</span>");
}
if(startPage!=1){
int prePageNumber=startPage-4;
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+prePageNumber+"\">é?ò3</a>|--</span>");
}else {
out.print("<span class=\"index\">|é?ò3| </span>");
}
}
if(session.getAttribute("pages".toUpperCase())!=null){
int pages=Integer.parseInt(session.getAttribute("pages".toUpperCase()).toString());
for(int i=startPage;i<startPage+dirPage&&i<=pages;i++){
if(i!=pageNumber)
out.print("<span class=\"aindex\"><a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+i+"\">"+i+"</a></span> ");
else out.print("<span class=\"currentindex\"><a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+i+"\"><span class=\"currentindex\">"+i+"</span></a></span> ");
}
if(startPage/4<(pages-1)/4){
int nextPageNumber=startPage+4;
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+pages+"\">×?oó1ò3</a>|</span>");
}else {
out.print("<span class=\"index\"> |??ò3|</span>");
}
if(pageNumber!=pages&&pageNumber<pages){
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+pages+"\">×?oó1ò3</a>|</span>");
}else{
out.print("<span class=\"index\">|×?oó1ò3|</span>");
}
}
%>
<span class="index">μ?μú<input type="text" size=4 name="pageNumber">ò3
<input name="go" type="button" onClick="javascript:checkPageNumber()" value="??ê?" title="μ????¨μ?ò3??">
</span>
</td>
</tr>
</table>
<%
list=(ArrayList)(session.getAttribute("searchResult".toUpperCase()));
if(list!=null){
for(int i=0;i<list.size();i++){
table=(Hashtable)list.get(i);
card=table.get("card".toUpperCase()).toString();
num=table.get("num".toUpperCase()).toString();
model=table.get("model".toUpperCase()).toString();
photo=table.get("photo".toUpperCase()).toString();
net=table.get("net".toUpperCase()).toString();
price=table.get("price".toUpperCase()).toString();
price=price.substring(0,price.indexOf("."));
special=table.get("special".toUpperCase()).toString();
picture=request.getContextPath()+"/image/phone/"+card+"/"+num+"/"+table.get("picture".toUpperCase()).toString();
describe=table.get("describe".toUpperCase()).toString();
id=Integer.parseInt(table.get("id".toUpperCase()).toString());
restNum=table.get("restNum".toUpperCase()).toString();
%>
<TABLE cellSpacing=1 cellPadding=0 width=554 bgColor=#6a6967
border=0>
<TBODY>
<TR vAlign=bottom>
<TD bgColor=#c8cccf colSpan=3 height=20><input type="checkbox" name="id" value="<%=id%>"> <A
href="<%=request.getContextPath()%>/clientShowOneCommodityAction?id=<%=id%>"
target=_blank><%=card%> <%=num%></A></SPAN></B></TD></TR>
<TR align=middle>
<TD width=133 bgColor=#ffffff height=102><a href="<%=request.getContextPath()%>/searchAction?id=<%=id%>" target=_blank>
<img src="<%=picture%>" width=100 height=108></a></TD>
<TD width=292 bgColor=#f9f6ed>
<TABLE width=250>
<TBODY>
<TR>
<TD>ê??ú??ê?:<%=net%><BR>ê??úààDí:<%=model%><BR>êy???à?ú????(íò):<%=photo%>
</TD>
</TR>
<TR>
<TD width="164" height=25 align=middle><nobr><B><FONT
color=#ff0000>±¨??:<%=price%>(?a)</FONT> ?1óD<%=restNum%>?t</TD>
</TR>
</TBODY>
</TABLE></TD>
<TD width=125 bgColor=#f9f6ed>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD align=middle height=38><a href="<%=request.getContextPath()%>/searchAction?price=<%=price%>">í?????éì?·<a></TD>
</TR>
<TR>
<TD height="31" align=middle><a href="javascript:addCompareOne(<%=id%>)"><img width=80 height=20 src="<%=request.getContextPath()%>/image/addCompare.gif"></a></TD>
</TR>
<TR>
<TD height="30" align=middle><a href="javascript:shopOne(<%=id%>)">·?è???3μ</a></TD>
</TR>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<%
}
}
%>
<table>
<tr>
<td align="right" bgcolor="#CCCCCC" background="<%=request.getContextPath()%>/image/top01_3.gif" colspan="5">
<a href="<%=request.getContextPath()%>/common/compareList.jsp" target="_blank">
2é?′??±è</a>
<a href="javascript:addCompare()" >?óè???±è</a>
<a href="<%=request.getContextPath()%>/client/clientShopCar.jsp" target="_blank">
2é?′1o??3μ</a>
<a href="javascript:shop()" title="??±?ò3?????Dμ?éì?··?è?1o??3μ">·?è?1o??3μ</a></span>
<input type="button" name="chkother" value="·′??" onclick="CheckOthers(this.form)" title="??±?ò3??·′?ò????éì?·">
</td>
</tr>
<tr>
<td width="554" align="right" bgcolor="#CCCCCC" background="<%=request.getContextPath()%>/image/top01_3.gif" colspan="5">
<% dirPage=4;
startPage=1;
pageNumber=1;
if(session.getAttribute("pageNumber".toUpperCase())!=null){
pageNumber=Integer.parseInt(session.getAttribute("pageNumber".toUpperCase()).toString());
startPage=1+pageNumber-pageNumber%dirPage;
if(session.getAttribute("pages".toUpperCase()).toString().equals("0"))pageNumber=0;
out.print("<b><span class=\"index\">μú"+pageNumber+"ò3</span></b>/");
out.print("<span class=\"index\">12"+session.getAttribute("pages".toUpperCase()).toString()+"ò3 </span>");
if(pageNumber!=1){
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber=1\">μú1ò3</a>|</span>");
}else{
out.print("<span class=\"index\">|μú1ò3|</span>");
}
if(startPage!=1){
int prePageNumber=startPage-4;
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+prePageNumber+"\">é?ò3</a>|--</span>");
}else {
out.print("<span class=\"index\">|é?ò3| </span>");
}
}
if(session.getAttribute("pages".toUpperCase())!=null){
int pages=Integer.parseInt(session.getAttribute("pages".toUpperCase()).toString());
for(int i=startPage;i<startPage+dirPage&&i<=pages;i++){
if(i!=pageNumber)
out.print("<span class=\"aindex\"><a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+i+"\">"+i+"</a></span> ");
else out.print("<span class=\"currentindex\"><a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+i+"\"><span class=\"currentindex\">"+i+"</span></a></span> ");
}
if(startPage/4<(pages-1)/4){
int nextPageNumber=startPage+4;
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+pages+"\">×?oó1ò3</a>|</span>");
}else {
out.print("<span class=\"index\"> |??ò3|</span>");
}
if(pageNumber!=pages&&pageNumber<pages){
out.print("<span class=\"aindex\">|<a href=\""+request.getContextPath()+"/clientListAction?pageNumber="+pages+"\">×?oó1ò3</a>|</span>");
}else{
out.print("<span class=\"index\">|×?oó1ò3|</span>");
}
}
%>
<span class="index">μ?μú<input type="text" size=4 name="pageNumber">ò3
<input name="go" type="button" onClick="javascript:checkPageNumber()" value="??ê?" title="μ????¨μ?ò3??">
</span>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<script language="javascript">
function shop(){
form1.action="<%=request.getContextPath()%>/clientShopAction";
form1.submit();
}
function shopOne(str){
for (var i=0;i<form1.elements.length;i++){
var e = form1.elements[i];
// if (e.name != 'chkall')
if(e.value == str)
e.checked=true;
// form.chkall.checked;
}
//document.form1.str.checked=true;
form1.action="<%=request.getContextPath()%>/clientShopAction";
form1.submit();
}
function addCompare(){
form1.action="<%=request.getContextPath()%>/addCompareAction";
form1.submit();
}
function addCompareOne(str){
for (var i=0;i<form1.elements.length;i++){
var e = form1.elements[i];
if(e.value == str)
e.checked=true;
}
form1.action="<%=request.getContextPath()%>/addCompareAction";
form1.submit();
}
function checkPageNumber(){
//?ì2é????
if(isNaN(parseInt(document.form1.pageNumber.value))){
alert("ò3??±?D?ê?êy×?.");
document.form1.pageNumber.focus();
return false;
}
form1.action="<%=request.getContextPath()%>/clientListAction";
form1.submit();
}
function CheckOthers(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.checked==false){
e.checked = true;
}
else{
e.checked = false;
}
}
}
</script>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -