예제 #1
0
<?php

appmod_use('psb', 'psb/proses', 'psb/kelompok');
$dept = gpost('departemen');
$departemen = departemen_r($dept);
$pros = gpost('proses');
$proses = proses_r($pros, $dept);
$kel = gpost('kelompok');
// $kelompok   =kelompok_r($kel,$pros);
$kelompok = kelompok_r($kel, $pros, 1);
$modeview = gpost('modeview', 'data');
hiddenval('modeview', $modeview);
$fmod = 'modul_psb';
//epi ------------------
$tgl = explode("-", date("Y-m-d"));
$dim = cal_days_in_month(CAL_GREGORIAN, intval($tgl[1]), intval($tgl[0]));
$tgl_f = date("Y-m") . "-1";
$tgl_c = date("Y-m-d");
$tgl_l = date("Y-m") . "-" . $dim;
$tanggal1 = gpost('tanggal1', $tgl_f);
// print_r($tanggal1);
$tanggal2 = gpost('tanggal2', $tgl_l);
hiddenval('tanggal_f', $tgl_f);
hiddenval('tanggal_c', $tgl_c);
hiddenval('tanggal_l', $tgl_l);
//endn of epi ---------
if (count($departemen) > 0) {
    // Page Selection Bar
    $PSBar = new PSBar_2();
    $PSBar->begin();
    $PSBar->selection_departemen($fmod, $dept);
예제 #2
0
파일: biaya.php 프로젝트: epiii/siadu-epiii
<?php

appmod_use('psb/proses', 'psb/kelompok');
$fmod = 'biaya';
$xtable = new xtable($fmod);
$dept = gpost('departemen');
$departemen = departemen_r($dept);
$pros = gpost('proses');
$proses = proses_r($pros, $dept);
$kel = gpost('kelompok');
$kelompok = kelompok_r($kel, $pros);
if (count($departemen) > 0) {
    // Page Selection Bar
    $PSBar = new PSBar_2();
    $PSBar->begin();
    $PSBar->selection_departemen($fmod, $dept);
    if (count($proses) > 0) {
        $PSBar->selection('Proses', iSelect('proses', $proses, $pros, $PSBar->selws, $fmod . "_get()"));
    } else {
        $PSBar->end();
        hiddenval('proses', $pros);
        hiddenval('kelompok', $kel);
        proses_warn();
        exit;
    }
    if (count($kelompok) > 0) {
        $PSBar->selection('Kelompok', iSelect('kelompok', $kelompok, $kel, $PSBar->selws, $fmod . "_get()"));
    } else {
        $PSBar->end();
        hiddenval('kelompok', $kel);
        kelompok_warn();