管 理
| <%
dim sqlBigClass,sqlSmallClass,rsBigClass,rsSmallClass,sqlSpecial,rsSpecial
sqlBigClass="select * from BigClass3"
Set rsBigClass= Server.CreateObject("ADODB.Recordset")
rsBigClass.open sqlBigClass,conn,1,1
if rsBigClass.eof then
response.Write("还没有任何栏目,请首先添加栏目。")
end if
do while not rsBigClass.eof
if rsBigClass("BigClassName")=BigClassName then
response.Write("" & rsBigClass("BigClassName") & " | ")
if session("purview")=3 then
strAdmin=rsBigClass("Admin")
if Instr(strAdmin,"|")>0 then
arrAdmin=split(strAdmin)
for i=0 to ubound(arrAdmin)
if trim(arrAdmin(i))=session("admin") then
PurviewChecked=True
exit for
end if
next
else
if trim(strAdmin)=session("Admin") then
PurviewChecked=True
end if
end if
end if
else
response.Write("" & rsBigClass("BigClassName") & " | ")
end if
rsBigClass.movenext
loop
rsBigClass.close
set rsBigClass=nothing
%>
|
<%
if BigClassName<>"" then
set rsbignew=server.createobject("adodb.recordset")
sql2 = "select * from BigClass3 where BigClassID="&cint(BigClassName)
rsbignew.open sql2,conn,1,1
sqlSmallClass="select * from SmallClass where BigClassName='" &rsbignew("BigClassName")& "'"
Set rsSmallClass= Server.CreateObject("ADODB.Recordset")
rsSmallClass.open sqlSmallClass,conn,1,1
if not (rsSmallClass.bof and rsSmallClass.eof) then
response.write "| "
do while not rsSmallClass.eof
if rsSmallClass("SmallClassID")=cint(SmallClassName) then
response.Write(" " & rsSmallClass("SmallClassName") & " ")
if session("purview")=4 then
strAdmin=rsSmallClass("Admin")
if Instr(strAdmin,"|")>0 then
arrAdmin=split(strAdmin)
for i=0 to ubound(arrAdmin)
if trim(arrAdmin(i))=session("admin") then
PurviewChecked=True
exit for
end if
next
else
if trim(strAdmin)=session("Admin") then
PurviewChecked=True
end if
end if
end if
else
response.Write(" " & rsSmallClass("SmallClassName") & " ")
end if
rsSmallClass.movenext
loop
response.write " | "
end if
rsSmallClass.close
set rsSmallClass=nothing
end if
%>
|