Classifica Utenti
 |
 |
 |
 |
 |
|
 |
 |
| |
Classifica Utenti
<%
Var_Id_Generale = Request.QueryString("ID")
Dim Page = Request.QueryString("Page")
If Page = "" Then
Page = 0
End If
If Var_Id_Generale = ""
Dim Last_Id
Dim Last_Id_Page
sqlConn.Open()
sqlComm = New SqlCommand("SELECT ID FROM Utenti ORDER BY FAMA DESC, ID", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
Last_Id = r("ID")
End While
r.Close()
sqlConn.Close()
%>
| Nome Utente [Gilda]
| Paese Principale
| Fama
|
<%
Dim counter
Dim Pagina
Pagina = Request.ServerVariables("PATH_TRANSLATED")
Pagina = Mid(Pagina,1,Len(Pagina)-Len(Split(StrReverse(Pagina),"\")(0))-1)
Pagina = Mid(Pagina,1,Len(Pagina)-Len(Split(StrReverse(Pagina),"\")(0)))
Pagina = Pagina + "\public\Avatar_Imperi_"
counter = 0
sqlConn.Open()
sqlComm = New SqlCommand("SELECT TOP 50 Utenti.Id as Id_Utente, Utenti.Fama, Utenti.Username, Utenti.Gilda, Pianeti.Proprietary, Pianeti.Nome FROM Utenti JOIN Pianeti ON Utenti.Username = Pianeti.Proprietary WHERE Pianeti.Is_Principal = '1' AND Utenti.ID NOT IN (SELECT TOP "& Page &" ID FROM Utenti ORDER BY FAMA DESC, ID) ORDER BY Fama DESC, Utenti.ID ", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
counter = counter + 1
%>
<%
%> |
<% If File.Exists(Pagina & r("Id_Utente") & ".jpg") = True Then %>
onmouseover="doTooltip(event, messages_g[<%=counter%>] )" onmouseout="hideTip()"
<% End If %>
><%=r("Username")%>
<% If Trim(r("Gilda")) <> "" Then %>
 [<%=r("Gilda")%>]
<% End If %>
| <%=r("Nome")%> | <%=r("Fama")%> | <%
Last_Id_Page = r("Id_Utente")
End While
r.Close()
sqlConn.Close()
%>
<% If Page <> 0 Then %>
Pagina Precedente
<% End If %>
<% If Page <> 0 AND Last_Id <> Last_Id_Page Then %> - <% End If %>
<% If Last_Id <> Last_Id_Page Then %>
Pagina Successiva
<% End If %>
<% End If %>
|
 |
|
|
 |
 |
|
 |
 |
|