Ejemplo n.º 1
0
 function manage($page = 1)
 {
     $this->viewdata["function_title"] = _('Manage');
     $comics = new Comic();
     if ($this->input->post('search')) {
         $search = $this->input->post('search');
         $comics->ilike('name', $search)->limit(20);
         $this->viewdata["extra_title"][] = _('Searching') . ': ' . htmlspecialchars($search);
     }
     $comics->order_by('name', 'ASC');
     $comics->get_paged_iterated($page, 20);
     $data["comics"] = $comics;
     $this->viewdata["main_content_view"] = $this->load->view("admin/series/manage.php", $data, TRUE);
     $this->load->view("admin/default.php", $this->viewdata);
 }