[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
dummy-old
/
application
/
models-old
/
[
Home
]
File: maset.php
<?php class Maset extends CI_Model { public function update($id,$in){ $this->db->where('id', $id); $this->db->update('tbl_aset', $in); } public function upd_jaket($id,$in){ $this->db->where('id', $id); $this->db->update('tbl_umum_jaket', $in); } public function add_gedung($in){ $this->db->insert('tbl_aset_gedung', $in); } public function add_ruang($in){ $this->db->insert('tbl_aset_ruang', $in); } public function input_jaket($in){ $this->db->insert('tbl_umum_jaket', $in); } public function show(){ $this->db->order_by('kode'); return $this->db->get('tbl_aset_ruang'); } public function show_jaket(){ $this->db->from('tbl_mhs,tbl_umum_jaket'); $this->db->where('tbl_mhs.id = tbl_umum_jaket.id_mhs'); $this->db->order_by('nama'); return $this->db->get(); } public function show_gedung(){ //$this->db->order_by('kode'); return $this->db->get('tbl_aset_gedung'); } public function show_ruang(){ //$this->db->order_by('kode'); return $this->db->get('tbl_aset_ruang'); } function cari($x){ $this->db->like('nama',$x); $this->db->order_by('nama'); return $this->db->get('tbl_mhs'); } function cari2($x){ $this->db->where('nim',$x); //$this->db->or_where('nim',$x); $this->db->order_by('nama'); return $this->db->get('tbl_mhs'); } function get_jaket_by_id($id_mhs){ return $this->db->get_where('tbl_umum_jaket',array('id_mhs' => $id_mhs)); } }