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


PHP ListView::initNewXTemplate方法代码示例

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


在下文中一共展示了ListView::initNewXTemplate方法的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;
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:25,代码来源:ZuckerReportContainerDashlet.php

示例2: 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");
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:16,代码来源:SubPanelViewTeams.php

示例3: 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 = "&nbsp;<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");
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:21,代码来源:SubPanelView.php

示例4: 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();
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:38,代码来源:Popup_picker.php

示例5: array

 if ($campaign_id) {
     $where_clauses = array();
     if (!empty($campaign_id)) {
         array_push($where_clauses, "campaign_id = '" . $GLOBALS['db']->quote($campaign_id) . "'");
     }
     $where = "";
     foreach ($where_clauses as $clause) {
         if ($where != "") {
             $where .= " and ";
         }
         $where .= $clause;
     }
     Log::info("Here is the where clause for the list view: {$where}");
 }
 $ListView = new ListView();
 $ListView->initNewXTemplate('modules/Campaigns/Schedule.html', $current_module_strings);
 if ($test) {
     $ListView->xTemplateAssign("SCHEDULE_MESSAGE_HEADER", $current_module_strings['LBL_SCHEDULE_MESSAGE_TEST']);
 } else {
     $ListView->xTemplateAssign("SCHEDULE_MESSAGE_HEADER", $current_module_strings['LBL_SCHEDULE_MESSAGE_EMAILS']);
 }
 //force multi-select popup
 $ListView->process_for_popups = true;
 $ListView->multi_select_popup = true;
 //end
 $ListView->mergeduplicates = false;
 $ListView->show_export_button = false;
 $ListView->show_select_menu = false;
 $ListView->show_delete_button = false;
 $ListView->setDisplayHeaderAndFooter(false);
 $ListView->xTemplateAssign("RETURN_MODULE", $_POST['return_module']);
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:31,代码来源:Schedule.php

示例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 = "&nbsp;<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");
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:31,代码来源:MyProjectTasks.php

示例7: trim

$button = "<form  action='index.php' method='post' name='form' id='form'>\n";
$button .= "<input type='hidden' name='module' value='WorkFlowAlertShells'>\n";
$button .= "<input type='hidden' name='module_tab' value='WorkFlow'>\n";
$button .= "<input type='hidden' name='workflow_id' value='{$focus->id}'>\n<input type='hidden' name='alert_name' value='{$focus->name}'>\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='action' value='EditView';>\n";
require_once 'include/SugarSmarty/plugins/function.sugar_action_menu.php';
$button .= smarty_function_sugar_action_menu(array('id' => 'ACLRoles_EditView_action_menu', 'buttons' => $buttons), $xtpl);
//$button .= "<input title='".$current_module_strings['LBL_NEW_BUTTON_TITLE_ACTION']."' class='button' type='button' name='New' value='  ".$current_module_strings['LBL_NEW_BUTTON_LABEL_ACTION']."'";
//$button .= "LANGUAGE=javascript onclick='window.open(\"index.php?module=WorkFlowActionShells&action=CreateStep1&html=CreateStep1&form=ComponentView&form_submit=false&query=true&sugar_body_only=true&workflow_id=$focus->id\",\"new\",\"width=400,height=500,resizable=1,scrollbars=1\");'";
//$button .= ">\n";
$button .= "</form>";
$admin = Administration::getSettings();
$mail_server = trim($admin->settings['mail_smtpserver']);
if (empty($mail_server) && !empty($focus_alerts_list)) {
    echo "<BR><font color='red'><b>" . $mod_strings['LBL_LACK_OF_NOTIFICATIONS_ON'] . "</b></font><BR>";
}
//ALERT SUBPANEL
//$focus_alerts_list2 = array_merge($focus_alerts_list, $focus_actions_list);
$ListView = new ListView();
$header_text = '';
$ListView->initNewXTemplate('modules/WorkFlowAlertShells/SubPanelView.html', $current_module_strings);
$ListView->xTemplateAssign("WORKFLOW_ID", $focus->id);
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $currentModule . "&return_action=DetailView&return_id={$_REQUEST['record']}");
$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->processListView($focus_alerts_list, "main", "ALERT");
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:SubPanelView.php

