Follow the TOP10 section of the chinaasp forum to display the code

Source: Internet
Author: User
Tags include
Hawkfly on 2000-11-8 17:43: Just finished, did not do optimization, specific reference to chinaasp forum TOP10 Modify
<% @ language= "VBSCRIPT"%>
<% OPTION EXPLICIT%>
<!--#include file= "dataconn.asp"-->
<!--#include file= "funcset.asp"-->
<% Dim Rs,sql,ida,idb,s,reguser,a,b,c

Set rs=server.createobject ("Adodb.recordset")
Sql= "SELECT * from UserInfo ORDER by Iperience DESC"
Rs. Open sql,connstr,1,1
Reguser=rs. RecordCount

Ida=1
idb=2
%>

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta http-equiv= "Pragma" content= "No-cache" >
<link rel= "stylesheet" type= "Text/css" href= "Site.css" >
<title> Dragon and Tiger rankings </title>

<body class= "Detail" >

<table border= "0" width= "70%" cellpadding= "0" align= "center" >
<tr>
&LT;TD width= "16%" bgcolor= "#FFFFFF" align= "center" ><font color= "#0000A0" > Rank </font></td>
&LT;TD width= "16%" class= "Listline" align= "center" ><font color= "#0000A0" > Network name </font></td>
&LT;TD width= "17%" class= "Listline" align= "center" ><font color= "#0000A0" > Posts </font></td>
&LT;TD width= "17%" bgcolor= "#FFFFFF" align= "center" ><font color= "#0000A0" > Rank </font></td>
&LT;TD width= "17%" class= "Listline" align= "center" ><font color= "#0000A0" > Network name </font></td>
&LT;TD width= "17%" class= "Listline" align= "center" ><font color= "#0000A0" > Posts </font></td>
</tr>
<% if Reguser<10 Then
A=reguser/2
Else
A=5
End If
For S=1 to a
%>
<tr>
&LT;TD width= "16%" bgcolor= "#FFFFFF" align= "center" valign= "bottom" ><font size= "2"
Color= "#0000A0" ><b><%=IDa%></b></font> </td>
&LT;TD class= "listline" align= "center" style= "Cursor:hand" UserName ")%> ', ' call ', ' width=350,height=400,left=300, Top=100,toolbar=no,status=no ') "><font color= #0000CC ><%=rs (" UserName ")%></font></td>
&LT;TD class= "listline" align= "Center" ><%=rs ("Iperience")%></td>
</td>
<%rs.movenext%>
&LT;TD width= "17%" bgcolor= "#FFFFFF" align= "center" valign= "bottom" ><font size= "2"
Color= "#0000A0" ><b><%=IDb%></b></font> </td>
&LT;TD class= "listline" align= "center" style= "Cursor:hand" UserName ")%> ', ' call ', ' width=350,height=400,left=300, Top=100,toolbar=no,status=no ') "><font color= #0000CC ><%=rs (" UserName ")%></font></td>
&LT;TD class= "listline" align= "Center" ><%=rs ("Iperience")%></td>
</tr>
<%
Ida=ida+2
Idb=idb+2
Rs.movenext
Next
%>
<% if Reguser>20 Then
For b=11 to%>
&LT;TD class= "listline" align= "center" style= "Cursor:hand" UserName ")%> ', ' call ', ' width=350,height=400,left=300, Top=100,toolbar=no,status=no ') "><font color= #0000CC ><%=rs (" UserName ")%></font></td>
<% rs.movenext%>
<%
Next
End If%>
<% if Reguser>20 Then
For c=16 to%>
&LT;TD class= "listline" align= "center" style= "Cursor:hand" UserName ")%> ', ' call ', ' width=350,height=400,left=300, Top=100,toolbar=no,status=no ') "><font color= #0000CC ><%=rs (" UserName ")%></font></td>
<% rs.movenext%>
<%
Next
End If%>

</table>

</body>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.