pageLimit = 500; if (!empty($filter_keyword)) { $sql = "`title` LIKE '%$filter_keyword%' OR `description` LIKE '%$filter_keyword%' OR `tags` LIKE '%$filter_keyword%'"; $articles = $db->where($sql)->orderBy('id', 'DESC')->objectbuilder()->paginate(T_POSTS, $page); } else { $articles = $db->objectbuilder()->orderBy('id', 'asc')->paginate(T_POSTS, $page); } if (($page > $db->totalPages) && !empty($_GET['page-id'])) { header("Location: " . PT_LoadAdminLinkSettings('manage-articles')); exit(); } ?>
ID | Title | Category | Date | Status | Action |
---|