%@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 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 Dim blog_id blog_id = Request.QueryString("blog_id") 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 commenti WHERE commenti.blog_id =" & blog_id set rsCount = adoCon.Execute(SQLCount) totale = rsCount("totale") rsCount.Close set rsCount=Nothing %>
![]() |
|
| <% = strLangSelectEditDeleteComments %> <% = blog_id %> | |
![]() |
<% = request.querystring("msg") %> <% intStart = CInt((page-1) * intRecordsPerPage) strSQL = "SELECT commenti.* FROM commenti WHERE commenti.blog_id =" & blog_id strSQL = strSQL & " LIMIT " & intStart & ", " & RecordsInPage set rscommenti = adoCon.Execute(strSQL) If rscommenti.EOF AND rscommenti.BOF Then Response.Write "" Response.End Else %> <% = UCase(strLangGlobNumberOfComment) %>: <% = totale %>
<% Response.Write "
<% rscommenti.Close Set rscommenti = Nothing Set strCon = Nothing Set adoCon = Nothing %> |
||||||||