<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=SiteName%>查询报名信息_校无忧科技_Www.Xiao5u.Com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="author" content="校无忧科技_Www.Xiao5u.Com">
<meta name="description" content="校无忧在线报名系统_Www.Xiao5u.Com" />
<link href="images/index.css" rel="stylesheet" type="text/css">
<!--#include file=images/ini.sys -->
<script src="inc/check.js"></script>
</head>
<body>
<table cellSpacing=0 cellPadding=0 align=center width="960px">
  <tr>
    <td id="banner"><%=SiteName%></td>
  </tr>
</table>
<table width="960px" align="center" bgcolor="#FAFAFA">
 <tr>
  <td id="info"><%=Description%></td>
 </tr>
 <tr>
  <td id="info2"></td>
 </tr>
 <form name="search" method="post" action="Search.asp">
 <tr>
  <td id="info" align="center" ><b>查看报名结果，请输入您的查询码进行查询：</b><input name="chaid" type="text" id="chaid"> <input name="Query" type="submit" id="Query" value="查 询">  </td>
 </tr>
 </form>
<%
chaid=Server.HTMLEncode(request("chaid"))
if chaid<>"" then
sql="select * from result where chaid='"&chaid&"'"
set rs=server.createobject("adodb.recordset") 
rs.open sql,conn,1,1
if not rs.eof Then
if rs("comment")<>"" then
%>
  <tr bgcolor="#FFFFFF">
    <td height="25px"><b>报名信息</b></td>
  </tr>
<%
 sqlTopic="select * from Info order by id asc" 
 set rsTopic=server.createobject("adodb.recordset") 
 rsTopic.open sqlTopic,conn,1,1
 NumC=rsTopic.recordcount '显示数目
 Do while not rsTopic.eof
 For i = 1 to NumC
%>
  <tr bgcolor="#FFFFFF">
    <td height="25px"> 
     <%=i%>、<%=rsTopic("Topic")%> <font color="#FF0000"><%=rs("topic"&i)%></font> <%=rs("qt"&i)%> </td>
  </tr>  
<%
rsTopic.movenext 
Next
Loop
rsTopic.close
set rsTopic=nothing
%>
  <tr bgcolor="#FFFFFF" >
    <td height="25px"><b>回复内容</b></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="25px"><%=rs("comment")%></td>
  </tr> 
<%
else
  response.write "<tr align=center bgcolor=#FFFFFF><td height=35px><div>报名信息尚未审核</div></td></tr>"
end if
else
%>
  <tr align="center" bgcolor="#FFFFFF">
    <td height="50px">抱歉！没有搜索 <font color="#FF0000"><%=chaid%></font> 信息！</td>
  </tr>
<%
end if
rs.close
set rs=nothing
end if
%>
  <tr align="center" bgcolor="#FFFFFF">
    <td height="50px"><a href='index.asp'>返回报名页面</a></td>
  </tr>
</table>
<table cellSpacing=0 cellPadding=0 align=center background="images/botbj.jpg" width="960px">
  <tr>
    <td height=60 align="center"><a href="http://www.xiao5u.com/" target="_blank">校无忧</a> <%=Copyright%> <script src="http://s84.cnzz.com/stat.php?id=585346&web_id=585346" language="JavaScript"></script></td>
  </tr>
</table>
</body>
</html>