<!--#include file="../inc.asp"-->
<!--#include file="../ydzq.asp"-->

<%Call head()
Call saycarda("升学成功")%>


<%
  set objgbrs=Server.CreateObject("ADODB.Recordset")
  ssql="select qs,love,mytl,myml,mych,myzl,xf,xl,id,myjb,nianji from users where [id] ="&myid
  objgbrs.open ssql,conn
  if objgbrs("nianji")<>1 then
  Response.write "我晕,你不是小学一年级的成员~<br/><a href='/bbs/school/school.asp?sid="&sid&"&amp;saytk="&saytk&"'>高等学府</a><br/>"
    Response.end
  end if  
  '1
if objgbrs("xf")<500 or objgbrs("qs")<1000 or objgbrs("love")<1000 then
Response.write "你的属性还不够升学!回去学够才来吧~"
end if
if objgbrs("nianji")=1 and objgbrs("xf")>=500 and objgbrs("qs")>=1000 and objgbrs("love")>=1000 then
sql="update users set nianji=2 where [id] ="&myid
conn.execute sql
Response.write "恭喜!已经成为二年级的学生了!!"
end if
sql="Delete DATEDIFF FROM gxx WHERE [id] ="&myid
conn.Execute sql
conn.close
set rec=nothing
set conn=nothing
%>
<br/><a href='/bbs/school/school.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>高等学府</a><br/>
<br/><a href='/bbs/show.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>地盘</a>-<a href='/bbs/index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>'>社区首页</a>
<br/><%=now%>
<%Call headsay()%>
