From 0abda3c46751ef01cd835d555af0ba14ac2b0495 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 10 Mar 2010 19:07:48 +0000 Subject: [PATCH] Updated filters. Made list display non red framed icons. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16398 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/ihtml/themes/modern/userFilterEditor.tpl | 1 + gosa-core/include/class_sortableListing.inc | 14 +++++++------- gosa-core/include/class_userFilter.inc | 3 +++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gosa-core/ihtml/themes/modern/userFilterEditor.tpl b/gosa-core/ihtml/themes/modern/userFilterEditor.tpl index 50789ffa5..c504380c4 100644 --- a/gosa-core/ihtml/themes/modern/userFilterEditor.tpl +++ b/gosa-core/ihtml/themes/modern/userFilterEditor.tpl @@ -65,6 +65,7 @@
+Filter
diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index cbb233458..d3b95ca84 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -189,14 +189,14 @@ class sortableListing { $result.= "cssclass)?" class='".$this->cssclass."'":"").">\n"; $action_width= 0; if (strpos($this->acl, 'w') === false) { - $edit_image= $this->editable?""._("Edit")."":""; + $edit_image= $this->editable?image("images/lists/edit-grey.png"):""; } else { - $edit_image= $this->editable?"":""; + $edit_image= $this->editable?image('images/lists/edit.png', "%ID", _("Edit this entry")):""; } if (strpos($this->acl, 'd') === false) { - $delete_image= $this->deleteable?""._("Delete")."":""; + $delete_image= $this->deleteable?image('images/lists/trash-grey.png'):""; } else { - $delete_image= $this->deleteable?"":""; + $delete_image= $this->deleteable?image('images/lists/trash.png', "%ID", _("Delete this entry")):""; } // Do we need colspecs? @@ -226,7 +226,7 @@ class sortableListing { $link= "href='?plug=".$_GET['plug']."&PID=".$this->id."&act=SORT_$i'"; $sorter= ""; if ($i == $this->sortColumn){ - $sorter= " "; + $sorter= " ".image("images/lists/sort-".($this->sortDirection[$i]?"up":"down").".png", null, $this->sortDirection[$i]?_("Up"):_("Down")); } if ($this->reorderable) { @@ -372,7 +372,7 @@ class sortableListing { $this->action = ""; if (strpos($this->acl, 'd') !== false){ foreach ($_POST as $key => $value) { - if (preg_match('/^del_'.$this->id.'_([0-9]+)_x.*$/', $key, $matches)) { + if (preg_match('/^del_'.$this->id.'([0-9]+)$/', $key, $matches)) { $this->active_index= $this->mapping[$matches[1]]; // Ignore request if mode requests it @@ -395,7 +395,7 @@ class sortableListing { // Edit requested? if (strpos($this->acl, 'w') !== false){ foreach ($_POST as $key => $value) { - if (preg_match('/^edit_'.$this->id.'_([0-9]+)_x.*$/', $key, $matches)) { + if (preg_match('/^edit_'.$this->id.'_([0-9]+)$/', $key, $matches)) { $this->active_index= $this->mapping[$matches[1]]; // Ignore request if mode requests it diff --git a/gosa-core/include/class_userFilter.inc b/gosa-core/include/class_userFilter.inc index c188e9812..502e1de86 100644 --- a/gosa-core/include/class_userFilter.inc +++ b/gosa-core/include/class_userFilter.inc @@ -124,6 +124,9 @@ class userFilter extends plugin { plugin::execute(); + // Let the filter widget update itself + $this->filterWidget->update(); + // Cancel filter modifications (edit dialog) if(isset($_POST['cancelFilterSettings'])){ $this->dialog = NULL; -- 2.30.2