<?php
$sql['get_count'] = "
   SELECT
      count(jabatanId) AS total
   FROM
      jabatan_ref
   WHERE
      jabatanNama like '%s'
";

$sql['get_data'] = "
   SELECT
      jabatanId AS jabatan_id,
      jabatanNama AS jabatan_nama
   FROM
      jabatan_ref
   WHERE  
      jabatanNama like '%s'  
   ORDER BY jabatanNama
   LIMIT %s,%s
";

$sql['get_data_by_id'] = "
   SELECT
      jabatanId AS jabatan_id,
      jabatanNama AS jabatan_nama
   FROM
      jabatan_ref
   WHERE
      jabatanId = '%s'
";

$sql['do_add'] = "
   INSERT INTO 
      jabatan_ref 
      (jabatanId, jabatanNama)
   VALUES 
      ('', '%s')
";

$sql['do_delete'] = "
   DELETE FROM 
      jabatan_ref
   WHERE
      jabatanId = '%s'
";  

$sql['do_update'] = "
   UPDATE 
      jabatan_ref
   SET
      jabatanNama = '%s'
    WHERE 
      jabatanId = '%s'
";
?>