% '----------------------------------------------------------- '-- TITLE: EDIT FUNCTIONS '-- AUTHOR: MALCOLM ELSWORTH [malcolm@electricputty.co.uk] '-- LAST MODIFIED: 29-04-06 '-- (C) ELECTRIC PUTTY LIMITED '----------------------------------------------------------- '----------------------------------------------------------- '-- FUNCTION TO WRITE ia INFORMATION FORM '----------------------------------------------------------- function writeEditorTabs() '-- Page Status tab if pageObj.p_type = "Page" then if editType = "status" then response.write("
" & VbCrLf) end function '----------------------------------------------------------- '-- FUNCTION AND SUB ROUTINES TO WRITE PAGE STATUS SCREEN '----------------------------------------------------------- dim thisStatusAction function writeStatusInformation() if len(errorMsg) > 0 then response.write("
" & errorMsg & "
") elseif len(confirmMsg) > 0 then response.write("" & confirmMsg & "
") else response.write("") end if response.write("" & VbCrLf) end function sub writeSubmissionForm() if pageObj.p_status = 1 then thisStatusAction = "submitForApproval" else thisStatusAction = "submitNewForApproval" end if '-- If you don't have publishing right you can submit for approval if this_page_permissions(4) = 0 then response.write("
Notes to editor:
" & VbCrLf) response.write("" & VbCrLf) response.write("" & VbCrLf) response.write("
" & VbCrLf) else writeApprovalForm() end if end sub sub writeApprovalForm() if pageObj.p_status = 2 or pageObj.p_status = 1 then thisStatusAction = "publish" else thisStatusAction = "publishNew" end if if this_page_permissions(4) = 1 then response.write("" & VbCrLf) response.write("" & VbCrLf) response.write("" & VbCrLf) if pageObj.p_status > 3 then response.write("" & VbCrLf) end if if pageObj.p_status = 2 or pageObj.p_status = 5 then response.write("" & VbCrLf) end if response.write("" & VbCrLf) response.write("
" & VbCrLf) end if end sub '----------------------------------------------------------- '-- FUNCTION TO WRITE ia INFORMATION FORM '----------------------------------------------------------- function writeIAInformation() if len(errorMsg) > 0 then response.write("
" & errorMsg & "
") elseif len(confirmMsg) > 0 then response.write("" & confirmMsg & "
") else response.write("") end if response.write("" & VbCrLf) end function '----------------------------------------------------------- '-- FUNCTION TO WRITE CONTENT INFORMATION PAGE '----------------------------------------------------------- function writeContentInformation() response.write("
" & errorMsg & "
") elseif len(confirmMsg) > 0 then response.write("" & confirmMsg & "
") else response.write("") end if response.write("" & VbCrLf) response.write("" & VbCrLf) end function %>