From 3a59b2a5e75b7610e83c2f6aff58c91143036e7a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 29 May 2013 20:06:08 +0200 Subject: [PATCH] show more information about attribute and how it is used --- views/bootstrap/class.AttributeMgr.php | 114 +++++++++++++++++++++---- 1 file changed, 99 insertions(+), 15 deletions(-) diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 07ec19ab5..bc0f352e5 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -98,9 +98,7 @@ function showAttributeDefinitions(selectObj) {
-
- -
- +
getID()."\" style=\"display : none;\">"; + print "
getID()."\" style=\"display : none;\">"; ?> - - - - + +
+
+
isUsed()) { ?> @@ -158,13 +154,101 @@ function showAttributeDefinitions(selectObj) { -

-'.getMLText('attrdef_in_use').'

'; + $res = $attrdef->getStatistics(3); + if(isset($res['frequencies']) && $res['frequencies']) { + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n\n"; + foreach($res['frequencies'] as $entry) { + echo ""; + } + print "
".getMLText("count")."".getMLText("value")."
".$entry['c']."".$entry['value']."
"; + } + if($res['docs']) { + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n"; + foreach($res['docs'] as $doc) { + $owner = $doc->getOwner(); + $latest = $doc->getLatestContent(); + $status = $latest->getStatus(); + print "\n"; + print ""; + print "\n"; + print ""; + print ""; + print ""; + print "\n"; + } + print "
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("value")."".getMLText("actions")."
getID()."\">" . htmlspecialchars($doc->getName()) . "".htmlspecialchars($owner->getFullName())."".getOverallStatusText($status["status"])."".$doc->getAttributeValue($attrdef).""; + print " ".getMLText("edit").""; + print "
"; + } + + if($res['folders']) { + print ""; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n"; + foreach($res['folders'] as $folder) { + $owner = $folder->getOwner(); + print ""; + print ""; + print "\n"; + print ""; + print ""; + print ""; + } + print "
".getMLText("name")."".getMLText("owner")."".getMLText("value")."".getMLText("actions")."
getID()."\">" . htmlspecialchars($folder->getName()) . "".htmlspecialchars($owner->getFullName())."".$folder->getAttributeValue($attrdef).""; + print " ".getMLText("edit").""; + print "
"; + } + + if($res['contents']) { + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n"; + foreach($res['contents'] as $content) { + $doc = $content->getDocument(); + $owner = $doc->getOwner(); + print "\n"; + print ""; + print "\n"; + print ""; + print ""; + print ""; + print ""; + print "\n"; + } + print "
".getMLText("name")."".getMLText("owner")."".getMLText("mimetype")."".getMLText("version")."".getMLText("value")."".getMLText("actions")."
getID()."\">" . htmlspecialchars($doc->getName()) . "".htmlspecialchars($owner->getFullName())."".$content->getMimeType()."".$content->getVersion()."".$content->getAttributeValue($attrdef).""; + print " ".getMLText("edit").""; + print "
"; + } } ?> -
@@ -242,12 +326,12 @@ function showAttributeDefinitions(selectObj) {
- +
+
-