CONSIGLIERE TATTICO
|
Paese
|
Nome
|
Proprietario
|
Azioni
|
|   |
  |
  |
  |
  |
  |
  |
<%
Dim Var_Color = "181818"
Dim Reame_Count = 0
For Reame_Count = 1 to 20
%>
Reame <%=Reame_Count%>
|
<%
For i = 1 to 50
Dim Fama_Tua
Dim Gilda_Tua
sqlConn.Open()
sqlComm = New SqlCommand("SELECT * FROM Utenti WHERE Username = '" + Proprietary + "' ", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
Fama_Tua = r("Fama")
Gilda_Tua = r("Gilda")
End While
r.Close()
sqlConn.Close()
Dim There_Is_Paese = 0
sqlConn.Open()
sqlComm = New SqlCommand("SELECT Utenti.Id as Id_Utente, Utenti.Icq_Uin, Utenti.Msn, Utenti.Username, Utenti.Gilda, Utenti.Fama, Pianeti.Dimensione, Pianeti.Reame, Pianeti.Paese, Pianeti.Nome, Pianeti.Proprietary, Pianeti.Ris_Legna, Pianeti.Ris_Pietra, Pianeti.Ris_Ferro, Pianeti.Ris_Zolfo, Pianeti.Ris_Oro FROM Utenti JOIN Pianeti ON Utenti.Username = Pianeti.Proprietary WHERE Pianeti.Dimensione = '" + Dimensione + "' AND Pianeti.Reame = "& Reame_Count &" AND Paese = "& i &" AND Utenti.Fama >= '"& CInt(Fama_Tua/100*30) &"' AND (Utenti.Gilda <> '"& Gilda_Tua &"' OR Utenti.Gilda = '') ", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
There_Is_Paese = 1
%>
| <%=i%> |
<%=r("Nome")%>
|
<%=r("Proprietary")%>
<% If Trim(r("Gilda")) <> "" %>
[<%=Trim(r("Gilda"))%>]
<% End If %>
|
&Rea=<%=Cripta(r("Reame"))%>&Pae=<%=Cripta(r("Paese"))%>">
|
">
|
<%
Dim K = 0
Dim Y = CInt((r("Ris_Legna") + r("Ris_Pietra") + r("Ris_Ferro") + r("Ris_Zolfo") + r("Ris_Oro"))/30000)
If Y > 5 Then
Y = 5
End If
Y = Y - 1
For K = 0 to Y
%>+<%
Next
%>
|
<%
If Var_Color = "181818" Then
Var_Color = "393839"
Else
Var_Color = "181818"
End If
End While
r.Close()
sqlConn.Close()
Next
Next
%>
|