<%@ Page Language="vb" Debug="true" %> <% @Import NameSpace="System.Data" %> <% @Import NameSpace="System.Data.SQLClient" %> <% @Import NameSpace="System.Diagnostics.Debug" %> <% @Import Namespace="System.Web.Mail" %> <% @Import Namespace="System.Text.RegularExpressions" %> <% @Import NameSpace="System.Data.OleDb" %> <%@ Import namespace="System.IO" %> <%@ Import namespace="System.Net" %> <% Dim Times = 0 Dim Tot_Fama = 0 Response.Write ("") sqlConn.Open() sqlComm = New SqlCommand("SELECT SUM(Soldiers.Level) as Fama_Utenti, Guilds.Background, Guilds.Tag, Guilds.Name, Utenti.Username, Utenti.Id as Id_Utente, Utenti.Grado_Gilda, Guilds.Grado_1, Guilds.Grado_2, Guilds.Grado_3, Guilds.Grado_4, Guilds.Grado_5 FROM Utenti JOIN Guilds ON Utenti.Gilda = Guilds.Tag JOIN Soldiers ON Soldiers.Id_Utente = Utenti.Id JOIN Utenti as You ON You.Gilda = Utenti.Gilda WHERE You.Id = '"& Id_This_User &"' AND Guilds.Tag = Utenti.Gilda GROUP BY Utenti.Username, Utenti.Grado_Gilda, Guilds.Grado_1, Guilds.Grado_2, Guilds.Grado_3, Guilds.Grado_4, Guilds.Grado_5, Guilds.Background, Guilds.Tag, GUilds.Name, Utenti.Id ORDER BY Utenti.Grado_Gilda, Fama_Utenti DESC", sqlConn) r = sqlComm.ExecuteReader() While r.Read() If Times = 0 Then Txt_Gilda_Grado1.Text = r("Grado_1") Txt_Gilda_Grado2.Text = r("Grado_2") Txt_Gilda_Grado3.Text = r("Grado_3") Txt_Gilda_Grado4.Text = r("Grado_4") Txt_Gilda_Grado5.Text = r("Grado_5") Txt_Gilda_Background.Text = Replace(Replace(r("Background"),"''","'"),"
",VbCrLf) Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") End If Times = Times + 1 Tot_Fama = Tot_Fama + r("Fama_Utenti") Dim Grado_Gilda_Tot = "Grado_" & r("Grado_Gilda") Response.Write ("") End While r.Close() sqlConn.Close() If Times = 0 Then Response.Write ("") End If If Times > 0 Then Response.Write ("") Response.Write ("") Response.Write ("") End If Response.Write ("



Gilda: "& Replace(r("Name"),"''","'") &"") Response.Write ("

Tag: "& Replace(r("Tag"),"''","'") &"

") %> Titolo Amministratore:
Titolo Utente 2° Grado:
Titolo Utente 3° Grado:
Titolo Utente 4° Grado:
Titolo Utente 5° Grado:


Background:




<% Response.Write ("



UtenteGradoFama

"& r("Username") &""& r(Grado_Gilda_Tot) &""& r("Fama_Utenti") &"
Non sei Amministratore di una Gilda!!!

Membri: "& Times &"Tot: "& Tot_Fama &"




Gestisci Richieste
") %>