<!DOCTYPE html>
<html lang="zh-CN" class="index_page">
<head>
	<?php include mymps_tpl('header');?>
	<title><?=$row['title']?> - <?=$row['catname']?> - <?=$mymps_global[SiteName]?></title>
	<link type="text/css" rel="stylesheet" href="template/css/global.css">
	<link type="text/css" rel="stylesheet" href="template/css/style.css">
	<link type="text/css" rel="stylesheet" href="template/css/info.css">
	<script src="template/js/jq.min.js"></script>
</head>

<body>
<div class="body_div">

	<?php include mymps_tpl('header_search');?>
 
	<div class="dl_nav">
		<span><a href="index.php">首页</a><font class="raquo"></font><a href="index.php?mod=category&cityid=<?=$city['cityid']?>">本地信息</a>
        <? foreach($parentcats as $k=>$v){?>
        <font class="raquo"></font><a href="index.php?mod=category&catid=<?=$v['catid']?>&cityid=<?=$city['cityid']?>"><?=$v['catname']?></a>
        <?php }?>
        </span>
	</div>

	<div class="detail">	
		<div class="tit_area">
			<h1 class="tit"><?=$row['title']?></h1>
			<div class="status_bar">
				<span class="date"><i class="ico"></i><?=GetTime($row['begintime'])?></span>
				<span class="browse_num"><i class="ico"></i><span id="totalcount" ><script type="text/javascript" src="<?=$mymps_global[SiteUrl]?>/javascript.php?part=information&id=<?=$row['id']?>"></script></span>次</span>
				<a rel="nofollow" href="<?=$mymps_global[SiteUrl]?>/box.php?part=wap_shoucang&infoid=<?=$row['id']?>" class="btn_Favorite"><i class="ico"></i>收藏</a>
			</div>
		</div>

		<?php if(is_array($row['image'])){?>
		<div class="image_area_w">
			<div class="image_area">
				<ul>
					<?php foreach($row['image'] as $k => $v){?>				
					<li><img src="<?=$mymps_global[SiteUrl]?><?=$v[prepath]?>" ref="<?=$mymps_global[SiteUrl]?><?=$v[path]?>" width="220" height="155" /></li>
					<?php }?>
				</ul>
				<div class="panel_num"></div>
			</div>
		</div>
		<?php }?>
		<?php if(is_array($row['extra'])){?>
		<ul class="attr_info" style="margin-top:0;">
			<?php foreach($row['extra'] as $k => $v){?>
			<li>
				<span class="attrName2"  style="<?php if($v[title] == '租金'|| $v[title] ==  '价格'|| $v[title] ==  '房价'|| $v[title] ==  '联系电话') echo 'color:#ff7800;'?>"><?=$v[title]?>：</span>
				<span class="attrVal"  style="<?php if($v[title] == '租金'|| $v[title] ==  '价格'|| $v[title] ==  '房价'|| $v[title] ==  '联系电话') echo 'color:#ff7800;font-weight:bold;font-size:20px;'?>"><?php if($v[value] == '0元/月' || $v[value] == '面议元/月'|| $v[value] == '0万元'|| $v[value] == '0万元/年') {?>面议<?php }else{ ?><?=$v[value]?><?php }?></span>
			</li>
			<?php }?>
		</ul>
		<?php }?> 
	
		<ul class="attr_info bottom gray">
			<span class="attrVal mfico">
				<?php if(!empty($row['qq'])){?>
				<li>
					<span class="attrName">联系 Q Q：</span>
					<span class="attrVal"> <?=$row[qq]?></span>
				</li>
				<?php }?> 
				<li>
					<span class="attrName">联系电话：</span>
					<span class="attrVal"><a class="fred" href="tel:<?=$row[tel]?>"><?=$row[tel]?></a>&nbsp;&nbsp;<?=$row[contact_who]?></span>
				</li>
				<li>
					<p class="mt10">
						<a href="tel:<?=$row[tel]?>" class="fangico dianhua"><i></i>电话联系（点击拨打）</a>
					</p>
				</li>
			</span>
		</ul>
	
		<div class="detail-tit">详细描述</div>
		<div class="detail_txt_che">
			<?=$row['content']?>
			<br />联系我时，请说是在<?php echo $mymps_global['SiteName']?>看到的。
		</div>
	
		<div class="detail-tit">推荐信息</div>
		<div class="follow">
			<ul>
				<?php foreach($relevant as $k => $v){ ?>
					<li><a href="index.php?mod=information&id=<?php echo $v['id']; ?>"><?=cutstr($v['title'],26)?></a><span><?=get_format_time($v['begintime'])?></span></li>
				<?php }?>
			</ul>

			<div class="more" style="margin-top:20px;">
				<a style="text-align: center;position: relative" href="index.php?mod=category&catid=<?=$row['catid']?>&cityid=<?=$city['cityid']?>">查看更多<?=$row['catname']?>&gt;&gt;</a>
			</div>
		</div>
	</div>
	
	<div id="viewBigImagebg"></div>
	<div id="viewBigImage">
		<div class="bigimg_topbar">
			<div class="btn_back"><span>返回</span></div>
			<div class="bigimg_num"><span class="curr_img">1</span>/<span class="total_img">9</span></div>
		</div>
		<div class="bigimg_box"><ul></ul></div>
	</div>

	<script src="template/js/slide.js"></script>
	<div style="display:none"><script src="template/js/history.js"></script></div>
	
<?php include mymps_tpl('footer2'); ?>
</div>
</body>
</html>