%' FP_ASP ASP Automatically generated by a FrontPage Component. Do not Edit. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1252 Session.LCID = 1106 Err.Clear strErrorUrl = "" If Request.ServerVariables("REQUEST_METHOD") = "POST" Then If Request.Form("VTI-GROUP") = "0" Then Err.Clear Set fp_conn = Server.CreateObject("ADODB.Connection") FP_DumpError strErrorUrl, "Cannot create connection" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Cannot create record set" fp_conn.Open Application("index_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "Results", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Cannot open record set" fp_rs.AddNew FP_DumpError strErrorUrl, "Cannot add new record set to the database" Dim arFormFields0(18) Dim arFormDBFields0(18) Dim arFormValues0(18) arFormFields0(0) = "Ministry" arFormDBFields0(0) = "Ministry" arFormValues0(0) = Request("Ministry") arFormFields0(1) = "IDnos" arFormDBFields0(1) = "IDnos" arFormValues0(1) = Request("IDnos") arFormFields0(2) = "DueProcessDate" arFormDBFields0(2) = "DueProcessDate" arFormValues0(2) = Request("DueProcessDate") arFormFields0(3) = "Agency" arFormDBFields0(3) = "Agency" arFormValues0(3) = Request("Agency") arFormFields0(4) = "Trace" arFormDBFields0(4) = "Trace" arFormValues0(4) = Request("Trace") arFormFields0(5) = "FMFFundsDate" arFormDBFields0(5) = "FMFFundsDate" arFormValues0(5) = Request("FMFFundsDate") arFormFields0(6) = "ContractClose" arFormDBFields0(6) = "ContractClose" arFormValues0(6) = Request("ContractClose") arFormFields0(7) = "GenComment" arFormDBFields0(7) = "GenComment" arFormValues0(7) = Request("GenComment") arFormFields0(8) = "Dept" arFormDBFields0(8) = "Dept" arFormValues0(8) = Request("Dept") arFormFields0(9) = "ProjectNos" arFormDBFields0(9) = "ProjectNos" arFormValues0(9) = Request("ProjectNos") arFormFields0(10) = "CommissionDate" arFormDBFields0(10) = "CommissionDate" arFormValues0(10) = Request("CommissionDate") arFormFields0(11) = "ProjectSchedule" arFormDBFields0(11) = "ProjectSchedule" arFormValues0(11) = Request("ProjectSchedule") arFormFields0(12) = "PayDate" arFormDBFields0(12) = "PayDate" arFormValues0(12) = Request("PayDate") arFormFields0(13) = "ContractValue" arFormDBFields0(13) = "ContractValue" arFormValues0(13) = Request("ContractValue") arFormFields0(14) = "DueProcessDateReleased" arFormDBFields0(14) = "DueProcessDateReleased" arFormValues0(14) = Request("DueProcessDateReleased") arFormFields0(15) = "MobilisationDateContractor" arFormDBFields0(15) = "MobilisationDateContractor" arFormValues0(15) = Request("MobilisationDateContractor") arFormFields0(16) = "ProjectEngineer" arFormDBFields0(16) = "ProjectEngineer" arFormValues0(16) = Request("ProjectEngineer") arFormFields0(17) = "Location" arFormDBFields0(17) = "Location" arFormValues0(17) = Request("Location") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Remote_computer_name" End If If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Browser_type" End If FP_SaveFieldToDB fp_rs, Now, "Timestamp" If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "User_name" End If fp_rs.Update FP_DumpError strErrorUrl, "Cannot update the database" fp_rs.Close fp_conn.Close FP_FormConfirmation "text/html; charset=windows-1252",_ "Form Confirmation",_ "Thank you for submitting the following information:",_ "index.htm",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
Trial Version
Copyright � 2008 Copyright Certificate No. CN/L/0607 Existence-ok Industries�. All rights reserved.