<!--#include file="conn.asp"-->
<title><%=request("sub_number")%></title>
<link href=Skin/<%=WrzcNethtml_skin%>/css.css rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="402" height="168">
<%
if request("action")="add" then
sub_id=request("sub_id")
chkid(sub_id)
content=DelStr(request("content"))
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNethtml_sub where sub_id="&sub_id&""
rs.open sql,conn,1,3
if rs.eof then
response.write "<tr><td colspan=2 align=center><br>"+"<li>Order Not Found</td></tr>"
response.end
elseif rs("sub_tousu")=1 then
response.write "<tr><td colspan=2 align=center><br>"+"<li>Already Claimed</td></tr>"
response.end
else
rs("sub_tousu")=1
rs("sub_you")=content
rs.update
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<tr><td colspan=2 align=center><li>Success,<a href='javascript:window.close()'>Close Window</a></td></tr>"
response.end
else
%>
<form method="POST" action="tousu.asp?action=add">
<tr><td align="right" class="cartshow1"></td><td class="cartshow1"></td></tr>
<tr><td align="right" class="cartshow0">Order Number:</td>
<td class="cartshow0"><input name="sub_number" type="hidden" value="<%=request("sub_number")%>"><input name="sub_id" type="hidden" value="<%=request("sub_id")%>"><%=request("sub_number")%></td></tr>
<tr><td align="right" class="cartshow1">Details:</td><td class="cartshow1"><input name="content" type="text" class=input size="25"></td></tr>
<tr><td class="cartshow0"></td><td class="cartshow0"><input name=B12 type=image src="img/regbutton.gif"></td></tr>
<tr><td class="cartshow1"></td><td class="cartshow1"></td></tr></form></table>
</div>
<%end if%>