{// 引入标签库 } function get_youhui_cate_name($cate_id) { return M("DealCate")->where("id=".$cate_id)->getField("name"); } 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) { $link = " [ ".l("DEAL_YOUHUI_VIEW")." ]"; return $link; }
{%DEAL_YOUHUI}
{%DEAL_YOUHUI_NAME}： {%DEAL_CITY}：
{%CATE_TREE}：
{$page}