{wc:php:start}
if($this->db){
$cmodel=$this->db;
}else{
$cmodel=$mysql_model;
}
$two_cate_list = $cmodel->GetList("select cateid,parentid,name from `@#_category` where `model` = '1' and `parentid` = '0' order by `order` DESC");
{wc:php:end}
{wc:getlist sql="select * from `@#_shoplist` where `cateid`='2' and `q_uid` is null and `period1_date`='' ORDER BY id DESC LIMIT 8"}
{wc:loop $data $shop}
{wc:php:start}
$i=$i+1;
{wc:php:end}
{wc:getlist sql="select * from `@#_shoplist` where `cateid`='23' and `q_uid` is null and `period1_date`='' ORDER BY id DESC LIMIT 8"}
{wc:loop $data $shop}
{wc:php:start}
$i=$i+1;
{wc:php:end}
{wc:getlist sql="select * from `@#_shoplist` where `cateid`='21' and `q_uid` is null and `period1_date`='' ORDER BY id DESC LIMIT 8"}
{wc:loop $data $shop}
{wc:php:start}
$i=$i+1;
{wc:php:end}
{wc:getlist sql="select * from `@#_shoplist` where `cateid`='17' and `q_uid` is null and `period1_date`='' ORDER BY id DESC LIMIT 8"}
{wc:loop $data $shop}
{wc:php:start}
$i=$i+1;
{wc:php:end}