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

📄 class.asp

📁 购物系统(本版为正式商业版
💻 ASP
📖 第 1 页 / 共 3 页
字号:
      <%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">&nbsp;<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>&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>&nbsp;<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%>&nbsp;</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			'显示的列数
		        end if
		end if
			hang=flsl			'显示的行数
	  		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 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">&nbsp;</td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -