fileSystemRoot/lib/documentmanagement/DocumentField.inc"); $oDocField = DocumentField::get($fDocFieldID); if ($oDocField) { // if we're setting lookup to be true, then prompt for an initial lookup value?? if ($oDocField->getHasLookup()) { // and there are no metadata values for this lookup // there shouldn't be since this has just been added- but lets be paranoid shall we? if (DocumentField::getLookupCount($fDocFieldID) == 0) { // then redirect to the edit metadata page controllerRedirect("addMetaDataForField", "fDocFieldID=$fDocFieldID"); } } } // include the page template (with navbar) require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); global $default; $Center .= renderHeading(_("Add Document Field")); $Center .= "\n"; $Center .= "\n"; if ($fDocFieldID == -1) { $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; } else { $Center .= "\n"; $Center .= "\n"; } $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; $Center .= "\n"; $Center .= "
" . _("Document Field addition Unsuccessful!") . "
" . _("Document Field added Successfully!") . "
rootUrl/control.php?action=addDocField\">
\n"; $oPatternCustom = & new PatternCustom(); $oPatternCustom->setHtml($Center); $main->setCentralPayload($oPatternCustom); $main->render(); } ?>