".htmlspecialchars(getMLText("confirm_rm_document", array ("documentname" => $document->getName())), ENT_QUOTES)."
".htmlspecialchars(getMLText("confirm_rm_folder", array ("foldername" => $folder->getName())), ENT_QUOTES)."
\n";
-$this->contentHeading(getMLText("chart_selection"));
-echo "
\n";
-foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) {
- echo "
\n";
-}
-echo "
\n";
-echo "
\n";
-
-if(in_array($type, array('docspermonth', 'docsaccumulated'))) {
- echo "\n";
-} else {
- echo "
\n";
-}
-$this->contentHeading(getMLText('chart_'.$type.'_title'));
-echo "
\n";
-
-if(!in_array($type, array('docspermonth', 'docsaccumulated'))) {
- echo "
\n";
- $this->contentHeading(getMLText('legend'));
- echo "
\n";
- echo "
\n";
- echo "
\n";
-}
-
-echo "
\n";
-?>
-'."\n".
+ ''."\n".
+ ''."\n".
+ ''."\n");
+
+ $this->htmlStartPage(getMLText("folders_and_documents_statistic"));
+ $this->globalNavigation();
+ $this->contentStart();
+ $this->pageNavigation(getMLText("admin_tools"), "admin_tools");
+
?>
-
+
\n";
+
+echo "
\n";
+$this->contentHeading(getMLText("chart_selection"));
+echo "
\n";
+foreach(array('docsperuser', 'sizeperuser', 'docspermimetype', 'docspercategory', 'docsperstatus', 'docspermonth', 'docsaccumulated') as $atype) {
+ echo "
\n";
+}
+echo "
\n";
+echo "
\n";
+
+if(in_array($type, array('docspermonth', 'docsaccumulated'))) {
+ echo "
\n";
+} else {
+ echo "
\n";
+}
+$this->contentHeading(getMLText('chart_'.$type.'_title'));
+echo "
\n";
+
+if(!in_array($type, array('docspermonth', 'docsaccumulated'))) {
+ echo "
\n";
+ $this->contentHeading(getMLText('legend'));
+ echo "
\n";
+ echo "
\n";
+ echo "
\n";
+}
+
+echo "
\n";
$this->contentContainerEnd();
$this->htmlEndPage();
diff --git a/views/bootstrap/class.DocumentAccess.php b/views/bootstrap/class.DocumentAccess.php
index 51f3d9b89..b58478e54 100644
--- a/views/bootstrap/class.DocumentAccess.php
+++ b/views/bootstrap/class.DocumentAccess.php
@@ -40,23 +40,9 @@ class SeedDMS_View_DocumentAccess extends SeedDMS_Bootstrap_Style {
print "\n";
} /* }}} */
- function show() { /* {{{ */
- $dms = $this->params['dms'];
- $user = $this->params['user'];
- $document = $this->params['document'];
- $folder = $this->params['folder'];
- $allUsers = $this->params['allusers'];
- $allGroups = $this->params['allgroups'];
-
-
- $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))));
- $this->globalNavigation($folder);
- $this->contentStart();
- $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
-
+ function js() { /* {{{ */
+ header('Content-Type: application/json');
?>
-
-
+$(document).ready( function() {
+ $('body').on('submit', '#form1', function(ev){
+ if(checkForm()) return;
+ event.preventDefault();
+ });
+});
params['dms'];
+ $user = $this->params['user'];
+ $document = $this->params['document'];
+ $folder = $this->params['folder'];
+ $allUsers = $this->params['allusers'];
+ $allGroups = $this->params['allgroups'];
+
+
+ $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))));
+ $this->globalNavigation($folder);
+ $this->contentStart();
+ $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
$this->contentHeading(getMLText("edit_document_access"));
$this->contentContainerStart();
@@ -233,7 +239,7 @@ function checkForm()
print "
";
}
?>
-