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

📄 top.asp

📁 本源代码为大学生购物网的源代码,欢迎大家的下载,学习与交流
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<% 
    title = Request.form("title")
	author = Request.form("author")
	Nclassid = Request.QueryString("cid")
	classid = Request.QueryString("classid")
	lx = Request.form("lx")
	dq = Request.form("dq")
	jx = Request.form("jx")
	id = Request.QueryString("id")
	cid = Request.QueryString("cid")
   
If Not(isNumeric(classid)) Then 
Response.Write "非法地址~" 
Response.End
End If
if id<>""then
If Not(isNumeric(id)) Then 
Response.Write "非法地址~" 
Response.End
End If
end if
If Not(isNumeric(cid)) Then 
Response.Write "非法地址~" 
Response.End 
End If 
'-----修改每页显示个数 Start--------
	const MaxPerPage=25
	'-----修改每页显示个数 End  --------
   	dim totalPut
   	dim CurrentPage
	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if
 %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>校园二手</title>
<link type="text/css" rel="stylesheet" href="inc/style.css" />
<script language="javascript">
	function  chc(n)
	{
	n.style.backgroundColor="#ffffff";
	}
	function  chb(n)
	{
	n.style.backgroundColor='';
	}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>




<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class=page>
  <tr> 
    <td>



<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR> 
      <TD height="9" width="360"><FONT color=RED><B>今天是:</B></FONT><FONT 
            color=#505050>
            <SCRIPT language=JavaScript>
d = new Date();
document.write((d.getYear())+"年"+(d.getMonth()+1)+"月"+d.getDate()+ "日");
</SCRIPT></FONT><FONT color=#000000>
            <SCRIPT language=JavaScript>
d = new Date();
switch (d.getDay()) {
case 0:
strweek="日";
break;
case 1:
strweek="一";
break;
case 2:
strweek="二";
break;
case 3:
strweek="三";
break;
case 4:
strweek="四";
break;
case 5:
strweek="五";
break;
case 6:
strweek="六";
break;
}
document.write("星期"+ strweek);
</SCRIPT>
            </FONT></TD>
      <TD height="9" align="right" width="400"> 
		<A onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.vertigohome.net/dian/')" 
      href="javascript:;">设为首页</a> <A 
      href="javascript:window.external.addFavorite('http://www.vertigohome.net/dian/'','淘淘网')" 
      target=_self>加入收藏</a> <A 
      href="mailto:jjyy@sohu.com">网站信箱</a> <A 
      href="help.asp">帮助中心</a></TD>
    </TR>
    <TR> 
      <TD height="1" align=middle bgcolor="#FF8F2A" colspan="2"></TD>
    </TR>
  </TBODY>
</TABLE>
<div align="center">
<TABLE width=760 border=0 align="center" cellPadding=3 cellSpacing=0 bgcolor="#FFFFFF">
  <TBODY>
    <TR>
      <TD align=middle width=160 height=62><a href="../index.asp"><img src="../img/logo.gif" border="0"></a></TD>
      <TD width=10><IMG height=50 src="../img/dot_05.gif" width=1></TD>
      <TD align=right>
        <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
          <TBODY>
            <TR>
              <TD width="14%" align=middle><a href="../shop_list.asp"><IMG height=48 src="../img/title_icon_03.gif" width=48 border=0></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a href="index.asp"><img src="../img/title_icon_07.gif" width="50" height="50" border="0"></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a href="../house/"><img src="../img/title_icon_04.gif" width="48" height="48" border="0"></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a target="_blank"><a href=index.asp?id=10&classid=10><IMG height=45 src="../img/title_icon_05.gif" width=45 border=0></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a href=../news_list.asp><img src="../img/title_icon_06.gif" width="51" height="47" border="0"></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a href=../huangye_list.asp><IMG height=46 src="../img/title_icon_01.gif" width=57 border=0></a></TD>
              <TD rowSpan=2><IMG height=18 src="../img/dot_06.gif" width=1></TD>
              <TD width="14%" align=middle><a href="../Gbook"><IMG height=45 src="../img/title_icon_02.gif" width=48 border=0></a></TD>
            </TR>
            <TR>
              <TD align=middle><a href="../shop_list.asp">校园店铺</a></TD>
              <TD align=middle><a href="index.asp">校园二手</a></TD>
              <TD align=middle><a href="../house/">校园租房</a></TD>
              <TD align=middle><a href=index.asp?id=10&classid=10>校园兼职</a></TD>
              <TD align=middle><a href=../news_list.asp>校园资讯</a></TD>
              <TD align=middle><a href=../huangye_list.asp>校园黄页</a></TD>
                    <TD align=middle><a href="../bbs/">校园论坛</a></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>

</div>

<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR> 
      <TD height="28" align=middle background=images/t1.gif> 
		<TABLE  width="100%" border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR> 
              <TD>
				<a href="index.asp"><font color=#ffffff>二手首页</font></a> <font color="#FFFFFF">|</font> <a href="../news_list.asp"><font color="#FFFFFF">本站新闻</font></a> <font color="#FFFFFF"> 
				| <a href=class.asp><font color="#FFFFFF">二手分类</font></a> | <a href="useradd2.asp"><font color="#FFFFFF">发布信息</font></a> | <a href=../Reg.asp><font color="#FFFFFF">注册会员</font></a> | <a href=../user_login.asp>
				<font color="#FFFFFF">会员登陆</font></a> | <a href=law.asp>
				<font color="#FFFFFF">发布规则</font></a></font></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
 
    </TR>
  </TBODY>
</TABLE>




<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR> 
      <TD height="28" align=middle > 
		<TABLE  width="100%" border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR> 
              <TD>
				<font color="#FF0000">二手导航:</font><%
	
	SqlStr = "Select Unid,Classname from 2s_class where flag = 0 order by orderflag asc"
	set RsStr = conn.execute(SqlStr)

	if not RsStr.eof then
		do while not RsStr.eof
			for i = 1 to 12
			SqlStrs = "SELECT classid, Count(classid)  FROM 2s_list where classid ="& RsStr(0) &" GROUP BY classid"
	set RsStrs = conn.execute(SqlStrs)
	if not RsStrs.eof then
	classids="("&RsStrs(1)&")"
	RsStrs.close : set RsStrs = nothing
	else
	classids="(0)"
	end if
				Response.write "<a href=index.asp?id="& RsStr(0) &"&classid="& RsStr(0) &">" &RsStr(1) & "</font> | "
				
				RsStr.movenext
				if RsStr.eof then exit for
			next
			Response.write "<br>"
		loop
	else
		Response.write ""
	end if
		RsStr.close
		
	%></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
 
    </TR>
  </TBODY>
</TABLE>



<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
 <TR> 
      <TD height="1" align=middle bgcolor="#FF8F2A" colspan="2"></TD>
    </TR>
</table>
 

⌨️ 快捷键说明

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