|
@@ -36,9 +36,11 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$this->db->from('crowd_goods as g');
|
|
$this->db->from('crowd_goods as g');
|
|
|
$this->db->join('crowd_goodimgs as gi', 'g.id = gi.goods_id', 'left');
|
|
$this->db->join('crowd_goodimgs as gi', 'g.id = gi.goods_id', 'left');
|
|
|
if($title){
|
|
if($title){
|
|
|
|
|
+ $title = trim($title);
|
|
|
$this->db->like('g.title', $title);
|
|
$this->db->like('g.title', $title);
|
|
|
}
|
|
}
|
|
|
if($zh){
|
|
if($zh){
|
|
|
|
|
+ $zh = trim($zh);
|
|
|
$this->db->like('g.zh', $zh);
|
|
$this->db->like('g.zh', $zh);
|
|
|
}
|
|
}
|
|
|
$this->db->order_by('g.id', 'asc');
|
|
$this->db->order_by('g.id', 'asc');
|
|
@@ -68,9 +70,11 @@ class Goodimglibrary extends Start_Controller {
|
|
|
}
|
|
}
|
|
|
$this->db->from('crowd_goods');
|
|
$this->db->from('crowd_goods');
|
|
|
if($title){
|
|
if($title){
|
|
|
|
|
+ $title = trim($title);
|
|
|
$this->db->like('title', $title);
|
|
$this->db->like('title', $title);
|
|
|
}
|
|
}
|
|
|
if($zh){
|
|
if($zh){
|
|
|
|
|
+ $zh = trim($zh);
|
|
|
$this->db->like('zh', $zh);
|
|
$this->db->like('zh', $zh);
|
|
|
}
|
|
}
|
|
|
$total = $this->db->count_all_results();
|
|
$total = $this->db->count_all_results();
|