奇怪的条件PHP显示高图

时间:2014-08-28 02:01:24

标签: javascript php xampp

我在显示高图时遇到了一个奇怪的问题。我在本地运行代码时没关系。但是当我将它上传到服务器时,不会出现高清图。 顺便说一下,我的本地和服务器使用不同版本的xampp。

不同的是= 我的本地:xampp 1.8.1 php 5.4.7和 服务器:xampp 1.8.2 php 5.4.27

是这个问题的原因吗?这是代码 无论如何,我希望可以帮助我们,我新手 谢谢,这是代码:

<html>
<?php
session_start();

include "koneksi.php";
include "header.php";
include "sidebar.php";
?>

                        Dashboard
                        <small>Home</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="home.php"><i class="fa fa-dashboard"></i> Home</a></li>

                        <li class="active">Dashboard</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">



                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box box-solid">
                                <div class="box-header" align="center">
                                    <h3 class="box-title" ><center><b>General Affair Dept</b></center></h3>
                                </div><!-- /.box-header -->
                                <div class="box-body">
                                    <div class="box-group" id="accordion">
                                        <!-- we are adding the .panel class so bootstrap.js collapse plugin detects it -->
                                        <div class="panel box box-primary">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
                                                        Komunikasi
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseOne" class="panel-collapse collapse in">
                                                <div class="btn-group" id="container" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                        <div class="panel box box-danger">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
                                                        Maintenance
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseTwo" class="panel-collapse collapse">
                                                <div class="btn-group" id="maintenance" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                        <div class="panel box box-success">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
                                                        Ticket
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseThree" class="panel-collapse collapse">
                                                <div class="btn-group" id="tiketbulanan" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                        <div class="panel box box-danger">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseFour">
                                                        Catering
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseFour" class="panel-collapse collapse">
                                                <div class="btn-group" id="planactual" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                        <div class="panel box box-primary">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseFive">
                                                        Transportation Management Systen
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseFive" class="panel-collapse collapse">
                                                <div class="btn-group" id="tmsgap" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                        <div class="panel box box-success">
                                            <div class="box-header">
                                                <h4 class="box-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseSix">
                                                        Catering
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseSix" class="panel-collapse collapse">
                                                <div class="btn-group" id="grafikbulanan" style="height:400px; width:800px;">
                        </div>
                                            </div>
                                        </div>
                                    </div>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        <!-- /.col -->






                        </div><!-- /.col (RIGHT) -->

                    </div><!-- /.row -->

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->


        <!-- jQuery 2.0.2 -->

        <!-- Bootstrap -->
        <script src="js/bootstrap.min.js" type="text/javascript"></script>

        <!-- Morris.js charts -->
       <!-- <script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> -->
       <!-- <script src="js/plugins/morris/morris.min.js" type="text/javascript"></script> -->

        <!-- AdminLTE App -->
        <script src="js/AdminLTE/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->
        <script src="js/AdminLTE/demo.js" type="text/javascript"></script>
        <!-- page script -->
     <script type="text/javascript">

