示例#1
0
文件: sppk_c.php 项目: ashadi-cc/App
<?php

$task = $_REQUEST['task'];
//parameter yang dikirim oleh js
$handler->loadModel("sppk_m");
//model di core
$sppk = new sppk(true);
switch ($task) {
    case 'doRead':
        echo $sppk->doRead($_REQUEST);
        //pake $_REQUEST juga sama aja
        break;
    case 'saveEdit':
        echo $sppk->saveEdit($_REQUEST);
        //pake $_REQUEST juga sama aja
        break;
    case 'remove':
        echo $sppk->remove($_REQUEST['data']);
        //pake $_REQUEST juga sama aja
        break;
}
示例#2
0
文件: form_c.php 项目: ashadi-cc/App
<?php

$task = $_REQUEST['task'];
//parameter yang dikirim oleh js
$handler->loadModel("sppk_m");
//model di core
$sppk = new sppk(true);
switch ($task) {
    case 'saveEdit':
        echo $sppk->saveEdit($_REQUEST);
        //pake $_REQUEST juga sama aja
        break;
}
示例#3
0
文件: sppk_r.php 项目: ashadi-cc/App
<?php

$file = $_GET['mode'] == 'pdf' ? "sppk_r.pdf.php" : "sppk_r.xls.php";
$handler->loadModel("sppk_m");
$sppk = new sppk(true);
$rs = $sppk->doRead($_REQUEST, 1);
include $file;