<!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="page-wrap mt6">
  <div class="width726 fl">
    <div class="hl-w724 con-ypst border">
      <h2><strong class="blue">黄页分类</strong></h2>
      <div class="yp-qty">
        <div class="qua">
          <b class="qt-type fl">分类：</b>
          <ul class="qt-cont fr">
			<?php $yptype=selectmenuinfo('yp',$parentid);?>
			<?php $no=1;if(is_array($yptype))foreach($yptype as $r){?>
			 <li><a href="yp/list.php?id=<?php echo $r['id'];?>" title="<?php echo $r['name'];?>" <?php if($r['id']==$id) { ?> class="current"<?php }?>><?php echo $r['name'];?></a></li>
			<?php $no++;}?>
          </ul>
          <div class="clear"></div>
        </div>
      </div>  
    </div>
    <div class="width726 mt6">
      <div class="yp-lt">
        <ul>
          <li><a href="yp/"><span>黄页首页</span></a></li>
          <li class="over"><a href="yp/class.php"><span>黄页大全</span></a></li>
        </ul>
      </div>
      <div class="yp-contbox">
        <ul class="yp-cont">
		  <?php $no=1;if(is_array($data))foreach($data as $r){?>
          <li>
            <div class="yp-img"><a href="<?php echo $r['url'];?>"><img width="146" height="90" src="<?php if($r['logo']) { ?><?php echo $r['logo'];?><?php }else{ ?>images/nopic.gif<?php }?>" alt="<?php echo $r['name'];?>"></a></div>
            <div class="yp-bsinfo">
              <dl>
                <dt><a href="<?php echo $r['url'];?>"><?php echo $r['name'];?></a><?php if($r['identitycard']) { ?><img width="72" height="20" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/approve.gif" alt="信息已认证"><?php }?></dt>
                <dd>营业时间：<?php echo $r['openingtime'];?></dd>
                <dd>联系电话：<em class="red"><?php echo $r['phone'];?></em></dd>
                <dd>详细地址：<?php echo $r['address'];?></dd>
              </dl>
            </div>
            <div class="yp-mold gray"><?php if($r['istop']) { ?><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/tjsh.gif" /><?php }else{ ?><?php }?></div>
          </li>
          <?php $no++;}?>
        </ul>
      </div>
	  <div class="pagination">
	  <?php echo $dir_page;?>
	  </div>
    </div>
  </div>
  <div class="width248 ml6 fr">
    <div class="joinYP"><a href="member/index.php?mod=yp&file=yp&action=set">我要加入黄页</a></div>
    <div class="hl-yt con-yt mt6">
      <h2><strong>黄页推荐</strong></h2>
      <div class="YP-recom">
	  	<?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",8,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
          <dl>
          <dt><a class="deep-blue" target="_blank" href="<?php echo $r['url'];?>"><?php echo sub_string($r['name'],22);?></a></dt>
          <dd>联系QQ：<?php echo $r['qq'];?></dd>
          <dd class="green">电 话:<?php echo $r['phone'];?></dd>
        </dl>
         <?php }unset($_DATA); ?>
        
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<?php include template('footer');?>
</body>
</html>