home *** CD-ROM | disk | FTP | other *** search
/ bombers.k12.ar.us / bombers.k12.ar.us.tar / bombers.k12.ar.us / survey / DeleteReportFilter.asp < prev    next >
Text File  |  2006-11-29  |  2KB  |  34 lines

  1. <!--#Include File="Include/Top_inc.asp"-->
  2. <%
  3. '***********************************************************************
  4. '   Application: SelectSurveyASP Advanced v8.1.11
  5. '   Author: Aaron Baril for ClassApps.com
  6. '   Page Description: This page deletes a report filter, and then redirects the
  7. '                     user back to the report filter list for the specified survey.
  8. '
  9. '   COPYRIGHT NOTICE                                
  10. '
  11. '   See attached Software License Agreement
  12. '
  13. '   (c) Copyright 2002 - 2006 by ClassApps.com.  All rights reserved.
  14. '***********************************************************************
  15. %>
  16. <!--#Include File="Include/Config_inc.asp"-->
  17. <!--#Include File="Include/Utility_inc.asp"-->
  18. <!--#Include File="Include/adovbs_inc.asp"-->
  19. <!--#Include File="Include/ID_inc.asp"-->
  20. <!--#Include File="Include/CurrentUser_inc.asp"-->
  21. <!--#Include File="Include/SurveySecurity_inc.asp"-->
  22. <!--#Include File="Include/Constants_inc.asp"-->
  23. <%
  24.     'If the user has access to the overview report, they also have permission to delete the report filter
  25.     If CanUserViewOverviewReport(Request.Form("SurveyID")) = False Then
  26.         Response.Redirect "AccessDenied.asp?SurveyID=" & Request.Form("SurveyID") & "&Reason=" & SUR_ACCESS_DENIED_NOT_PERMISSION_TO_PAGE_FILTERS
  27.     End If
  28.  
  29.     'Delete the report filter ID
  30.     DeleteReportFilter Request.Form("SurveyID")
  31.  
  32.     'Redirect to the list of report filters for the specified survey
  33.     Response.Redirect "ReportFilterList.asp?SurveyName=" & Request.QueryString("SurveyName") & "&SurveyID=" & lngSurveyID & "&DisplayHeader=" & Request.QueryString("DisplayHeader")
  34. %>