$(function () {
        $('#maintenance').highcharts({
            chart: {
                type: 'column'
            },
            title: {
                text: 'Maintenance Report per <?phpecho $today;?>'
            },
            subtitle: {
                text: 'Sumber : QRGAD'
            },
            xAxis: {
                categories:

                [
                    '<?php echo $today;?>'

                ]
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'Jumlah (orang)'
                }
            },
            tooltip: {
                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                    '<td style="padding:0"><b>{point.y:.1f} Keluhan</b></td></tr>',
                footerFormat: '</table>',
                shared: true,
                useHTML: true
            },
            plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0
                }
            },

            series: 
                            <?php 
                                $tanggal_awal=date ("Y-m-d");
                                $tanggal_akhir=date ("Y-m-d");
                                mysql_connect("localhost","root","");
                                mysql_select_db("qrgad");
                                $sql   = "SELECT * from keluhan";
                                $jumlah=mysql_fetch_array(mysql_query($sql));
                                $jumlah1=mysql_fetch_array(mysql_query("select COUNT(id_keluhan) as totaldata from keluhan where tlapor ='$today'"));
                                $jumlah2=mysql_fetch_array(mysql_query("select COUNT(id_keluhan) as totaldata from keluhan where trespon ='$today'"));
                                $jumlah3=mysql_fetch_array(mysql_query("select COUNT(id_keluhan) as totaldata from keluhan where tsolusi ='$today'"));
                            ?>
            [{
                name: 'Jumlah Pengaduan',
                data: [<?php echo $jumlah1['totaldata']; ?>]

            },{
                name: ' Pengaduan direspon',
                data: [<?php echo $jumlah2['totaldata']; ?>]

            },{
                name: 'Resolved',
                data: [<?php echo $jumlah3['totaldata']; ?>]

            }]
        });
    });


    $(function () {
         $('#tiketbulanan').highcharts({
            chart: {
                type: 'column'
            },
            title: {
                text: 'Monthly Report Ticket Order'
            },
            subtitle: {
                text: 'Sumber : QRGAD'
            },
            xAxis: {
                categories: [
                    'Jan',
                    'Feb',
                    'Mar',
                    'Apr',
                    'May',
                    'Jun',
                    'Jul',
                    'Aug',
                    'Sep',
                    'Oct',
                    'Nov',
                    'Dec'
                ]
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'Jumlah (orang)'
                }
            },
            tooltip: {
                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                    '<td style="padding:0"><b>{point.y:.1f} Karyawan</b></td></tr>',
                footerFormat: '</table>',
                shared: true,
                useHTML: true
            },
            plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0
                }
            },

            series: 
                    <?php 
                        $tanggal_awal=date ("Y-m-d");
                        $tanggal_akhir=date ("Y-m-d");
                        mysql_connect("localhost","root","");
                            mysql_select_db("qrgad");
                        $sql   = "SELECT * from tiket";
                        $jumlah1=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-01-01' and waktu_respon <='2014-01-31' and waktu_respon !='0'"));
                        $jumlah2=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-02-01' and waktu_respon <='2014-02-28' and waktu_respon !='0'"));
                        $jumlah3=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-03-01' and waktu_respon <='2014-03-31' and waktu_respon !='0'"));
                        $jumlah4=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-04-01' and waktu_respon <='2014-04-30' and waktu_respon !='0'"));
                        $jumlah5=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-05-01' and waktu_respon <='2014-05-31' and waktu_respon !='0'"));
                        $jumlah6=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-06-01' and waktu_respon <='2014-06-31' and waktu_respon !='0'"));
                        $jumlah7=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-07-01' and waktu_respon <='2014-07-31' and waktu_respon !='0'"));
                        $jumlah8=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-08-01' and waktu_respon <='2014-08-31' and waktu_respon !='0'"));
                        $jumlah9=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-09-01' and waktu_respon <='2014-09-30' and waktu_respon !='0'"));
                        $jumlah10=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-10-01' and waktu_respon <='2014-10-31' and waktu_respon !='0'"));
                        $jumlah11=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-11-01' and waktu_respon <='2014-11-30' and waktu_respon !='0'"));
                        $jumlah12=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_respon >='2014-12-01' and waktu_respon <='2014-12-31' and waktu_respon !='0'"));  ?>

                    <?php 
                        $tanggal_awal=date ("Y-m-d");
                        $tanggal_akhir=date ("Y-m-d");
                        mysql_connect("localhost","root","");
                        mysql_select_db("qrgad");
                        $sql   = "SELECT * from tiket";
                        $result1=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-01-01' and waktu_input <='2014-01-31' and waktu_input !='0'"));
                        $result2=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-02-01' and waktu_input <='2014-02-28' and waktu_input !='0'"));
                        $result3=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-03-01' and waktu_input <='2014-03-31' and waktu_input !='0'"));
                        $result4=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-04-01' and waktu_input <='2014-04-30' and waktu_input !='0'"));
                        $result5=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-05-01' and waktu_input <='2014-05-31' and waktu_input !='0'"));
                        $result6=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-06-01' and waktu_input <='2014-06-31' and waktu_input !='0'"));
                        $result7=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-07-01' and waktu_input <='2014-07-31' and waktu_input !='0'"));
                        $result8=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-08-01' and waktu_input <='2014-08-31' and waktu_input !='0'"));
                        $result9=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-09-01' and waktu_input <='2014-09-30' and waktu_input !='0'"));
                        $result10=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-10-01' and waktu_input <='2014-10-31' and waktu_input !='0'"));
                        $result11=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-11-01' and waktu_input <='2014-11-30' and waktu_input !='0'"));
                        $result12=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_input >='2014-12-01' and waktu_input <='2014-12-31' and waktu_input !='0'"));         
                    ?>

                    <?php 
                        $tanggal_awal=date ("Y-m-d");
                        $tanggal_akhir=date ("Y-m-d");
                        mysql_connect("localhost","root","");
                        mysql_select_db("qrgad");
                        $sql   = "SELECT * from tiket";
                        $tiket1=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-01-01' and waktu_tiket <='2014-01-31' and waktu_tiket !='0'"));
                        $tiket2=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-02-01' and waktu_tiket <='2014-02-28' and waktu_tiket !='0'"));
                        $tiket3=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-03-01' and waktu_tiket <='2014-03-31' and waktu_tiket !='0'"));
                        $tiket4=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-04-01' and waktu_tiket <='2014-04-30' and waktu_tiket !='0'"));
                        $tiket5=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-05-01' and waktu_tiket <='2014-05-31' and waktu_tiket !='0'"));
                        $tiket6=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-06-01' and waktu_tiket <='2014-06-31' and waktu_tiket !='0'"));
                        $tiket7=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-07-01' and waktu_tiket <='2014-07-31' and waktu_tiket !='0'"));
                        $tiket8=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-08-01' and waktu_tiket <='2014-08-31' and waktu_tiket !='0'"));
                        $tiket9=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-09-01' and waktu_tiket <='2014-09-30' and waktu_tiket !='0'"));
                        $tiket10=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-10-01' and waktu_tiket <='2014-10-31' and waktu_tiket !='0'"));
                        $tiket11=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-11-01' and waktu_tiket <='2014-11-30' and waktu_tiket !='0'"));
                        $tiket12=mysql_fetch_array(mysql_query("select COUNT(no_request) as totaldata from tiket where waktu_tiket >='2014-12-01' and waktu_tiket <='2014-12-31' and waktu_tiket !='0'"));          
                    ?>

            [{

            name: 'Jumlah Permintaan',
                data: [<?php echo $result1['totaldata']; ?>,<?php echo $result2['totaldata']; ?>,<?php echo $result3['totaldata']; ?>,<?php echo $result4['totaldata']; ?>,<?php echo $result5['totaldata']; ?>,<?php echo $result6['totaldata']; ?>,<?php echo $result7['totaldata']; ?>,<?php echo $result8['totaldata']; ?>,<?php echo $result9['totaldata']; ?>,<?php echo $result10['totaldata']; ?>,<?php echo $result11['totaldata']; ?>,<?php echo $result12['totaldata']; ?>]
            },
            {
                name: 'Permintaan yang direspon',
                data: [<?php echo $jumlah1['totaldata']; ?>,<?php echo $jumlah2['totaldata']; ?>,<?php echo $jumlah3['totaldata']; ?>,<?php echo $jumlah4['totaldata']; ?>,<?php echo $jumlah5['totaldata']; ?>,<?php echo $jumlah6['totaldata']; ?>,<?php echo $jumlah7['totaldata']; ?>,<?php echo $jumlah8['totaldata']; ?>,<?php echo $jumlah9['totaldata']; ?>,<?php echo $jumlah10['totaldata']; ?>,<?php echo $jumlah11['totaldata']; ?>,<?php echo $jumlah12['totaldata']; ?>]

            },
            {
                 name: 'Jumlah yang dipenuhi',
                data: [<?php echo $tiket1['totaldata']; ?>,<?php echo $tiket2['totaldata']; ?>,<?php echo $tiket3['totaldata']; ?>,<?php echo $tiket4['totaldata']; ?>,<?php echo $tiket5['totaldata']; ?>,<?php echo $tiket6['totaldata']; ?>,<?php echo $tiket7['totaldata']; ?>,<?php echo $tiket8['totaldata']; ?>,<?php echo $tiket9['totaldata']; ?>,<?php echo $tiket10['totaldata']; ?>,<?php echo $tiket11['totaldata']; ?>,<?php echo $tiket12['totaldata']; ?>]

            }]
        });
    });


    $(function () {
        $('#tmsgap').highcharts({
            chart: {
                type: 'column'
            },
            title: {<?php $today=date ("Y-m-d"); ?>
                text: 'TMS GAP time report per <?phpecho $today; ?>'
            },
            subtitle: {
                text: 'Sumber : QRGAD'
            },
            xAxis: {

            <?php 
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
            $sql =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0001'"));
            $sql1 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0002'"));
            $sql2 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0003'"));
            $sql3 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0004'"));
            $sql4 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0005'"));
            $sql5 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0006'"));
            $sql6 =mysql_fetch_array(mysql_query("SELECT * from kendaraan where id_kendaraan='CAR0007'"));




            ?>
                categories: [
                    '<?php echo $sql['no_plat']; echo "<br/>"; echo $sql['nama_kendaraan'];?>',
                    '<?php echo $sql1['no_plat']; echo "<br/>"; echo $sql1['nama_kendaraan'];?>',
                   '<?php echo $sql2['no_plat']; echo "<br/>"; echo $sql2['nama_kendaraan'];?>',
                   '<?php echo $sql3['no_plat']; echo "<br/>"; echo $sql3['nama_kendaraan'];?>',
                    '<?php echo $sql4['no_plat']; echo "<br/>"; echo $sql4['nama_kendaraan'];?>',
                    '<?php echo $sql5['no_plat']; echo "<br/>"; echo $sql5['nama_kendaraan'];?>',
                    '<?php echo $sql6['no_plat']; echo "<br/>"; echo $sql6['nama_kendaraan'];?>'

                ]
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'Minute'
                }
            },
            tooltip: {
                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                    '<td style="padding:0"><b>{point.y:.1f} minutes</b></td></tr>',
                footerFormat: '</table>',
                shared: true,
                useHTML: true
            },
            plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0
                }
            },

            series: 

            <?php //hitung gaptime di mobil CAR0001 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp1 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0001'";
$hasilresp1 = mysql_query($queryresp1);
$dataresp1 = mysql_fetch_array($hasilresp1);
$hhmmresp1 = $dataresp1['gaptime']; 
$arrresp1 = explode(":", $hhmmresp1);
$tmenitresp1=$arrresp1[0] * 60 + $arrresp1[1];
            ?>
            <?php //hitung gaptime di mobil CAR0002 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp2 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0002'";
$hasilresp2 = mysql_query($queryresp2);
$dataresp2 = mysql_fetch_array($hasilresp2);
$hhmmresp2 = $dataresp2['gaptime']; 
$arrresp2 = explode(":", $hhmmresp2);
$tmenitresp2=$arrresp2[0] * 60 + $arrresp2[1];
            ?>
            <?php//hitung gaptime di mobil CAR0003 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp3 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0003'";
$hasilresp3 = mysql_query($queryresp3);
$dataresp3 = mysql_fetch_array($hasilresp3);
$hhmmresp3 = $dataresp3['gaptime']; 
$arrresp3 = explode(":", $hhmmresp3);
$tmenitresp3=$arrresp3[0] * 60 + $arrresp3[1];
            ?>
            <?php//hitung gaptime di mobil CAR0004 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp4 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0004'";
$hasilresp4 = mysql_query($queryresp4);
$dataresp4 = mysql_fetch_array($hasilresp4);
$hhmmresp4 = $dataresp4['gaptime']; 
$arrresp4 = explode(":", $hhmmresp4);
$tmenitresp4=$arrresp4[0] * 60 + $arrresp4[1];
            ?>
            <?php//hitung gaptime di mobil CAR0005 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp5 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0005'";
$hasilresp5 = mysql_query($queryresp5);
$dataresp5 = mysql_fetch_array($hasilresp5);
$hhmmresp5 = $dataresp5['gaptime']; 
$arrresp5 = explode(":", $hhmmresp5);
$tmenitresp5=$arrresp5[0] * 60 + $arrresp5[1];
            ?>
            <?php//hitung gaptime di mobil CAR0006 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp6 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0006'";
$hasilresp6 = mysql_query($queryresp6);
$dataresp6 = mysql_fetch_array($hasilresp6);
$hhmmresp6 = $dataresp6['gaptime']; 
$arrresp6 = explode(":", $hhmmresp6);
$tmenitresp6=$arrresp6[0] * 60 + $arrresp6[1];
            ?>
            <?php //hitung gaptime di mobil CAR0007 dihari ini
            mysql_connect("localhost","root","");
    mysql_select_db("qrgad");
$queryresp7 = "select timediff(adeparture_dt, pdeparture_dt) as gaptime from perjalanan where pdeparture_dt like '%$today%' AND id_kendaraan='CAR0007'";
$hasilresp7 = mysql_query($queryresp7);
$dataresp7 = mysql_fetch_array($hasilresp7);
$hhmmresp7 = $dataresp7['gaptime']; 
$arrresp7 = explode(":", $hhmmresp7);
$tmenitresp7=$arrresp7[0] * 60 + $arrresp7[1];
            ?>



            [{
                name: 'GAP Time (in minute)',
                data: [<?php echo $tmenitresp1; ?>,<?php echo $tmenitresp2; ?>,<?php echo $tmenitresp3; ?>,<?php echo $tmenitresp4; ?>,<?php echo $tmenitresp5; ?>,<?php echo $tmenitresp6; ?>,<?php echo $tmenitresp7; ?>]

            }]
        });
    });



</script>
<script src="highchart/js/highcharts.js"></script>
<script src="highchart/js/modules/exporting.js"></script>
<script src="highchart/js/modules/data.js"></script>
<script src="highchart/js/highcharts-3d.js"></script>

    </body>


</html>

0 个答案:

没有答案