From c7dc06c8ca4f3cf14b5c397510b31409500cf286 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2005 07:55:25 +0000 Subject: [PATCH] conferencelist shows owner and PIN now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1164 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_phoneConferenceManagment.inc | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc index d36d79d60..0c78457f1 100644 --- a/plugins/gofon/conference/class_phoneConferenceManagment.inc +++ b/plugins/gofon/conference/class_phoneConferenceManagment.inc @@ -248,6 +248,7 @@ class phoneConferenceManagment extends plugin } else { show_errors($message); } + $this->reload(); } /* if edit or new, show dialog */ @@ -300,6 +301,8 @@ class phoneConferenceManagment extends plugin $divlist->SetHeader(array( array("string" => " "), array("string" =>_("Name / nummer")), + array("string" => _("Owner")), + array("string" => _("PIN")), array("string" =>_("Actions"), "attach" => "style='text-align: right;border:none'"))); /* Insert departments in divlist*/ @@ -319,10 +322,12 @@ class phoneConferenceManagment extends plugin /* Prepare and insert fields*/ $a_field1 = array("string" => "department","attach"=>"style='width:22px;'"); $a_field2 = array("string" => sprintf($linkopen,base64_encode($key),$val)); - $a_field3 = array("string" => " ", "attach" => "style='border:none;width:60px;'"); + $a_field3 = array("string" => " "); + $a_field4 = array("string" => " "); + $a_field5 = array("string" => " ", "attach" => "style='border:none;width:60px;'"); /* Add entries */ - $divlist->AddEntry(array($a_field1,$a_field2,$a_field3)); + $divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5)); } /* Image shown in divlist */ @@ -333,10 +338,23 @@ class phoneConferenceManagment extends plugin /* Insert conferneces*/ foreach($this->conferences as $conferencekey => $conference ){ + + if(isset($conference['goFonPIN'][0])){ + $pin = $conference['goFonPIN'][0]; + }else{ + $pin = " "; + } + $ldap= $this->config->get_ldap_link(); + $ldap->cd ($conference['goFonConferenceOwner'][0]); + $data = $ldap->fetch($ldap->cat($conference['goFonConferenceOwner'][0])); + $cn = $data['cn'][0]; + $a_field1 = array("string"=>sprintf($userimg,_("Conference"))); $a_field2 = array("string"=>sprintf($editlink,$conferencekey,$conference['cn'][0])); - $a_field3 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions)); - $divlist->AddEntry(array($a_field1,$a_field2,$a_field3)); + $a_field3 = array("string"=> $cn); + $a_field4 = array("string"=> $pin); + $a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions)); + $divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5)); } $smarty->assign("search_image", get_template_path('images/search.png')); -- 2.30.2