[smoothoperator] r4192 committed - A bit more info

0 views
Skip to first unread message

smootho...@googlecode.com

unread,
Apr 11, 2013, 3:59:54 PM4/11/13
to smootho...@googlegroups.com
Revision: 4192
Author: ma...@venturevoip.com
Date: Thu Apr 11 12:59:34 2013
Log: A bit more info
http://code.google.com/p/smoothoperator/source/detail?r=4192

Modified:
/SmoothOperatorCRM/report_contact_rate.php

=======================================
--- /SmoothOperatorCRM/report_contact_rate.php Thu Apr 11 12:44:20 2013
+++ /SmoothOperatorCRM/report_contact_rate.php Thu Apr 11 12:59:34 2013
@@ -96,6 +96,12 @@
$answered += $row['answered'];
$answered += $row['amd'];
$answered += $row['pressed1'];
+ foreach ($row as $field=>$value) {
+ if ($field != "report_date" && $field != "report_time" &&
$field != "campaign_id"&& $field != "answered"&& $field != "pressed1"&&
$field != "amd"&& $field != "pressed1") {
+ $string .= ucwords($field).": ".$value.", ";
+ }
+ }
+ $string = substr($string,0,strlen($string)-2);
}
//echo $answered."/".$total."<br />";

@@ -158,6 +164,32 @@
title: '<?=$title?>'
};
var chart = new
google.visualization.PieChart(document.getElementById('chart_div'));
+
+
+
+
+ // The select handler. Call the chart's getSelection() method
+ function selectHandler() {
+ var sel=chart.getSelection();
+// alert("Rowselected:"+sel[0].row);
+ if (sel[0].row == 0) {
+ //alert("Contacted");
+ } else if (sel[0].row == 1) {
+ //alert("Disposition Not Contacted");
+ } else if (sel[0].row == 2) {
+ alert("<?=$string?>");
+ }
+
+ }
+
+ // Listen for the 'select' event, and call my function selectHandler()
when
+ // the user selects something on the chart.
+ google.visualization.events.addListener(chart, 'select',
selectHandler);
+
+
+
+
+
chart.draw(data, options);
}
</script>
Reply all
Reply to author
Forward
0 new messages