日期:2014-05-16 浏览次数:21032 次
Dim UserName,aSQLstring,sSQLstring
UserName=Session("sjcky_adminname")
Set aRs=Server.CreateObject("ADODB.RecordSet")
aSQLstring = "select lx_power from lx_admin where lx_username ='"&yzzh&"'"
aRs.Open SQLstring,Conn,1,1
IF Not aRs.EOF Then
DengJi=aRs(0)
Set sRs=Server.CreateObject("ADODB.RecordSet")
sSQLstring="select * from student where class like '%"& Left(UserName,2)&"%' order by adid desc"
sRs.Open sSQLstring,Conn,1,1
IF Not sRs.EoF Then
Do While Not sRs.EoF
Response.Write(Rs(0) & "<br>")
Rs.MoveNext:Loop
Else
Response.Write "<SCRIPT LANGUAGE=JavaScript>alert('抱歉暂时没有数据!');window.location.href='admin_head_sjcky.asp';</script>"
Response.End()
End IF
End IF