} else { $ids = get_user_array(false); $ids = array_keys($ids); } //create unique prefix based on selected vtiger_users for image vtiger_files $id_hash = ''; if (isset($ids)) { sort($ids); $id_hash = crc32(implode('', $ids)); } $log->debug("ids is:"); $log->debug($ids); $cache_file_name = $id_hash . "_pipeline_by_lead_source_" . $current_language . "_" . crc32(implode('', $datax)) . ".png"; $log->debug("cache file name is: {$cache_file_name}"); if (isPermitted('Potentials', 'index') == "yes") { $draw_this = new jpgraph(); $width = 850; $height = 500; if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') { $width = 350; $height = 250; } echo $draw_this->pipeline_by_lead_source($datax, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height); echo "<P><font size='1'><em>" . $current_module_strings['LBL_LEAD_SOURCE_FORM_DESC'] . "</em></font></P>"; if (isset($_REQUEST['pbls_edit']) && $_REQUEST['pbls_edit'] == 'true') { ?> <form action="index.php" method="post" > <input type="hidden" name="module" value="<?php echo $currentModule; ?> ">
} else { $ids = get_user_array(false); $ids = array_keys($ids); } //create unique prefix based on selected users for image files $id_hash = ''; if (isset($ids)) { sort($ids); $id_hash = crc32(implode('', $ids)); } $log->debug("ids is:"); $log->debug($ids); $cache_file_name = $id_hash . "_pipeline_" . $current_language . "_" . crc32(implode('', $datax)) . $date_start . $date_end . ".png"; $log->debug("cache file name is: {$cache_file_name}"); if (isPermitted('Potentials', 'index') == "yes") { $draw_this = new jpgraph(); $width = 850; $height = 500; if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') { $width = 350; $height = 250; } echo $draw_this->pipeline_by_sales_stage($datax, $date_start, $date_end, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height); echo "<P><font size='1'><em>" . $current_module_strings['LBL_SALES_STAGE_FORM_DESC'] . "</em></font></P>"; if (isset($_REQUEST['pbss_edit']) && $_REQUEST['pbss_edit'] == 'true') { $cal_lang = "en"; $cal_dateformat = parse_calendardate($app_strings['NTC_DATE_FORMAT']); $cal_dateformat = '%Y-%m-%d'; // fix providedd by Jlee for date bug in Dashboard ?> <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
} else { $ids = get_user_array(false); $ids = array_keys($ids); } //create unique prefix based on selected vtiger_users for image vtiger_files $id_hash = ''; if (isset($ids)) { sort($ids); $id_hash = crc32(implode('', $ids)); } $log->debug("ids is:"); $log->debug($ids); $cache_file_name = $id_hash . "_lead_source_by_outcome_" . $current_language . "_" . crc32(implode('', $datax)) . ".png"; $log->debug("cache file name is: {$cache_file_name}"); if (isPermitted('Potentials', 'index') == "yes") { $draw_this = new jpgraph(); $width = 850; $height = 500; if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') { $width = 350; $height = 250; } echo $draw_this->lead_source_by_outcome($datax, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height); echo "<P><font size='1'><em>" . $current_module_strings['LBL_LEAD_SOURCE_BY_OUTCOME_DESC'] . "</em></font></P>"; if (isset($_REQUEST['lsbo_edit']) && $_REQUEST['lsbo_edit'] == 'true') { ?> <form action="index.php" method="post" > <input type="hidden" name="module" value="<?php echo $currentModule; ?> ">
} else { $ids = get_user_array(false); $ids = array_keys($ids); } //create unique prefix based on selected vtiger_users for image vtiger_files $id_hash = ''; if (isset($ids)) { sort($ids); $id_hash = crc32(implode('', $ids)); } $log->debug("ids is:"); $log->debug($ids); $cache_file_name = $id_hash . "_outcome_by_month_" . $current_language . "_" . crc32($date_start . $date_end) . ".png"; $log->debug("cache file name is: {$cache_file_name}"); if (isPermitted('Potentials', 'index') == "yes") { $draw_this = new jpgraph(); $width = 850; $height = 500; if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') { $width = 350; $height = 250; } echo $draw_this->outcome_by_month($date_start, $date_end, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height); echo "<P><font size='1'><em>" . $current_module_strings['LBL_MONTH_BY_OUTCOME_DESC'] . "</em></font></P>"; if (isset($_REQUEST['obm_edit']) && $_REQUEST['obm_edit'] == 'true') { $cal_lang = "en"; $cal_dateformat = parse_calendardate($app_strings['NTC_DATE_FORMAT']); $cal_dateformat = '%Y-%m-%d'; // fix providedd by Jlee for date bug in Dashboard ?> <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">