aries_

redirect

Jul 23rd, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. <?php
  2.   class insert extends CI_Controller{
  3.  
  4.         public function  __construct() {
  5.             parent::__construct();
  6.             $this->load->model('Train_model');
  7.             $this->load->model('input_model','IM');
  8.     }
  9.  
  10.     public function input () {
  11.    
  12.         $STREAM = $this->input->post('stream');
  13.         $KODE_M = $this->input->post('materi');
  14.         $KODE_LC = $this->input->post('lc');
  15.         $KODE_INST = $this->input->post('inst');
  16.         $KODE_UBIS = $this->input->post('ubis');
  17.         $ANGKATAN = $this->input->post('ang');
  18.         $TGL_MULAI = $this->input->post('tgl_awal');
  19.         $TGL_AKHIR = $this->input->post('tgl_akhir');
  20.         $ANGGARAN = $this->input->post('ang');
  21.         $PST_A = $this->input->post('pst');
  22.  
  23.         $this->IM->input_plan($STREAM, $KODE_M, $KODE_LC, $KODE_INST, $KODE_UBIS,$ANGKATAN,$TGL_MULAI,$TGL_AKHIR,$ANGGARAN,$PST_A);
  24. echo "<script>alert ('Data Berhasil disimpan');</script>";
  25.         redirect('combo/','refresh');
  26.  
  27.  
  28.    
  29.        
  30.    
  31.     }
  32.  
  33.     }
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment