<!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/index.css" type="text/css" rel="stylesheet" />
<script src="js/common.js"></script>
</head>
<body class="home-page">
<!--{template header}-->
  <div class="card_img">
   <div class="card_info">
    <div class="lefts">
      <p class="fff">{$CFG['cardname']}是{$CFG['webname']}联合{$_COOKIE['cityname']}本地商家共同推出的集美食、休闲、娱乐、旅游、住宿、购物为一体的优惠打折卡，凭本卡您可以在{$_COOKIE['cityname']}本地联盟商家内享受多种优惠折扣，并在消费后获取相应积分，积分还可兑换现金哦~~实现一卡在手，全城无忧！</p>
      <p class="btns"><a href="{url_rewrite('plus_page', array('aid'=>'3'))}">在线办卡</a><a href="{url_rewrite('plus_page', array('aid'=>'4'))}">商家加盟</a></p>
    </div>
    <div class="rights">
     <div class="webart">
      <h2 class="fff">动态</h2>
      <div class="clearfix h_10"></div>
      <ul>
      {loop $articles $val}
          <li><a href="{$val['url']}" target="_blank">[{$val['typename']}]{$val['ctitle']}</a><span>{$val['addtime']}</span></li>
      {/loop}
      </ul>
     </div>
    </div>
    </div>
  </div>
<div class="wrapper">
 
  <div class="com_list">
   <h2 class="t_c"><span class="title">最新加入商家</span><span class="bors"></span></h2>
   <div class="clearfix h_15"></div>
    <ul>
      {loop $coms $val}
      <li>
      <a href="{$val['url']}" target="_blank">
        <p><img src="{if $val['thumb']}{$val['thumb']}{else}images/noimg.jpg{/if}" width="228px" height="180px" /></p>
        <p><h3>{$val['comname']}</h3></p>
        <div class="clearfix h_5"></div>
        <p>
        {if ($val['zk_sojian']>0)}<span class="bor_5">首单立减{$val['zk_sojian']}元</span>{/if}{if (!empty($val['jifens'][0]) && !empty($val['jifens'][1]))}<span class="bor_5">消费{$val['jifens'][0]}元送{$val['jifens'][1]}积分</span>{/if}
        </p>
      </a>
      {/loop}
      </li>
    </ul>
    {if $comstar}
	<div class="clearfix h_15"></div>
    <h2 class="t_c"><span class="title">好评商家推荐</span><span class="bors"></span></h2>
   <div class="clearfix h_15"></div>
    <ul>
    {loop $comstar $val}
      <li>
      <a href="{$val['url']}">
        <p><img src="{if $val['thumb']}{$val['thumb']}{else}images/noimg.jpg{/if}" width="228px" height="180px" /></p>
        <p><h3>{$val['comname']}</h3></p>
        <p><div class="ll"><img src="images/star/s{floor($val['sum_cm'])}.png" /> {$val['sum_cm']}</div><div class="rr f12 f99">{$val['ccid']} 人点评</div></p>
      </a>
      </li>
    {/loop}
    </ul>
	 {/if}
  </div>
 
  {if $comments}
  <div class="clearfix height15"></div>
  <div class="com_comment">
   <h2 class="t_c"><span class="title">会员最新点评</span><span class="bors"></span></h2>
   <div class="clearfix h_15"></div>
    <ul>
     {php $i=1}
     {loop $comments $val}
      <li{php if($i%2==0)echo" style='float:right;'";}>
        <div class="thumbs"><a href="{$val['url']}" target="_blank"><img src="{if $val['thumb']}{$val['thumb']}{else}images/noimg.jpg{/if}" width="100px" height="100px" /></a></div>
        <div class="comments">
        <h3><a href="{$val['url']}" target="_blank">{$val['comname']}</a></h3>
        <p class="f12">{$val['content']}</p>
        <div class="clearfix h_10"></div>
        <p class="f12 f99"><span class="ll fe43"><img src="images/star/s{floor($val['star'])}.png" /> {$val['star']}</span><span class="rr"><strong>{$val['username']}</strong>　{$val['postdate']}</span></p>
        </div>
      </li>
      {php $i++}
     {/loop} 
    </ul>
   </div>
   {/if}
</div>
<!--{template index_footer}-->
</body>
</html>