本文整理汇总了PHP中getComboArray函数的典型用法代码示例。如果您正苦于以下问题:PHP getComboArray函数的具体用法?PHP getComboArray怎么用?PHP getComboArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getComboArray函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: return_module_language
* $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:");
示例2: get_textdurationField
/** 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"> ';
$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;
}
}
示例3: get_lead_field_options
/** 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];
}