<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$shopinfo['shop_name']}-{cfg:(site_name,sys)}</title>
<meta name="keywords" content="{$shopinfo['shop_name']},{cfg:(keywords,sys)}"/>
<meta name="description" content="{fun_format::len($shopinfo['shop_desc'],50)}"/>
<link rel="stylesheet" type="text/css" href="/common/images/common.css"/>
<link rel="stylesheet" type="text/css" href="images/css.css"/>
</head>
<body>
{include(header)}
{include(label.shop.top)}
<script src="/common/js/kj.pic.js"></script>
{set $arr=fun_kj::get_ads('B1-shop'.$shopinfo['shop_id'],1)}
{if(isset($arr['list']) && count($arr['list'])>0)}
<div class="kj_slider" style="{if(!empty($arr['h']))}height:{$arr['h']};{/if}{if(!empty($arr['w']))}width:{$arr['w']};{/if}">
	<div class="xli" style="{if(!empty($arr['h']))}height:{$arr['h']};{/if}{if(!empty($arr['w']))}width:{$arr['w']};{/if}">
		{foreach($arr['list'] as $item)}
		<li><a href="{$item['link']}"><img src = "{$item['url']}" style="{if(!empty($arr['h']))}height:{$arr['h']};{/if}{if(!empty($arr['w']))}width:{$arr['w']};{/if}"></a></li>
		{/foreach}
	</div>
	<div class="xleft xbtn1" style="display:none{if(!empty($arr['h']))};margin-top:-{$arr['h']/2}px;{/if}"><a href="javascript:void(0);" onclick="kj.slider.pagepre(this);">&lt;</a></div>
	<div class="xright xbtn1" style="display:none{if(!empty($arr['h']))};margin-top:-{$arr['h']/2}px;{/if}"><a href="javascript:void(0);" onclick="kj.slider.pagenext(this);">&gt;</a></div>
	<div class="xbtn Tslider_btn" style="display:none">{foreach($arr['list'] as $item)}<a href="javascript:void(0);">&nbsp;</a>{/foreach}</div>
</div>
{else if(isset($arr['html']) && trim($arr['html'])!='')}
<div style="float:left;{if(!empty($arr['w']))}width:{$arr['w']};{else}width:1000px;{/if}margin:10px 0px">
	{$arr['html']}
</div>
{/if}
<div class="shopinfo" style="float:right" id="id_shopinfo">
	{include(label.shop.right)}
</div>
<div class="shopcate" style="border-bottom:0px">
	<li class="x1"></li>
	{if($shopinfo['shop_service']==0 || $shopinfo['shop_service']==3)}
		<li class="x2"><a href="{fun_get::url(array('type'=>'','app_act'=>'shop','shop_id'=>'','id'=>$shopinfo['shop_id']))}">{tab_other_language::get("外卖")}</a>{if($shopinfo['shop_service']==3)}<a href="{fun_get::url(array('type'=>'2','app_act'=>'shop','shop_id'=>'','id'=>$shopinfo['shop_id']))}">{tab_other_language::get("餐厅订位")}</a>{/if}<a href="{fun_get::url()}" class="xsel">{tab_other_language::get("评价")}</a></li>
	{else}
		<li class="x2"><a href="{fun_get::url(array('type'=>'','app_act'=>'shop','shop_id'=>'','id'=>$shopinfo['shop_id']))}">{tab_other_language::get("餐厅订位")}</a>{if($shopinfo['shop_service']==4)}<a href="{fun_get::url(array('type'=>'1','app_act'=>'shop','shop_id'=>'','id'=>$shopinfo['shop_id']))}">{tab_other_language::get("外卖")}</a>{/if}<a href="{fun_get::url()}" class="xsel">{tab_other_language::get("评价")}</a></li>
	{/if}
	<li class="xtips" id="id_timetips" style="display:none">
		<label>{tab_other_language::get("预约时间")}：</label><font>{tab_other_language::get("今天-12:00")}</font><a href="javascript:jsshop.showtime();">{tab_other_language::get("切换")}</a>
	</li>
