简体   繁体   English

杂货CRUD未排序或搜索结果,并且set_model值未分页

[英]Grocery CRUD not sorting or searching results and set_model values are not paginated

I'm using Grocery CRUD to display my search results. 我正在使用Grocery CRUD来显示我的搜索结果。 The results are displayed properly but the search and sort by columns doesn't seem to be working. 结果显示正确,但是按列搜索和排序似乎无效。

Secondly ..im using the set_model to use my model to grab data.. 其次..im使用set_model使用我的模型来获取数据。

function get_list()
{
    $name = $this->session->userdata('username');

    $progress=$this->db->query("SELECT * FROM (SELECT feeds.url,feeds.id,feeds.SalesID,sales_log.date, sales_log.sales_prob, sales_log.current_stage, sales_log.id AS logid FROM feeds LEFT JOIN sales_log ON sales_log.leadid = feeds.id WHERE feeds.SalesID = '$name' and feeds.archived = 0 ORDER BY sales_log.id DESC )a group by a.url order by logid desc");

    $results_array=$progress->result();

    return $results_array;        
}

The details are displayed inside the crud table but it displays all the records (574) within that page. 详细信息显示在Crud表内部,但它显示该页面内的所有记录(574)。 The details are not being paginated. 详细信息未分页。 How can I display only 25 records and the others paginated? 我如何只显示25条记录,而其他则分页? and also the sort/search functions arnt working 排序/搜索功能也可以正常工作

Can someone please suggest me how to fix these problems? 有人可以建议我如何解决这些问题吗?

Try looking at the javascript console of your web browser. 尝试查看网络浏览器的JavaScript控制台。 It sounds like you may not have linked to the Javascript correctly or something to that effect. 听起来您可能未正确链接到Javascript或达到某种效果的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM