From 554ac877fe40fc7b46328fab620380029c278003 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Jun 2006 06:51:39 +0000 Subject: [PATCH] git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../blocklists/class_blocklistManagement.inc | 6 +++++ .../blocklists/class_divListBlocklists.inc | 25 +++++++++++++------ 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index 660a82954..a415e19e9 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -321,6 +321,12 @@ class blocklist extends plugin Divlist dialog ***************/ + /* Check if there is a snapshot dialog open */ + if($str = $this->showSnapshotDialog($this->DivListBlocklist->selectedBase, + array("ou=gofax,ou=systems,". $this->DivListBlocklist->selectedBase))){ + return($str); + } + /* Display dialog with system list */ $this->DivListBlocklist->parent = $this; $this->DivListBlocklist->execute(); diff --git a/plugins/gofax/blocklists/class_divListBlocklists.inc b/plugins/gofax/blocklists/class_divListBlocklists.inc index 42e884dc2..e2591a2e1 100755 --- a/plugins/gofax/blocklists/class_divListBlocklists.inc +++ b/plugins/gofax/blocklists/class_divListBlocklists.inc @@ -44,7 +44,7 @@ class divListBlocklist extends MultiSelectWindow /* set Page header */ $this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'")); $this->AddHeader(array("string" => _("Blocklist name")." / "._("Department"), "attach" => "style=''")); - $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" )); + $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:90px;border-right:0px;text-align:right;'" )); /* Add Checkboxes / SubSearch checkbox */ $this->AddCheckBox("ShowSendBocklists" , _("Select to see send blocklists"), _("Show send blocklists"),true); @@ -81,9 +81,16 @@ class divListBlocklist extends MultiSelectWindow title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ". "  ". - "  ". - "  ". + "  "; + + if($this->parent->snapshotEnabled()){ + $listhead .= " ". + "  "; + } + + $listhead .= "  ". " ". " "._("Base")." ". " "; - $action.= ""; - // User and Template Images $blockimg = "User"; $editlink = "%s"; /* Append to list */ foreach($list as $key => $val){ + + $action = $this->GetSnapShotActions($val['dn']); + $action.= ""; + $action.= ""; + // Generate Array to Add $display= "[".$val["cn"][0]."]"; $field1 = array("string" => sprintf($blockimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'"); $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".preg_replace('/ /', ' ', @LDAP::fix($val['dn']))."'"); - $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:60px;border-right:0px;text-align:right;'"); + $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:90px;border-right:0px;text-align:right;'"); $this->AddElement( array($field1,$field2,$field3)); } } -- 2.30.2