|
|
|
@ -75,7 +75,7 @@ class Information_model extends CI_Model {
|
|
|
|
|
$sql_keyword.=' ) ';
|
|
|
|
|
$this->search =" AND ic_status=1 AND ic_url LIKE '$url%' ". $sql_keyword.' AND is_id NOT IN('.implode(',',$exclude_ids).',0)';
|
|
|
|
|
$this->orderBy = " ORDER BY is1.is_level ASC, is1.is_sort ASC,ic_datetime DESC ";
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
return $this->GetList('ic_id, is_id, ic_url,ic_url_title,ic_title,is_path,is_level,ic_status,ic.ic_photo');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//在当前节点下搜索关键词
|
|
|
|
@ -90,7 +90,7 @@ class Information_model extends CI_Model {
|
|
|
|
|
$this->path = " AND is1.is_path LIKE '$path%' ";
|
|
|
|
|
$this->search =' AND ic_status=1 AND is_id NOT IN('.implode(',',$exclude_ids).',0) '.$sql_keyword;
|
|
|
|
|
$this->orderBy = " ORDER BY is1.is_level ASC, is1.is_sort ASC,ic_datetime DESC ";
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
return $this->GetList('ic_id, is_id, ic_url,ic_url_title,ic_title,is_path,is_level,ic_status,ic.ic_photo');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//在同级别下,随机获取N条数据,并且排除某些id
|
|
|
|
@ -102,7 +102,7 @@ class Information_model extends CI_Model {
|
|
|
|
|
$exclude_ids_string=implode(',',$exclude_ids);
|
|
|
|
|
$this->search .= " AND ic_status=1 AND is_id NOT in ($exclude_ids_string,0)";
|
|
|
|
|
$this->orderBy = " ORDER BY NewID() ";
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
return $this->GetList('ic_id, is_id, ic_url,ic_url_title,ic_title,is_path,is_level,ic_status,ic.ic_photo');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//在urls列表里面,随机获取N条数据,并且排除某些id
|
|
|
|
|