 <!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>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<title>{$seo['title']}</title>
<meta name="Keywords" content="{$seo['keywords']}">
<meta name="Description" content="{$seo['description']}">
<link href="templates/{$CFG[tplname]}/style/com_view.css" type="text/css" rel="stylesheet" />
</head>
<body>
<!--{template header_com}-->
{template here}
<div class="wrapper">
	<!-- 主体 -->

    <div class="com_title">
      <p class="t_c"><h2 class="f30 fb">{$comname}<span class="h2txt pad15" title="{$introduce}">{$introduces}</span></h2></p>

    </div>
     <div class="left_box">
      <div class="com_info">
        <div class="thumb"><img src="{$thumbs}" width="300px" height="220px" /></div>
        <div class="infos">
          <p>营业时间：<span class="pad10">{$hours[0]} - {$hours[1]}</span></p>
          <p>商家地址：<span class="pad10">{$areaname} - {$address}</span></p>
          <p>联系电话：<span class="pad10">{$phone}</span></p>
          <p class="com_icon">配套环境：<span class="pad10">{if (in_array('wifi', $icon))}<span class="com_wifi" title="无线网"></span>{/if}{if (in_array('car', $icon))}<span class="com_p" title="停车位"></span>{/if}</span></p>
          <div class="clearfix"></div>
          
          <div class="ilist">
            <ul>
              <li><p><span class="f3f f18">{$r[all_user]}</span></p><p>消费人次</p></li>
              <li><p><span class="f3f f18">￥{$r[moneys]}</span></p><p>次均消费</p></li>
              <li style="padding-top:0;">
                <div class="ll"><img src="phpqrcode/temp/{$comid}.png" width="95px" height="95px" /></div>
                <div class="rr pad10">微信扫一扫<br />手机逛本店</div>
              </li>
            </ul>
          </div>
        </div>
      </div>
      
      <div class="salelist">
       <ul>
        <li>
         <h3>优惠</h3>
        {if ($com_cfg['zk_sojian']>0)}<span class="bor_5">首单立减{$com_cfg['zk_sojian']}元</span>{/if}
        {if (!empty($jifens[0]) && !empty($jifens[1]))}<span class="bor_5">消费{$jifens[0]}元送{$jifens[1]}积分</span>{/if}
        {if (!empty($com_cfg['jd'][0]) && ($com_cfg['jd'][0]!=',0,'))}<span class="bor_5">积分优惠日{$com_cfg['jd'][1]}倍积分</span>{/if}</li>
        <li>
        <h3>折扣</h3>
        {loop $zk_list $val}
        {if !empty($val[0])}<span class="bor_5">￥{$val[0]}及以上享{$val[1]}折</span>{else}<span class="bor_5">消费无折扣</span>{/if}
        {/loop}
        </li>
        {if (!empty($shoptip))}<li class="fe43"><h3>提示</h3>{$shoptip}</li>{/if}
          </ul>
      </div>
      <div class="tips f99">

      </div>
      
      <div class="dp">
        <h3 class="fb">消费评价 <span class="f12 f99 pad10" style="font-weight:100;"><span class="fe43 f16">{$all_stars}</span>分 {$stars['pf1']}评价</span></h3>
        <div class="clearfix h_10"></div>
        <div class="bor_2"></div>
     </div>
     <!--div class="dpmenu">
      <ul>
        <li><a href="#" class="select">全部</a></li>
        <li><a href="#">只看差评<span class="f99">(0)</span></a></li>
      </ul>
     </div-->
     <div class="dplist">
       <ul>
         <div id="showcomment">正在加载数据，请稍等...</div>
       </ul>
     </div>
    </div>
    <!--左侧结束-->
    <div class="right_box">
     <div class="userstar">
       <div class="t_c">
	   <h3>会员综合评分</h3>
	   <p class="fe43 f30 fb">{$all_stars}</p>
	   </div>
       <div class="clearfix h_10"></div>
       <p>价格&nbsp;&nbsp;<img src="images/star/b{floor($cm_pzs)}.png" />&nbsp;{$cm_pzs} 分</p>
       <p>服务&nbsp;&nbsp;<img src="images/star/b{floor($cm_fws)}.png" />&nbsp;{$cm_fws} 分</p>
       <p>环境&nbsp;&nbsp;<img src="images/star/b{floor($cm_hjs)}.png" />&nbsp;{$cm_hjs} 分</p>
       <div class="clearfix h_10"></div>
       <p class="t_c"><a href="member.php?act=exchange&cid={$comid}" class="btn_1 f12">我要评价</a></p>
     </div>
      <div class="cred_box">
        <h2 class="t_c f16"><em></em>{$CFG['cardname']}积分优惠日</h2>
        <!--日历-->
         <table width="100%" cellpadding="0" cellspacing="0" class="t_c tabs">
				<tbody>
					<tr>
						<td>日</td>
						<td>一</td>
						<td>二</td>
						<td>三</td>
						<td>四</td>
						<td>五</td>
						<td>六</td>
					</tr>
				</tbody>
				<tbody>
					{php for($h=1;$h<=6;$h++){}
						<tr>
						{php for($l=1;$l<=7;$l++){}
                            {if (strpos($com_cfg['jd'][0],strval(",".($tian+1).","))!==false)}
                            <td {if ($tian+1==$ri)}class="tds"{/if} align="center" {if ($h*$l<=$yuez && $h==1)}{else}style="background:url(templates/{$CFG[tplname]}/images/tabbg.png) no-repeat right top;" title="<?=$tian+1?>号积分优惠日({$com_cfg['jd'][1]}倍积分)"{/if}>
								<?php 
									if($h*$l<=$yuez && $h==1){
										echo '&nbsp;';
									}elseif($tian<$tianshu){
										echo ++$tian; 						
									}else{
                                        echo '&nbsp;';
                                    }
								?>
							</td>
                           {else}
                           <td {if ($tian+1==$ri)}class="tds"{/if} align="center" >
								<?php 
									if($h*$l<=$yuez && $h==1){
										echo '&nbsp;';
									}elseif($tian<$tianshu){
										echo ++$tian; 						
									}else{
                                        echo '&nbsp;';
                                    }
								?>
							</td>
                           {/if} 
						{php }}
						</tr>
					{php }}
				</tbody>
			</table>
         <!--日历-->
      </div>
      
      {if $match_com}
      <div class="cred_box">
        <h2 class="t_c f16"><em></em>同类商家</h2>
        <ul>
          {loop $match_com $val}
			<li>
              <div class="thumb"><a href="{$val['url']}" target=_blank title="{$val[comname]}"><img src="{if $val[thumb]}{$val[thumb]}{else}images/noimg.jpg{/if}" width="70px" height="50px" /></a></div>
              <div class="infos">
               <p><a href="{$val['url']}" target=_blank title="{$val[comname]}">{$val['sname']}</a></p>
               <p><img src="images/star/s{floor($val['insc'])}.png" /><span class="pad10 fe43">{$val['insc']}</span> 分</p>
              </div>
            </li>
          {/loop}
        </ul>
      </div>
      {/if}
    </div>
</div>
<div class="clearfix h_15"></div>
<!--{template footer}-->
<iframe id="icomment" name="icomment" src="com_comment.php?comid=<?=$comid?>" frameborder="0" scrolling="no" width="0" height="0"></iframe>
</body>
</html>