%
Action = Request.Querystring("Action") 'This may or may not exist
NextID = Request.Querystring("Next") 'This may or may not exist
Session("UserAccess") = "admin"
Call OpenDBConnect
if Action = "Delete" then
sDeleteFile = Request.Form("fDeleteFile")
arrDeleteFile = split(sDeleteFile,",")
pfx = " WHERE "
strSQL = ""
for i = 0 to ubound(arrDeleteFile)
strSQL = strSQL & pfx & "MessageID = " & arrDeleteFile(i)
pfx = " OR "
next
if pfx = " OR " then
strSQL = "DELETE FROM tblMessageBoard " & strSQL
Trace "sql",strSQL
objConnect.Execute(strSQL)
end if
end if
response.write FormatHeader("Message Board - Petites Annonces", "", "")
if gblFormat <> "print" then
' response.write vbCrlf & "[ Add a message - Ajouter un message ]"
response.write vbCrlf & " " _
& ""
end if
if NextID = "" then
sfx = ""
else
sfx = " AND MessageID < " & NextID
end if
strSQL = "SELECT * FROM tblMessageBoard WHERE EventID = " & SQLstr(gblSite) & sfx & " order by MessageID desc "
Trace "sql",strSQL
Set rs = objConnect.Execute(strSQL)
response.write vbCrlf & "