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


PHP Chart::execute方法代码示例

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


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

示例1: execute

 public function execute($type_report = '', $id_report = '')
 {
     $selected_id = ($type_report == "grafico" ? "chart_" : "report_") . $id_report;
     $this->showDashboard($selected_id);
     switch ($type_report) {
         case "relatorio":
             include "Report.php";
             $obj = new Report($id_report);
             break;
         case "grafico":
             include "Chart.php";
             $obj = new Chart($id_report);
             break;
     }
     $obj->execute();
 }
开发者ID:renanmedina,项目名称:futuri.easycasting_mvc,代码行数:16,代码来源:ReportManager.php

示例2: Chart

							<div class="col-md-12 col-sm-6">
								<?php 
$chart = new Chart();
$params = array("type" => Chart::CHARTTYPE_LINE);
$data = array();
$data["labels"] = array();
$data["datasets"] = array("label" => date('Y'), "fillColor" => "rgba(151,187,205,0.2)", "strokeColor" => "rgba(151,187,205,1)", "pointColor" => "rgba(151,187,205,1)", "pointStrokeColor" => "#fff", "pointHighlightFill" => "#fff", "pointHighlightStroke" => "rgba(151,187,205,1)", "data" => []);
$dbobj = $chart->getLoadedModel()->executeQuery("select MONTHNAME(dt_inicio) as month_name, count(id) as job_count\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t FROM easy_trabalhos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t GROUP BY MONTH(dt_inicio)");
if (count($dbobj->result_array()) > 1) {
    foreach ($dbobj->result_array() as $row) {
        $data["labels"][] = $row["month_name"];
        $data["datasets"][0]["data"][] = $row["job_count"];
    }
    $params["data"] = json_encode($data);
}
$chart->execute($params);
?>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6 col-sm-6">
					<div class="ls-box ls-board-box">
						<header class="ls-info-header">
							<h2 class="ls-title-3 col-md-12 ls-ico-calendar-check">
								Aniversáriantes do <span class='birthday-legend-toggle'>dia</span>
								<!-- <div class='ls-float-right'>
									<button class='ls-btn ls-tooltip ls-tooltip-left' aria-label='Exibir mês' href='#' data-display_month="false" onClick='$futuri.displayMonthBirthdays(this);'><i class='ls-ico-calendar'></i></button>
								</div> -->
								<small>Listagem de aniversáriantes do <span class='birthday-legend-toggle'>dia</span> (casting e usuários do sistema)</small>
								
开发者ID:renanmedina,项目名称:futuri.easycasting_mvc,代码行数:30,代码来源:welcome_dashboard.php


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