Exemplo n.º 1
0
<?php

require '../../../boot.php';
require '../../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Common::obj(Request::all());
echo json_encode(Suggest::Outcome($req->kd_program));
exit;
Exemplo n.º 2
0
<?php

require '../../boot.php';
require '../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$id = Request::post('id');
/**
 * anggap saja gapapa delete meski data punya children
 *
 * nanti kalo ngga boleh baru ditambahi
 */
if (Suggest::checkTargetOutcome($id)) {
    echo json_encode(["success" => false, "message" => "Data tidak bisa dihapus"]);
    exit;
}
$delete = DB::delete('indikator_outcome_program', ['id' => $id]);
if ($delete) {
    $hasil = ["success" => true, "message" => "Data berhasil dihapus"];
} else {
    $hasil = ["success" => false, "message" => "Data gagal dihapus"];
}
echo json_encode($hasil);
exit;
Exemplo n.º 3
0
        <td align=\'left\'>' . $value_urusan->kd_urusan . '</td>
        <td align=\'left\' colspan=26>' . $value_urusan->nm_urusan . '</td>
    </tr>';
    $query_bidang = DB::query("SELECT\n            a.tahun,\n            bidang.kd_bidang,\n            bidang.nm_bidang\n            FROM\n            tabel_dpa AS a\n            INNER JOIN bidang ON bidang.kd_urusan = a.kd_urusan AND bidang.kd_bidang = a.kd_bidang\n            WHERE\n                    CONCAT(a.kd_unit,kd_sub_unit) = {$req->skpd} AND\n                    a.tahun = {$req->tahun} AND \n                    a.kd_urusan = {$value_urusan->kd_urusan} AND\n                    a.kd_program > 14\n            GROUP BY a.kd_urusan,a.kd_bidang");
    $result_bidang = $query_bidang->fetchAll();
    foreach ($result_bidang as $value_bidang) {
        $htmlTemplate .= '<tr>
            <td align=\'center\'></td>
            <td align=\'left\'>' . $value_urusan->kd_urusan . '.' . $value_bidang->kd_bidang . '</td>
            <td align=\'left\' colspan=26>' . $value_bidang->nm_bidang . '</td>
        </tr>';
    }
}
/**
 * 
 */
require_once 'library/lib/fpdf.inc.php';
require_once 'library/lib/pdftable.inc.php';
require_once 'library/lib/pdf.inc.php';
require_once 'library/lib/color.inc.php';
require_once 'library/lib/htmlparser.inc.php';
$p = new PDF();
$p->SetMargins(20, 10, 10);
$p->AddPage();
$p->setStyle('small');
$p->text(0, 'Formulir Evaluasi Hasil Renja SKPD', 0, 'C');
$p->text(0, 'SKPD ' . Suggest::getSatker($req->skpd), 0, 'C');
$p->text(0, 'Periode Kegiatan  Tahun ' . $req->tahun, 0, 'C');
$p->SetFont('helvetica', '', '5');
$p->htmltable($htmlTemplate);
$p->output(NAMA_LAPORAN, 'F');
Exemplo n.º 4
0
<?php

require '../../../boot.php';
require '../../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Common::obj(Request::all());
$data = Suggest::targetOutput($req->id);
?>
<form id="fm" method="post" 
    class="easyui-form" 
    method="post"
    style="height: 100%;
            width: 100%;" 
    data-options="novalidate:true" 
    action="<?php 
echo BASE_URL;
?>
store/evaluasi/add_realisasi_output.php"
>
    <div class="easyui-accordion" data-options="fit:true">
        <div title="realisasi" style="padding:10px;">
            <div class="row mb20">
                <div class="small-4 columns">
                    <label for="realisasi_triwulan_1" class="left inline">Triwulan I</label>
                </div>
                <div class="small-3 columns">
                    <input name="realisasi_triwulan_1" 
                            class="easyui-numberbox" 
                            data-options="precision:2,
Exemplo n.º 5
0
<?php

require '../../boot.php';
require '../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Request::all($_REQUEST);
if (empty($req)) {
    $users = DB::get("users");
    for ($i = 0; $i < count($users); $i++) {
        $users[$i]->password = '******';
        $users[$i]->satker = Suggest::getSatker($users[$i]->kd_subunit);
    }
    echo json_encode($users);
    exit;
}
$users = DB::findAll("users", $req);
for ($i = 0; $i < count($users); $i++) {
    $users[$i]->password = '******';
    $users[$i]->satker = Suggest::getSatker($users[$i]->kd_subunit);
}
echo json_encode($users);
exit;
Exemplo n.º 6
0
<?php

