anticims19

controller.php

Jan 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. public function save_request()
  2.     {
  3.  
  4.         $no = $this->input->get('no');
  5.         $id = $this->input->get('id');
  6.         $requestor = $this->input->get('requestor');
  7.         $section = $this->input->get('section');
  8.         $date = $this->input->get('date');
  9.         $supplier = $this->input->get('supplier');
  10.         $category = $this->input->get('category');
  11.         $status = strtolower($this->input->get('status'));
  12.         $remark = $this->input->get('remark');
  13.  
  14.         $object     = array(
  15.                         "request_no" => $no,
  16.                         "id_user"    => $id,
  17.                         "id_section"     => $section,
  18.                         "date"   => $date,
  19.                         "id_supplier"    => $supplier,
  20.                         "id_category"    => $category,
  21.                         "status"     => $status,
  22.                         "remark"     => $remark
  23.             );
  24.         $data['editdata']   = $this->db->query("SELECT * FROM tb_barang WHERE id_supplier = '$supplier' ")->result_object();
  25.         $this->db->insert("tb_request", $object);
  26.         //$data['page'] = "detail_user";
  27.         $this->load->view('admin/f_item_request', $data);
  28.     }
Add Comment
Please, Sign In to add comment