当前位置: 首页>>代码示例>>PHP>>正文


PHP ListView::setAdditionalDetails方法代码示例

本文整理汇总了PHP中ListView::setAdditionalDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::setAdditionalDetails方法的具体用法?PHP ListView::setAdditionalDetails怎么用?PHP ListView::setAdditionalDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ListView的用法示例。


在下文中一共展示了ListView::setAdditionalDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Email

 * "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;
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:31,代码来源:ListViewHome.php

示例2: strtoupper

$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}">
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:Step2.php


注:本文中的ListView::setAdditionalDetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。