Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class insert extends CI_Controller{
- public function __construct() {
- parent::__construct();
- $this->load->model('Train_model');
- $this->load->model('input_model','IM');
- }
- public function input () {
- $STREAM = $this->input->post('stream');
- $KODE_M = $this->input->post('materi');
- $KODE_LC = $this->input->post('lc');
- $KODE_INST = $this->input->post('inst');
- $KODE_UBIS = $this->input->post('ubis');
- $ANGKATAN = $this->input->post('ang');
- $TGL_MULAI = $this->input->post('tgl_awal');
- $TGL_AKHIR = $this->input->post('tgl_akhir');
- $ANGGARAN = $this->input->post('ang');
- $PST_A = $this->input->post('pst');
- $this->IM->input_plan($STREAM, $KODE_M, $KODE_LC, $KODE_INST, $KODE_UBIS,$ANGKATAN,$TGL_MULAI,$TGL_AKHIR,$ANGGARAN,$PST_A);
- echo "<script>alert ('Data Berhasil disimpan');</script>";
- redirect('combo/','refresh');
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment