public function edit_live()
 {
     _permission('live');
     $data['breadcrumbs'] = $this->breadcrumbs->live();
     $live = $this->input->post('page');
     $this->admin_model->edit_live($live);
     redirect('admin/main');
 }
Ejemplo n.º 2
0
 public function del_location($parent = 0)
 {
     _permission('map');
     $this->admin_model->del_location($this->input->post('selected'));
     redirect('admin/location/' . $parent);
     //$this->output->enable_profiler(TRUE);
 }
 public function del_categorii($parent = 0)
 {
     _permission('investigatii');
     $this->admin_model->del_categorii($this->input->post('selected'));
     redirect('admin/categorii/' . $parent);
 }
Ejemplo n.º 4
0
 public function add_banners()
 {
     _permission('pages');
     $data['breadcrumbs'] = $this->breadcrumbs->pages();
     $this->admin_model->add_banners($this->input->post('page'), $this->input->post('parent'));
     //incarcam imagrinea
     $last_id = $this->mysql->get_max('banners', 'id');
     $active_langs = $this->active_langs;
     $erorr_image = "";
     foreach ($active_langs as $lang) {
         $erorr_image .= $this->upload_photo_banners($last_id, 'image_' . $lang['ext']);
     }
     if ($erorr_image) {
         $this->session->set_flashdata('error', $erorr_image);
     }
     // daca este bifat send news
     if ($this->input->post('send')) {
         $this->send_news($last_id);
     }
     //$this->output->enable_profiler(TRUE);
     redirect('admin/banners/' . $this->input->post('parent'));
 }
Ejemplo n.º 5
0
 public function del_sesizari($parent = 0)
 {
     _permission('map');
     $this->admin_model->del_sesizari($this->input->post('selected'));
     redirect('admin/sesizari/' . $parent);
 }
 public function del_achizitii($parent = 0)
 {
     _permission('achizitii');
     $this->admin_model->del_achizitii($this->input->post('selected'));
     redirect('admin/achizitii/' . $parent);
 }
Ejemplo n.º 7
0
 public function del_resurse($parent = 0)
 {
     _permission('resurse');
     $this->admin_model->del_resurse($this->input->post('selected'));
     redirect('admin/resurse/' . $parent);
 }
Ejemplo n.º 8
0
 public function email_text_form($id = null, $erorrs = null)
 {
     _permission('email_text');
     $data['active_langs'] = $this->active_langs;
     $data['breadcrumbs'] = $this->breadcrumbs->email_text();
     $data['errors'] = $erorrs . $this->session->flashdata('error');
     if ($id) {
         $data['type'] = 'edit';
     } else {
         $data['type'] = 'add';
     }
     if ($data['type'] == 'edit') {
         $data['title_page'] = lang('edit_email_text');
         $data['action'] = '/admin/edit_email_text';
         $data['email_text'] = $this->mysql->get_row('email_text', array('id' => $id));
     } else {
         $data['title_page'] = lang('add_email_text');
         $data['action'] = '/admin/add_email_text';
     }
     $this->display->backend('system/email_text_form', $data);
 }
 public function del_interviu($parent = 0)
 {
     _permission('interviu');
     $this->admin_model->del_interviu($this->input->post('selected'));
     redirect('admin/interviu/' . $parent);
     //$this->output->enable_profiler(TRUE);
 }
Ejemplo n.º 10
0
 public function del_cetatean($parent = 0)
 {
     _permission('cetatean');
     $this->admin_model->del_cetatean($this->input->post('selected'));
     redirect('admin/cetatean/' . $parent);
 }
Ejemplo n.º 11
0
 public function del_bloggeri($parent = 0)
 {
     _permission('blog');
     $this->admin_model->del_bloggeri($this->input->post('selected'));
     redirect('admin/bloggeri/' . $parent);
 }