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

📄 urlview.asp

📁 单班同学录 一个非常漂亮的同学录 哦
💻 ASP
字号:
<%@LANGUAGE="VBScript" CODEPAGE="936"%>
<!--#include file="session.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="CHAR.asp" -->
<%
set rs=server.CreateObject("adodb.recordset")
strsql="select url.*,user.realname from url inner join [user] on url.urluser=user.username order by urltime desc"
rs.open strsql,conn,1,1
if not rs.eof then

addtime=rs("urltime")
addtime=formatdate(rs("urltime"))
rs.PageSize =10 '每页记录条数
result_num=rs.RecordCount '记录总数
										
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
										
else
	result_num=0
	maxpage=0
	page=0
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=classname%>同学录--常用网址</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="js/go.js"></script>
<link href="css/class.css" rel="stylesheet" type="text/css">
</head>

<body background="images/1.GIF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td colspan="3"><img src="images/top_t.gif" width="776" height="43"></td>
  </tr>
  <tr> 
    <td width="138"><img src="images/top_l.gif" width="138" height="39"></td>
    <td width="584" align="right" bgcolor="#666B52"><a href="index.asp"><img src="images/toplogo.gif" alt="<%=classname%>同学录" width="200" height="39" border="0"></a></td>
    <td width="54"><img src="images/top_r.gif" width="54" height="39"></td>
  </tr>
  <tr> 
    <td colspan="3"><table width="776" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="120" rowspan="2" valign="top" background="images/left_x.gif"><img src="images/left_img.gif" width="120" height="480"></td>
          <td rowspan="2" valign="top" bgcolor="#F2F2EA"> <div align="center"> 
              <!--#include file="top.asp" -->
            </div>
            <table width="618" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td valign="top"> <div align="center"><br>
                    <!--#include file="left.asp" -->
                  </div></td>
                <td width="10">&nbsp;</td>
                <td width="418" valign="top"><table width="400" border="0" align="center" cellpadding="2" class="font1">
                    <tr> 
                      <td width="459">您的位置&gt;常用网址</td>
                      <td width="27"> </td>
                    </tr>
                  </table>
                  <div align="center"> 
                    <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td><table width="400" border="0" cellpadding="0" cellspacing="0" background="images/gnymtbz.gif">
                            <tr> 
                              <td width="135"><img src="images/cywz.gif" width="135" height="36"></td>
                              <td>&nbsp;</td>
                              <td width="100"><img src="images/wytj.gif" width="100" height="36" border="0" usemap="#Map"></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td><table width="400" border="0" cellpadding="0" cellspacing="0" background="images/n_bk.gif">
                            <tr> 
                              <td><table width="400" border="0" align="center" cellpadding="4" cellspacing="2">
                                  <%if not rs.eof then%>
                                  <%do while not rs.eof%>
                                  <tr> 
                                    <td> <table width="380" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#666B52">
                                        <tr> 
                                          <td><table width="100%" border="0" cellspacing="1" cellpadding="4">
                                              <tr> 
                                                <td width="130" bgcolor="E3E3CF"><strong>网址:<img src="images/pic/url.gif" width="16" height="16"></strong><a href="<%=rs("urladdr")%>" target="_blank"><%=rs("urlname")%></a> </td>
                                                <td width="125" bgcolor="E3E3CF"><strong>推荐人:</strong><a href="member.asp?id=<%=rs("urluser")%>"><%=rs("realname")%></a></td>
                                                <td width="97" bgcolor="E3E3CF"><%=addtime%></td>
                                              </tr>
                                              <tr bgcolor="#f1f1eb"> 
                                                <td colspan="3"><strong>网站说明: 
                                                  </strong><br> <table width="94%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" class="1px-table">
                                                    <tr> 
                                                      <td><%=rs("UrlText")%></td>
                                                    </tr>
                                                  </table>
                                                  <table width="90%" border="0" align="right" cellpadding="4" cellspacing="0">
                                                    <tr> 
                                                      <td align="right"> <%if rs("urluser")=session("username") or session("usergroup")=3 then%> 
                                                        <a href="urladd.asp?id=<%=rs("urlid")%>"><img src="images/edit.gif" alt="编辑" border="0"></a>&nbsp;<a href='javascript:go("urldel.asp?id=<%=rs("urlid")%>","您确定要删除?")'><img src="images/del.gif" alt="删除" border="0"></a> 
                                                        <%end if%> 
                                                      </td>
                                                    </tr>
                                                  </table>
                                                </td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                      </table>
                                      <font color="#FF0000">&nbsp; </font></td>
                                  </tr>
                                  <%rs.movenext
									loop
									rs.close
									set rs=nothing
									end if%>
                                </table>
                                <table width="380" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666B52">
                                  <tr> 
                                    <td><table width="380" border="0" align="center" cellpadding="0" cellspacing="0" class="font1">
                                        <tr> 
                                          <td align="center" bgcolor="#f1f1eb"> 
                                            <% call LastNextPage(maxpage,page,result_num) %>
                                          </td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                </table></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td><img src="images/n_foot.gif" width="400" height="10"></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
            </table></td>
          <td width="38" valign="top" background="images/right_b.gif"><img src="images/right_b.gif" width="38" height="5"></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td colspan="3"><img src="images/z_f.gif" width="776" height="26"></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="19,11,88,28" href="urladd.asp">
</map>
</body>
</html>

⌨️ 快捷键说明

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