% if session("admin")="" then conn.close set conn = nothing response.Write "" response.End end if if FormatSQL(SafeRequest("action",0))="del" then conn.execute "delete from Notice where id in ("&request.form("selectdel")&")" response.Redirect "announcements.asp" end if call flagstr("常规管理","../error.htm") if request("action")="html" then set rs1=conn.execute("select * from notice") do while not rs1.eof call HtmlAout("/templets/about.html",rs1(0)&"") rs1.movenext loop rs1.close set rs1=nothing end if set rs=conn.execute("select max(topid) as a from notice") if not rs.eof then topid=rs(0) end if rs.close set rs=nothing if request("action")="top" then conn.execute("update notice set topid=topid+1 where id="&request("id")) end if if request("action")="down" then conn.execute("update notice set topid=topid-1 where id="&request("id")) end if %>
| 基本信息 |
|
您还没有添加公告! " else totalPut=rs.recordcount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then showContent showpage totalput,MaxPerPage,"announcements.asp" else if (currentPage-1)*MaxPerPage<% End Sub Function showpage(totalnumber,maxperpage,filename) Dim n If totalnumber Mod maxperpage=0 Then n= totalnumber \ maxperpage Else n= totalnumber \ maxperpage+1 End If Response.Write " " End Function %>
|