</div>
<div class="shop_comment">
	<table class="xtotal">
		<tr><td class="x1"><h1>{$shopcomment['commenttotal']}<font>{tab_other_language::get("分")}</font></h1><p><span class="starbg"><font style="width:<?php echo $shopcomment['commenttotal']/5*100;?>%"></font></span></p><p>{tab_other_language::get("共有")} <font class='xnum' id="id_comment_num">{$arr_list['pageinfo']['total']}</font> {tab_other_language::get("人评价")}</p></td>
		<td class="x2">
			{foreach($shopcomment['commentlist'] as $item=>$key)}
			<p><font>{$item}</font><span class="starbg"><font style="width:<?php echo number_format($key/5*100,2);?>%;margin-top:0px"></font></span><font>{tab_other_language::get("{msg1}分",$key)}</font></p>
			{/foreach}
		</td>
		<td class="x3">
			{foreach($shopcomment['commentval'] as $item=>$key)}
			<p><font>{$item}分</font><span><font style="width:<?php echo number_format($key/$shopcomment['commenttotalren']*100,2);?>%"></font></span><font>{tab_other_language::get("{msg1}人",$key)}</font></p>
			{/foreach}
		</td>
		</tr>
	</table>
	<div class="xlist" id="id_comment_list">
		{foreach($arr_list['list'] as $item)}
			<ul>
				<li class="xxtit"><span>{$item['user_name']}</span><span><img src="images/vip{$item['level']}.png"></span><span>{$item['addtime']}</span><span class="xstar"><font style="width:{$item['val']}%"></font></span></li>
				<li class="xcont">{$item['comment_beta']}</li>
				{if(!empty($item['pic']))}
				<li class="xpic">
				{foreach($item['pic'] as $pic)}
				<img src = "{fun_get::html_url($pic)}" onclick="kj.pic.preview('{$pic}')">
				{/foreach}
				</li>
				{/if}
				{if(!empty($item['comment_recont']))}
				<li class="xrecont">
				{$item['comment_recont']}
				</li>
				{/if}
			</ul>
		{/foreach}
	</div>
</div>
<div class="page" style="float:left">
	<li{if($arr_list['pagebtns']['pre']<1)} class="xnone"{/if}><a href="{if($arr_list['pagebtns']['pre']<1)}javascript:void(0);{else}{fun_get::url(array('page'=>''))}&page={$arr_list['pagebtns']['pre']}{/if}">{tab_other_language::get("上一页")}</a></li>
	{if($arr_list['pagebtns']['start']!=1)}<li><a href="{fun_get::url(array('page'=>''))}&page=1">1</a></li>{/if}
	{if($arr_list['pagebtns']['start']>2)}
		<li class="xnone"><font>...</font></li>
	{/if}
	{foreach($arr_list['pagebtns']['list'] as $item)}
	<li{if(fun_get::get('page',1)==$item)} class="xsel"{/if}><a href="{fun_get::url(array('page'=>''))}&page={$item}">{$item}</a></li>
	{/foreach}
	{if($arr_list['pagebtns']['end']<$arr_list['pageinfo']['pages']-1)}
		<li class="xnone"><font>...</font></li>
	{/if}
	{if($arr_list['pagebtns']['end']<$arr_list['pageinfo']['pages'])}
	<li><a href="{fun_get::url(array('page'=>''))}&page={$arr_list['pageinfo']['pages']}">{$arr_list['pageinfo']['pages']}</a></li>
	{/if}
	<li{if($arr_list['pagebtns']['next']<1)} class="xnone"{/if}><a href="{if($arr_list['pagebtns']['next']<1)}javascript:void(0);{else}{fun_get::url(array('page'=>''))}&page={$arr_list['pagebtns']['next']}{/if}">{tab_other_language::get("下一页")}</a></li>
	</li>
</div>
{include(footer)}
</body>
</html>