* "Powered by SugarCRM". ********************************************************************************/ /********************************************************************************* * Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ global $theme; global $sugar_config; global $current_language; $currentMax = $sugar_config['list_max_entries_per_page']; $sugar_config['list_max_entries_per_page'] = 10; $current_mod_strings = return_module_language($current_language, 'Emails'); $focus = new Email(); $ListView = new ListView(); $display_title = $current_mod_strings['LBL_LIST_TITLE_MY_INBOX'] . ': ' . $current_mod_strings['LBL_UNREAD_HOME']; $where = 'emails.deleted = 0 AND emails.assigned_user_id = \'' . $current_user->id . '\' AND emails.type = \'inbound\' AND emails.status = \'unread\''; $limit = 10; /////////////////////////////////////////////////////////////////////////////// //// OUTPUT /////////////////////////////////////////////////////////////////////////////// echo $focus->rolloverStyle; $ListView->initNewXTemplate('modules/Emails/ListViewHome.html', $current_mod_strings); $ListView->xTemplateAssign('ATTACHMENT_HEADER', SugarThemeRegistry::current()->getImage('attachment', "", "", "", '.gif', $mod_strings['LBL_ATTACHMENT'])); $ListView->setHeaderTitle($display_title); $ListView->setQuery($where, '', 'date_sent, date_entered DESC', "EMAIL"); $ListView->setAdditionalDetails(); $ListView->processListView($focus, 'main', 'EMAIL'); //echo $focus->quickCreateJS(); $sugar_config['list_max_entries_per_page'] = $currentMax;
$ListView->force_mass_update = true; $ListView->show_mass_update_form = false; $ListView->show_export_button = false; $ListView->keep_mass_update_form_open = true; $bean_list_template_path = 'modules/' . $focus->merge_bean->module_dir . '/ListView.html'; $bean_list_template_var = strtoupper($app_list_strings['moduleListSingular'][$focus->merge_module]); // Bug 7706: bean_list_template_var is being mapped to BUG TRACKER from the app_list_strings // and it should be BUG to accommodate for the ListView if ($bean_list_template_var == 'BUG TRACKER') { $bean_list_template_var = 'BUG'; } $ListView->initNewXTemplate($bean_list_template_path, $focus->merge_bean_strings); $ListView->setHeaderTitle($focus->merge_bean->name); //leaving in dependency that there is a name column, needs to be changed $ListView->setQuery($where, "", "", $bean_list_template_var); $ListView->setAdditionalDetails(true); $return_id = $focus->merge_bean->id; $merge_module = $focus->merge_module; $ListView->processListView($focus->merge_bean, "main", $bean_list_template_var); $button_title = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_TITLE']; $button_key = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_KEY']; $button_label = $current_module_strings['LBL_PERFORM_MERGE_BUTTON_LABEL']; $cancel_title = $app_strings['LBL_CANCEL_BUTTON_TITLE']; $cancel_key = $app_strings['LBL_CANCEL_BUTTON_KEY']; $cancel_label = $app_strings['LBL_CANCEL_BUTTON_LABEL']; $error_select = $current_module_strings['LBL_SELECT_ERROR']; $form_top = <<<EOQ <input type="hidden" id="selectCount" name="selectCount[]" value=0> \t\t\t<input type="hidden" name="merge_module" value="{$merge_module}"> \t\t\t<input type="hidden" name="record" value="{$return_id}">