%
Dim totalPage, totalRecords, displayRecords
If Not session("admin_loggedin" & strSUnique) = Session.SessionID then Response.Redirect "default.asp"
msgNomarkes = "
There are no replies to users ads found. RESET
" Select Case Request.Form("act") Case "delete" flag = CLng(Request.Form("C1")) dateRange = CLng(Request.Form("D1")) If dateRange > 0 then setLocale server_locale sdd = dd(objConn) baseDate = Date - dateRange baseDate = ConvDate(baseDate) strCondition = " WHERE rdate < " & sdd & baseDate & sdd If flag = 1 then strCondition = strCondition & " AND flag = 0 " ElseIf dateRange = 0 Then If flag = 1 then strCondition = " WHERE flag = 0 " End If strSQL = "DELETE FROM " & tablPfx & "Reply " & strCondition & ";" objConn.Execute(strSQL) Response.Redirect "admin_replies.asp?" & Request.Querystring End select If Len(Request("id")) > 0 And isNumeric(Request("id")) then strFilter = " AND " & tablPfx & "Reply.userID = " & CLng(Request("id")) isUserOnly = True End If strSQL = "SELECT " & tablPfx & "Reply.*," & tablUPfx & "User.nick FROM " & tablPfx & "Reply, " & tablUPfx & "User " strSQL = strSQL & "WHERE " & tablUPfx & "User.userID = " & tablPfx & "Reply.userID " & strFilter & " ORDER BY rdate DESC;" rs.PageSize = pp rs.CacheSize = pp rs.CursorLocation = 3 rs.Open strSQL, strConn, 0, 1 If not rs.EOF then %>