[Vtigercrm-commits] [vtiger-commits] r7042 - /vtigercrm/trunk/modules/Dashboard/display_charts.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 13 09:02:31 EDT 2006
Author: saraj
Date: Tue Jun 13 07:02:28 2006
New Revision: 7042
Log:
changes made to include extra graphs
Modified:
vtigercrm/trunk/modules/Dashboard/display_charts.php
Modified: vtigercrm/trunk/modules/Dashboard/display_charts.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/display_charts.php (original)
+++ vtigercrm/trunk/modules/Dashboard/display_charts.php Tue Jun 13 07:02:28 2006
@@ -87,6 +87,8 @@
"invoicebystatus" => $mod_strings['invoicebystatus'],
"ticketsbystatus" => $mod_strings['ticketsbystatus'],
"ticketsbypriority" => $mod_strings['ticketsbypriority'],
+ "ticketsbycategory" => $mod_strings['ticketsbycategory'],
+ "ticketsbyowner" => $mod_strings['ticketsbyowner'],
);
function get_graph_by_type($graph_by,$graph_title,$module,$where,$query)
{
@@ -532,6 +534,26 @@
$query=$helpdesk_query;
echo get_graph_by_type($graph_by,$graph_title,$module,$where,$query);
}
+ //Tickets by Category
+ elseif (($type == "ticketsbycategory") && (getFieldVisibilityPermission('HelpDesk',$user_id,'ticketcategory') == "0"))
+ {
+ $graph_by="category";
+ $graph_title=$mod_strings['ticketsbycategory'];
+ $module="HelpDesk";
+ $where="";
+ $query=$helpdesk_query;
+ echo get_graph_by_type($graph_by,$graph_title,$module,$where,$query);
+ }
+ //Tickets by Owner
+ elseif (($type == "ticketsbyowner") && (getFieldVisibilityPermission('HelpDesk',$user_id,'ticketowner') == "0"))
+ {
+ $graph_by="smownerid";
+ $graph_title=$mod_strings['ticketsbyowner'];
+ $module="HelpDesk";
+ $where="";
+ $query=$helpdesk_query;
+ echo get_graph_by_type($graph_by,$graph_title,$module,$where,$query);
+ }
else
{
echo $mod_strings['LBL_NO_PERMISSION_FIELD'];
More information about the vtigercrm-commits
mailing list