mustHave='onBlur="alertOnNull(this)"'; includeVerify(); function writeHeader(title, instructions, image){ header("title", image, "") write("
"); header2(title, instructions, button("Save", null, "javascript:isFormOK(document.editForm)"), button("Reset", null, "javascript:reset(document.editForm)"), button("Cancel", null, null),"" ); write( "" +"" ); }; dbConnect(); if (database.connected()!=true){ write("

Sorry, the JOBS database is currently unavailable.

"); HaltOperations(); } else { if (request.mode=="edit") { writeHeader("", "Make changes, then click Save", project.HJobEditImage); cursor=database.cursor("SELECT * FROM JOB WHERE JID="+request.jid+";"); }; if (request.mode=="copy") { writeHeader("", "Modify this copy. Then click Save", project.HJobAddImage); //#### Needs its own image ### cursor=database.cursor("SELECT * FROM JOB WHERE JID="+request.jid+";"); }; if (request.mode=="add") { writeHeader("", "Fill out the information, then click Save", project.HJobAddImage); // Note: no cursor needed. }; if (request.mode!="add" && cursor.next()!=true){ write("
An error has been encountered in retrieving data for editing.
"); HaltOperations(); }; //-----------------Create the field objects and build the data-entry display table----------- fields = new FieldsList("JOB"); buildDataEntryTable(); //-----------------At bottom of page, show serial number and creation & edit dates/times ----- write("

Internal Serial Number = " + cursor.jid + "" + "
Time Job Record Created = " +cursor.tcreated + "" + "
Time Record Last Edited = " +cursor.tedit + ""); }; dbDisconnect();
footer();