示例8: array

    ///////////////////////////////////////
    ///
    /// SETUP PARENT POPUP
    $popup_request_data = array('call_back_function' => 'set_return_and_save', 'form_name' => 'DetailView', 'field_to_name_array' => array('id' => 'machine_id'));
    $json = getJSONobj();
    $encoded_popup_request_data = $json->encode($popup_request_data);
    //
    ///////////////////////////////////////
    $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(\"Machines\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n";
    //		."  ' name='button' onclick='window.open(\"index.php?module=Machines&action=Popup&html=Popup_picker&form=DetailView&form_submit=true&query=true&account_id=$focus->account_id&account_name=".urlencode($focus->account_name)."\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'>\n";
}
$button .= "</form>\n";
$ListView = new ListView();
$header_text = '';
if ($currentModule == 'Bugs') {
    if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
        $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelViewBug&from_module=Machines&record=" . $_REQUEST['record'] . "'>" . get_image($image_path . "EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
    }
    $ListView->initNewXTemplate('modules/Machines/SubPanelViewBug.html', $current_module_strings);
} else {
    if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
        $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Machines&record=" . $_REQUEST['record'] . "'>" . get_image($image_path . "EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
    }
    $ListView->initNewXTemplate('modules/Machines/SubPanelView.html', $current_module_strings);
}
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $currentModule . "&return_action=DetailView&return_id={$_REQUEST['record']}");
$ListView->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path . 'edit_inline', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
$ListView->xTemplateAssign("DELETE_INLINE_PNG", get_image($image_path . 'delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_REMOVE'] . '" border="0"'));
$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME'] . $header_text);
$ListView->setHeaderText($button);
$ListView->processListView($focus_list, "main", "MACHINE");
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:SubPanelView.php

示例9: ListView

// for email previews
if (!empty($_REQUEST['error'])) {
    $error = $app_list_strings['dom_email_errors'][$_REQUEST['error']];
}
//_pp($where);
if (!empty($assigned_to_sel)) {
    $whereClauses['emails.assigned_user_id'] = 'emails.assigned_user_id = \'' . $assigned_to_sel . '\'';
}
//_pp($whereClauses);
// CONSTRUCT WHERE STRING FROM WHERECLAUSE ARRAY
foreach ($whereClauses as $clause) {
    if ($where != '') {
        $where .= ' AND ';
    }
    $where .= $clause;
}
//echo $focus->quickCreateJS();
$ListView = new ListView();
// group distributionforms
echo $focus->distributionForm($where);
$ListView->shouldProcess = true;
$ListView->show_mass_update = true;
$ListView->show_mass_update_form = false;
$ListView->initNewXTemplate('modules/Emails/ListViewGroupInbox.html', $mod_strings);
$ListView->xTemplateAssign('ATTACHMENT_HEADER', SugarThemeRegistry::current()->getImage('attachment', "", "", "", '.gif', $mod_strings['LBL_ATTACHMENT']));
$ListView->xTemplateAssign('ERROR', $error);
$ListView->xTemplateAssign('CHECK_MAIL', $focus->checkInbox('group'));
$ListView->setHeaderTitle($display_title . $header_text);
$ListView->setQuery($where, '', 'date_sent, date_entered DESC', 'EMAIL');
$ListView->setAdditionalDetails();
$ListView->processListView($focus, 'main', 'EMAIL');
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:31,代码来源:ListViewGroup.php

示例10: ListView

