You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
11 months ago
|
<?php
|
||
|
|
||
|
namespace App\Controllers;
|
||
|
|
||
|
use CodeIgniter\Controller;
|
||
|
use App\Models\Mref;
|
||
|
|
||
|
class Ref extends Controller
|
||
|
{
|
||
|
public function getKPP()
|
||
|
{
|
||
|
$kwl = $this->request->getPost('kwl');
|
||
|
$model = new Mref();
|
||
|
$dataKPP = $model->selKpp($kwl)->getResult();
|
||
|
echo json_encode($dataKPP);
|
||
|
}
|
||
|
public function getSeksi()
|
||
|
{
|
||
|
$kpp = $this->request->getPost('kpp');
|
||
|
$model = new Mref();
|
||
|
$dataseksi = $model->selSeksi($kpp)->getResult();
|
||
|
echo json_encode($dataseksi);
|
||
|
}
|
||
|
|
||
|
public function getAR()
|
||
|
{
|
||
|
$kpp = $this->request->getPost('kpp');
|
||
|
$seksi = $this->request->getPost('seksi');
|
||
|
$model = new Mref();
|
||
|
$dataar = $model->selAR($kpp, $seksi)->getResult();
|
||
|
echo json_encode($dataar);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
public function getKPP2()
|
||
|
{
|
||
|
$kwl = $this->request->getGet('kwl');
|
||
|
$model = new Mref();
|
||
|
$dataKPP = $model->selKpp($kwl)->getResult();
|
||
|
echo json_encode($dataKPP);
|
||
|
}
|
||
|
|
||
|
public function getAR2()
|
||
|
{
|
||
|
$kpp = $this->request->getGet('kpp');
|
||
|
$seksi = $this->request->getGet('seksi');
|
||
|
$model = new Mref();
|
||
|
$dataseksi = $model->selAR($kpp, $seksi)->getResult();
|
||
|
echo json_encode($dataseksi);
|
||
|
}
|
||
|
}
|