diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 49fe3bbfe..eda0d51dc 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -127,6 +127,127 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { $this->printDocumentChooserJs("form1"); } /* }}} */ + function documentInfos() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $document = $this->params['document']; + + $this->contentHeading(getMLText("document_infos")); + $this->contentContainerStart(); +?> + +isAdmin()) { + echo ""; + echo "\n"; + echo "\n"; + echo ""; + } +?> + + + + + + + + +getComment()) { +?> + + + + +isAdmin()) { + echo ""; + echo ""; + echo ""; + echo ""; + if($document->inheritsAccess()) { + echo ""; + echo "\n"; + echo ""; + } else { + echo ""; + echo ""; + echo ""; + echo ""; + } + } +?> + + + + + + + + +expires()) { +?> + + + + +getKeywords()) { +?> + + + + +getCategories()) { +?> + + + + + + getAttributes(); + if($attributes) { + foreach($attributes as $attribute) { + $attrdef = $attribute->getAttributeDefinition(); +?> + + + + + +
".getMLText("id").":".htmlspecialchars($document->getID())."
:getName());?>
: +getOwner(); + print "getEmail()."\">".htmlspecialchars($owner->getFullName()).""; +?> +
:getComment());?>
".getMLText('default_access').":".$this->getAccessModeText($document->getDefaultAccess())."
".getMLText("access_mode").":"; + echo getMLText("inherited")."
"; + $this->printAccessList($document); + echo "
".getMLText('access_mode').":"; + $this->printAccessList($document); + echo "
:getUsedDiskSpace());?>
:getDate()); ?>
:getExpires()); ?>
:getKeywords());?>
: + getName()); + echo implode(', ', $ct); + ?> +
getName()); ?>:getValueAsArray())); ?>
+contentContainerEnd(); + } /* }}} */ + function preview() { /* {{{ */ $dms = $this->params['dms']; $document = $this->params['document']; @@ -248,120 +369,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
contentHeading(getMLText("document_infos")); - $this->contentContainerStart(); -?> - -isAdmin()) { - echo ""; - echo "\n"; - echo "\n"; - echo ""; - } -?> - - - - - - - - -getComment()) { -?> - - - - -isAdmin()) { - echo ""; - echo ""; - echo ""; - echo ""; - if($document->inheritsAccess()) { - echo ""; - echo "\n"; - echo ""; - } else { - echo ""; - echo ""; - echo ""; - echo ""; - } - } -?> - - - - - - - - -expires()) { -?> - - - - -getKeywords()) { -?> - - - - -getCategories()) { -?> - - - - - - getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); -?> - - - - - -
".getMLText("id").":".htmlspecialchars($document->getID())."
:getName());?>
: -getOwner(); - print "getEmail()."\">".htmlspecialchars($owner->getFullName()).""; -?> -
:getComment());?>
".getMLText('default_access').":".$this->getAccessModeText($document->getDefaultAccess())."
".getMLText("access_mode").":"; - echo getMLText("inherited")."
"; - $this->printAccessList($document); - echo "
".getMLText('access_mode').":"; - $this->printAccessList($document); - echo "
:getUsedDiskSpace());?>
:getDate()); ?>
:getExpires()); ?>
:getKeywords());?>
: - getName()); - echo implode(', ', $ct); - ?> -
getName()); ?>:getValueAsArray())); ?>
-contentContainerEnd(); + $this->documentInfos(); $this->preview(); ?>