|
@@ -47,7 +47,9 @@ class Shop extends Start_Controller {
|
|
|
{
|
|
|
$page = $this->input->post('page',true);
|
|
|
$perpage = $this->input->post('perpage',true);
|
|
|
- $shopname = $this->input->post('shopname',true);
|
|
|
+ $shopname = $this->input->post('shopname',true);
|
|
|
+ $type = $this->input->post('type',true);
|
|
|
+ $status = $this->input->post('status',true);
|
|
|
$where = "1=1 ";
|
|
|
//数据排序
|
|
|
$order_str = "id asc";
|
|
@@ -55,6 +57,12 @@ class Shop extends Start_Controller {
|
|
|
{
|
|
|
$where .= " and shopname like '%$shopname%'";
|
|
|
}
|
|
|
+ if(!empty($type)){
|
|
|
+ $where .= " and type = ".$type." ";
|
|
|
+ }
|
|
|
+ if($status === 0 || $status == 1){
|
|
|
+ $where .= " and status = ".$status." ";
|
|
|
+ }
|
|
|
if(empty($page))
|
|
|
{
|
|
|
$start = 0;
|