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


PHP Dashlet::display方法代码示例

本文整理汇总了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');
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:8,代码来源:TopCampaignsDashlet.php

示例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;
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:25,代码来源:ZuckerReportContainerDashlet.php

示例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;
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:25,代码来源:CalendarDashlet.php

示例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
 }
开发者ID:nerdystudmuffin,项目名称:dashlet-subpanels,代码行数:14,代码来源:InvadersDashlet.php

示例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');
 }
开发者ID:nickpro,项目名称:sugarcrm_dev,代码行数:12,代码来源:MyClosedOpportunitiesDashlet.php

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

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

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

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

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

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

示例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
     }
 }
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:35,代码来源:ChartsDashlet.php

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

示例14: testDisplayReturnsNothing

 public function testDisplayReturnsNothing()
 {
     $dashlet = new Dashlet('unit_test_run');
     $this->assertEmpty($dashlet->display('foo'));
 }
开发者ID:nickpro,项目名称:sugarcrm_dev,代码行数:5,代码来源:DashletTest.php

示例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();
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:9,代码来源:DashletGeneric.php


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