Ejemplo n.º 1
0
 function tambah_artikel()
 {
     if ($this->input->post('submit')) {
         $this->load->model('m_artikel');
         $this->m_artikel->do_upload1();
         redirect('dosen/tutorial/tampil_artikel');
     }
     $this->load->plugin('xinha_pi');
     $data['xinha_java'] = javascript_xinha(array('isi'));
     // this line for the xinha
     $data['content'] = 'tambah_tutorial';
     $this->load->view('dosen/layout.php', $data);
 }
Ejemplo n.º 2
0
 function add()
 {
     $data['menu_active'] = 'dcjq-parent active';
     $data['menu_template_active'] = 'color:#FFF';
     $data['head'] = 'template_master/v_head';
     $data['top_menu'] = 'template/v_top_menu';
     $data['left_menu'] = 'template/v_left_menu';
     $data['content'] = 'template_master/v_add_new';
     $data['right_menu'] = 'template_master/v_right_menu';
     $data['footer'] = 'template/v_footer';
     // attach xinha editor
     $this->load->file(APPPATH . 'third_party/xinha_pi.php');
     $data['xinha_java'] = javascript_xinha(array('txt_header', 'txt_footer', 'txt_notes'));
     // this line for the xinha
     $this->load->view('template_master/v_template', $data);
 }
Ejemplo n.º 3
0
 function edit_tutorial($id = null)
 {
     if ($_POST == NULL) {
         $this->load->model('m_artikel');
         $data['hasil'] = $this->m_artikel->select($id);
         $this->load->plugin('xinha_pi');
         $data['xinha_java'] = javascript_xinha(array('isi'));
         // this line for the xinha
         $data['content'] = 'edit_tutorial';
         $this->load->view('dosen/layout.php', $data);
     } else {
         $this->load->model('m_artikel');
         $this->m_artikel->edit($id);
         redirect('dosen/tutorial/tampil_artikel');
     }
 }
Ejemplo n.º 4
0
 function tambah_artikel()
 {
     if ($this->session->userdata('login') == TRUE) {
         if ($this->input->post('submit')) {
             $this->load->model('m_artikel');
             $this->m_artikel->do_upload();
             redirect('cadmin/manajemen_artikel');
         }
         $this->load->plugin('xinha_pi');
         $data['xinha_java'] = javascript_xinha(array('isi'));
         // this line for the xinha
         $data['jenis'] = 'tambah_artikel';
         $this->load->view('admin', $data);
     } else {
         redirect('cadmin');
     }
 }
Ejemplo n.º 5
0
 function tambah_ebooks()
 {
     if ($this->input->post('submit')) {
         $this->load->model('ebooks_model');
         $this->ebooks_model->do_upload1();
         redirect('admin/ebooks/tampilEbooks');
     }
     $this->load->plugin('xinha_pi');
     $data['xinha_java'] = javascript_xinha(array('deskripsi'));
     // this line for the xinha
     $data['content'] = 'tambah_ebooks';
     $this->load->view('admin/layout.php', $data);
 }