<!--#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>
<%if Ys=1 then %>
  <tr>
    <td align="center" height="120px">
<%
   if Session("vote")="yes" or request.form("Option1")="" then
      response.write "<div>错误：请勿重复提交您的报名信息！<p><a href='index.asp'>返回报名页面</a></div>"
   else
	  Randomize 
	  abcd=right(rnd(),4)
	  chaid=year(now())&month(now())&day(now())&hour(now())&minute(now())&second(now())&abcd
      Set rs = Server.CreateObject( "ADODB.Recordset" )
      sql = "select * from Result"
	  rs.open sql,conn,1,3
      rs.addnew
      '由题目序号逐一添加选项
      rsCount=request.form("rsCount")
      For i = 1 to rsCount
      if i=rsCount+1 then
      Exit For
      end if
      rs("topic"&i) = request.form("Option"&i)
      rs("qt"&i) = request.form("qt"&i)
      next
      '添加题目选项结束
      rs("addip")=request.ServerVariables("REMOTE_ADDR")
      rs("comment")=request.form("comment")
      rs("chaid")=chaid
      rs.update
      rs.close
      Set rs=nothing
	  Session("vote")="yes"
      session.TimeOut=6
      response.write"<div>恭喜：您的报名信息提交成功！<p><p><div style=color:#FF0000>请牢记您的查询码：<b>"&chaid&"</b>，以方便查询报名情况！</div><p><a href='index.asp'>返回报名页面</a></div>"
   end if%>
	  </td>
    </tr>
<%else%>
  <tr>
    <td align="center" height="120px"><b>校无忧科技友情提示：报名系统已关闭！</b></td>
  </tr>
<%end if%>
</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>