\n";
-
- return $sToRender;
-}
-
-
-// page that comes up when there is nothing selected
-function getPageNotSelected() {
- global $default;
-
- $sToRender .= renderHeading("Assign Document Field to Document Type");
- $sToRender .= "
\n";
- $sToRender .= "
Sorry, Selection Failed
\n";
- $sToRender .= "
Please select BOTH a Document Type AND a Document Field
\n";
- }
-}
-
-
-?>
\ No newline at end of file
diff --git a/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldBL.php b/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldBL.php
deleted file mode 100644
index 5f68af1..0000000
--- a/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldBL.php
+++ /dev/null
@@ -1,72 +0,0 @@
-fileSystemRoot/lib/visualpatterns/PatternListBox.inc");
- require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCreate.inc");
- require_once("removeDocTypeFromFieldUI.inc");
- require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentType.inc");
- require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentField.inc");
- require_once("$default->fileSystemRoot/lib/documentmanagement/DocumentTypeFieldLink.inc");
- require_once("$default->fileSystemRoot/lib/security/permission.inc");
- require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
- require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
- require_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
- require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/foldermanagement/folderUI.inc");
- require_once("$default->fileSystemRoot/presentation/Html.inc");
-
-
- $oPatternCustom = & new PatternCustom();
-
- if(!isset($fDocTypeSet)){
- // build first page
-
- $oPatternCustom->setHtml(getPage(null,null));
- $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocTypeSet=1");
-
- }else{
- // do a check to see both drop downs selected
- if($fDocTypeID == -1){
- $oPatternCustom->setHtml(getPageNotSelected());
-
- }else{ $fDocFieldID = DocumentTypeFieldLink::docTypeBelongsToField($fDocTypeID);
- $oPatternCustom->setHtml(getPage($fDocTypeID,$fDocFieldID));
- $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocTypeSet=1&fDeleteConfirmed=1");
- }
-
- }
-
-
- if (isset($fDeleteConfirmed)){
-
- // else add to db and then goto page succes
- $oDocTypeField = new DocumentTypeFieldLink($fDocTypeID,$fDocFieldID, $fbIsMandatory);
-
- //check if checkbox checked
- if (isset($fbIsMandatory)) {
- $oDocTypeField->setIsMandatory(true);
- } else {
- $oDocTypeField->setIsMandatory(false);
- }
-
-
- $oDocTypeField->setDocTypeFieldID($fDocTypeID);
- $oDocTypeField->delete();
- $oPatternCustom->setHtml(getPageSuccess());
-
- }
-
- // render page
- $main->setCentralPayload($oPatternCustom);
- $main->render();
-
-}
-?>
diff --git a/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldUI.inc b/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldUI.inc
deleted file mode 100644
index e124ec1..0000000
--- a/presentation/lookAndFeel/knowledgeTree/administration/doctypefieldmanagement/removeDocTypeFromFieldUI.inc
+++ /dev/null
@@ -1,199 +0,0 @@
-Are you sure you wish to remove the Document Type from the Document Field?\n";
- }else{
- $heading = "
Please select a Document Type:
\n";
- }
-
- // when DocFieldid is gotten show the name
- if (isset($iDocFieldID)) {
- $oDocField = DocumentField::get($iDocFieldID);
- $DocFielddisplay = "
Document Field Name: " . getDocFieldDisplay($oDocField) . "
\n";
-
- }
- else{
- $DocFielddisplay = "";
- }
-
- $sToRender .= " \n";
- $sToRender .= "Select a Document Type to Remove from its Document Field:\n";
- $sToRender .= "