summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a524bd0)
raw | patch | inline | side by side (parent: a524bd0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Apr 2010 13:32:26 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Apr 2010 13:32:26 +0000 (13:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17468 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc
index e5aecb7d63e37c5776230acc42102161c391d78c..be86df9425f0e7e24bb506fa706546c29051c790 100644 (file)
}
- /* Save ui interactions and store results in session,
- to remember settings */
+ /* Save ui interactions and store results in session,
+ to remember settings */
function save_object()
{
$fonfilter= session::get("fonfilter");
new log("view","fonreport/".get_class($this),$this->dn);
}
- /*****************
- Variable Init
- *****************/
+ /*****************
+ Variable Init
+ *****************/
$fields_str = "";
$years[$y]= $y;
}
- /*****************
- Smarty
- *****************/
+ /*****************
+ Smarty
+ *****************/
$bases = array();
$cat_bases = $this->ui->get_module_departments("fonreport");
foreach($this->config->idepartments as $dn => $name){
$smarty->assign("search_result", "");
- /*****************
- Check Database , Table , Connection
- *****************/
+ /*****************
+ Check Database , Table , Connection
+ *****************/
// Collect servers and allow to select the server in the ui.
$servers = array();
}
- /*****************
- Get Query String && Search
- *****************/
+ /*****************
+ Get Query String && Search
+ *****************/
$link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']);
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
- /*****************
- Fetch results
- *****************/
+ /*****************
+ Fetch results
+ *****************/
$report_list= array();
@mysql_close($link);
- /*****************
- Create list of results
- *****************/
+ /*****************
+ Create list of results
+ *****************/
/* Generate output */
$mod = 0;
$output.= "<tr>$val</tr>";
}
- /*****************
- Tell smarty what we have found
- *****************/
+ /*****************
+ Tell smarty what we have found
+ *****************/
if ($output != ""){
$smarty->assign("search_result", $output);
dst like '".$s2."' OR
src like '".$s2."' OR
lastapp like '".$s2."')";
- return($str);
+ return($str);
}
}
- /* Return plugin informations for acl handling
- #FIXME You can only read attributes within this report plugin */
- static function plInfo()
- {
- return (array(
- "plShortName" => _("Phone reports"),
- "plDescription" => _("Phone reports")." <i>"._("All entries are readonly")."</i>",
- "plSelfModify" => TRUE,
- "plDepends" => array(),
- "plPriority" => 0,
- "plSection" => array("administration"),
- "plCategory" => array(
- "fonreport" => array(
- "description" => _("Phone reports"),
- "objectClass" => "None")),
-
-
- "plProvidedAcls" => array(
- "calldate" =>_("Date"),
- "src" =>_("Source"),
- "dst" =>_("Destination"),
- "channel" =>_("Channel"),
- "lastapp" =>_("Application called"),
- "disposition" =>_("Disposition"),
- "duration" =>_("Duration"))
- ));
- }
+ /* Return plugin informations for acl handling
+#FIXME You can only read attributes within this report plugin */
+ static function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Phone reports"),
+ "plDescription" => _("Phone reports")." <i>"._("All entries are readonly")."</i>",
+ "plSelfModify" => TRUE,
+ "plDepends" => array(),
+ "plPriority" => 0,
+ "plSection" => array("administration"),
+ "plCategory" => array(
+ "fonreport" => array(
+ "description" => _("Phone reports"),
+ "objectClass" => "None")),
+
+
+ "plProvidedAcls" => array(
+ "calldate" =>_("Date"),
+ "src" =>_("Source"),
+ "dst" =>_("Destination"),
+ "channel" =>_("Channel"),
+ "lastapp" =>_("Application called"),
+ "disposition" =>_("Disposition"),
+ "duration" =>_("Duration"))
+ ));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>