function setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass = true) { if (!isset($vardef['options_list']) && isset($vardef['options']) && !is_array($vardef['options'])) { $vardef['options_list'] = $GLOBALS['app_list_strings'][$vardef['options']]; } return parent::setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass); }
function setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass = true) { parent::setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass); $editor = ""; if ($vardef['editor'] == "html") { if (!isset($displayParams['htmlescape'])) { $displayParams['htmlescape'] = false; } if ($_REQUEST['action'] == "EditView") { require_once "include/SugarTinyMCE.php"; $tiny = new SugarTinyMCE(); $editor = $tiny->getInstance($vardef['name'], 'email_compose_light'); } $this->ss->assign("tinymce", $editor); } else { $this->ss->assign("tinymce", $editor); } }
function setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass = true) { global $app_list_strings, $app_strings; parent::setup($parentFieldArray, $vardef, $displayParams, $tabindex, $twopass); $this->ss->assign('APP', $app_strings); $this->ss->assign('types', get_select_options_with_id($app_list_strings['aor_scheduled_report_schedule_types'], '')); $weekdays = $this->getWeekDays(); $this->ss->assign('weekday_vals', json_encode($weekdays)); $this->ss->assign('weekdays', get_select_options($weekdays, '')); $days = $this->getDays(); $this->ss->assign('days', get_select_options($days, '')); function padNumbers($x) { return str_pad($x, 2, '0', STR_PAD_LEFT); } $minutes = array_map('padNumbers', range(0, 59)); $hours = array_map('padNumbers', range(0, 23)); $this->ss->assign('minutes', get_select_options($minutes, '')); $this->ss->assign('hours', get_select_options($hours, '')); }