<!--#include file="../asp/processpage.asp"-->
<!--#include file="../asp/header.asp"-->
<!--- page title graphic in here --->
		<td width="100%" colspan="2" background="../skinz/images<%=customcolours%>/top_bg2.gif" align="right" valign="top"><img src="../skinz/images<%=customcolours%>/t_comments.gif" width="198" height="46" alt="[ comments ]"></td>
<!--#include file="../asp/navbar_server.asp"-->
<!--- page content goes in here --->		
		<td width="100%" valign="top">
<%
	dim id, info, ip, specs, openhours, location, server_name, sysadmin
	dim email, real_server
	
	id = Request.QueryString("id")

	if not isNumeric(id) then
		'make sure we have a number
		Response.Redirect("./")
	end if
	id = fix(id)
		'now make sure we have a solid
			
	dim sub_mit_but, website ', ip, comments_to_date, da_review
	'dim specs, location, openhours, maps
	
	if switch = 0 then
		sub_mit_but = "Make me famous!"
	elseif switch = 1 then
		sub_mit_but = "Can I really post this comment?"
	elseif switch = 2 then
		sub_mit_but = "Go on, post something good"
	elseif switch = 3 then
		sub_mit_but = "Submit it all ready!"
	elseif switch = 4 then
		sub_mit_but = "Go on, you can do it - HIT ME!"
	elseif switch = 5 then
		sub_mit_but = "Stick in the post"
	elseif switch = 6 then
		sub_mit_but = "You call that a comment?"
	elseif switch = 7 then
		sub_mit_but = "Did you check for dumb typo's?"
	else
		sub_mit_but = "Post it babe!"
	end if

	
		dim real_level
		'use real_level as a safty check down lower
		real_level = false
		
		'grab the server info info
		set tigCON = Server.CreateObject("ADODB.Connection")
	
			tigCON.Open(DSN)
			
				' set up the query to list the news by date Desc
			query = "SELECT server_info.id AS id, server_info.info AS info, " & _
					"server_info.website AS website, " & _
					"server_info.ip AS ip, server_info.specs AS specs, " & _
					"server_info.openhours AS openhours, " & _
					"server_info.location AS location, " & _
					"server_info.server_name AS server_name, " & _
					"server_info.datestamp AS datestamp, " & _
					"server_sysadmin.sysadmin AS sysadmin, server_sysadmin.email AS email, " & _
					"server_info.maps AS maps " & _
					"FROM server_info INNER JOIN " & _
					"server_sysadmin ON " & _ 
					"server_info.sysadmin_id = server_sysadmin.id " & _
					"WHERE server_sysadmin.active = 1 and server_info.id = " & id 
			
				'Response.Write("Query = [" & query & "]<br>")
			set tigRS = tigCON.Execute(query)
																										
			' make sure we have see if there is no records 
			if (tigRS.EOF) Then
				%>
				<span class="main">There is no level information to list for this request, sorry :[</span>
				<%
			else
		
				info = tigRS("info")
				website = tigRS("website")
				ip = tigRS("ip")
				specs = tigRS("specs")
				openhours = tigRS("openhours")
				location = tigRS("location")
				server_name = tigRS("server_name")
				datestamp = tigRS("datestamp")
				sysadmin = tigRS("sysadmin")
				email = tigRS("email")
				
				real_server = true
				
				%>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="100%" colspan="4" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
				</tr>
				<tr>
					<td width="1" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="|"></td>
					<td background="../skinz/images<%=customcolours%>/sub_bg1.gif"><span class="sub"><b>&nbsp;<%=server_name%> run by <a href="mailto:<%=email%>"><%=sysadmin%></a> </span></b></td>
				</tr>
				<tr>
					<td colspan="4" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
				</tr>
				<tr>
					<td></td>
					<td valign="top">
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td align="right" class="main">
								<% if website <> "" then %>
									<%	if instr(1,website,"http://") or instr(1,website,"ftp://") then %>
											<a href="<%=website%>" target="_blank"><%=website%></a>
									<%	else %>
											<%=website%>
									<%	end if %>
								<% end if %>
								- updated <%=realdateshort(datestamp)%>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td align="left" valign="top" class="main">
								<%=info%>
								<ul>
									<li><%=server_name%>
									<li><%=ip%>
									<li><%=specs%>
									<li><%=location%>
									<li><%=openhours%>
								</ul>
								<b>Current map rotation</b> - <%=tigRS("maps")%>
								</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td colspan="4"><br><br></td>
				</tr>
			</table>
			<%
		
			tigRS.close		
	
			'grab the comments to date that are safe to print
				query = "SELECT str_posters_name, datestamp, txt_comment, server_id " & _
						"FROM server_comments " & _
						"where ((server_id = " & id & ") and (bit_dont_show = 0)) " & _
						"order by datestamp desc"
			
				'Response.Write("query = [" & query & "]<br>")
			
			set tigRS = tigCON.Execute(query)

			if real_server then
			'don't give them a chance if they shouldn't be here
				%>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="100%" colspan="2" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
				</tr>
				<tr>
					<td width="100%" colspan="2" align="left" class="main"><b>Any comments for the server <%
					if website <> "" then
						Response.Write("<a href=""" & website & """ target=""_blank"">" & server_name & "</a>")
					else
						Response.Write(server_name)
					end if
					%> run by <a href="mailto:<%=email%>"><%=sysadmin%></a>?</b>
						<p>
						<table cellpadding="0" cellspacing="0" border="0">
							<form action="do_servercomments.asp?server_id=<%=id%>" method="post">
								<tr>
									<td class="main" valign="top">Your name (optional):</td>
									<td class="main" valign="top"><input type="text" size="32" maxlength="24" name="str_posters_name"></td>
								</tr>
								<tr>
									<td class="main" valign="top">Comments? (required):</td>
									<td class="main" valign="top"><textarea cols="32" rows="6" name="txt_comment" wrap="virtual"></textarea></td>
								</tr>
								<tr>
									<td></td>
									<td class="main" valign="top" align="center"><input type="submit" value="<%=sub_mit_but%>" id=submit1 name=submit1><br><br></td>
								</tr>
							</form>
						</table>
					</td>
				</tr>
				<tr>
					<td width="100%" colspan="2" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
				</tr>
			</table>
			<table width="100%" cellpadding="4" cellspacing="2" border="0">
				<%
					i = 0
					do while not tigRS.EOF 
				
						if i mod 2 then
							bgcolor = ""
						else
							bgcolor = " bgcolor=" & bgcolourCustom & ""
						end if

				%>
						<tr>
							<td<%=bgcolor%> valign="top"><span class="main"><b><%=tigRS("str_posters_name")%></b></span><br>
							<span class="subsm"><%=funkydate(tigRS("datestamp"))%></span></td>
							<td<%=bgcolor%> valign="top" class="main"><%=tigRS("txt_comment")%><br><br></td>
						</tr>
				<%		
						i = i + 1
						tigRS.MoveNext
				
					loop
								
				end if
			%>
			</table>
			<%
			end if
			
			tigRS.close		
			tigCON.close
		%>
			<table width="100%" cellpadding="4" cellspacing="2" border="0">
				<tr>
					<td valign="top" class="subsm"><nobr>supported html</nobr></td>
					<td class="subsm">
						URL links are automatic, just type the <b>full URL</b>, including http:// or ftp://<br>
						paragraphs are automatic, based on line returns<br>
						&lt;b&gt;<b>some bold text</b>&lt;/b&gt;<br>
						&lt;i&gt;<i>wow italics!</i>&lt;/i&gt;<br>
						<b>All other html tags are stripped out of comments posted</b> - 
						Remember to close &lt;b&gt; and &lt;i&gt; tags with &lt;/b&gt; and &lt;/i&gt; 
						otherwise everything will be <b>bold</b> or <i>italic</i> :]<br>
					</td>
				</tr>
			</table>
			<br><br><br>
		</td>
<!--- end page content --->
<!--#include file="../asp/footer_beta.asp"-->
