require 'require/class.Connection.php'; require 'require/class.Spotter.php'; $title = "Statistic - Most common Departure Airport by Country"; require 'header.php'; include 'statistics-sub-menu.php'; ?> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <div class="info"> <h1>Most common Departure Airport by Country</h1> </div> <p>Below are the <strong>Top 10</strong> most common countries of all the departure airports.</p> <?php $airport_country_array = Spotter::countAllDepartureCountries(); ?> <script> google.load("visualization", "1", {packages:["geochart"]}); google.setOnLoadCallback(drawCharts); $(window).resize(function(){ drawCharts(); }); function drawCharts() { var data = google.visualization.arrayToDataTable([ ["Country", "# of Times"], <?php $country_data = ''; foreach ($airport_country_array as $airport_item) {
require 'require/class.Spotter.php'; $Spotter = new Spotter(); $title = "Statistic - Most common Departure Airport by Country"; require 'header.php'; include 'statistics-sub-menu.php'; ?> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <div class="info"> <h1>Most common Departure Airport by Country</h1> </div> <p>Below are the <strong>Top 10</strong> most common countries of all the departure airports.</p> <?php $airport_country_array = $Spotter->countAllDepartureCountries(); ?> <script> google.load("visualization", "1", {packages:["geochart"]}); google.setOnLoadCallback(drawCharts); $(window).resize(function(){ drawCharts(); }); function drawCharts() { var data = google.visualization.arrayToDataTable([ ["Country", "# of Times"], <?php $country_data = ''; foreach ($airport_country_array as $airport_item) {