From ab55f7ebef2a8d299aadf6d2e81bff4022d6274e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Jun 2006 07:14:57 +0000 Subject: [PATCH] Added snapshot to conferences git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3810 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../conference/class_divListConferences.inc | 32 ++++++++++++------- .../class_phoneConferenceManagment.inc | 6 ++++ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/plugins/gofon/conference/class_divListConferences.inc b/plugins/gofon/conference/class_divListConferences.inc index 44d611871..6d97bd055 100755 --- a/plugins/gofon/conference/class_divListConferences.inc +++ b/plugins/gofon/conference/class_divListConferences.inc @@ -82,12 +82,19 @@ class divListConference extends MultiSelectWindow "  ". "  ". - "  ". - _("Base")." ". + "  "; + + if($this->parent->snapshotEnabled()){ + $listhead .= " ". + "  "; + } + + $listhead .= _("Base")." ". "  ". ""; - + $this->SetListHeader($listhead); } @@ -99,20 +106,23 @@ class divListConference extends MultiSelectWindow function setEntries($list) { - $actions = ""; - $actions.= ""; - $actions2= ""; $linkopen= "%s"; $userimg = "User"; $editlink = "%s"; /* Insert conferneces*/ + foreach($list as $conferencekey => $conference ){ + $action = $this->GetSnapShotActions($conference['dn']); + $actions= ""; + $actions.= ""; + $actions2= ""; + if((isset($conference['goFonPIN'][0]))&&(($this->parent->ui->dn==$conference['goFonConferenceOwner'][0])||($this->parent->acl=="#all#"))){ $pin = "PIN"; }else{ @@ -147,9 +157,9 @@ class divListConference extends MultiSelectWindow $a_field4 = array("string"=> $pin, "attach" => $title." style='width:50px;'"); if(($this->parent->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->parent->acl,"goFonConferenceOwner")=="")){ - $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions), "attach" => $title."style='width:60px;border-right:0px;text-align:right;'"); + $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$action.$actions), "attach" => $title."style='width:60px;border-right:0px;text-align:right;'"); }elseif(chkacl($this->parent->acl,"goFonConferenceOwner")==""){ - $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions2), "attach" => $title."style='width:52px;border-right:0px;text-align:right;'"); + $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$action.$actions2), "attach" => $title."style='width:52px;border-right:0px;text-align:right;'"); }else{ $a_field5 = array("string"=>" ", "attach" => $title."style='width:52px;border-right:0px;text-align:right;'"); } diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc index c7902f8f2..f2b093910 100644 --- a/plugins/gofon/conference/class_phoneConferenceManagment.inc +++ b/plugins/gofon/conference/class_phoneConferenceManagment.inc @@ -255,6 +255,12 @@ class phoneConferenceManagment extends plugin display divlist ***************/ + /* Check if there is a snapshot dialog open */ + if($str = $this->showSnapshotDialog($this->DivListConference->selectedBase, + array("ou=conferences,ou=asterisk,ou=configs,ou=systems,".$this->DivListConference->selectedBase))){ + return($str); + } + /* Return rendered main page */ /* Display dialog with system list */ $this->DivListConference->parent = $this; -- 2.30.2