本文整理汇总了PHP中Dashlet::display方法的典型用法代码示例。如果您正苦于以下问题:PHP Dashlet::display方法的具体用法?PHP Dashlet::display怎么用?PHP Dashlet::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dashlet
的用法示例。
在下文中一共展示了Dashlet::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display()
{
$ss = new Sugar_Smarty();
$ss->assign('lbl_campaign_name', translate('LBL_TOP_CAMPAIGNS_NAME', 'Campaigns'));
$ss->assign('lbl_revenue', translate('LBL_TOP_CAMPAIGNS_REVENUE', 'Campaigns'));
$ss->assign('top_campaigns', $this->top_campaigns);
return parent::display() . $ss->fetch('modules/Campaigns/Dashlets/TopCampaignsDashlet/TopCampaignsDashlet.tpl');
}
示例2: 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;
}
示例3: display
function display()
{
ob_start();
if (isset($GLOBALS['cal_strings'])) {
return parent::display() . "Only one Calendar dashlet is allowed.";
}
require_once 'modules/Calendar/Calendar.php';
require_once 'modules/Calendar/CalendarDisplay.php';
require_once "modules/Calendar/CalendarGrid.php";
global $cal_strings, $current_language;
$cal_strings = return_module_language($current_language, 'Calendar');
if (!ACLController::checkAccess('Calendar', 'list', true)) {
ACLController::displayNoAccess(true);
}
$cal = new Calendar($this->view);
$cal->dashlet = true;
$cal->add_activities($GLOBALS['current_user']);
$cal->load_activities();
$display = new CalendarDisplay($cal, $this->id);
$display->display_calendar_header(false);
$display->display();
$str = ob_get_contents();
ob_end_clean();
return parent::display() . $str;
}
示例4: display
/**
* Displays the dashlet
*
* @return string html to display dashlet
*/
function display()
{
$ss = new Sugar_Smarty();
$ss->assign('id', $this->id);
$ss->assign('height', $this->height);
$str = $ss->fetch('modules/Home/Dashlets/InvadersDashlet/InvadersDashlet.tpl');
return parent::display($this->dashletStrings['LBL_DBLCLICK_HELP']) . $str . '<br />';
// return parent::display for title and such
}
示例5: display
/**
* @see Dashlet::display()
*/
public function display()
{
$ss = new Sugar_Smarty();
$ss->assign('lblTotalOpportunities', translate('LBL_TOTAL_OPPORTUNITIES', 'Opportunities'));
$ss->assign('lblClosedWonOpportunities', translate('LBL_CLOSED_WON_OPPORTUNITIES', 'Opportunities'));
$ss->assign('total_opportunities', $this->total_opportunities);
$ss->assign('total_opportunities_won', $this->total_opportunities_won);
return parent::display() . $ss->fetch('modules/Opportunities/Dashlets/MyClosedOpportunitiesDashlet/MyClosedOpportunitiesDashlet.tpl');
}
示例6: display
/**
* Displays the dashlet
*
* @return string html to display dashlet
*/
function display()
{
$ss = new Sugar_Smarty();
$ss->assign('savedText', SugarCleaner::cleanHtml($this->savedText));
$ss->assign('saving', $this->dashletStrings['LBL_SAVING']);
$ss->assign('saved', $this->dashletStrings['LBL_SAVED']);
$ss->assign('id', $this->id);
$ss->assign('height', $this->height);
$str = $ss->fetch('modules/Home/Dashlets/JotPadDashlet/JotPadDashlet.tpl');
return parent::display($this->dashletStrings['LBL_DBLCLICK_HELP']) . $str . '<br />';
// return parent::display for title and such
}
示例7: display
/**
* Displays the dashlet
*
* @return string html to display dashlet
*/
function display()
{
$ss = new Sugar_Smarty();
$ss->assign('savedText', $this->savedText);
$ss->assign('saving', $this->dashletStrings['LBL_SAVING']);
$ss->assign('saved', $this->dashletStrings['LBL_SAVED']);
$ss->assign('id', $this->id);
$ss->assign('height', $this->height);
$str = $ss->fetch('modules/Trackers/Dashlets/TrackerDashlet/TrackerDashlet.tpl');
return parent::display() . $str . '<br />';
// return parent::display for title and such
}
示例8: display
/**
* Displays the dashlet
*
* @return string html to display dashlet
*/
public function display()
{
$ss = new Sugar_Smarty();
$ss->assign('saving', $this->dashletStrings['LBL_SAVING']);
$ss->assign('saved', $this->dashletStrings['LBL_SAVED']);
$ss->assign('id', $this->id);
$ss->assign('height', $this->height);
$ss->assign('rss_output', $this->getRSSOutput($this->url));
$str = $ss->fetch('modules/Home/Dashlets/RSSDashlet/RSSDashlet.tpl');
return parent::display($this->dashletStrings['LBL_DBLCLICK_HELP']) . $str;
// return parent::display for title and such
}
示例9: display
function display()
{
global $current_language;
if (!empty($this->runnable_id)) {
$seed = new RunnableReport();
$bean = $seed->retrieve($this->runnable_id);
$str = $bean->run_inline();
$this->title = $bean->name;
} else {
$this->title = $this->dashletStrings['LBL_NOTITLE'];
}
return parent::display() . $str;
}
示例10: display
public function display()
{
$data = array();
$ss = new Sugar_Smarty();
$focus = BeanFactory::getBean('TeamNotices');
$today = db_convert("'" . TimeDate::getInstance()->nowDbDate() . "'", 'date');
$query = $focus->create_new_list_query("date_start", $focus->table_name . ".date_start <= {$today} and " . $focus->table_name . ".date_end >= {$today} and " . $focus->table_name . '.status=\'Visible\'');
if ($result = $focus->db->query($query)) {
while ($row = $focus->db->fetchByAssoc($result)) {
$data[] = $row;
}
}
$ss->assign("data", $data);
return parent::display() . $ss->fetch('modules/TeamNotices/Dashlets/TeamNoticesDashlet/TeamNoticesDashlet.tpl');
}
示例11: display
function display()
{
$sugar_edition = 'COM';
$out_url = str_replace(array('@@LANG@@', '@@VER@@', '@@EDITION@@'), array($GLOBALS['current_language'], $GLOBALS['sugar_config']['sugar_version'], $sugar_edition), $this->url);
return parent::display() . "<iframe class='teamNoticeBox' src='" . $out_url . "' height='" . $this->height . "px'></iframe>";
}
示例12: display
/**
* Displays the dashlet
*
* @return string html to display dashlet
*/
function display()
{
require_once "modules/Reports/Report.php";
// ini_set('display_errors', 'false');
$chartReport = new SavedReport();
$chartExists = $chartReport->retrieve($this->report_id, false);
if (!is_null($chartExists)) {
$this->title = $chartReport->name;
$reporter = new Report($chartReport->content);
$reporter->is_saved_report = true;
$reporter->saved_report_id = $chartReport->id;
$reporter->get_total_header_row();
$reporter->run_chart_queries();
require_once "modules/Reports/templates/templates_chart.php";
ob_start();
template_chart($reporter, true, true, $this->id);
$str = ob_get_contents();
ob_end_clean();
$xmlFile = get_cache_file_name($reporter);
$html = parent::display() . "<div align='center'>" . $str . "</div>" . "<br />";
// return parent::display for title and such
$ss = new Sugar_Smarty();
$ss->assign('chartName', $this->id);
$ss->assign('chartXMLFile', $xmlFile);
$script = $ss->fetch('modules/Home/Dashlets/ChartsDashlet/ChartsDashletScript.tpl');
$json = getJSONobj();
return parent::display() . "<div align='center'>" . $str . "</div>" . "<br />";
// return parent::display for title and such
}
}
示例13: display
function display()
{
$sugar_edition = 'PRO';
$sugar_edition = 'ENT';
$out_url = str_replace(array('@@LANG@@', '@@VER@@', '@@EDITION@@'), array($GLOBALS['current_language'], $GLOBALS['sugar_config']['sugar_version'], $sugar_edition), $this->url);
$title = $this->title;
if (empty($title)) {
$title = 'empty';
}
return parent::display() . "<iframe class='teamNoticeBox' title='{$title}' src='{$out_url}' height='{$this->height}px'></iframe>";
}
示例14: testDisplayReturnsNothing
public function testDisplayReturnsNothing()
{
$dashlet = new Dashlet('unit_test_run');
$this->assertEmpty($dashlet->display('foo'));
}
示例15: display
/**
* Displays the Dashlet, must call process() prior to calling this
*
* @return string HTML that displays Dashlet
*/
function display()
{
return parent::display() . $this->lvs->display(false) . $this->processAutoRefresh();
}