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

📄 zhk.asp

📁 购物系统(本版为正式商业版
💻 ASP
📖 第 1 页 / 共 2 页
字号:
                          <%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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;<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 "&nbsp;"
				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 + -