<!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=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="<?php echo $head[keywords];?>" />
<meta name="description" content="<?php echo $head[description];?>" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" type="text/css" rel="stylesheet" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/yp.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/site.js"></script>
<title><?php echo $head[title];?></title>
</head>
<body>
	<!-- 头部 -->
	<?php include template('head');?>
<!-- 正文 -->
	<div class="ads_960"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=14"></script></div>
	<div class="yp_top">
		<div class="yp_top_left">
			<div class="tp_nav">口碑排行</div>
			<ul>
				<?php $dir_membertypeid=$areaid;$_DATA=get_sql_tag_data("SELECT a.*,b.* FROM dircms_member a,dircms_corporatemember b WHERE a.id=b.userid AND a.islocked=0 AND a.gradeid=10 AND a.ispassed=1 AND a.iscompmayed=1 ORDER BY a.point DESC",9,0,1);foreach($_DATA as $no => $r)if(is_array($r)){$membertypeid=$r["id"];?>
				<li><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/no_<?php echo $no;?>.gif" /> <a href="<?php echo $r['companyurl'];?>" target="_blank"><?php echo $r['companyname'];?></a> </li>
				<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
			</ul>
		</div>
		<div class="yp_top_middle">
			<?php $dir_page="";$_DATA=get_tag_data(all,'8','5',0,0,'1','id DESC',0,'0');foreach($_DATA as $no => $r)if(is_array($r)){?>
			<?php $focus_title[]=str_replace(array('"','\''),array('',''),$r['title']);?>
			<?php $focus_imgs[]=str_replace(array('"','\''),array('',''),$r['thumb']);?>
			<?php $focus_urls[]=str_replace(array('"','\''),array('',''),$r['url']);?>
			<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
			<!--焦点图开始-->      
			<script type="text/javascript">
			<!--
				var focus_width=455
				var focus_height=220
				var text_height=0
				var swf_height = focus_height+text_height
				
				var pics='<?php echo implode("|",$focus_imgs);?>'
				var links='<?php echo implode("|",$focus_urls);?>'
				var texts='<?php echo implode("|",$focus_title);?>'	
				document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
				document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
				document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
				document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
				document.write('<embed ID="focus_flash" src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#Ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');		
				document.write('</object>');
			//-->
			</script>
			<!--焦点图结束-->
		</div>
		<div class="yp_top_right">
			<div class="yp_top_right_fb">
				<ul>
					<li><a href="member/index.php?file=login&action=register">免费注册</a></li>
					<li><a href="member/index.php?file=login&action=login">立即登陆</a></li>
					<li><a href="about/index.html">我要推广</a></li>
					<li><a href="about/index.html">帮助中心</a></li>
				</ul>
			</div>
			<div class="yp_top_right_yh">
				<div class="tp_nav">优惠券</div>
				<ul>
					<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."co_coupon` WHERE `".DB_PRE."co_coupon`.`status`=1 ORDER BY `".DB_PRE."co_coupon`.`id` DESC",4,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
					<li><span style="float:left"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/no_<?php echo $no;?>.gif" /> <a href="company/showcoupon_<?php echo $r['id'];?>.html" target="_blank"><?php echo $r['title'];?></a></span><span style="float:right; color:#666"><?php echo date('m-d',$r['inputtime'] );?></span></li>
					<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>

				</ul>
			</div>
		</div>
	</div>
	<div class="body_dp">
		<div class="body_dp_c">
			<div class="body_dp_nav">
			<?php $_DATA=get_sql_membertype_data(0,0);foreach($_DATA as $no => $r)if(is_array($r)){$typeid=$r["id"];?>
			<a href="search/index.php?type=member&colname=<?php echo $r['id'];?>" title="<?php echo $r['type'];?>"><?php echo $r['type'];?></a>&nbsp;
			<?php }unset($_DATA);$membertypeid=$dir_membertypeid;?>
			<a href="<?php echo $DIRCMS['site_url'];?>member/index.php?file=user&action=space_edit"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/ruzhu.gif" /></a></div>
			<ul>
				<?php $dir_membertypeid=$areaid;$_DATA=get_sql_tag_data("SELECT a.*,b.* FROM dircms_member a,dircms_corporatemember b WHERE a.id=b.userid AND a.islocked=0 AND a.gradeid=20 AND a.ispassed=1 AND a.iscompmayed=1 ORDER BY a.amount DESC",14,0,1);foreach($_DATA as $no => $r)if(is_array($r)){$membertypeid=$r["id"];?>
				<li>
					<a href="<?php echo $r['companyurl'];?>" target="_blank"><img src="<?php if($r['companypic']) { ?><?php echo $r['companypic'];?><?php }else{ ?>images/nopic.gif<?php }?>" />
					<br />
					<?php echo sub_string($r['companyname'],20);?></a>
				</li>
				<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
			</ul>
		</div>
	</div>
	<div class="ads_960"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=8"></script></div>
	<div class="yp_bottom">
		<div class="yp_bottom_left">
			<?php $_DATA=get_sql_membertype_data(0,0);foreach($_DATA as $no => $r)if(is_array($r)){$typeid=$r["id"];?>
			<div class="yp_bottom_left_c">
				<div class="yp_bottom_left_title"><a href="search/index.php?type=member&colname=<?php echo $r['id'];?>" title="<?php echo $r['type'];?>"><?php echo $r['type'];?></a></div>
				<ul>
					<?php $_DATA=get_sql_membertype_data($typeid,0);foreach($_DATA as $no => $r)if(is_array($r)){$typeid=$r["id"];?>
					<li><a href="search/index.php?type=member&typeid=<?php echo $r['id'];?>" title="<?php echo $r['type'];?>"><?php echo $r['type'];?></a></li>
					<?php }unset($_DATA);$membertypeid=$dir_membertypeid;?>
				</ul>
			</div>
			<?php }unset($_DATA);$membertypeid=$dir_membertypeid;?>
		</div>
		<div class="yp_bottom_middle">
			<div class="tp_nav">最新点评</div>
			
			<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."member_comment` WHERE `".DB_PRE."member_comment`.`status`=1 ORDER BY `".DB_PRE."member_comment`.`id` DESC",6,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
			<div class="company_body_comment">
				<div class="company_body_comment_left">
					<img src="<?php echo $r['userface'];?>" /><br /><?php echo $r['username'];?>
				</div>
				<div class="company_body_comment_right">
服务 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['fuwu'];?>.gif" />
品质 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['pinzhi'];?>.gif" /> 
性价比 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['xingjiabi'];?>.gif" />
<br />
<a href="<?php echo $DIRCMS['site_url'];?>company/company_<?php echo $r['memberid'];?>.html" target="_blank"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/<?php echo $r['score'];?>.gif" /></a>
<?php echo $r['content'];?>
<br />
<span style="color:#666">[发布于<?php echo date('Y-m-d H:i:s',$r['addtime']);?>]</span> 
				</div>
			</div>
			<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
		</div>
		<div class="yp_bottom_right">
			<div class="yp_bottom_right_c">
				<div class="tp_nav">新近店铺</div>
				<ul>
					<?php $dir_membertypeid=$areaid;$_DATA=get_sql_tag_data("SELECT a.*,b.* FROM dircms_member a,dircms_corporatemember b WHERE a.id=b.userid AND a.islocked=0 AND a.gradeid=10 AND a.ispassed=1 AND a.iscompmayed=1 ORDER BY a.id DESC",10,0,1);foreach($_DATA as $no => $r)if(is_array($r)){$membertypeid=$r["id"];?>
					<li><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/no_<?php echo $no;?>.gif" /> <a href="<?php echo $r['companyurl'];?>" target="_blank"><?php echo $r['companyname'];?></a> </li>
					<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</ul>
			</div>
			<div class="yp_bottom_right_c">
				<div class="tp_nav">热门店铺</div>
				<ul>
					<?php $dir_membertypeid=$areaid;$_DATA=get_sql_tag_data("SELECT a.*,b.* FROM dircms_member a,dircms_corporatemember b WHERE a.id=b.userid AND a.islocked=0 AND a.gradeid=10 AND a.ispassed=1 AND a.iscompmayed=1 ORDER BY a.id DESC",10,0,1);foreach($_DATA as $no => $r)if(is_array($r)){$membertypeid=$r["id"];?>
					<li><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/no_<?php echo $no;?>.gif" /> <a href="<?php echo $r['companyurl'];?>" target="_blank"><?php echo $r['companyname'];?></a> </li>
					<?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</ul>
			</div>
		</div>
	</div>
	<!-- 底部 -->
	<?php include template('footer');?>
</body>
</html>