global $action;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
// 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='Paperwaste'>\n";
$button .= "<input type='hidden' name='relation_id' value='{$focus->id}'>\n";
$button .= "<input type='hidden' name='relation_type' value='{$currentModule}'>\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='action'>\n";
if (!empty($focus->object_name) && $focus->object_name == 'Opportunity') {
    $button .= "<input type='hidden' name='account_id' value='{$focus->account_id}'>\n";
    $button .= "<input type='hidden' name='opportunity_name' value='{$focus->name}'>\n";
}
$button .= "<input title='" . $app_strings['LBL_NEW_BUTTON_TITLE'] . "' accessyKey='" . $app_strings['LBL_NEW_BUTTON_KEY'] . "' class='button' onclick=\"this.form.action.value='EditView'\" type='submit' name='New' value='  " . $app_strings['LBL_NEW_BUTTON_LABEL'] . "  '>\n";
$button .= "</form>\n";
$ListView = new ListView();
$ListView->initNewXTemplate('modules/Paperwaste/SubPanelView.html', $current_module_strings);
$ListView->xTemplateAssign("EDIT_INLINE_PNG", get_image($image_path . 'edit_inline', 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
$ListView->xTemplateAssign("RETURN_URL", "&return_module=" . $currentModule . "&return_action=DetailView&return_id=" . $focus->id);
$ListView->setHeaderTitle($current_module_strings['LBL_PAPERWASTE_SUBPANEL_TITLE']);
$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=" . $_REQUEST['action'] . "&from_module=" . $_REQUEST['module'] . "&record=" . $_REQUEST['record'] . "'>" . get_image($image_path . "EditLayout", "border='0' alt='Edit Layout' align='bottom'") . "</a>";
}
$ListView->setHeaderTitle($current_module_strings['LBL_PAPERWASTE_SUBPANEL_TITLE'] . $header_text);
$ListView->processListView($focus_list, "main", "PAPERWASTE");
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:SubPanelView.php

示例11: 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");
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:31,代码来源:SubPanelView.php

示例12: Job

 * In accordance with Section 7(b) of the GNU General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
require_once 'modules/Schedulers/Job.php';
$header_text = '';
global $mod_strings;
global $app_list_strings;
global $app_strings;
global $current_user;
$focus = new Job();
$focus->retrieve();
$focus->get_list_view_data();
//_pp($_REQUEST);
$where = '';
$limit = 20;
$varName = $focus->object_name;
$allowByOverride = true;
if (!empty($_REQUEST['Schedulers_' . $varName . '_ORDER_BY'])) {
    $orderBy = $_REQUEST['Schedulers_' . $varName . '_ORDER_BY'];
} else {
    $orderBy = $focus->order_by;
}
$listView = new ListView();
$listView->initNewXTemplate('modules/Schedulers/Scheduled.html', $mod_strings);
$listView->setHeaderTitle($mod_strings['LBL_LIST_TITLE']);
$listView->setQuery($where, $limit, $orderBy, $varName, $allowByOverride);
$listView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" alt="' . $app_strings['LNK_REMOVE'] . '" border="0"'));
$listView->processListView($focus, "main", "JOB");
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:Scheduled.php

示例13: ksort

    ksort($customizable_modules);
    return $customizable_modules;
}
$customizable_modules = get_customizable_modules();
$module_options_html = get_select_options_with_id($customizable_modules, $module_name);
global $current_language;
$mod_strings = return_module_language($current_language, 'EditCustomFields');
global $app_strings;
// the title label and arrow pointing to the module search form
$header = get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], '', false);
$search_form->assign('header', $header);
$search_form->assign('module_options', $module_options_html);
$search_form->assign('mod', $mod_strings);
$search_form->assign('app', $app_strings);
$search_form->parse('main');
$search_form->out('main');
if (!empty($module_name)) {
    $theme_path = "themes/{$theme}";
    $img_path = "{$theme_path}/images";
    require_once 'modules/DynamicFields/DynamicField.php';
    $seed_fields_meta_data = new FieldsMetaData();
    $where_clause = "custom_module='{$module_name}'";
    $listview = new ListView();
    $listview->initNewXTemplate('modules/EditCustomFields/ListView.html', $mod_strings);
    $listview->setHeaderTitle($module_name . ' ' . $mod_strings['LBL_MODULE']);
    $listview->setQuery($where_clause, '', 'data_type', 'FIELDS_META_DATA');
    $listview->xTemplateAssign('DELETE_INLINE_PNG', get_image("{$img_path}/delete_inline", 'align="absmiddle" alt="' . $app_strings['LNK_DELETE'] . '" border="0"'));
    $listview->xTemplateAssign('EDIT_INLINE_PNG', get_image("{$img_path}/edit_inline", 'align="absmiddle" alt="' . $app_strings['LNK_EDIT'] . '" border="0"'));
    $listview->xTemplateAssign('return_module_name', $module_name);
    $listview->processListView($seed_fields_meta_data, 'main', 'FIELDS_META_DATA');
}
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:ListView.php

示例14: die

if (!defined('sugarEntry') || !sugarEntry) {
    die('Not A Valid Entry Point');
}
/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */
global $app_strings;
global $app_list_strings;
global $current_language, $current_user, $timedate;
$current_module_strings = return_module_language($current_language, 'Tasks');
$tomorrow = $timedate->getNow()->get("+1 day")->asDb();
$ListView = new ListView();
$seedTasks = BeanFactory::getBean('Tasks');
$where = "tasks.assigned_user_id='" . $current_user->id . "' and (tasks.status is NULL or (tasks.status!='Completed' and tasks.status!='Deferred')) ";
$where .= "and (tasks.date_start is NULL or ";
$where .= $seedTasks->db->convert($seedTasks->db->convert("tasks.date_start", "date_format", '%Y-%m-%d'), "CONCAT", array("' '", $seedTasks->db->convert("tasks.time_start", "time_format"))) . " <= " . $seedTasks->db->quoted($tomorrow);
$ListView->initNewXTemplate('modules/Tasks/MyTasks.html', $current_module_strings);
$header_text = '';
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
    $header_text = "&nbsp;<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_TASKS'] . $header_text);
$ListView->setQuery($where, "", "date_due,priority desc", "TASK");
$ListView->processListView($seedTasks, "main", "TASK");
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:MyTasks.php

示例15: ListView

 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * 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. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
global $app_strings;
global $app_list_strings;
global $current_language;
$current_module_strings = return_module_language($current_language, 'Leads');
$ListView = new ListView();
$seedLeads = new Lead();
$header_text = '';
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
    $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyLeads&from_module=Leads'>" . SugarThemeRegistry::current()->getImage("EditLayout", "border='0' alt='Edit Layout' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT']) . "</a>";
}
$where = "assigned_user_id='" . $current_user->id . "' and (leads.status is NULL or (leads.status!='Converted' and leads.status!='Dead' and leads.status!='recycled')) ";
$ListView->initNewXTemplate('modules/Leads/MyLeads.html', $current_module_strings);
$ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_LEADS'] . $header_text);
$ListView->setQuery($where, "", "leads.date_entered desc", "LEAD");
$ListView->processListView($seedLeads, "main", "LEAD");
开发者ID:omusico,项目名称:sugar_work,代码行数:31,代码来源:MyLeads.php


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