* $Header$
 * Description:  returns HTML for client-side image map.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'include/utils/utils.php';
require_once 'include/logging.php';
require_once "modules/Potentials/Charts.php";
global $current_language, $ids, $tmp_dir;
$current_module_strings = return_module_language($current_language, 'Dashboard');
require 'user_privileges/sharing_privileges_' . $current_user->id . '.php';
require 'user_privileges/user_privileges_' . $current_user->id . '.php';
// Get _dom arrays from Database
$comboFieldNames = array('leadsource' => 'lead_source_dom');
$comboFieldArray = getComboArray($comboFieldNames);
$log = LoggerManager::getLogger('CSIM_pipeline_by_lead_source');
if (isset($_REQUEST['pbls_refresh'])) {
    $refresh = $_REQUEST['pbls_refresh'];
} else {
    $refresh = false;
}
// added for auto refresh
$refresh = true;
//
$tempx = array();
$datax = array();
//get list of sales stage keys to display
if (isset($_SESSION['pbls_lead_sources']) && count($_SESSION['pbls_lead_sources']) > 0 && !isset($_REQUEST['pbls_lead_sources'])) {
    $tempx = $_SESSION['pbls_lead_sources'];
    $log->debug("_SESSION['pbls_lead_sources'] is:");
Example #2
0
/** Function to get duration text field in activity
 * @param $label -- field label :: Type string
 * @param $name -- field name :: Type string
 * @param $tid -- tabid :: Type integer
 * @returns $form_field -- return field:: Type string
 */
function get_textdurationField($label, $name, $tid)
{
    global $log;
    $log->debug("Entering get_textdurationField(" . $label . "," . $name . "," . $tid . ") method ...");
    $form_field = '';
    if ($tid == 16) {
        $comboFieldNames = array('activitytype' => 'activitytype_dom', 'duration_minutes' => 'duration_minutes_dom');
        $comboFieldArray = getComboArray($comboFieldNames);
        $form_field .= '<td>';
        $form_field .= $label . '<br>';
        $form_field .= '<input name="' . $name . '" id="QCK_' . $name . '" type="text" size="2" value="1">&nbsp;';
        $form_field .= '<select name="duration_minutes">';
        $form_field .= get_select_options_with_id($comboFieldArray['duration_minutes_dom'], "");
        $form_field .= '</select><br>(hours/minutes)<br></td>';
        $log->debug("Exiting get_textdurationField method ...");
        return $form_field;
    }
}
Example #3
0
 /** Function to get the Combo List Values of Leads Field
  * @param string $list_option
  * Returns Combo List Options
  */
 function get_lead_field_options($list_option)
 {
     global $log;
     $log->debug("Entering get_lead_field_options(" . $list_option . ") method ...");
     $comboFieldArray = getComboArray($this->combofieldNames);
     $log->debug("Exiting get_lead_field_options method ...");
     return $comboFieldArray[$list_option];
 }