當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Dashboard::getMenorInvestimento方法代碼示例

本文整理匯總了PHP中Dashboard::getMenorInvestimento方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dashboard::getMenorInvestimento方法的具體用法?PHP Dashboard::getMenorInvestimento怎麽用?PHP Dashboard::getMenorInvestimento使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Dashboard的用法示例。


在下文中一共展示了Dashboard::getMenorInvestimento方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: drawChart

		<script type="text/javascript">
			google.load("visualization", "1", {packages:["corechart"]});
			google.setOnLoadCallback(drawChart);
			function drawChart() {
				var data = google.visualization.arrayToDataTable([
					["Element", "Density", { role: "style" } ],
					["Médio", <?php 
echo $dashboard->getMediaInvestimento();
?>
, "#b87333"],
					["Maior", <?php 
echo $dashboard->getMaiorInvestimento();
?>
, "silver"],
					["Menor", <?php 
echo $dashboard->getMenorInvestimento();
?>
, "gold"],
				]);

				var view = new google.visualization.DataView(data);
				view.setColumns([0, 1,
												 { calc: "stringify",
													 sourceColumn: 1,
													 type: "string",
													 role: "annotation" },
												 2]);

				var options = {
					title: "Investimento",
					width: 600,
開發者ID:gabe351,項目名稱:monop,代碼行數:31,代碼來源:index.php

示例2:

	      };
	    </script>
		<div class="container">
			<h1>Charts, only!</h1>
			<div class="row" align="center">
		        <div class="col-md-5">
		          <div id="piechart" style="width: 600px; height: 400px;"></div>
		        </div>
		        <div class="col-md-1"></div>
		        <div class="col-md-5">
							<div class="well">
								<h1>Investimento</h1>
		          				<?php 
echo "<a href=busca.php?search=" . $dashboard->getMaiorInvestimento() . " class='a'>\n\t\t\t\t\t\t\t\t\t\t\t<h2>Maior: R\$ " . number_format($dashboard->getMaiorInvestimento(), 2, ",", ".") . "</h2></a>";
echo "<a href=busca.php?search=" . $dashboard->getMenorInvestimento() . ">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Menor: R\$ " . number_format($dashboard->getMenorInvestimento(), 2, ",", ".") . "</h2></a>";
?>
			        </div>
		        </div>
		    </div>

		    <div class="row" align="center">
		    	<div class="col-md-5">
		          <div id="piechart3" style="width: 600px; height: 400px;"></div>
		        </div>
		    	<div class="col-md-5"><b>Regiões onde ocorrem obras do PAC</b>
		    		<div id="geochart-colors" style="width: 700px; height: 433px;"></div>
		    	</div>


		    </div>
開發者ID:ArthurNovaes,項目名稱:monop,代碼行數:30,代碼來源:index.php


注:本文中的Dashboard::getMenorInvestimento方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。