From: hickert Date: Wed, 17 May 2006 07:24:28 +0000 (+0000) Subject: Some fixes for phone reports X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=42133063428ab43b9dd0aa082364a9cca9cd2a3e;p=gosa.git Some fixes for phone reports git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/fonreports/class_fonreport.inc b/plugins/gofon/fonreports/class_fonreport.inc index 9c5ec4464..4c4789384 100644 --- a/plugins/gofon/fonreports/class_fonreport.inc +++ b/plugins/gofon/fonreports/class_fonreport.inc @@ -159,7 +159,7 @@ class fonreport extends plugin "(|(uid=$s)(l=$s)(homePhone=$s)". "(telephoneNumber=$s)(facsimileTelephoneNumber=$s)(mobile=$s)". "(pager=$s)(cn=$s)(givenName=$s)(sn=$s)(personalTitle=$s)". - "(title=$s)))"); + "(title=$s)))" ,array("uid")); $fon_users= array(); while ($attrs= $ldap->fetch()){ @@ -167,7 +167,7 @@ class fonreport extends plugin $acl= get_module_permission($acl, "fax", $ldap->getDN()); if (chkacl ($acl, "faxReport") == ""){ - $fax_users[]= $attrs["uid"][0]; + $fon_users[]= $attrs["uid"][0]; } } @@ -213,6 +213,7 @@ class fonreport extends plugin return($smarty->fetch(get_template_path('contents.tpl', TRUE))); } $report_list= array(); + while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $append_str = ""; $hour= substr($line["calldate"], 11, 2); @@ -278,7 +279,6 @@ class fonreport extends plugin $smarty->assign("month_select" , $this->month); $smarty->assign("years" , $years); $smarty->assign("year_select" , $this->year); - $smarty->assign("search_result" , ""); return($smarty->fetch(get_template_path('contents.tpl', TRUE))); } diff --git a/plugins/gofon/fonreports/contents.tpl b/plugins/gofon/fonreports/contents.tpl index f3641085e..a128dcc35 100644 --- a/plugins/gofon/fonreports/contents.tpl +++ b/plugins/gofon/fonreports/contents.tpl @@ -24,7 +24,7 @@
-{if $search_result ne ""} +{if $search_result }
{t}Date{/t} {$mode0}