?? class.asp
字號:
<%if vote=1 then%>
<table width="180" border="0" align="center" cellpadding="0" cellspacing="0" background="img/lf_bg.gif" class="sm_gray">
<tr>
<td height="12"></td>
</tr>
<tr>
<td><img src="img/lf_tl_best13.gif" width="180" height="40"></td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<table width="180" border="0" align="center" cellpadding="0" cellspacing="0" background="img/lf_bg.gif">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><%
if request("anid")<>"" then
set rs4=conn.execute("SELECT * From shop_toupiao where classid=" & nosql(request("anid")) & " and IsChecked=1 ")
else
set rs4=conn.execute("SELECT * From shop_toupiao where classid=0 and IsChecked=1 ")
end if
if rs4.eof then
%>
暫無投票
<%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><%end if%>
<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 height="30" valign="top"> <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="sm_debrown">
<tr>
<td height="30" colspan="2" background="/img/skin<%=cssid%>/newsbj.gif"> <a href="?lx=<%=lcase(trim(request("lx")))%>&anid=<%=anclassid%>&nid=<%=nclassid%>&xid=<%=xclassid%>&px=<%=request.QueryString("px")%>&text=2" style="font-weight: bold">圖片版</a> <a href="?lx=<%=lcase(trim(request("lx")))%>&anid=<%=anclassid%>&nid=<%=nclassid%>&xid=<%=xclassid%>&px=<%=request.QueryString("px")%>&text=1" style="font-weight: bold">文字版</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> <span onMouseOver="aa()" onMouseOut="bb()">選擇其它查看方式</span><div id="Layer1" style="position:absolute; z-index:0">
<div id="aa" style="position:absolute; width:130px; height:260px;left:-4.5px;top:-1px; z-index:6; visibility: hidden;filter: Alpha(Opacity=90,Style=0) Shadow(Color=#000000, Direction=-225,Strength=3)" onMouseOver="MM_showHideLayers('aa','','show')" onMouseOut="bb()">
<table width="120" border="0" cellpadding="2" cellspacing="0" bgcolor="#ffffff">
<script language=javascript>
var j;
for (j=0;j<link_1.length;j++){
document.write('<tr align=center><td height=100% width=100% class=tblbevel1>'+link_1[j]+'</td></tr>');
}
</script>
</table>
</div>
</div></td>
<td width="60" background="/img/skin<%=cssid%>/newsbj.gif"><div align="right"><%=xml%> </div></td>
</tr>
</table>
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><%
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
%></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="1" align="center">
<%leixing=lcase(trim(request("lx")))
select case leixing
case "big"%>
<tr>
<td height="15">
<%if pic<>"" then%>
<a href="<%=links%>"><img src=<%=pic%> border="0"></a>
<%end if%>
</td>
</tr>
<%case "small"%>
<tr>
<td height="15">
<%if piccc<>"" then%>
<a href="<%=links%>"><img src=<%=piccc%> border="0"></a>
<%end if%>
</td>
</tr>
<%case "snsn"%>
<tr>
<td height="15">
<%if xpic<>"" then%>
<a href="<%=xurl%>"><img src=<%=xpic%> border="0"></a>
<%end if%>
</td>
</tr>
<%end select%>
</table>
<%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 '顯示的列數(shù)
end if
end if
hang=flsl '顯示的行數(shù)
rs.PageSize =hang*l '每頁記錄條數(shù),必須是3的倍數(shù)
iCount=rs.RecordCount '記錄總數(shù)
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(" 轉(zhuǎn)到 " & "<INPUT TYEP=TEXT class=wenbenkuang NAME=page SIZE=3 Maxlength=5 VALUE=" & page & ">" & " 頁" & vbCrLf & "<input name=go type=image src=/img/butn_go.gif alt=GO align=absMiddle border=0>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%>
<a href="help.asp"><font color="#FF0000"> </font></a></td><td width="12" valign="top"> </td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -