{include file="biz/biz_header.html"} {include file="biz/biz_nav.html"}
{include file="biz/biz_info_header.html"}
{include file="biz/biz_left.html"}
_var['deal_id'])==0) $deal_order_item = $GLOBALS['db']->getAllCached("select doi.* from ".DB_PREFIX."deal_order_item as doi left join ".DB_PREFIX."deal as d on doi.deal_id = d.id where doi.order_id = ".$order_id." and d.supplier_id = ".$supplier_id); else { $deal_order_item = $GLOBALS['db']->getAllCached("select doi.* from ".DB_PREFIX."deal_order_item as doi left join ".DB_PREFIX."deal as d on doi.deal_id = d.id where doi.order_id = ".$order_id." and d.supplier_id = ".$supplier_id." and d.id = ".intval($GLOBALS['tmpl']->_var['deal_id'])); } $str = ''; foreach($deal_order_item as $k=>$v) { $str .="".$v['sub_name']."[".$v['number']."]
"; $coupon_list = $GLOBALS['db']->getAll("select sn,confirm_account,confirm_time,begin_time,end_time from ".DB_PREFIX."deal_coupon where order_deal_id = ".$v['id']." and is_valid = 1"); if($coupon_list) { foreach($coupon_list as $kk=>$vv) { $str.=$vv['sn']; if($vv['confirm_account']!=0) { $account_name = $GLOBALS['db']->getOneCached("select account_name from ".DB_PREFIX."supplier_account where id = ".$vv['confirm_account']); $str.= " [".$account_name." ".to_date($vv['confirm_time'])." ".$GLOBALS['lang']['COUPON_USED']."]"; } else { if($vv['begin_time']!=0&&$vv['begin_time']>get_gmtime()) { $str.= " ".$GLOBALS['lang']['COUPON_NOT_BEGIN'].""; } if($vv['end_time']!=0&&$vv['end_time']"; } } $str.="
"; } } else { $str.=$GLOBALS['lang']['NO_COUPON_GEN']."
"; } } echo $str; } ?>

### 订单列表 返回上一页

{$LANG.SUPPLIER_ORDER_SN}: 消费券序列号:

{$LANG.SUPPLIER_ORDER_SN} | {$LANG.ORDER_CREATE_TIME} | {$LANG.SUPPLIER_USER_NAME} | 产品名称及消费券 | {$LANG.BUY_NUMBER} | {$LANG.VIEW}
--- | --- | --- | --- | --- | ---
{foreach from=$order_list item=order key=key}
{$order.order_sn} | {function name="to_date" value=$order.create_time} | {function name="get_user_name" value=$order.user_id} | {function name="get_order_items_list_supplier" value=$order.oid supplier_id=$supplier_id } | {$order.number} | {$LANG.VIEW}
{/foreach}

{$pages}
{include file="biz/biz_footer.html"}