<%
sqlConn.Open()
sqlComm = New SqlCommand("SELECT * FROM Pianeti WHERE Dimensione = '" + Dimensione + "' AND Reame = '" + Reame + "' AND Paese = '" + Paese + "' ", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
Timer_Costruct = r("In_Costr_Eser")
Ris_Legna = r("Ris_Legna")
Ris_Ferro = r("Ris_Ferro")
Ris_Zolfo = r("Ris_Zolfo")
Ris_Pietra = r("Ris_Pietra")
Ris_Oro = r("Ris_Oro")
Cosa_Costr = r("Cosa_Costr_Eser")
End While
r.Close()
sqlConn.Close()
%>
Classifiche
 |
 |
 |
 |
 |
|
 |
 |
| |
Classifica Utenti
<%
Dim 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_"
%>
<%
Dim counter = 0
sqlConn.Open()
sqlComm = New SqlCommand("SELECT TOP 2 Utenti.Id as Id_Utente, Utenti.Fama, Utenti.Username, Pianeti.Proprietary, Pianeti.Nome FROM Utenti JOIN Pianeti ON Utenti.Username = Pianeti.Proprietary WHERE Pianeti.Is_Principal = '1' ORDER BY Fama DESC", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
counter = counter + 1
If counter < 11 Then
%>
<% If File.Exists(Pagina & r("Id_Utente") & ".jpg") = True Then %>
.jpg">
<% End If %>
Utente: ><%=r("Username")%>
Paese: <%=r("Nome")%>
Fama: <%=r("Fama")%>
| <%
End If
End While
r.Close()
sqlConn.Close()
%>
|
| Utente
| Paese Principale
| Fama
|
<%
counter = 0
sqlConn.Open()
sqlComm = New SqlCommand("SELECT Utenti.Id as Id_Utente, Utenti.Fama, Utenti.Username, 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 2 ID FROM Utenti ORDER BY Fama DESC) ORDER BY Fama DESC", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
counter = counter + 1
If counter < 11 Then
%>
<%
%> |
<% If File.Exists(Pagina & r("Id_Utente") & ".jpg") = True Then %>
onmouseover="doTooltip(event, messages[<%=counter%>] )" onmouseout="hideTip()"
<% End If %>
><%=r("Username")%> | <%=r("Nome")%> | <%=r("Fama")%> | <%
End If
End While
r.Close()
sqlConn.Close()
%>|
Vedi Tutti
| <%
%>
 |
|
|
 |
 |
|
 |
 |
 |
 |
 |
 |
 |
|
 |
 |
| |
Classifica Gilde
| Gilda
| Membri
| Fama
|
<%
sqlConn.Open()
sqlComm = New SqlCommand("SELECT SUM(Utenti.Fama) as Fama_Utenti, Count(*) AS Totale_Utenti, Utenti.Gilda FROM Utenti WHERE Utenti.Gilda <> '' GROUP BY Utenti.Gilda ORDER BY Fama_Utenti DESC, Totale_Utenti", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
%> | &Gilda=<%=r("Gilda")%>"><%=(r("Gilda"))%> | <%=CInt(r("Totale_Utenti"))%> | <%=CInt(r("Fama_Utenti")/1000)%> | <%
End While
r.Close()
sqlConn.Close()
%>
|
 |
|
|
 |
 |
|
 |
 |
|