require '../../../boot.php';
require '../../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Common::obj(Request::all());
$data = Suggest::targetOutcome($req->id);
?>
<form id="fm" method="post" 
    class="easyui-form" 
    method="post"
    style="height: 100%;
            width: 100%;" 
    data-options="novalidate:true" 
    action="<?php 
echo BASE_URL;
?>
store/evaluasi/add_target_outcome.php"
>
        <div title="Target" style="padding:10px;">
            <div class="row mb20">
                <div class="small-4 columns">
                    <label for="unit_eselon_id" class="left inline">Penanggung Jawab</label>
                </div>
                <div class="small-8 columns">
                    <select id="unit_eselon_id" 
                        class="easyui-combogrid"
                        name="unit_eselon_id"
                        style="width:100%;"
Exemplo n.º 7
0
<?php

require '../../boot.php';
require '../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$id = Request::post('id');
/**
 * anggap saja gapapa delete meski data punya children
 *
 * nanti kalo ngga boleh baru ditambahi
 */
if (Suggest::checkTargetOutput($id)) {
    echo json_encode(["success" => false, "message" => "Data tidak bisa dihapus"]);
    exit;
}
$delete = DB::delete('indikator_output_kegiatan', ['id' => $id]);
if ($delete) {
    $hasil = ["success" => true, "message" => "Data berhasil dihapus"];
} else {
    $hasil = ["success" => false, "message" => "Data gagal dihapus"];
}
echo json_encode($hasil);
exit;
Exemplo n.º 8
0
<?php

/* File Name: suggest.php
 * 	dbLink Plugin.
 *      for phpnuke CMS and equivalents
 *        Send XML with  URL using title of contents from tables pages, stories, FAQ, Encyclopia, Download, WebLink,  Ephemerids
 * File Authors:
 * 		Gustavo G. Vilchez B. (ggvilchez@gmail.com)
 * */
// reference the file containing the Suggest class
require_once 'suggest.class.php';
// create a new Suggest instance
$suggest = new Suggest();
// retrieve the keyword passed as parameter
$keyword = $_GET['keyword'];
//validate keyword -- Added by AW
//$dbtable="pages";
// clear the output
if (ob_get_length()) {
    ob_clean();
}
// headers are sent to prevent browsers from caching
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: text/xml');
// send the results to the client
echo $suggest->getSuggestions($keyword);
Exemplo n.º 9
0
<?php

require '../../../boot.php';
require '../../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Common::obj(Request::all());
echo json_encode(Suggest::Output($req->kd_kegiatan));
exit;
Exemplo n.º 10
0
<?php

require '../../boot.php';
require '../../session.php';
if (!isset($session) || $session->auth == "") {
    Common::Error(401, 'json');
}
$req = Common::obj(Request::all());
// echo "<pre>";print_r($req);exit;
$data = Suggest::targetAnggaran($session->tahun, $req->kd_urusan, $req->kd_bidang, $req->kd_program, $req->kd_kegiatan, $req->kd_unit, $req->kode);
// print_r($data);exit;
?>
<form id="fm" method="post" 
    class="easyui-form" 
    method="post" 
    data-options="novalidate:true" 
    action="<?php 
echo BASE_URL;
?>
store/evaluasi_anggaran/proses_anggaran.php"
>
    <div class="row p10">
        <div class="row mb20">
            <div class="small-5 columns">
                <label for="target_triwulan_1" class="left inline">Target Triwulan 1</label>
            </div>
            <div class="small-7 columns">
                <input name="target_triwulan_1" 
                    class="easyui-numberbox" 
                    data-options="
                        groupSeparator:'.',
Exemplo n.º 11
0
 *
 ******************************************************************************/
require_once "../pmsession.php";
//Send some headers to keep the user's browser from caching the response.
header("Cache-Control: no-cache, must-revalidate, private, pre-check=0, post-check=0, max-age=0");
header("Expires: " . gmdate('D, d M Y H:i:s', time()) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Pragma: no-cache");
header("Content-Type: text/plain; charset=utf-8");
// MapObj modifiers
require_once "../globals.php";
require_once "../common.php";
require_once "../query/suggest.php";
$searchGet = isset($_REQUEST['q']) ? $_REQUEST['q'] : '';
$searchitem = $_REQUEST['searchitem'];
$fldname = $_REQUEST['fldname'];
//error_log("$searchitem  $fldname  $searchGet ");
pm_logDebug(3, $_REQUEST, "request");
// initialize return value
$ret = "";
// Run suggest query
if (isset($searchGet) && strlen($searchGet) > 0) {
    $search = addslashes($searchGet);
    $suggest = new Suggest($map, $search, $searchitem, $fldname, $_REQUEST);
    $ret = $suggest->returnJson();
}
//error_log("return: " . $ret);
//echo "{searchGet:'$searchGet', retvalue:$ret, fldname:'$fldname'}";
if ($ret) {
    echo $ret;
}