From: cajus Date: Tue, 2 Mar 2010 08:00:03 +0000 (+0000) Subject: Updated styles and images for listings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5de75f2bcaedeb2b3153e0291ada31e05d244c2f;p=gosa.git Updated styles and images for listings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15825 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/themes/modern/style.css b/gosa-core/html/themes/modern/style.css index f69757487..4304e81f4 100644 --- a/gosa-core/html/themes/modern/style.css +++ b/gosa-core/html/themes/modern/style.css @@ -764,6 +764,14 @@ div.listContainer { padding-right:20px; } +.listScrollContent td div.img { + padding-right:1px; +} + +.listScrollContent td input[type=submit].img { + margin-right:1px; +} + .listBodyFormat tr td { color:#000; margin:3px; diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 3af94e18f..7b2cab180 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -818,7 +818,7 @@ class listing { $objectType= $this->getObjectType($this->objectTypes, $classes); if ($objectType) { $this->objectDnMapping[$dn]= $objectType["objectClass"]; - $result= ""; + $result= image($objectType["image"], null, null, LDAP::fix($dn)); if (!isset($this->objectTypeCount[$objectType['label']])) { $this->objectTypeCount[$objectType['label']]= 0; } @@ -842,7 +842,7 @@ class listing { foreach($actions as $action) { // Skip the entry completely if there's no permission to execute it if (!$this->hasActionPermission($action, $dn, $classes)) { - $result.= " "; + $result.= image('images/empty.png'); continue; } @@ -852,12 +852,12 @@ class listing { if (preg_match('/^(.*)!$/', $fa, $m)){ $fa= $m[1]; if (isset($this->entries[$row][$fa]) && $this->entries[$row][$fa][0] == $fv) { - $result.= " "; + $result.= image('images/empty.png'); continue; } } else { if (!isset($this->entries[$row][$fa]) && !$this->entries[$row][$fa][0] == $fv) { - $result.= " "; + $result.= image('images/empty.png'); continue; } } @@ -871,17 +871,17 @@ class listing { if (preg_match('/^!(.*)$/', $objectclass, $m)){ $objectclass= $m[1]; if(in_array($objectclass, $classes)) { - $result.= " "; + $result.= image('images/empty.png'); continue; } } elseif (is_string($objectclass)) { if(!in_array($objectclass, $classes)) { - $result.= " "; + $result.= image('images/empty.png'); continue; } } elseif (is_array($objectclass)) { if(count(array_intersect($objectclass, $classes)) != count($objectclass)){ - $result.= " "; + $result.= image('images/empty.png'); continue; } } @@ -891,8 +891,7 @@ class listing { if ($action['type'] == "entry") { $label= $this->processElementFilter($action['label'], $this->entries[$row], $row); $image= $this->processElementFilter($action['image'], $this->entries[$row], $row); - $result.=""; + $result.= image($image, null, "listing_".$action['name']."_$row", $label); } // Handle special types @@ -1413,20 +1412,18 @@ class listing { // Render cut entries if($cut){ if($ui->is_cutable($dn, $category, $class)){ - $result .= ""; + $result.= image('images/lists/cut.png', null, "listing_cut_$row", _("Cut this entry")); }else{ - $result.=" "; + $result.= image('images/empty.png'); } } // Render copy entries if($copy){ if($ui->is_copyable($dn, $category, $class)){ - $result.= ""; + $result.= image('images/lists/copy.png', null, "listing_copy_$row", _("Copy this entry")); }else{ - $result.=" "; + $result.= image('images/empty.png'); } } @@ -1506,21 +1503,17 @@ class listing { // Do we have snapshots for this dn? if($this->snapshotHandler->hasSnapshots($dn)){ - $result.= ""; + $result.= image('images/lists/restore.png', null, "listing_restore_$row", _("Restore snapshot")); } else { - $result.= " "; + $result.= image('images/lists/restore_grey.png'); } } // Draw snapshot button if($ui->allow_snapshot_create($dn, $category)){ - $result.= ""; + $result.= image('images/snapshot.png', null, "listing_snapshot_$row", _("Create a new snapshot from this object")); }else{ - $result.= " "; + $result.= image('images/empty.png'); } } diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 0eb5197f3..03a72b4ee 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -786,11 +786,9 @@ class userManagement extends management // Walk thru map foreach ($map as $oc => $properties) { if (in_array_ics($oc, $classes)) { - $result.=""; + $result.= image($properties['image'], null, "listing_edit_".$properties['plugin']."_$row", $properties['title']); } else { - $result.=" "; + $result.= image('images/empty.png'); } } return $result;