%@ Language=JScript %> <% var userid = String(Request.QueryString("userid")); if (userid == "undefined") userid = Session("userid"); var gametype = String(Request.QueryString("gametype")); var content = ""; //get the username var rsUser = Server.CreateObject("adodb.recordset"); var sql = "SELECT * FROM (([user] left join country on user.countryid = country.id) "; sql += "left join timezone on timezone.id = user.timezoneid) "; sql += "WHERE user.id = " + userid; rsUser.Open(sql, connStr); var name = String(rsUser("user.name")); if (name == "null") name = ""; var icq = String(rsUser("icq")); if (icq == "null") icq = ""; var description = prepScreen(String(rsUser("description"))); if (description == "null") description = ""; var country = prepScreen(String(rsUser("country.name"))); if (country == "null") country = ""; var timezone = prepScreen(String(rsUser("timezone"))); if (timezone == "null") timezone = ""; content += "
";
if (gametype == "tournament")
content += "Tournament games record"; else content += "Games record"; content += "Username: " + rsUser("username") + " (rating: " + rsUser("rating") + ") "; if (Session("userid") != rsUser("user.id") && isLoggedIn()) content += ""; content += ""; if (String(rsUser("gameinterest")) == "1") content += "- looking for new games "; else content += "- NOT looking for new games at the moment "; content += " "; content += "
| ";
content += "