Ejemplo n.º 1
0
                        <div class="row">
                            <div class="col-lg-12">
                                <table class="table table-bordered table-striped table-condensed">
                                    <tbody>
                                        <tr>
                                            <td><h5><?php 
echo $search_date . $cityname;
?>
城市访问情况:</h5></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <h4>城市访问情况</h4>
                                                <?php 
//获得访问来源
$pieflat_form = NginxHightchartService::getPiePlatHightChart($search_date, "DetailType1=:topT", [':topT' => $cityname], 'DetailType2', $table, '访问来源');
if ($pieflat_form) {
    ?>

                                                    <?php 
    echo Highcharts::widget(['options' => ['chart' => ['type' => 'pie', 'plotShadow' => true, 'height' => 450], 'title' => ['text' => '城市访问情况'], 'credits' => ['enabled' => false], 'plotOptions' => ['pie' => ['allowPointSelect' => true, 'cursor' => 'pointer', 'dataLabels' => ['enabled' => false], 'showInLegend' => true]], 'legend' => ['verticalAlign' => "bottom"], 'series' => [$pieflat_form['in_country']['series']]]]);
}
?>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="col-lg-12">
                                <table class="table table-bordered table-striped table-condensed">
                                    <tbody>