<%
	dim writenote
	set rs_train=createobject("adodb.recordset")
	sql_train="select * from train where tname='" &Request.Cookies("admin_train_name")& "'"
	rs_train.open sql_train,Conn
	if not rs_train.eof then
		begintime=rs_train("begintime")	'会员期开始时间
		setup=rs_train("setup")	'帐号注册时间
		endtime=rs_train("endtime")	'会员期结束时间
		hideuser=rs_train("hideuser")	'会员是否隐藏帐号
		zhuangtai=rs_train("zhuangtai")	'会员帐号是否是否被审核
		subject_num=rs_train("subject_num")	'会员帐号可发课程的数目
		dlnum=rs_train("dlnum")	'会员帐号可发课程的数目
		refresh=rs_train("refresh")	'会员帐号刷新时间
		lasttime=rs_train("lasttime")	'会员帐号刷新时间
		ip=rs_train("ip")	'会员帐号刷新时间
		logo=rs_train("logo")	'会员展示LOGO
		mmoney=rs_train("mmoney")	'会员展示LOGO
	end if
	begint=datediff("d",now(),begintime)	'会员期开始时间与当前时间的差值
	endt=datediff("d",now(),endtime)	'会员期结束时间与当前时间的差值
	rs_train.close
	set rs_train=nothing
	if begint>0 and endt>0 then writenote="您的会员期还没有开始，请稍等"
	if endt<0 then writenote="您是普通培训用户，如果您想享受更多的服务，请升级充值"
	if begint<=0 and endt>=0 then action="ture"
	if begint<=0 and endt>=0 then usertype="ture"
%>