[Vtigercrm-commits] [vtiger-commits] r7452 - /vtigercrm/trunk/modules/Dashboard/Entity_charts.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 23 02:04:54 EDT 2006
Author: richie
Date: Fri Jun 23 00:04:50 2006
New Revision: 7452
Log:
additional 2 conditions added
Modified:
vtigercrm/trunk/modules/Dashboard/Entity_charts.php
Modified: vtigercrm/trunk/modules/Dashboard/Entity_charts.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Entity_charts.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Entity_charts.php Fri Jun 23 00:04:50 2006
@@ -232,6 +232,38 @@
if($name_val!="")
$name=$name_val;
}
+ if($graph_for =="campaignid")
+ {
+ //this will return the list of the names of the campaign``:w for the y-axis
+ $query = "SELECT campaignname FROM vtiger_campaign WHERE campaignid='".$name."'";
+ $result = $adb->query($query);
+ $name_val = $adb->query_result($result,0,"campaignname");
+ if($name_val!="")
+ $name=$name_val;
+ }
+ if($graph_for =="contactid")
+ {
+ $query = "SELECT lastname FROM vtiger_contactdetails WHERE contactid='".$name."'";
+ echo '>>>>>>>>>. '.$query;
+ $result = $adb->query($query);
+ $name_val = $adb->query_result($result,0,"lastname");
+ if($name_val!="")
+ $name=$name_val;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
//Passing name to graph
if($mod_name_val!="") $mod_name_val.="::$name";
else $mod_name_val="$name";
More information about the vtigercrm-commits
mailing list