$where=" and (`name` like '%".$searchValue."%' or `k` like '%".$searchValue."%') ";
}
$model=newModel();
//======================
$fields="count(id) count";
//返回列表(limit分页)
if($queryType=="list"){
$where.=$sort." ".$limit;
$fields=" *,case `status` when 1 then '<font color=red>禁用</font>' when 2 then '<font color=red>删除</font>' when 0 then '<font color=green>启用</font>' end as `status` ";
}
$sql="select ".$fields." from sh_system_config where 1=1 ".$where.";";