<!--#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_mods.asp"-->
<!--- page content goes in here --->		
		<td width="100%" valign="top">
<%
	dim id, author, mod_name, info, sm_jpg, lg_jpg, email
	
	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 
	
	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_mod
		'use real_level as a safty check down lower
		real_mod = 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 " & _
					"mods_login.name AS author, " & _
					"mods_login.email AS author_email, " & _
					"mods_list.game_type AS game_type, " & _
					"mods_list.datestamp AS datestamp, " & _
					"mods_list.website AS website, " & _
					"mods_list.name AS mod_name, " & _
					"mods_list.info AS info " & _
					"FROM mods_list INNER JOIN " & _
					"mods_login ON " & _
					"mods_list.id_login = mods_login.id " & _
					"WHERE mods_list.active = 1 AND mods_login.active = 1 AND mods_list.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 Mod information to list for this request, sorry :[</span>
				<%
			else
		
				author = tigRS("author")
				datestamp = tigRS("datestamp")
				website = tigRS("website")
				mod_name = tigRS("mod_name")
				info = tigRS("info")
				real_mod = true
			'check for beta image shots
				sm_jpg = false
				lg_jpg = false
				sm_jpg = ModImageCheckSM(id)
				lg_jpg = ModImageCheckLG(id)
			%>
			<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 colspan="3" background="../skinz/images<%=customcolours%>/sub_bg1.gif"><span class="sub"><b>&nbsp;<%=mod_name%> by <a href="mailto:<%=tigRS("author_email")%>"><%=author%></a> </span><span class="subsm">(<%=tigRS("game_type")%>)</b></span></td>
				</tr>
			<% if sm_jpg then %>
				<tr>
					<td colspan="2" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
					<td><img src="../images/clear.gif" width="25" height="1" alt=" "></td>
					<td></td>
				</tr>
			<% else %>
				<tr>
					<td colspan="4" bgcolor="#696969"><img src="../images/clear.gif" width="1" height="1" alt="+---------------------"></td>
				</tr>
			<% end if %>
				<tr>
					<td></td>
					<td valign="top">
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td align="right" class="main">
								<% if website <> "" then %>
									<a href="<%=website%>">website</a> - 
								<% end if %>
								updated <%=realdate(datestamp)%></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td align="left" valign="top" class="main">
								<%=info%>
								</td>
							</tr>
						</table></td>
			<%	if sm_jpg then %>
					<td></td>
					<td width="160" valign="top"><%
					if lg_jpg then
						%><a href="screen_shot_b.asp?shot=<%=id%>"><img src="shots/<%=id%>sm.jpg" width="160" height="120" alt="<%=mod_name%>" border="0"></a></td>
						<%
					else
						%><img src="shots/<%=id%>sm.jpg" width="160" height="120" alt="<%=mod_name%>" border="0"></td>
						<%
					end if
				end if  %>
				</tr>
				<tr>
					<td colspan="4"><br><br></td>
				</tr>
			</table>
			<%
		
			tigRS.close		
	
			'grab the comments to date that are safe to print
				query = "SELECT posters_name, datestamp, comment, id_mod " & _
						"FROM mods_comments " & _
						"where ((id_mod = " & id & ") and (dont_show = 0)) " & _
						"order by datestamp desc"
			
				'Response.Write("query = [" & query & "]<br>")
			
			set tigRS = tigCON.Execute(query)

			if real_mod 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 mod <%
					if website <> "" then
						Response.Write("<a href=""" & website & """ target=""_blank"">" & mod_name & "</a>")
					else
						Response.Write(mod_name)
					end if
					%> by <a href="mailto:<%=email%>"><%=author%></a>?</b>
						<p>
						<table cellpadding="0" cellspacing="0" border="0">
							<form action="do_mods_comments.asp?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="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("posters_name")%></b></span><br>
							<span class="subsm"><%=funkydate(tigRS("datestamp"))%></span></td>
							<td<%=bgcolor%> valign="top" class="main"><%=tigRS("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 - 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"-->
