|
|
@@ -22,6 +22,28 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$perpage = $this->input->post('perpage',true);
|
|
|
$title = $this->input->post('title',true);
|
|
|
$zh= $this->input->post('zh',true);
|
|
|
+ $sku = $this->input->post('sku',true);
|
|
|
+ $category = $this->input->post('category',true);
|
|
|
+ $category = trim($category);
|
|
|
+ $grade = $this->input->post('grade',true);
|
|
|
+ $grade = trim($grade);
|
|
|
+ $color = $this->input->post('color',true);
|
|
|
+ $color = trim($color);
|
|
|
+ $lowe = $this->input->post('lowe',true);
|
|
|
+ $lowe = trim($lowe);
|
|
|
+ $lacetype = $this->input->post('lacetype',true);
|
|
|
+ $lacetype = trim($lacetype);
|
|
|
+ $lacecolor = $this->input->post('lacecolor',true);
|
|
|
+ $lacecolor = trim($lacecolor);
|
|
|
+ $size = $this->input->post('size',true);
|
|
|
+ $size = trim($size);
|
|
|
+ $density = $this->input->post('density',true);
|
|
|
+ $density = trim($density);
|
|
|
+ $haircap = $this->input->post('haircap',true);
|
|
|
+ $haircap = trim($haircap);
|
|
|
+ $hairnumber = $this->input->post('hairnumber',true);
|
|
|
+ $hairnumber = trim($hairnumber);
|
|
|
+
|
|
|
if(empty($page))
|
|
|
{
|
|
|
$start = 0;
|
|
|
@@ -43,6 +65,51 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$zh = trim($zh);
|
|
|
$this->db->like('g.zh', $zh);
|
|
|
}
|
|
|
+ if($sku){
|
|
|
+ $sku = trim($sku);
|
|
|
+ $this->db->like('g.sku', $sku);
|
|
|
+ }
|
|
|
+ if($category){
|
|
|
+ $category = trim($category);
|
|
|
+ $this->db->like('g.features', $category);
|
|
|
+ }
|
|
|
+ if($grade){
|
|
|
+ $grade = trim($grade);
|
|
|
+ $this->db->like('g.features', $grade);
|
|
|
+ }
|
|
|
+ if($color){
|
|
|
+ $color = trim($color);
|
|
|
+ $this->db->like('g.features', $color);
|
|
|
+ }
|
|
|
+ if($lowe){
|
|
|
+ $lowe = trim($lowe);
|
|
|
+ $this->db->like('g.features', $lowe);
|
|
|
+ }
|
|
|
+ if($lacetype){
|
|
|
+ $lacetype = trim($lacetype);
|
|
|
+ $this->db->like('g.features', $lacetype);
|
|
|
+ }
|
|
|
+ if($lacecolor){
|
|
|
+ $lacecolor = trim($lacecolor);
|
|
|
+ $this->db->like('g.features', $lacecolor);
|
|
|
+ }
|
|
|
+ if($size){
|
|
|
+ $size = trim($size);
|
|
|
+ $this->db->like('g.features', $size);
|
|
|
+ }
|
|
|
+ if($density){
|
|
|
+ $density = trim($density);
|
|
|
+ $this->db->like('g.features', $density);
|
|
|
+ }
|
|
|
+ if($haircap){
|
|
|
+ $haircap = trim($haircap);
|
|
|
+ $this->db->like('g.features', $haircap);
|
|
|
+ }
|
|
|
+ if($hairnumber){
|
|
|
+ $hairnumber = trim($hairnumber);
|
|
|
+ $this->db->like('g.features', $hairnumber);
|
|
|
+ }
|
|
|
+
|
|
|
$this->db->order_by('g.id', 'asc');
|
|
|
|
|
|
|
|
|
@@ -61,12 +128,6 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$info_list[$k]['zh'] = $v['zh'];
|
|
|
//$info_list[$k]['jm'] = $v['jm'];
|
|
|
$info_list[$k]['imgs'] = $this->transimg($v['source_cont']);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
$this->db->from('crowd_goods');
|
|
|
if($title){
|
|
|
@@ -77,6 +138,51 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$zh = trim($zh);
|
|
|
$this->db->like('zh', $zh);
|
|
|
}
|
|
|
+ if($sku){
|
|
|
+ $sku = trim($sku);
|
|
|
+ $this->db->like('sku', $sku);
|
|
|
+ }
|
|
|
+ if($category){
|
|
|
+ $category = trim($category);
|
|
|
+ $this->db->like('features', $category);
|
|
|
+ }
|
|
|
+ if($grade){
|
|
|
+ $grade = trim($grade);
|
|
|
+ $this->db->like('features', $grade);
|
|
|
+ }
|
|
|
+ if($color){
|
|
|
+ $color = trim($color);
|
|
|
+ $this->db->like('features', $color);
|
|
|
+ }
|
|
|
+ if($lowe){
|
|
|
+ $lowe = trim($lowe);
|
|
|
+ $this->db->like('features', $lowe);
|
|
|
+ }
|
|
|
+ if($lacetype){
|
|
|
+ $lacetype = trim($lacetype);
|
|
|
+ $this->db->like('features', $lacetype);
|
|
|
+ }
|
|
|
+ if($lacecolor){
|
|
|
+ $lacecolor = trim($lacecolor);
|
|
|
+ $this->db->like('features', $lacecolor);
|
|
|
+ }
|
|
|
+ if($size){
|
|
|
+ $size = trim($size);
|
|
|
+ $this->db->like('features', $size);
|
|
|
+ }
|
|
|
+ if($density){
|
|
|
+ $density = trim($density);
|
|
|
+ $this->db->like('features', $density);
|
|
|
+ }
|
|
|
+ if($haircap){
|
|
|
+ $haircap = trim($haircap);
|
|
|
+ $this->db->like('features', $haircap);
|
|
|
+ }
|
|
|
+ if($hairnumber){
|
|
|
+ $hairnumber = trim($hairnumber);
|
|
|
+ $this->db->like('features', $hairnumber);
|
|
|
+ }
|
|
|
+
|
|
|
$total = $this->db->count_all_results();
|
|
|
|
|
|
$pagenum = ceil($total/$perpage);
|