{// 引入标签库 }
function a_get_deal_type($type,$id) { $deal = M("Deal")->getById($id); if($deal['is_coupon']) return l("COUNT_TYPE_".$deal['deal_type']); else return l("NO_DEAL_COUPON_GEN"); } function a_get_time_status($time_status,$deal_id) { $str = l("TIME_STATUS_".$time_status); if($time_status == 2) { $str .= "
".M("Deal")->where("id=".$deal_id)->getField("reopen").l("REOPEN_SUBMIT"); } return $str; } function a_get_buy_status($buy_status,$deal_id) { $is_coupon = M("Deal")->where("id=".$deal_id)->getField("is_coupon"); if($is_coupon == 1) { $link = " [ ".l("DEAL_COUPON")." ]"; } $count = " [".l("COUNT_TOTAL_DEAL")."]"; return l("BUY_STATUS_".$buy_status).$link.$count; } function get_buy_type_title($buy_type) { return l("DEAL_BUY_TYPE_".$buy_type); }
{$main_title}
{%DEAL_NAME}： {%DEAL_CITY}：
{%CATE_TREE}：
供应商：
{$page}