%
function getBmNum(Id)
Dim sql,rs,num,info
sql="Select Count(Id) From Z_Class_Bm where Cid="&Id
Set rs=zhcx.conn(sql)
if not rs.eof then
num=rs(0)
else
num=0
end if
rs.close
set rs=nothing
if Clng(num)>0 then
info=""&num&"人"
else
info=""&num&"人"
end if
getBmNum=info
end function
Chk_Admin_Login()
keyword=zhcx.checkstr(request("keyword"))
if keyword<>"" then
Sea=Sea&" and title like '%"&keyword&"%' "
End if
'分页代码
Set PageCls=new Page_Cls
Do_Table="Z_Class"
Do_Pars=" Id,title,StartTime,EndTime,addtime,pathhtml "
Do_order=" order by addtime desc"
Do_Sea=Sea
PageCls.GetPaSz(10)
Page_no=PageCls.RequestPage("Pageno")
Page_Total=PageCls.GetTotalRecord(Do_Table,Do_Pars,Do_Sea)
Page_Sql=PageCls.GetSql(Do_Table,Do_Pars,Do_Sea,Do_order)
Page_Count_Show=PageCls.Page_Count(Page_Total,Page_no,"?keyword="&keyword&"&")
Set PageCls=nothing
%>
<%=Zhcx.GetTopTemplates(2)%>