% 'open data connection Call OpenConn() %> <%'Include Utility Scripts%> <% 'close data connection Call CloseConn() %> <% If Request.QueryString("mode") = "delete" Then 'BEGIN: DELETE POSTING 'dim strMode - The strMode variable is defined in the header_inc.asp file. dim intPostingId intPostingId = Trim(Request.QueryString("id")) strMode = Trim(Request.QueryString("mode")) 'open data connection Call OpenConn() 'delete the selected subscriber 'Call DeletePosting(intPostingId) 'close data connection Call CloseConn() 'give the user feedback with regards to the success of the delete database transaction Session("FeedbackMode") = LCase(strMode) Session("FeedbackError") = err.number Session("FeedbackModule") = "posting" Response.Write("") Response.Write("") 'END: DELETE POSTING Else 'BEGIN: DISPLAY POSTING INDEX dim bolAdminView dim intPostingTypeId dim strPostingTypeName dim bolPostingTypeIdIsValid dim strCurrentModule dim intSelectedYear 'open the data connection Call openConn() 'get posting type id intPostingTypeId = Trim(Request.QueryString("type_id")) 'get selected year intSelectedYear = Trim(Request.QueryString("year")) 'if the submitted query string value for the intPostingTypeId variable is not of correct data type... If Not IsNumeric(intPostingTypeId) Or Not Trim(intPostingTypeId) <> "" Then 'set the bolPostingTypeIdIsValid variable to false bolPostingTypeIdIsValid = False 'if the submitted query string value for the intPostingTypeId variable is of correct data type... Else 'get the validity of the posting type id into the bolPostingTypeIdIsValid variable (true/false) bolPostingTypeIdIsValid = PostingTypeIdIsValid(intPostingTypeId) End If 'if the intCurrentPage variable numeric value is not valid... If Not bolPostingTypeIdIsValid Then 'redirect the user to the posting type index page Response.Redirect("/admin/content.asp") End If 'get posting type name strPostingTypeName = GetPostingTypeName(intPostingTypeId) %>
|
|
||
|
||
|
|
||