function displayOptions() { global $app_strings; $ss = new Sugar_Smarty(); $ss->assign('titleLbl', $this->dashletStrings['LBL_CONFIGURE_TITLE']); $ss->assign('countLbl', $this->dashletStrings['LBL_CONFIGURE_COUNT']); $ss->assign('containerLbl', $this->dashletStrings['LBL_CONFIGURE_CONTAINER']); $ss->assign('saveLbl', $app_strings['LBL_SAVE_BUTTON_LABEL']); $ss->assign('title', $this->title); $container = ReportContainer::get_category_select_options(); asort($container); $ss->assign('containerSelect', get_select_options_with_id($container, $this->container_id)); $ss->assign('count', $this->count); $ss->assign('id', $this->id); return parent::displayOptions() . $ss->fetch('modules/ZuckerReports/Dashlets/ZuckerReportContainerDashlet/ZuckerReportContainerDashletOptions.tpl'); }
if (!empty($focus->id)) { if ($focus->report_result_type == "FILE") { $types = parse_list_modules($app_list_strings['record_type_display']); $types = array_merge(array("" => ""), $types); asort($types); $xtpl->assign("TYPE_OPTIONS", get_select_options_with_id($types, $_REQUEST['parent_module'])); //$change_parent_button = "<input title='".$app_strings['LBL_CHANGE_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_CHANGE_BUTTON_LABEL']."' name='parent_button' onclick='return window.open(\"index.php?module=\"+ document.EditView.parent_module.value + \"&action=Popup&html=Popup_picker&form=TasksEditView\",\"test\",\"width=600,height=400,resizable=1,scrollbars=1\");'>"; //$xtpl->assign("CHANGE_PARENT_BUTTON", $change_parent_button); $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'parent_id', 'name' => 'parent_name')); $json = new JSON(JSON_LOOSE_TYPE); $encoded_popup_request_data = $json->encode($popup_request_data); $xtpl->assign('encoded_popup_request_data', $encoded_popup_request_data); $xtpl->assign("ATTACH_SELECTION_HEADER", get_form_header($mod_strings["LBL_ONDEMAND_ATTACH_SELECTION"], "", false)); $xtpl->assign("PARENT_ID", $_REQUEST['parent_id']); $xtpl->assign("PARENT_NAME", $_REQUEST['parent_name']); $cat_options = ReportContainer::get_category_select_options(); asort($cat_options); $xtpl->assign("CAT_OPTIONS", get_select_options_with_id($cat_options, $_REQUEST['parent_category'])); $xtpl->assign("SEND_EMAIL", $_REQUEST['send_email']); $xtpl->parse("attach_selection"); $attach_selection = $xtpl->text("attach_selection"); } else { $xtpl->assign("PARENT_ID", $_REQUEST['parent_id']); $xtpl->assign("PARENT_MODULE", $_REQUEST['parent_module']); $xtpl->assign("PARENT_NAME", $_REQUEST['parent_name']); $xtpl->parse("attach_selection_hidden"); $attach_selection = $xtpl->text("attach_selection_hidden"); } } if (!empty($focus->id)) { $links = $focus->get_parameter_links();