{include(label.header)}

# {tab_other_language::get("我的订单")}

{foreach($order_list['list'] as $item_time=>$key)} {foreach($key as $order)} {if(empty($order['order_reserve_id']) || isset($order_list['reserve']['id_'.$order['order_reserve_id']]))}

- {$item_time} {$order['addtime']}

- {$order_list['shop']['id_'.$order['order_shop_id']]['shop_name']}

  {set $ii=0} {if(!empty($order['order_ids']))} {foreach($order['menu'] as $menu)} {set $price=0} {if($ii!=0)}，{/if} {foreach($menu as $item)} {if($price!=0)}+{/if}{$order_list['menu']['id_'.$item]['menu_title']} {set $price+=$order_list['price']['id_'.$item]} {/foreach} {set $ii=$ii+1} {/foreach} {/if}
{if(!empty($order['order_reserve_id']))}
- {tab_other_language::get("桌位")}：{$order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_tablename']}
{/if}
- {if(!empty($order['order_ids']))}{tab_other_language::get("金额")}：{$order['order_total_pay']}{else}{tab_other_language::get("订金")}：{$order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_deposit']}{/if} {if(empty($order['order_reserve_id']))} {$order['state']} {else} {if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==0)} {tab_other_language::get("待付订金")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==1)} {tab_other_language::get("待点菜")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==2)} {tab_other_language::get("待上菜")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>=10)} {tab_other_language::get("用餐结束")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>0)} {tab_other_language::get("用餐中")} {else} {tab_other_language::get("已取消")} {/if} {/if}
- {if(!empty($order['order_reserve_id']))} {if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==0)} {tab_other_language::get("继续付款")} {tab_other_language::get("取消订单")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==1)} {tab_other_language::get("在线点菜")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']==2)} 可以上菜了 {tab_other_language::get("我要加菜")} {else if($order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']>2 && $order_list['reserve']['id_'.$order['order_reserve_id']]['reserve_state']<10)} {tab_other_language::get("我要加菜")} {tab_other_language::get("在线买单")} {/if} {else} {if($order['order_state'] > 0)} {else if($order['order_state']==-2)} {tab_other_language::get("立即付款")} {/if} {if(($order['order_state']==0 && TIME-$order['order_addtime']<300) || $order['order_state']==-2)} {tab_other_language::get("取消订单")} {/if} {/if}

{/if} {/foreach} {/foreach}
{if($order_list['pagebtns']['start']!=1)}
- 1
{/if} {if($order_list['pagebtns']['start']>2)}
- ...
{/if} {foreach($order_list['pagebtns']['list'] as $item)} {$item} {/foreach} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages']-1)}
- ...
{/if} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages'])}
- {$order_list['pageinfo']['pages']}
{/if}
{include(label.footer)}