|
@@ -65,12 +65,13 @@ class Shop extends Start_Controller {
|
|
|
$start = ($page - 1)*$perpage;
|
|
|
}
|
|
|
//取得信息列表
|
|
|
- $info_list = $this->shop->find_all($where,'id,type,shopname,shortname,estimaterate,mustba,shopid,yyid,tb',$order_str,$start,$perpage);
|
|
|
+ $info_list = $this->shop->find_all($where,'id,type,shopname,shortname,estimaterate,mustba,shopid,yyid,tb,status',$order_str,$start,$perpage);
|
|
|
//格式化数据
|
|
|
foreach ($info_list as $key=>$value)
|
|
|
{
|
|
|
$type = $this->typeclass->read($value['type']);
|
|
|
- $info_list[$key]['type'] = $type['title'];
|
|
|
+
|
|
|
+ $info_list[$key]['type'] = empty($type['title'])?"":$type['title'];
|
|
|
if($value['mustba'] == 1)
|
|
|
{
|
|
|
$info_list[$key]['mustba'] = '需要审核';
|
|
@@ -87,6 +88,12 @@ class Shop extends Start_Controller {
|
|
|
{
|
|
|
$info_list[$key]['tb'] = '不同步';
|
|
|
}
|
|
|
+
|
|
|
+ if($value['status'] == 0){
|
|
|
+ $info_list[$key]['status'] = 'active';
|
|
|
+ }else{
|
|
|
+ $info_list[$key]['status'] = 'inactive';
|
|
|
+ }
|
|
|
}
|
|
|
$total = $this->shop->find_count($where);
|
|
|
$pagenum = ceil($total/$perpage);
|