Initial import

This commit is contained in:
sas.fajri
2026-05-25 20:01:37 +07:00
commit 710d7c1b97
10371 changed files with 2381698 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
class Delivery extends MY_Controller
{
var $db_onedev;
public function index()
{
echo "API";
}
public function __construct()
{
parent::__construct();
$this->db_onedev = $this->load->database("onedev", true);
}
public function lookup()
{
if (! $this->isLogin) {
$this->sys_error("Invalid Token");
exit;
}
$query = " SELECT M_DeliveryID as id,
M_DeliveryTypeID as typeid,
M_DeliveryTypeCode as type,
M_DeliverySource as source,
M_DeliveryName as name
FROM
m_deliverytype
JOIN m_delivery ON M_DeliveryM_DeliveryTypeID = M_DeliveryTypeID AND M_DeliveryIsActive = 'Y'
WHERE
M_DeliveryTypeIsActive = 'Y'";
$rows = $this->db_onedev->query($query)->result_array();
$result = array(
"total" => count($rows) ,
"records" => $rows
);
$this->sys_ok($result);
exit;
}
}