<?php
$sql['get_count'] = "
   SELECT
      count(jlrpengbrgId) AS total
   FROM
      jalur_pengadaan_barang_ref
   WHERE
      jlrpengbrgNama like '%s'
";

$sql['get_data'] = "
   SELECT
      jlrpengbrgId AS jalur_id,
      jlrpengbrgNama AS jalur_nama
   FROM
      jalur_pengadaan_barang_ref
   WHERE  
      jlrpengbrgNama like '%s'  
   ORDER BY jlrpengbrgNama
   LIMIT %s,%s
";

$sql['get_data_by_id'] = "
   SELECT
      jlrpengbrgId AS jalur_id,
      jlrpengbrgNama AS jalur_nama
   FROM
      jalur_pengadaan_barang_ref
   WHERE
      jlrpengbrgId = '%s'
";

$sql['do_add'] = "
   INSERT INTO 
      jalur_pengadaan_barang_ref 
      (jlrpengbrgId, jlrpengbrgNama)
   VALUES 
      ('', '%s')
";

$sql['do_delete'] = "
   DELETE FROM 
      jalur_pengadaan_barang_ref
   WHERE
      jlrpengbrgId = '%s'
";  

$sql['do_update'] = "
   UPDATE 
      jalur_pengadaan_barang_ref
   SET
      jlrpengbrgNama = '%s'
    WHERE 
      jlrpengbrgId = '%s'
";
?>