?? zhk.asp
字號:
<%else%>
<table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width=100% align="center"><b> <%=rs4("Title")%> </b><br>
</td>
</tr>
<form action="vote.asp" target="newwindow" method=post name=research>
<tr>
<td valign=top width="100%">
<%
for i=1 to 8
if rs4("Select"&i)<>"" then
%>
<input style="border: 0" <%if i=1 then%>checked<%end if%> name=Options type=radio value=<%=i%>>
<%=i%>.<%=rs4("Select"&i)%><br>
<%
end if
next
%>
</td>
</tr>
<tr>
<td width="100%" height=25 align=center><input type="image" border="0" name="submit22" src="/img/vote1.gif" width="59" height="19" style="cursor:hand">
<a href="javascript:;" onClick="javascript:window.open('vote.asp?stype=view&id=<%=request("anid")%>','','width=410,height=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" target="_blank"><img src="/img/vote.gif" width="59" height="19" border="0"></a></td>
</tr>
</form>
</table></td>
</tr>
</table>
<%end if%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<div align="center"><img src="/img/lf_img_bt.gif" width="180" height="9"></div>
<map name="derectgo" id="derectgo">
<area shape="rect" coords="136,19,170,32" href="#" alt="MORE">
</map>
</td>
<td valign="top">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<div align="center"><img src="img/tou1.jpg" width="15" height="15"> <a href="?action=<%=action%>&text=2">圖片目錄</a> <img src="img/tou1.jpg" width="15" height="15"> <a href="?action=<%=action%>&text=1">文字目錄</a> <a href="class.asp?lx=news" style="color: #990000">新品</a> <a href="class.asp?lx=tj" style="color: #FF0000">推薦</a> <a href="class.asp?lx=tejia" style="color: #FF9900">特價</a> <a href="class.asp?lx=cx" style="color: #FFCC33">促俏</a> <font
color=#ff6600><a href="zhk.asp?action=1">一至二折</a></font> <font
color=#ff6600><a href="zhk.asp?action=2">二至三折</a></font> <font
color=#ff6600><a href="zhk.asp?action=3">三至四折</a></font> <font
color=#ff6600><font
color=#ff6600><a href="zhk.asp?action=4">四至五折</a></font></font> <a href="zhk.asp">更多折扣</a>
<select name="menu2" onChange="MM_jumpMenu('parent',this,0)">
<option selected>請選擇其它查看方式</option>
<option value="class.asp?px=0">按推薦商品方式查看</option>
<option value="class.asp?px=1">按上架時間從早到晚</option>
<option value="class.asp?px=2">按上架時間從晚到早</option>
<option value="class.asp?px=3">按商品價格從高到低</option>
<option value="class.asp?px=4">按商品價格從低到高</option>
</select>
</div>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="sm_debrown">
<tr>
<td colspan="3" height="4" bgcolor="ffffff"></td>
</tr>
<tr>
<td width="926" height="1" align="center" valign="middle" background="img/skin<%=cssid%>/bott_nav_bj.gif" class="sm_debrown"></td>
</tr>
<tr>
<td colspan="3" height="4" bgcolor="ffffff"></td>
</tr>
</table>
<%
if x1<>"" then
response.Write "<a href="&x1url&" target=_blank><img src="&x1&" width="&x1w&" height="&x1h&" border=0></a>"
end if
if x2<>"" then
response.Write "<a href="&x2url&" target=_blank><img src="&x2&" width="&x2w&" height="&x2h&" border=0></a>"
end if
if x3<>"" then
response.Write "<a href="&x3url&" target=_blank><img src="&x3&" width="&x3w&" height="&x3h&" border=0></a>"
end if
if x4<>"" then
response.Write "<a href="&x4url&" target=_blank><img src="&x4&" width="&x4w&" height="&x4h&" border=0></a>"
end if
%>
<%
set rs=server.createobject("adodb.recordset")
if action="1" then
rs.open "select * from shop_snsn where (dazhe between .1 and .2) order by adddate desc",conn,1,1
elseif action="2" then
rs.open "select * from shop_snsn where (dazhe between .2 and .3) order by adddate desc",conn,1,1
elseif action="3" then
rs.open "select * from shop_snsn where (dazhe between .3 and .4) order by adddate desc",conn,1,1
elseif action="4" then
rs.open "select * from shop_snsn where (dazhe between .4 and .5) order by adddate desc",conn,1,1
else
rs.open "select * from shop_snsn where (dazhe between .1 and .2) order by adddate desc",conn,1,1
end if
if rs.recordcount=0 then
%>
<table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align=center>暫無商品</td>
</tr>
</table>
<%
else
if request.QueryString("text")=1 then'如果是文字形式 則列等于 1
text=1
l=1
elseif request.QueryString("text")=2 then'如果是文字形式 則列等于 1
l=fll
else
if class_text=1 then
text=1
l=1
else
l=fll '顯示的列數
end if
end if
hang=flsl
fll=1 '顯示的行數
l=fll '顯示的列數
rs.PageSize =hang*l '每頁記錄條數,必須是3的倍數
iCount=rs.RecordCount '記錄總數
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
response.write "<table>"
for ii=1 to hang
response.write "<tr>"
for jj=1 to l
response.write "<td>"
if not rs.eof then
%>
<!--#include file="shangping_j.asp"-->
<%rs.movenext
else
response.write " "
end if
response.write "</td>"
next
response.write "</tr>"
next
response.write "</table>"
call PageControl(iCount,maxpage,page,"border=0 align=center widtj=100% ","<p align=center>")
end if
rs.close
set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一頁下一頁鏈接
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
query = Split(Request.ServerVariables("QUERY_STRING"), "&")
For Each x In query
a = Split(x, "=")
If StrComp(a(0), "page", vbTextCompare) <> 0 Then
temp = temp & a(0) & "=" & a(1) & "&"
End If
Next
Response.Write("<table " & Table_style & ">" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=right>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write ("首頁 " & vbCrLf)
Response.Write ("上頁 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首頁</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上頁</A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write ("下頁 " & vbCrLf)
Response.Write ("尾頁 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下頁</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾頁</A> " & vbCrLf)
end if
Response.Write(" 頁次:" & page & "/" & pageCount & "頁" & vbCrLf)
Response.Write(" 共有" & iCount & "種商品" & vbCrLf)
Response.Write(" 轉到" & "<INPUT TYEP=TEXT NAME=page SIZE=3 Maxlength=5 VALUE=" & page & ">" & "頁" & vbCrLf & "<INPUT type=submit style=""font-size: 9pt"" value=GO class=b2>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%>
</td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -