function list_by_parent($id, $offset = 0, $limit = 20) { $catalogue = new Landcategory($id); $lands = new Land(); $lands->where('landcategory_id', $id); $lands->order_by('name', 'asc'); $lands->get_paged($offset, $limit, TRUE); setPagination($this->admin . 'estatetypes/list_by_parent/', $lands->paged->total_rows, $limit, 5); $dis['types'] = $lands; $dis['catalogue'] = $catalogue; $dis['base_url'] = base_url(); $dis['view'] = 'land/list_by_parent'; $dis['menu_active'] = 'Danh mục nhà đất'; $dis['title'] = "Danh sách các loại thuộc <span style='color:#F00;'>" . $catalogue->name . '</span>'; $dis['title_table'] = "Trang hiện tại:" . $lands->paged->current_page . '/' . $lands->paged->total_pages; $dis['nav_menu'] = array(array("type" => "back", "text" => "Quay về", "link" => "{$this->admin_url}estatecatalogues/list_all/", "onclick" => ""), array("type" => "add", "text" => "Thêm", "link" => "{$this->admin_url}lands/edit_by_parent/" . $catalogue->id, "onclick" => "")); $this->viewadmin($dis); }
?> </p> </a> </div> <?php } ?> </div> </div> <div class="sreenbox3and4" style="float:left; width:160px; margin-top:15px; margin-left:30px;"> <div class="box3"> <?php $landcategories = new Landcategory(4); $lands = new Land(); $lands->where('landcategory_id', $landcategories->id); $lands->order_by('position', 'asc'); $lands->get(5); ?> <p align="left" style="color:#0c7102; font-size:15px; margin-bottom: 1px; font-weight:bold;"> <a style="color:#0c7102;" href="<?php echo $landcategories->link; ?> "><?php echo $landcategories->name; ?> </a> </p> <?php foreach ($lands as $row) { ?> <div class="ndlink">