<%
If TxT_Mappa_Dimensione.Text = "" Then
TxT_Mappa_Dimensione.Text = Dimensione
End If
If TxT_Mappa_Reame.Text = "" Then
TxT_Mappa_Reame.Text = Reame
End If
TxT_Mappa_Dimensione.Text = Replace(TxT_Mappa_Dimensione.Text,"'","")
TxT_Mappa_Reame.Text = Replace(TxT_Mappa_Reame.Text,"'","")
%>
Mappa
Continente: <%=TxT_Mappa_Dimensione.Text%>
Reame: <%=TxT_Mappa_Reame.Text%>
|
Paese
|
Nome
|
Proprietario
|
Azioni
|
|   |
  |
  |
  |
  |
  |
  |
  |
<%
Dim Var_Color = "181818"
Dim Fama_Tua
sqlConn.Open()
sqlComm = New SqlCommand("SELECT Fama FROM Utenti WHERE Username = '" + Proprietary + "' ", sqlConn)
r = sqlComm.ExecuteReader()
While r.Read()
Fama_Tua = r("Fama")
End While
r.Close()
sqlConn.Close()
For i = 1 to 50
%>
<%
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.Is_Principal FROM Utenti JOIN Pianeti ON Utenti.Username = Pianeti.Proprietary WHERE Pianeti.Dimensione = '" + TxT_Mappa_Dimensione.Text + "' AND Pianeti.Reame = '" + TxT_Mappa_Reame.Text + "' AND Paese = "& i &" ", 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"))%>">
|
">
|
<% If (r("Fama") < (Fama_Tua/100*30)) AND r("Is_Principal") = 1 Then %>
<% End If %>
|
<% If r("Icq_Uin") <> "" Then
Dim Icq_Uin = Replace(r("Icq_Uin"),"-","") %>
<% End If %>
|
<% If r("Msn") <> "" Then %>
" onClick="return popitup('msn.aspx?Codice=<%=r("Id_Utente")%>')">
<% End If %>
|
<%
End While
r.Close()
sqlConn.Close()
If There_Is_Paese = 0 Then
%><%=i%> | Vuoto |   |   |   |   |   |   | <%
End If
If Var_Color = "181818" Then
Var_Color = "393839"
Else
Var_Color = "181818"
End If
Next
%>
|