$classname = $thereturn["maintable"]; $thetable = new $classname($db, $tabledefid, $backurl); } else { $thetable = new phpbmsTable($db, $tabledefid, $backurl); } //finally, check to see if import class exists if (class_exists($thereturn["maintable"] . "Import")) { $classname = $thereturn["maintable"] . "Import"; $import = new $classname($thetable); } else { $import = new phpbmsImport($thetable); } //Next we process the form (if submitted) and // return the current record as an array ($therecord) // or if this is a new record, it returns the defaults $therecord = $import->processImportPage(); //make sure that we set the status message id the processing returned one // (e.g. "Record Updated") if (isset($therecord["phpbmsStatus"])) { $statusmessage = $therecord["phpbmsStatus"]; } $pageTitle = $therecord["title"] ? $therecord["title"] : "General Table Import"; $phpbms->cssIncludes[] = "pages/imports.css"; //Form Elements //============================================================== // Create the form $theform = new importForm(); $theform->enctype = "multipart/form-data"; // lastly, use the jsMerge method to create the final Javascript formatting $theform->jsMerge(); //==============================================================