{include(label.header)}

# {$shopinfo['shop_name']}

{if(!empty($table_reserve))} {else} {/if}
{set $arr=fun_kj::get_ads('B1-wap-shop'.$shopinfo['shop_id'],1)} {if(isset($arr['list']))}
{foreach($arr['list'] as $item)}
{/foreach}
{foreach($arr['list'] as $item)} {/foreach}
{else if(isset($arr['html']))}
{$arr['html']}
{/if} {if($shopinfo['shop_tips']!='')}
{tab_other_language::get("通知")}：{$shopinfo['shop_tips']}
{/if} {if($shopinfo['shop_service']==0 || $shopinfo['shop_service']==1)}

{if($shopinfo['shop_service']==0)}{tab_other_language::get("商品列表")}{else}{tab_other_language::get("在线选座")}{/if} | {tab_other_language::get("商家介绍")} | {tab_other_language::get("用户评价")}

{else}

{if($shopinfo['shop_service']==3)}
- {tab_other_language::get("外卖")}
- {tab_other_language::get("选座")}
{tab_other_language::get("商家")} | {tab_other_language::get("评价")}
{else}
- {tab_other_language::get("选座")}
- {tab_other_language::get("外卖")}
{tab_other_language::get("商家")} | {tab_other_language::get("评价")}
{/if}

{/if}

{tab_other_language::get("全部")} {set $index=0} {if(!empty($arr_menu["tj"]))} {set $index=1} {tab_other_language::get("推荐")} {/if} {foreach($arr_menu["list"] as $item)} {$item['name']} {set $index=1} {/foreach} | {set $index=0} {if(!empty($arr_menu["tj"]))} {set $index=1} {if($shopinfo['shop_mode']==1)} {foreach($arr_menu["tj"] as $menu)} ## {$menu['menu_title']}{if(!empty($menu['attribute']))}{$menu['attribute']}{/if} {tab_other_language::get("已售")}：{if(isset($arr_menu['abount_sold']['id_'.$menu['menu_id']]))}$arr_menu['abount_sold']['id_'.$menu['menu_id']]{else}{$menu['menu_sold']}{/if}份 {fun_kj::get_price($menu['menu_price'])} {if($cfg_opentime['nowindex']>0)} {if($menu['num']<1)} {tab_other_language::get("卖完")} {else} {if(isset($arr_menu['abount_menu']['id_'.$menu['menu_id']]))} {tab_other_language::get("多规格")} {else} {/if} {/if} {else if($cfg_opentime['havenext']==1)} {tab_other_language::get("即将开始")} {else} {tab_other_language::get("明天继续")} {/if} {/foreach} {else} {foreach($arr_menu["tj"] as $menu)} ## {$menu['menu_title']}{if(!empty($menu['attribute']))}{$menu['attribute']}{/if} {tab_other_language::get("已售")}：{if(isset($arr_menu['abount_sold']['id_'.$menu['menu_id']]))}$arr_menu['abount_sold']['id_'.$menu['menu_id']]{else}{$menu['menu_sold']}{/if}份 {fun_kj::get_price($menu['menu_price'])} {if($cfg_opentime['nowindex']>0)} {if($menu['num']<1)} {tab_other_language::get("卖完")} {else} {if(isset($arr_menu['abount_menu']['id_'.$menu['menu_id']]))} {tab_other_language::get("多规格")} {else} {/if} {/if} {else if($cfg_opentime['havenext']==1)} {tab_other_language::get("即将开始")} {else} {tab_other_language::get("明天继续")} {/if} {/foreach} {/if} {set $index=1} {/if} {foreach($arr_menu["list"] as $item)} {set $index=1} {if($shopinfo['shop_mode']!=2 && $item['mode']!=2)} {foreach($item['list'] as $menu)} ## {$menu['menu_title']}{if(!empty($menu['attribute']))}{$menu['attribute']}{/if} {tab_other_language::get("已售")}：{$menu['menu_sold']}份 {fun_kj::get_price($menu['menu_price'])} {if($cfg_opentime['nowindex']>0)} {if($menu['num']<1)} {tab_other_language::get("卖完")} {else} {if(isset($arr_menu['abount_menu']['id_'.$menu['menu_id']]))} {tab_other_language::get("多规格")} {else} {/if} {/if} {else if($cfg_opentime['havenext']==1)} {tab_other_language::get("即将开始")} {else} {tab_other_language::get("明天继续")} {/if} {/foreach} {else} {foreach($item['list'] as $menu)} ## {$menu['menu_title']}{if(!empty($menu['attribute']))}{$menu['attribute']}{/if} {tab_other_language::get("已售")}：{$menu['menu_sold']}{tab_other_language::get("份")} {fun_kj::get_price($menu['menu_price'])} {if($cfg_opentime['nowindex']>0)} {if($menu['num']<1)} {tab_other_language::get("卖完")} {else} {if(isset($arr_menu['abount_menu']['id_'.$menu['menu_id']]))} {tab_other_language::get("多规格")} {else} {/if} {/if} {else if($cfg_opentime['havenext']==1)} {tab_other_language::get("即将开始")} {else} {tab_other_language::get("明天继续")} {/if} {/foreach} {/if} {/foreach}

{tab_other_language::get("份")} {tab_other_language::get("合计")}：{cfg:(coinsign,sys)}0

{if($shopinfo['shop_day_limit']>0 && $shopinfo['shop_day_sold']>=$shopinfo['shop_day_limit'])}

- # {tab_other_language::get("今日已售完，明天继续")}

{else if($shopinfo['shop_state']==-1 || empty($cfg_opentime['list']))}

- # {if(empty($shopinfo['shop_close_tips']))}{tab_other_language::get("东家有事，暂停营业")}{else}{$shopinfo['shop_close_tips']}{/if}

{else if($cfg_opentime['nowindex']<=0 || (!empty($shopinfo['extend']['weekday']) && !in_array($weekday,$shopinfo['extend']['weekday'])))}

- # {$shopinfo['shop_name']}{tab_other_language::get("送餐时间")}

  {if(!empty($shopinfo['extend']['weekday']))}

  ## {tab_other_language::get("每周")}：{$shopinfo['extend']['weekdayshow']}

  {/if} {foreach($shopinfo['extend']['arr_opentime'] as $item=>$key)}

  ## {$key}

  {/foreach}

{/if} {include(label.footer)}
- {tab_other_language::get("规格")}：小份中份大份
- {tab_other_language::get("单价")}：{cfg:(coinsign,sys)}
- {tab_other_language::get("数量")}：1