@@ -25,7 +25,7 @@ class PlayCtrlModel extends RelationModel{
...
@@ -25,7 +25,7 @@ class PlayCtrlModel extends RelationModel{
//返回列表(limit分页)
//返回列表(limit分页)
if($queryType=="list"){
if($queryType=="list"){
$where.=$sort." ".$limit;
$where.=$sort." ".$limit;
$fields=" *,case `status` when 0 then '<font color=red>珊瑚</font>' when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' end as `status` ";
$fields=" *,case `status` when 0 then '<font color=red>删除</font>' when 1 then '<font color=green>上线</font>' when 2 then '<font color=red>下线</font>' end as `status` ";
}
}
$sql="select ".$fields." from sh_task_ctrl where 1=1 ".$where.";";
$sql="select ".$fields." from sh_task_ctrl where 1=1 ".$where.";";