本文整理汇总了PHP中ListView::setHeaderTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::setHeaderTitle方法的具体用法?PHP ListView::setHeaderTitle怎么用?PHP ListView::setHeaderTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListView
的用法示例。
在下文中一共展示了ListView::setHeaderTitle方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display()
{
global $current_language;
if (empty($this->container_id)) {
$child_reports = ReportContainer::get_root_reports();
} else {
$container = new ReportContainer();
$container->retrieve($this->container_id);
$child_reports = $container->get_linked_beans("reports", "ZuckerReport");
}
$mod_strings = return_module_language($current_language, "ZuckerReports");
require_once 'include/ListView/ListView.php';
$lv = new ListView();
$lv->initNewXTemplate('modules/ZuckerReportContainer/DetailView.html', $mod_strings);
$lv->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path . 'delete_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
$lv->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path . 'edit_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
$lv->xTemplateAssign("RETURN_URL", "&return_module=ZuckerReportContainer&return_action=DetailView&return_id=" . $container->id);
$lv->setHeaderTitle("");
$lv->setHeaderText("");
ob_start();
$lv->processListViewTwo($child_reports, "reports", "REPORT");
$str = ob_get_clean();
ob_end_flush();
return parent::display() . $str;
}
示例2: empty
/**
*
*/
function process_page()
{
global $theme;
global $mod_strings;
global $app_strings;
global $currentModule;
global $sugar_version, $sugar_config;
$output_html = '';
$where = '';
$where = $this->_get_where_clause();
$name = empty($_REQUEST['name']) ? '' : $_REQUEST['name'];
$account_name = empty($_REQUEST['account_name']) ? '' : $_REQUEST['account_name'];
$request_data = empty($_REQUEST['request_data']) ? '' : $_REQUEST['request_data'];
$hide_clear_button = empty($_REQUEST['hide_clear_button']) ? false : true;
$button = "<form action='index.php' method='post' name='form' id='form'>\n";
if (!$hide_clear_button) {
$button .= "<input type='button' name='button' class='button' onclick=\"send_back('','');\" title='" . $app_strings['LBL_CLEAR_BUTTON_TITLE'] . "' value=' " . $app_strings['LBL_CLEAR_BUTTON_LABEL'] . " ' />\n";
}
$button .= "<input type='submit' name='button' class='button' onclick=\"window.close();\" title='" . $app_strings['LBL_CANCEL_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_CANCEL_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_CANCEL_BUTTON_LABEL'] . " ' />\n";
$button .= "</form>\n";
$form = new XTemplate('modules/Products/Popup_picker.html');
$form->assign('MOD', $mod_strings);
$form->assign('APP', $app_strings);
$form->assign('THEME', $theme);
$form->assign('MODULE_NAME', $currentModule);
$form->assign('NAME', $name);
$form->assign('ACCOUNT_NAME', $account_name);
$form->assign('request_data', $request_data);
ob_start();
insert_popup_header($theme);
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], '', false);
$form->parse('main.SearchHeader');
$output_html .= $form->text('main.SearchHeader');
// Reset the sections that are already in the page so that they do not print again later.
$form->reset('main.SearchHeader');
// create the listview
$seed_bean = BeanFactory::getBean('Products');
$ListView = new ListView();
$ListView->show_export_button = false;
$ListView->process_for_popups = true;
$ListView->setXTemplate($form);
$ListView->setHeaderTitle($mod_strings['LBL_LIST_FORM_TITLE']);
$ListView->setHeaderText($button);
$ListView->setQuery($where, '', 'name', 'PRODUCT');
$ListView->setModStrings($mod_strings);
ob_start();
$ListView->processListView($seed_bean, 'main', 'PRODUCT');
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= insert_popup_footer();
return $output_html;
}
示例3: ProcessSubPanelListView
function ProcessSubPanelListView($xTemplatePath, &$mod_strings, $action, $curModule = "")
{
global $currentModule, $app_strings;
if (empty($curModule)) {
$curModule = $currentModule;
}
$ListView = new ListView();
$ListView->initNewXTemplate($xTemplatePath, $mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $curModule . "&return_action=DetailView&return_id=" . $this->focus->id);
$ListView->xTemplateAssign("RECORD_ID", $this->focus->id);
$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline.png', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline.png', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE']));
$ListView->setHeaderTitle($mod_strings['LBL_TEAM_MEMBERS']);
$ListView->setHeaderText($this->getHeaderText($action, $curModule));
$ListView->processListView($this->users_list, "users", "USER");
}
示例4: ProcessSubPanelListView
function ProcessSubPanelListView($xTemplatePath, &$mod_strings, $action, $curModule = '')
{
global $currentModule, $app_strings;
if (empty($curModule)) {
$curModule = $currentModule;
}
$ListView = new ListView();
global $current_user;
$header_text = '';
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Notes&record=" . $this->focus->id . "'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT']) . "</a>";
}
$ListView->initNewXTemplate($xTemplatePath, $mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $curModule . "&return_action=DetailView&return_id=" . $this->focus->id);
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_DELETE']));
$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$ListView->xTemplateAssign("RECORD_ID", $this->focus->id);
$ListView->setHeaderTitle($mod_strings['LBL_MODULE_NAME'] . $header_text);
$ListView->setHeaderText($this->getHeaderText($action, $curModule));
$ListView->processListView($this->notes_list, "notes", "NOTE");
}
示例5: getVersionedScript
function process_page()
{
global $theme;
global $mod_strings;
global $app_strings;
global $currentModule;
global $current_language;
global $current_module_strings;
if (!is_file(sugar_cached('jsLanguage/WorkFlow/') . $GLOBALS['current_language'] . '.js')) {
require_once 'include/language/jsLanguage.php';
jsLanguage::createModuleStringsCache('WorkFlow', $GLOBALS['current_language']);
}
$javascript_language_files = getVersionedScript("cache/jsLanguage/WorkFlow/{$GLOBALS['current_language']}.js", $GLOBALS['sugar_config']['js_lang_version']);
$current_module_strings = return_module_language($current_language, 'WorkFlowAlertShells');
$ListView = new ListView();
$header_text = '';
if (isset($_REQUEST['workflow_id'])) {
$workflow = BeanFactory::getBean('WorkFlow', $_REQUEST['workflow_id']);
//TODO GET ALL ALERTS HERE
//$focus_alerts_list = $workflow->get_linked_beans('wf_alerts','WorkFlowAlertShell');
$alerts = BeanFactory::getBean('WorkFlowAlertShells');
$current_module_strings = return_module_language($current_language, $alerts->module_dir);
insert_popup_header($theme);
$ListView->initNewXTemplate('modules/WorkFlowAlertShells/Popup_picker.html', $current_module_strings);
$ListView->xTemplateAssign("WORKFLOW_ID", $workflow->id);
$ListView->xTemplateAssign("JAVASCRIPT_LANGUAGE_FILES", $javascript_language_files);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $currentModule . "&return_action=DetailView&return_id={$workflow->id}");
$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE']));
$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME_COMBO'] . $header_text);
//$ListView->setHeaderText($button);
//$ListView->setQuery("workflow_alertshells.alert_type = 'Email'","","", "ALERT");
$list = $alerts->get_list("", "workflow_alertshells.alert_type = 'Email'");
$display_list = $this->cullFromList($list['list'], $workflow->base_module, $workflow->type);
$ListView->processListViewTwo($display_list, "main", "ALERT");
insert_popup_footer();
}
}
示例6: ListView
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
* reasonably feasible for technical reasons, the Appropriate Legal Notices must
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
********************************************************************************/
global $timedate;
global $app_strings;
global $app_list_strings;
global $current_language, $current_user;
$current_module_strings = return_module_language($current_language, 'ProjectTask');
$today = $timedate->nowDbDate();
$today = $timedate->handle_offset($today, $timedate->dbDayFormat, false);
$ListView = new ListView();
$seedProjectTask = new ProjectTask();
$where = "project_task.assigned_user_id='{$current_user->id}'" . " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))" . " AND (project_task.date_start IS NULL OR project_task.date_start <= '{$today}')";
$ListView->initNewXTemplate('modules/ProjectTask/MyProjectTasks.html', $current_module_strings);
$header_text = '';
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT']) . '</a>';
}
$ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'] . $header_text);
$ListView->setQuery($where, "", "date_due,priority desc", "PROJECT_TASK");
$ListView->processListView($seedProjectTask, "main", "PROJECT_TASK");
示例7: array
///////////////////////////////////////
///
/// SETUP PARENT POPUP
$popup_request_data = array('call_back_function' => 'set_return_and_save', 'form_name' => 'DetailView', 'field_to_name_array' => array('id' => 'account_id'));
$json = getJSONobj();
$encoded_popup_request_data = $json->encode($popup_request_data);
//
///////////////////////////////////////
// focus_list is the means of passing data to a SubPanelView.
global $focus_list;
$button = "<form action='index.php' method='post' name='form' id='form'>\n";
$button .= "<input type='hidden' name='module' value='Accounts'>\n";
$button .= "<input type='hidden' name='return_module' value='" . $currentModule . "'>\n";
$button .= "<input type='hidden' name='return_action' value='" . $action . "'>\n";
$button .= "<input type='hidden' name='return_id' value='" . $focus->id . "'>\n";
$button .= "<input type='hidden' name='project_id' value='" . $focus->id . "'>\n";
$button .= "<input type='hidden' name='action'>\n";
$button .= "<input title='" . $app_strings['LBL_SELECT_BUTTON_TITLE'] . "' accessKey='" . $app_strings['LBL_SELECT_BUTTON_KEY'] . "' type='button' class='button' value=' " . $app_strings['LBL_SELECT_BUTTON_LABEL'] . " ' name='button' onclick='open_popup(\"Accounts\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n";
$button .= "</form>\n";
$ListView = new ListView();
$ListView->initNewXTemplate('modules/Accounts/SubPanelViewProjects.html', $current_module_strings);
$ListView->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path . 'delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_REMOVE'] . '" border="0"'));
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $currentModule . "&return_action=DetailView&return_id=" . $focus->id);
global $current_user;
$header_text = '';
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelViewProjects&from_module=Accounts'>" . get_image($image_path . "EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
}
$ListView->setHeaderTitle($project_module_strings['LBL_ACCOUNT_SUBPANEL_TITLE'] . $header_text);
$ListView->setHeaderText($button);
$ListView->processListView($focus_list, "main", "ACCOUNT");
示例8: get_validate_js
$button .= "<input type='hidden' name='module' value='ZuckerReportContainer'>\n";
$button .= "<input type='hidden' name='action'>\n";
$button .= "<input type='hidden' name='record'>\n";
$button .= "<input type='hidden' name='parent_id'>\n";
if (!empty($container->id)) {
$button .= "<input class='button' onclick='this.form.action.value=\"DetailView\"; this.form.record.value=\"" . $container->parent_id . "\"' type='submit' value=' " . $mod_strings['LBL_CONTAINER_UP'] . " '>\n";
}
$button .= "<input name='name' size='20' maxlength='50' type='text'/>\n";
$button .= "<input class='button' onclick='this.form.action.value=\"New\"; this.form.parent_id.value=\"" . $container->id . "\"; return verify_container_data(this.form);' type='submit' value=' " . $mod_strings['LBL_CONTAINER_NEW'] . " '>\n";
$button .= "</form>\n";
if (empty($container->id)) {
$child_containers = ReportContainer::get_root_containers();
$child_reports = ReportContainer::get_root_reports();
} else {
$child_containers = $container->get_linked_beans("containers", "ReportContainer");
$child_reports = $container->get_linked_beans("reports", "ZuckerReport");
}
$child_containers = SimpleTeams::filterBeanList($child_containers);
require_once 'include/ListView/ListView.php';
$lv = new ListView();
$lv->initNewXTemplate('modules/ZuckerReportContainer/DetailView.html', $mod_strings);
$lv->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path . 'delete_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
$lv->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path . 'edit_inline.png', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
$lv->xTemplateAssign("RETURN_URL", "&return_module=ZuckerReportContainer&return_action=DetailView&return_id=" . $container->id);
$lv->setHeaderTitle($mod_strings['LBL_SUBCONTAINERS']);
$lv->setHeaderText($button);
$lv->processListViewTwo($child_containers, "containers", "CONTAINER");
$lv->setHeaderTitle($mod_strings['LBL_SUBREPORTS']);
$lv->setHeaderText("");
$lv->processListViewTwo($child_reports, "reports", "REPORT");
echo get_validate_js();
示例9: get_module_title
global $app_list_strings;
global $current_language;
global $current_user;
global $urlPrefix;
global $currentModule;
$current_module_strings = return_module_language($current_language, 'ZuckerReports');
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_TITLE'], false);
echo "\n</p>\n";
global $theme;
$button = "";
if (is_admin($current_user)) {
$button .= "<form action='index.php' method='post'>\n";
$button .= "<input type='hidden' name='module' value='ZuckerReportParameter'>\n";
$button .= "<input type='hidden' name='action'>\n";
$button .= "<input type='hidden' name='return_module' value='ZuckerReportParameter'>\n";
$button .= "<input type='hidden' name='return_action' value='ListView'>\n";
$button .= "<input class='button' onclick='this.form.action.value=\"EditView\"' type='submit' value=' " . $mod_strings['LBL_PARAM_NEW'] . " '>\n";
$button .= "</form>\n";
}
$seed = new ReportParameter();
$lv = new ListView();
$lv->initNewXTemplate('modules/ZuckerReportParameter/ListView.html', $current_module_strings);
$lv->setHeaderTitle($current_module_strings['LNK_PARAMETER_LIST']);
$lv->setHeaderText($button);
$lv->show_export_button = false;
$lv->show_mass_update = false;
$lv->show_delete_button = false;
$lv->show_select_menu = false;
$lv->setQuery("", "", "default_name", "PARAM");
$lv->processListView($seed, "main", "PARAM");
示例10: 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;
示例11: empty
/**
*
*/
function process_page()
{
global $theme;
global $mod_strings;
global $app_strings;
global $app_list_strings;
global $currentModule;
global $sugar_version, $sugar_config;
$output_html = '';
$where = '';
$where = $this->_get_where_clause();
$name = empty($_REQUEST['name']) ? '' : $_REQUEST['name'];
$status = empty($_REQUEST['status']) ? '' : $_REQUEST['status'];
$campaign_type = empty($_REQUEST['campaign_type']) ? '' : $_REQUEST['campaign_type'];
$request_data = empty($_REQUEST['request_data']) ? '' : $_REQUEST['request_data'];
$hide_clear_button = empty($_REQUEST['hide_clear_button']) ? false : true;
$button = "<form action='index.php' method='post' name='form' id='form'>\n";
//START:FOR MULTI-SELECT
$multi_select = false;
if (!empty($_REQUEST['mode']) && strtoupper($_REQUEST['mode']) == 'MULTISELECT') {
$multi_select = true;
$button .= "<input type='button' name='button' class='button' onclick=\"send_back_selected('Prospects',document.MassUpdate,'mass[]','" . $app_strings['ERR_NOTHING_SELECTED'] . "');\" title='" . $app_strings['LBL_SELECT_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_SELECT_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_SELECT_BUTTON_LABEL'] . " ' />\n";
}
//END:FOR MULTI-SELECT
if (!$hide_clear_button) {
$button .= "<input type='button' name='button' class='button' onclick=\"send_back('','');\" title='" . $app_strings['LBL_CLEAR_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_CLEAR_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_CLEAR_BUTTON_LABEL'] . " ' />\n";
}
$button .= "<input type='submit' name='button' class='button' onclick=\"window.close();\" title='" . $app_strings['LBL_CANCEL_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_CANCEL_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_CANCEL_BUTTON_LABEL'] . " ' />\n";
$button .= "</form>\n";
$form = new XTemplate('modules/Campaigns/Popup_picker.html');
$form->assign('MOD', $mod_strings);
$form->assign('APP', $app_strings);
$form->assign('THEME', $theme);
$form->assign('MODULE_NAME', $currentModule);
$form->assign('request_data', $request_data);
$form->assign("TYPE_OPTIONS", get_select_options_with_id($app_list_strings['campaign_type_dom'], ""));
ob_start();
insert_popup_header($theme);
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], '', false);
$form->parse('main.SearchHeader');
$output_html .= $form->text('main.SearchHeader');
// Reset the sections that are already in the page so that they do not print again later.
$form->reset('main.SearchHeader');
// create the listview
$seed_bean = new Campaign();
$ListView = new ListView();
$ListView->show_export_button = false;
$ListView->process_for_popups = true;
$ListView->setXTemplate($form);
$ListView->multi_select_popup = $multi_select;
//FOR MULTI-SELECT
$ListView->xTemplate->assign("TAG_TYPE", "A");
//FOR MULTI-SELECT
$ListView->setHeaderTitle($mod_strings['LBL_LIST_FORM_TITLE']);
//FOR MULTI-SELECT
$ListView->setHeaderText($button);
//FOR MULTI-SELECT
$ListView->setQuery($where, '', 'name', 'CAMPAIGN');
$ListView->setModStrings($mod_strings);
ob_start();
//$output_html .= get_form_header($mod_strings['LBL_LIST_FORM_TITLE'], $button, false); //FOR MULTI-SELECT
$ListView->processListView($seed_bean, 'main', 'CAMPAIGN');
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= insert_popup_footer();
return $output_html;
}
示例12: Scheduler
require_once 'XTemplate/xtpl.php';
require_once 'include/ListView/ListView.php';
require_once 'modules/Schedulers/Scheduler.php';
$header_text = '';
global $mod_strings;
global $app_list_strings;
global $app_strings;
global $current_user;
global $current_language;
$current_module_strings = return_module_language($current_language, 'Schedulers');
$focus = new Scheduler();
$focus->checkCurl();
$where = '';
$limit = '0';
$varName = $focus->object_name;
//'Scheduler'
if (!empty($_REQUEST['Schedulers_SCHEDULER_ORDER_BY'])) {
$orderBy = $_REQUEST['Schedulers_SCHEDULER_ORDER_BY'];
} else {
$orderBy = $focus->order_by;
}
$allowByOverride = true;
$listView = new ListView();
$listView->show_mass_update = false;
// don't want to mass delete all Schedules
$listView->initNewXTemplate('modules/Schedulers/ListView.html', $current_module_strings);
$listView->setHeaderTitle($current_module_strings['LBL_LIST_TITLE']);
$listView->setQuery($where, $limit, $orderBy, $varName, $allowByOverride);
$listView->xTemplateAssign("REMOVE_INLINE_PNG", get_image($image_path . 'delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_REMOVE'] . '" border="0"'));
$listView->processListView($focus, "main", "SCHEDULER");
$focus->displayCronInstructions();
示例13: ProcessSubPanelListView
function ProcessSubPanelListView($xTemplatePath, &$mod_strings)
{
global $app_strings;
global $current_user;
global $sugar_config;
if (isset($this->listview)) {
$ListView =& $this->listview;
} else {
$ListView = new ListView();
}
$ListView->initNewXTemplate($xTemplatePath, $this->subpanel_defs->mod_strings);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $this->parent_module . "&return_action=DetailView&return_id=" . $this->parent_bean->id);
$ListView->xTemplateAssign("RELATED_MODULE", $this->parent_module);
// TODO: what about unions?
$ListView->xTemplateAssign("RECORD_ID", $this->parent_bean->id);
$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$ListView->xTemplateAssign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LBL_DELETE_INLINE']));
$ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LBL_ID_FF_REMOVE']));
$header_text = '';
$ListView->xTemplateAssign("SUBPANEL_ID", $this->subpanel_id);
$ListView->xTemplateAssign("SUBPANEL_SEARCH", $this->getSearchForm());
$display_sps = '';
if ($this->search_query == '' && empty($this->collections)) {
$display_sps = 'display:none';
}
$ListView->xTemplateAssign("DISPLAY_SPS", $display_sps);
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
$exploded = explode('/', $xTemplatePath);
$file_name = $exploded[sizeof($exploded) - 1];
$mod_name = $exploded[sizeof($exploded) - 2];
$header_text = " <a href='index.php?action=index&module=DynamicLayout&from_action={$file_name}&from_module={$mod_name}&mod_lang=" . $_REQUEST['module'] . "'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', 'Edit Layout') . "</a>";
}
$ListView->setHeaderTitle('');
$ListView->setHeaderText('');
ob_start();
$ListView->is_dynamic = true;
$ListView->records_per_page = $sugar_config['list_max_entries_per_subpanel'] + 0;
if (isset($this->subpanel_defs->_instance_properties['records_per_page'])) {
$ListView->records_per_page = $this->subpanel_defs->_instance_properties['records_per_page'] + 0;
}
$ListView->start_link_wrapper = "javascript:showSubPanel('" . $this->subpanel_id . "','";
$ListView->subpanel_id = $this->subpanel_id;
$ListView->end_link_wrapper = "',true);";
if (!empty($this->layout_def_key)) {
$ListView->end_link_wrapper = '&layout_def_key=' . $this->layout_def_key . $ListView->end_link_wrapper;
}
$where = '';
$ListView->setQuery($where, '', '', '');
$ListView->show_export_button = false;
//function returns the query that was used to populate sub-panel data.
$query = $ListView->process_dynamic_listview($this->parent_module, $this->parent_bean, $this->subpanel_defs);
$this->subpanel_query = $query;
$ob_contents = ob_get_contents();
ob_end_clean();
return $ob_contents;
}
示例14: WordTemplate
require_once 'modules/ZuckerWordTemplate/WordTemplate.php';
require_once 'include/ListView/ListView.php';
global $app_strings;
global $app_list_strings;
global $current_user;
global $current_language;
$mod_strings = return_module_language($current_language, "ZuckerWordTemplate");
$seed = new WordTemplate();
$wordlist = $seed->get_by_query($focus->id);
if (!is_array($wordlist)) {
$wordlist = array();
}
echo "\n<p>\n";
$button = "";
if (is_admin($current_user)) {
$button .= "<form action='index.php' method='post'>\n";
$button .= "<input type='hidden' name='module' value='ZuckerWordTemplate'>\n";
$button .= "<input type='hidden' name='action' value='EditView'>\n";
$button .= "<input type='hidden' name='return_module' value='" . $focus->module_dir . "'>\n";
$button .= "<input type='hidden' name='return_action' value='DetailView'>\n";
$button .= "<input type='hidden' name='return_id' value='" . $focus->id . "'>\n";
$button .= "<input type='hidden' name='querytemplate_id' value='" . $focus->id . "'>\n";
$button .= "<input class='button' type='submit' value=' " . $mod_strings['LBL_WORD_CREATE_WORD_TEMPLATE'] . " '>\n";
$button .= "</form>\n";
}
$lv = new ListView();
$lv->initNewXTemplate("modules/ZuckerWordTemplate/SubPanelView.html", $mod_strings);
$lv->setHeaderTitle($mod_strings['LBL_WORD_WORD_TEMPLATES']);
$lv->setHeaderText($button);
$lv->show_export_button = false;
$lv->processListView($wordlist, "wordtemplates", "WORD");
示例15: empty
function process_page_for_merge()
{
global $theme;
global $mod_strings;
global $app_strings;
global $currentModule;
global $sugar_version, $sugar_config;
$output_html = '';
$where = '';
$where = $this->_get_where_clause();
$first_name = empty($_REQUEST['first_name']) ? '' : $_REQUEST['first_name'];
$last_name = empty($_REQUEST['last_name']) ? '' : $_REQUEST['last_name'];
$account_name = empty($_REQUEST['account_name']) ? '' : $_REQUEST['account_name'];
$hide_clear_button = empty($_REQUEST['hide_clear_button']) ? false : true;
$button = "<form action='index.php' method='post' name='form' id='form'>\n";
//START:FOR MULTI-SELECT
$multi_select = false;
if (!empty($_REQUEST['mode']) && strtoupper($_REQUEST['mode']) == 'MULTISELECT') {
$multi_select = true;
$button .= "<input type='button' name='button' class='button' onclick=\"send_back_selected('Contacts',document.MassUpdate,'mass[]','" . $app_strings['ERR_NOTHING_SELECTED'] . "');\" title='" . $app_strings['LBL_SELECT_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_SELECT_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_SELECT_BUTTON_LABEL'] . " ' />\n";
}
//END:FOR MULTI-SELECT
if (!$hide_clear_button) {
$button .= "<input type='button' name='button' class='button' onclick=\"send_back('','');\" title='" . $app_strings['LBL_CLEAR_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_CLEAR_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_CLEAR_BUTTON_LABEL'] . " ' />\n";
}
$button .= "<input type='submit' name='button' class='button' onclick=\"window.close();\" title='" . $app_strings['LBL_CANCEL_BUTTON_TITLE'] . "' accesskey='" . $app_strings['LBL_CANCEL_BUTTON_KEY'] . "' value=' " . $app_strings['LBL_CANCEL_BUTTON_LABEL'] . " ' />\n";
$button .= "</form>\n";
$form = new XTemplate('modules/Contacts/MailMergePicker.html');
$form->assign('MOD', $mod_strings);
$form->assign('APP', $app_strings);
$form->assign('THEME', $theme);
$form->assign('MODULE_NAME', $currentModule);
$form->assign('FIRST_NAME', $first_name);
$form->assign('LAST_NAME', $last_name);
$form->assign('ACCOUNT_NAME', $account_name);
$request_data = empty($_REQUEST['request_data']) ? '' : $_REQUEST['request_data'];
$form->assign('request_data', $request_data);
ob_start();
insert_popup_header($theme);
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], '', false);
$form->parse('main.SearchHeader');
$output_html .= $form->text('main.SearchHeader');
// Reset the sections that are already in the page so that they do not print again later.
$form->reset('main.SearchHeader');
// create the listview
$seed_bean = new Contact();
$ListView = new ListView();
$ListView->display_header_and_footer = false;
$ListView->show_export_button = false;
$ListView->process_for_popups = true;
$ListView->setXTemplate($form);
$ListView->multi_select_popup = $multi_select;
if ($multi_select) {
$ListView->xTemplate->assign("TAG_TYPE", "SPAN");
} else {
$ListView->xTemplate->assign("TAG_TYPE", "A");
}
$ListView->setHeaderTitle($mod_strings['LBL_LIST_FORM_TITLE']);
$ListView->setQuery($where, '', 'contacts.last_name, contacts.first_name', 'CONTACT');
$ListView->setModStrings($mod_strings);
ob_start();
$output_html .= get_form_header($mod_strings['LBL_LIST_FORM_TITLE'], $button, false);
//BEGIN ATHENA CUSTOMIZATION - rsmith
$query = $_REQUEST['select'] . ' WHERE ' . $_REQUEST['where'] . "'" . $_REQUEST['id'] . "'";
//$response = $seed_bean->process_list_query($_REQUEST['select'], 0, -1, -1, $_REQUEST['where']."'".$_REQUEST['id']."'");
$result = $seed_bean->db->query($query, true, "Error retrieving {$seed_bean->object_name} list: ");
$list = array();
while (($row = $seed_bean->db->fetchByAssoc($result)) != null) {
$seed_bean = new Contact();
foreach ($seed_bean->field_defs as $field => $value) {
if (isset($row[$field])) {
$seed_bean->{$field} = $row[$field];
} else {
if (isset($row[$seed_bean->table_name . '.' . $field])) {
$seed_bean->{$field} = $row[$seed_bean->table_name . '.' . $field];
} else {
$seed_bean->{$field} = "";
}
}
}
$seed_bean->fill_in_additional_list_fields();
$list[] = $seed_bean;
}
$ListView->processListViewTwo($list, 'main', 'CONTACT');
//END ATHENA CUSTOMIZATION - rsmith
$output_html .= ob_get_contents();
ob_end_clean();
$output_html .= insert_popup_footer();
return $output_html;
}