% '-------------------------------------------------------- ' Configurations for this page '-------------------------------------------------------- myPageName = "editJob.asp" myPageTable = "job" job_id = request("id") if job_id = "" then job_id = request("job_id") end if if job_id <> "" then set jobRS = objConn.Execute("Select * from job where id="&job_id) end if '-------------------------------------------------------- displayHeader() If not checkSecurity(20) then Response.Write("You must be a Company Administrator to access this page.") security_getLogonInfo(myPageName) else select case request("action") case "list" list() case "new" if (checkSecurity(30) or checkSecurity(CONST_securityToEditJobPrice))then edit() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "edit" if checkSecurity(30) or checkSecurity(CONST_securityToEditJobs) or (checkSecurity(20) and db_getData(jobRS, "company_id") = Session("User_Company") and CONST_adminEditJobs) then edit() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "deleteConfirm" if checkSecurity(30) or checkSecurity(CONST_securityToEditJobPrice) then edit() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "archive" if checkSecurity(30) or checkSecurity(CONST_securityToEditJobs) or (checkSecurity(20) and db_getData(jobRS, "company_id") = Session("User_Company") and CONST_adminEditJobs) then archiveOrder() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "update" if checkSecurity(30) or checkSecurity(CONST_securityToEditJobs) or (checkSecurity(20) and db_getData(jobRS, "company_id") = Session("User_Company") and CONST_adminEditJobs) then updateData() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "insert" if (checkSecurity(30) or checkSecurity(CONST_securityToEditJobPrice))then updateData() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case "delete" if (checkSecurity(30) or checkSecurity(CONST_securityToEditJobPrice))then updateData() else Response.Write("You do not have access here!") security_getLogonInfo(myPageName) end if case else list() end select end if displayFooter() function archiveOrder() sqlString = "update job set group_id="&CONST_archiveGroupId&" where id="&job_id objConn.Execute(sqlString) list() end function '-------------------------------------------------------------------------- ' This function shows the list of default disciplines. '-------------------------------------------------------------------------- function showInitDisciplineList() sqlString = "Select * from lkdiscipline order by disciplinename" set objRS = objConn.Execute(sqlString) %>
| Include | Name | Description | Cost | List Order |
|---|---|---|---|---|
| checked <% end if %>> | " required="true">* | "> | $* | * |