<!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=gbk" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="generator" content="DirCMS2011 Sp3" />
<meta name="keywords" content="<?php echo $head[keywords];?>" />
<meta name="description" content="<?php echo $head[description];?>" />
<title><?php echo $head[title];?></title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/base.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/public.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/yellow_pages.css" rel="stylesheet" type="text/css">
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<?php include template('header');?>
<div class="page-wrap">
  <div class="crumb-nav">您当前的位置：<a href="<?php echo $DIRCMS['site_url'];?>">网站首页</a>><a href="yp">生活黄页</a></div>
</div>
<div class="yp-nav">
  <ul>
    <li class="over"><a href="yp/"><span>黄页首页</span></a></li>
	<li><a href="yp/class.php"><span>黄页大全</span></a></li>
  </ul>
</div>
<div class="page-wrap mt6">
  <div class="width726 fl">
    <div class="focus">
      <script language="javascript" src="<?php echo $DIRCMS['site_url'];?>adv/api/adv.js.php?id=21&siteid=<?php echo $DIRCMS['site_id'];?>"></script>
    </div>
    <div class="hl-w724 column-yp border mt6">
      <h2><strong><a href="yp">黄页分类</a></strong><span class="fl-tip gray">欢迎入住本地商家联盟!</span><span class="more"><a href="yp/class.php">所有分类>></a></span></h2>
      <div class="ypsort">
	  	<?php $yptype=selectmenuinfo('yp',0);?>
		<?php $no=1;if(is_array($yptype))foreach($yptype as $no=>$r){?>
		<?php if($no<=5) { ?>
        <div class="s-hc">
          <span class="s-ico"><img width="42" height="42" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/yp_s<?php echo $r['id'];?>.gif"></span>
          <dl>
            <dt><strong><?php echo $r['name'];?></strong></dt>
            <dd>
			<?php $yptype=selectmenuinfo('yp',$r['id']);?>
			<?php $no=1;if(is_array($yptype))foreach($yptype as $i=>$r){?>
			<?php if($i<=4) { ?>
			<a href="yp/list.php?id=<?php echo $r['id'];?>" title="<?php echo $r['name'];?>"><?php echo $r['name'];?></a><?php if($i<=3) { ?><cite>|</cite><?php }?>
			<?php }?>
			<?php $no++;}?>			
			</dd>
          </dl>
        </div>
		<?php }?>
        <?php $no++;}?>
      </div>
    </div>
    <div class="hl-w724 column-yp border mt6">
      <h2><strong>黄页推荐</strong><span class="more"><a href="<?php echo caturl(112);?>" class="blue">想要加入推荐？</a></span></h2>
      <div class="ypsort">
	  	<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."yp` WHERE `".DB_PRE."yp`.`istop`=1 AND `".DB_PRE."yp`.`siteid`=1 AND `".DB_PRE."yp`.`status`=1  ORDER BY `".DB_PRE."yp`.seo",12,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
        <div class="yprecom">
          <a target="_blank" href="<?php echo $r['url'];?>"><img width="80" height="60" src="<?php if($r['logo']) { ?><?php echo $r['logo'];?><?php }else{ ?>images/nopic.gif<?php }?>"></a>
          <ul>
            <li><a href="<?php echo $r['url'];?>"><strong class="f14"><?php echo sub_string($r['name'],30);?></strong></a></li>
            <li>电话：<?php echo sub_string($r['phone'],30);?></li>
            <li>地址：<?php echo sub_string($r['address'],30);?></li>
          </ul>
        </div>
		<?php }unset($_DATA); ?>
      </div>
    </div>
  </div>
  <div class="width248 ml6 fr">
    <div class="host-link">
      <div class="host-t"><span>商家入驻</span><img width="33" height="14" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/ypfree_ico.gif" alt="免费"></div>
      <div class="hs-link">
        <ul>
          <li><a href="member/index.php?file=login&action=register" target="_blank" class="free">免费注册</a></li>
          <li><a href="member/index.php?mod=yp&file=yp&action=news" target="_blank" class="pub">发布信息</a></li>
          <li><a href="member/index.php?mod=yp&file=yp&action=set" target="_blank" class="chk">登记店铺</a></li>
          <li><a href="member/index.php?mod=pay&file=pay&action=card" target="_blank" class="rec">积分充值</a></li>
        </ul>
      </div>
    </div>
    <div class="hl-w246 column-yp border mt6">
      <h2><strong>最新入驻商家</strong></h2>
      <div class="nhs-lt">
        <ul>
		  <?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."yp` WHERE `".DB_PRE."yp`.`siteid`=1 AND `".DB_PRE."yp`.`status`=1  ORDER BY `".DB_PRE."yp`.id",10,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
          <li><span class="date"><?php echo date('m-d',$r['opentime']);?></span><a target="_blank" href="<?php echo $r['url'];?>"><?php echo sub_string($r['name'],22);?></a></li>
          <?php }unset($_DATA); ?>
        </ul>
      </div>
    </div>
    <div class="hl-w246 column-yp border mt6">
      <h2><strong>商家打折优惠</strong></h2>
	  <?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."yp_discount` WHERE  thumb!=''  AND 1 ORDER BY `".DB_PRE."yp_discount`.`id` DESC",1,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
      <div class="side-ma">
        <div class="sid-img"><a href="yp/web/showdiscount.php?id=<?php echo $r['id'];?>"><img src="<?php echo $r['thumb'];?>" width="68" height="58" alt="<?php echo $r['title'];?>"></a> </div>
        <div class="sid-txt-w150">
          <h3><strong><a href="yp/web/showdiscount.php?id=<?php echo $r['id'];?>"><?php echo sub_string($r['title'],16);?></a></strong></h3>
          <p><?php echo sub_string($r['description'],16);?><em class="orange ml6"><?php echo $r['discountprice'];?>元</em></p>
        </div>
        <div class="clear"></div>
      </div>
	  <?php }unset($_DATA); ?>
      <div class="dist">
        <ul>
		  <?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."yp_discount` WHERE 1 AND 1 ORDER BY `".DB_PRE."yp_discount`.`id` DESC",8,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
          <li><span class="fl"><a href="yp/web/showdiscount.php?id=<?php echo $r['id'];?>"><?php echo sub_string($r['title'],16);?></a></span><span class="rc-price"><?php echo $r['discountprice'];?>元</span></li>
          <?php }unset($_DATA); ?>
        </ul>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<?php include template('footer');?>
</body>
</html>