%if dev="yes" then response.Write "learning_centre.asp"%>
|
<%
Set MyConnSC = Server.CreateObject("ADODB.Connection")
MyConnSC.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=" & connn & ";"
'--------- page number----------- start
if request("id") = "" then
if request("ztitle")= "learning_centre" and request("level_2") = "Technical News" then
sqll0="Select count(zactive) from tbl_learning_centre where "&_
" zactive = 'yes' and "&_
" learn_type = '"& request("level_2") &"' and "&_
" date_start >= #"& mydate1(now()) &"#"
elseif request("ztitle")= "learning_centre" and request("level_2") = ""then
sqll0="Select count(zactive) from tbl_learning_centre where "&_
" zactive = 'yes' and "&_
" date_start >= #"& mydate1(now()) &"#"
elseif request("level_2") <> "" then
sqll0="Select count(zactive) from tbl_learning_centre where "&_
" = 'yes' and "&_
" learn_type = '"& request("level_2") &"' and "&_
" date_start >= #"& mydate1(now()) &"#"
end if
if dev="yes" then response.write " sqll0"& sqll0 '@ if sqll0 <> "" then Set rsl0=MyConnSC.Execute(sqll0) end if end if '--------- page number ------ end %> <% '--------- List learn----------- start if request("id") = "" then if request("ztitle")= "learning_centre" and request("level_2") = "Technical News" then sqll1="Select * from tbl_learning_centre where "&_ " zactive = 'yes' and "&_ " learn_type = '"& request("level_2") &"' and "&_ " date_start >= #"& mydate1(now()) &"#" &_ " order by learn_id asc" elseif request("ztitle")= "learning_centre" and request("level_2") = ""then sqll1="Select * from tbl_learning_centre where "&_ " zactive = 'yes' and "&_ " date_start >= #"& mydate1(now()) &"#" &_ " order by learn_id asc" elseif request("level_2") <> "" then sqll1="Select * from tbl_learning_centre where "&_ " zactive = 'yes' and "&_ " learn_type = '"& request("level_2") &"' and "&_ " date_start >= #"& mydate1(now()) &"#" &_ " order by learn_id asc" end if q1 = "&ztitle=learning_centre" if dev="yes" then response.write " sqll1"& sqll1 '@ if sqll1 <> "" then Set rsl1=MyConnSC.Execute(sqll1) If rsl1.eof = false then response.Write "
|
||||||||||||||||||||||||