Exemple #1
0
     log::insert("Data Entry: Metadata: Submit", 0, $engine->cleanGet['MYSQL']['formID']);
     $return = forms::submit($engine->cleanGet['MYSQL']['formID']);
     if ($return === FALSE) {
         throw new Exception("Error Submitting Form.");
     }
 } else {
     if (isset($engine->cleanPost['MYSQL']['updateForm'])) {
         log::insert("Data Entry: Metadata: Update", 0, $engine->cleanGet['MYSQL']['formID']);
         $return = forms::submit($engine->cleanGet['MYSQL']['formID'], $engine->cleanGet['MYSQL']['objectID']);
         if ($return === FALSE) {
             throw new Exception("Error Updating Form.");
         }
     } else {
         if (isset($engine->cleanPost['MYSQL']['updateEdit'])) {
             log::insert("Data Entry: Metadata: Update Edit", 0, $engine->cleanGet['MYSQL']['formID']);
             $return = forms::submitEditTable($engine->cleanGet['MYSQL']['formID']);
             if ($return === FALSE) {
                 throw new Exception("Error Updating Form.");
             }
         }
     }
 }
 if (!isnull($return) && $ajax === TRUE) {
     die(displayMessages());
 }
 // build the form for displaying
 $builtForm = forms::build($engine->cleanGet['MYSQL']['formID'], $engine->cleanGet['MYSQL']['objectID']);
 if ($builtForm === FALSE) {
     throw new Exception("Error building form.");
 }
 $builtEditTable = forms::buildEditTable($engine->cleanGet['MYSQL']['formID']);