%@LANGUAGE="VBSCRIPT"%> <% If Session("admin") = False or IsNull(Session("admin")) = True then response.Redirect("login.asp?strmode=edit") End If %> <% Response.Buffer = True Dim iMonth, iYear iMonth=Request ("month") iYear=Request ("year") if iMonth = "" then iMonth = Month(Now) sMonth=NameFromMonth(iMonth) if iYear = "" then iYear = Year(Now) Dim rsblog Dim rscommenti Dim vpage Dim page Dim Block Dim Blocks Dim RecordsInPage Dim intstart Dim i Dim totale Dim maxpages Dim PagStart Dim PagStop Dim RemainingRecords Dim NumberLastRecords Dim SQLCount Dim rsCount page = Request("page") RecordsInPage = Request("RecordsInPage") Block = Request("Block") if Block="" then Block=1 if RecordsInPage="" then RecordsInPage=intRecordsPerPage if page="" then page=1 SQLCount = "SELECT COUNT(*) as totale FROM blog" set rsCount = adoCon.Execute(SQLCount) totale = rsCount("totale") rsCount.Close set rsCount=Nothing %>
![]() |
|
| <% = strLangSelectEditDeleteBlog %> | |
![]() |
<% = request.querystring("msg") %> <% intStart = CInt((page-1) * intRecordsPerPage) strSQL = "SELECT blog.* FROM blog ORDER BY blog_id DESC" strSQL = strSQL & " LIMIT " & intStart & ", " & RecordsInPage set rsblog = adoCon.Execute(strSQL) Set rscommenti = Server.CreateObject("ADODB.Recordset") If rsblog.EOF AND rsblog.BOF Then Response.Write " " & strLangErrorMessageNoBlog3 & " <% = UCase(strLangGlobBlogInDb) %> : <% = totale %>
<% Response.Write "
<% rsblog.Close Set rsblog = Nothing Set rscommenti = Nothing Set strCon = Nothing Set adoCon = Nothing %> |
||||||||||||