if(count($total_orders) == 0) {

抱歉,亲!
您暂时没有团购券

} else { if($to['status']=="未使用"){
{$to.oil_name}#

{$to.gpn_name}

{$to.stname}

} else {
{$to.oil_name}#

{$to.gpn_name}

{$to.stname}

}
}
if(count($unused_orders) == 0) {

抱歉,亲!
您暂时没有团购券

} else {
{$uo.oil_name}#

{$uo.gpn_name}

{$uo.stname}

}
if(count($overdue_orders) == 0) {

抱歉,亲!
您暂时没有团购券

} else {
{$oo.oil_name}#

{$oo.gpn_name}

{$oo.stname}

}