<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="pinfo.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/char.asp"-->
<!--#include file="../inc/money.asp"-->
<!--#include file="../inc/ptime.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	id=ReplaceBadChar(Request.Cookies("admin_person_id"))
	uname=ReplaceBadChar(Request.Cookies("admin_person_name"))
	action1=ReplaceBadChar(Trim(Request.QueryString("action")))
	if action1="up" then
		conn.Execute "update person set setup=Getdate() where id="&id&""
		conn.Execute "update person set idate=Getdate() where id="&id&""
		response.write"<SCRIPT language=JavaScript>alert('简历日期刷新成功，现在正为您返回，请稍等');"
		response.write"javascript:history.go(-1);</SCRIPT>"
		response.end
	end if
	if action1="open" then
		conn.Execute "update person set hideuser=1 where id="&id&""
		response.write"<SCRIPT language=JavaScript>alert('简历激活成功，现在正为您返回，请稍等');"
		response.write"javascript:history.go(-1);</SCRIPT>"
		response.end
	end if
	if action1="close" then
		conn.Execute "update person set hideuser=0 where id="&id&""
		response.write"<SCRIPT language=JavaScript>alert('简历屏蔽成功，现在正为您返回，请稍等');"
		response.write"javascript:history.go(-1);</SCRIPT>"
		response.end
	end if
	if action1="vip" then
		if gj=1 then
			response.write"<SCRIPT language=JavaScript>alert('您已经是高级人才,无须再申请,祝福您前途无量');"
			response.write"javascript:history.go(-1);</SCRIPT>"
			response.end
		else
			if changepay=0 then
				if dian<vipperson or dian<0 then
					response.write"<SCRIPT language=JavaScript>alert('对不起，您的M币不够，请充值！！');"
					response.write"javascript:history.go(-1);</SCRIPT>"
					response.end
				else
					conn.execute("update person set dian=dian-" & vipperson & " , fen=fen+" & vipperson1 & " where uname='" & uname & "'")
					conn.execute("update person set gj=1 where uname='" & uname & "'")
					response.write"<SCRIPT language=JavaScript>alert('您已经申请成为高级人才,祝福您前途无量');"
					response.write"javascript:history.go(-1);</SCRIPT>"
					response.end
				end if
			else
				if action="ture" then
					conn.execute("update person set gj=1 where uname='" & uname & "'")
					response.write"<SCRIPT language=JavaScript>alert('您已经申请成为高级人才,祝福您前途无量');"
					response.write"javascript:history.go(-1);</SCRIPT>"
					response.end
				else
					response.write"<SCRIPT language=JavaScript>alert('"&writenote&"');"
					response.write"javascript:history.go(-1);</SCRIPT>"
					response.end
				end if
			end if
		end if	
	end if
%>