Beispiel #1
0
require_once '../../modules/pegawai.php';
if ($_POST['ambil'] == "Ambil") {
    $i = 0;
    foreach ($_POST as $data => $nilai) {
        if ($data != 'ambil') {
            pg_ambilPaketKiriman($nilai, $_SESSION['id'], $_SESSION['idkec'], $_SESSION['poskc']);
            $i++;
        }
    }
    $_SESSION['info'] = "{$i} paket telah diambil";
    header('Location: info.php');
}
require_once 'header.php';
$daftartrans = trans_getDaftarTransByIdPeng($_SESSION['id']);
if (isset($_SESSION['poskc'])) {
    $daftarpaketbsdiambil = trans_getDaftarTransByKC($_SESSION['poskc']);
}
?>
            <div id="nav">
	            <ul>
	                <li><a href="index.php">Lihat Rute</a></li>
		            <li><a href="info.php" style="background:#8dd952;">Info barang diangkut</a></li>
		            <li><a href="update.php">Update status barang</a></li>
		            <li><a href="faq.php">FAQ</a></li>
	            </ul>
            </div>   
            <div id="isi">
                <div id="panelinfo">
                    <?php 
echo $_SESSION['info'];
unset($_SESSION['info']);
Beispiel #2
0
<?php

session_start();
require_once '../../lib/koneksi.php';
require_once '../../lib/auth.php';
//require_once('../../modules/kantor_cabang.php');
require_once '../../modules/tracking.php';
//require_once('../../modules/pegawai.php');
require_once '../../modules/transaksi.php';
auth_page('customer service');
$daftarkab = track_getDaftarKab();
$daftarkec = track_getDaftarKecByKab($daftarkab[0]['id']);
$daftarkat = trans_getAllKat();
$daftartrans = trans_getDaftarTransByKC($_SESSION['idkantorcabang']);
?>

<!DOCTYPE html>
<html>
<head>
    <title>andes customer service</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" href="../../css/south-street/jquery-ui-1.8.1.custom.css" rel="stylesheet" />
    <link type="text/css" href="../../css/main.css" rel="stylesheet" />
    <link type="text/css" href="../../css/dashboard.css" rel="stylesheet" />
    <style type="text/css">
    </style>
</head>
<body>
    <div id="idkantorcabang" style="display:none"><?php 
echo $_SESSION['idkantorcabang'];
?>
Beispiel #3
0
 case 'getallkat':
     if ($hasil = trans_getAllKat()) {
         echo json_encode($hasil);
     } else {
         echo 'false';
     }
     break;
 case 'calculatedistance':
     if (!empty($_GET['a']) && !empty($_GET['b'])) {
         $hasil = track_calculateDistance($_GET['a'], $_GET['b']);
         echo json_encode($hasil);
     }
     break;
 case 'gettransbykc':
     if (!empty($_GET['idkc'])) {
         if ($hasil = trans_getDaftarTransByKC($_GET['idkc'])) {
             echo json_encode($hasil);
         } else {
             echo 'false';
         }
     }
     break;
 case 'inputtrans':
     if (!empty($_GET['nmpengirim'])) {
         //cek biaya
         $hasil = trans_calculateBiaya($_GET['kec_pengirim'], $_GET['kec_penerima'], $_GET['brtbrg'], $_GET['nilaibrg'], $_GET['katbrg'], $_GET['kilat'], $_GET['asuransi']);
         echo json_encode($hasil);
     } else {
         if (!empty($_POST['nmpengirim'])) {
             //insert trans
             //$coba=trans_insertTransaksi($_POST['nmpengirim'],$_POST['notelppengirim'],$_POST['kec_pengirim'],$_POST['det_alamat_pengirim'],$_POST['nmpenerima'],$_POST['notelppenerima'],$_POST['kec_penerima'],$_POST['det_alamat_penerima'],$_POST['nmbrg'],$_POST['brtbrg'],$_POST['nilaibrg'],$_POST['katbrg'],$_POST['tglkirim'],$_POST['waktukirim'],$_POST['asuransi'],$_POST['kilat'],$_POST['biaya'],$_POST['idcs'],$_POST['idkec'],$_POST['idkc']);