示例#1
0
文件: index.php 项目: sakti/andes
<?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'];
?>
示例#2
0
文件: ajax.php 项目: sakti/andes
                 }
             }
             break;
         case 'getlaporan':
             $hasil = lp_getLaporan();
             echo json_encode($hasil);
             break;
     }
     break;
 case 'customer service':
     switch ($_REQUEST['op']) {
         case 'x':
             echo 'x';
             break;
         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);