<?php
if(ifplugin('group')){
	require_once MYMPS_ROOT.'/plugin/group/include/functions.php';
	$groups = get_groups(3);
	$groupclass = get_group_class();
}
if(ifplugin('goods')){
	require_once MYMPS_ROOT.'/plugin/goods/include/functions.php';
	$goods = get_goods($tpl_index['goods'],1,'');
}
if(ifplugin('news')) $news = mymps_get_news_list($tpl_index['news']);
$in = $tpl_index['portal']['ershou'].','.$tpl_index['portal']['zhaopin'].','.$tpl_index['portal']['ershoufang'].','.$tpl_index['portal']['jianli'].','.$tpl_index['portal']['zufang'];
if($query = $db->query("SELECT catid,dir_typename FROM `{$db_mymps}category` WHERE catid IN($in)")){
	while($row = $db->fetchRow($query)){
		$hd[$row['catid']]['dir_typename'] = $row['dir_typename'];
	}
}
$portaluri['postershou'] = $mymps_global['cfg_postfile'].'?catid='.$tpl_index['portal']['ershou'];
$portaluri['moreershou'] = Rewrite('category',array('catid'=>$tpl_index['portal']['ershou'],'dir_typename'=>$hd[$tpl_index['portal']['ershou']]['dir_typename'],'cityid'=>$cityid));
$portaluri['catidershou'] = $tpl_index['portal']['ershou'];
$portaluri['postzufang'] = $mymps_global['cfg_postfile'].'?catid='.$tpl_index['portal']['zufang'];
$portaluri['morezufang'] = Rewrite('category',array('catid'=>$tpl_index['portal']['zufang'],'dir_typename'=>$hd[$tpl_index['portal']['zufang']]['dir_typename'],'cityid'=>$cityid));
$portaluri['catidzufang'] = $tpl_index['portal']['zufang'];
$portaluri['postzhaopin'] = $mymps_global['cfg_postfile'].'?catid='.$tpl_index['portal']['zhaopin'];
$portaluri['morezhaopin'] = Rewrite('category',array('catid'=>$tpl_index['portal']['zhaopin'],'dir_typename'=>$hd[$tpl_index['portal']['zhaopin']]['dir_typename'],'cityid'=>$cityid));
$portaluri['catidzhaopin'] = $tpl_index['portal']['zhaopin'];
$portaluri['postershoufang'] = $mymps_global['cfg_postfile'].'?catid='.$tpl_index['portal']['ershoufang'];
$portaluri['moreershoufang'] = Rewrite('category',array('catid'=>$tpl_index['portal']['ershoufang'],'dir_typename'=>$hd[$tpl_index['portal']['ershoufang']]['dir_typename'],'cityid'=>$cityid));
$portaluri['catidershoufang'] = $tpl_index['portal']['ershoufang'];
$portaluri['postjianli'] = $mymps_global['cfg_postfile'].'?catid='.$tpl_index['portal']['jianli'];
$portaluri['morejianli'] = Rewrite('category',array('catid'=>$tpl_index['portal']['jianli'],'dir_typename'=>$hd[$tpl_index['portal']['jianli']]['dir_typename'],'cityid'=>$cityid));
$portaluri['catidjianli'] = $tpl_index['portal']['jianli'];

/*招聘信息开始*/
$arr = '';
$zhaopin = array();
$query = $db -> query("SELECT a.id,a.title,a.ifred,a.ifbold,a.cityid,a.dir_typename,g.{$tpl_index['portali']['company']} FROM `{$db_mymps}information` AS a LEFT JOIN `{$db_mymps}information_{$tpl_index[portal][zhaopinmod]}` AS g ON a.id = g.id WHERE ".get_children($tpl_index[portal][zhaopin])." AND (a.info_level = 1 OR a.info_level = 2) {$city_limit} ORDER BY a.begintime DESC LIMIT 0,16");

while($row = $db -> fetchRow($query)){
	$arr['id']        = $row['id'];
	$arr['title']     = $row['title'];
	$arr['ifred']     = $row['ifred'];
	$arr['ifbold']    = $row['ifbold'];
	$arr[$tpl_index['portali']['company']] = $row[$tpl_index['portali']['company']];
	$arr['uri']       = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
	$zhaopin[$row['id']]      = $arr;
}

/*招聘信息结束*/

/*人才简历开始*/
$arr = '';
$jianli = array();
$query = $db -> query("SELECT a.id,a.title,a.ifred,a.ifbold,a.cityid,a.contact_who,a.dir_typename FROM `{$db_mymps}information` AS a WHERE ".get_children($tpl_index[portal][jianli])." AND (a.info_level = 1 OR a.info_level = 2) {$city_limit} ORDER BY a.begintime DESC LIMIT 0,4");
if($query){
	while($row = $db -> fetchRow($query)){
		$arr['id']        = $row['id'];
		$arr['title']     = $row['title'];
		$arr['ifred']     = $row['ifred'];
		$arr['ifbold']    = $row['ifbold'];
		$arr['contact_who']    = $row['contact_who'];
		$arr['uri']       = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
		$jianli[$row['id']]      = $arr;
	}
}
/*人才简历结束*/

/*二手房信息开始*/
$arr = '';
$esf = array();
$query = $db -> query("SELECT a.id,a.title,a.ifred,a.ifbold,a.cityid,a.dir_typename,g.{$tpl_index[portali][acreage]},g.{$tpl_index[portali][prices]} FROM `{$db_mymps}information` AS a LEFT JOIN `{$db_mymps}information_{$tpl_index[portal][ershoufangmod]}` AS g ON a.id = g.id WHERE ".get_children($tpl_index[portal][ershoufang])." AND (a.info_level = 1 OR a.info_level = 2) {$city_limit} ORDER BY a.begintime DESC LIMIT 0,12");
if($query){
	while($row = $db -> fetchRow($query)){
		$arr['id']        = $row['id'];
		$arr['title']     = $row['title'];
		$arr['ifred']     = $row['ifred'];
		$arr['ifbold']    = $row['ifbold'];
		$arr[$tpl_index[portali][prices]] = $row[$tpl_index[portali][prices]];
		$arr[$tpl_index[portali][acreage]]    = $row[$tpl_index[portali][acreage]];
		$arr['uri']       = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
		$esf[$row['id']]      = $arr;
	}
}
/*二手房信息结束*/

/*出租房信息开始*/
$arr = '';
$czf = array();
$query = $db -> query("SELECT a.id,a.title,a.ifred,a.ifbold,a.cityid,a.img_path,a.dir_typename,g.{$tpl_index[portali][mini_rent]} FROM `{$db_mymps}information` AS a LEFT JOIN `{$db_mymps}information_{$tpl_index[portal][zufangmod]}` AS g ON a.id = g.id WHERE ".get_children($tpl_index[portal][zufang])." {$city_limit} AND (a.info_level = 1 OR a.info_level = 2) AND img_path != '' ORDER BY a.begintime DESC LIMIT 0,6");
if($query){
	while($row = $db -> fetchRow($query)){
		$arr['id']        = $row['id'];
		$arr['title']     = $row['title'];
		$arr['ifred']     = $row['ifred'];
		$arr['ifbold']    = $row['ifbold'];
		$arr['img_path']   = $row['img_path'];
		$arr[$tpl_index['portali']['mini_rent']] = $row[$tpl_index['portali']['mini_rent']];
		$arr['uri']       = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
		$czf[$row['id']]      = $arr;
	}
}
/*出租房信息结束*/

unset($arr);
/*二手市场开始*/
//文字信息
$ershou = $ershou_img = array();
$inershou = get_children($tpl_index[portal][ershou]);
$query	 = $db -> query("SELECT a.id,a.title,a.ifred,a.ifbold,a.begintime,a.cityid,a.catname,a.dir_typename FROM {$db_mymps}information AS a  WHERE ".$inershou." AND (a.info_level = 1 OR a.info_level = 2) {$city_limit} ORDER BY a.begintime DESC LIMIT 0,12");
while($row   = $db -> fetchRow($query)){
	$arr['id'] 	      = $row['id'];
	$arr['title'] 	  = $row['title'];
	$arr['begintime'] = $row['begintime'];
	$arr['catname']	  = $row['catname'];
	$arr['ifred']	  = $row['ifred'];
	$arr['ifbold']	  = $row['ifbold'];
	$arr['uri']		  = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
	$ershou[$row['id']] = $arr;
}
//图文信息
$arr = '';
$query = $db -> query("SELECT a.id,a.title,a.img_path,a.dir_typename,a.cityid FROM `{$db_mymps}information` AS a WHERE ".$inershou." AND (a.info_level = 1 OR a.info_level = 2) AND img_path != '' {$city_limit} ORDER BY a.begintime DESC LIMIT 0,8");
if($query){
	while($row = $db -> fetchRow($query)){
		$arr['id']        = $row['id'];
		$arr['title']     = $row['title'];
		$arr['img_path']  = $row['img_path'];
		$arr['uri']       = Rewrite('info',array('id'=>$row['id'],'cityid'=>$row['cityid'],'dir_typename'=>$row['dir_typename']));
		$ershou_img[$row['id']]      = $arr;
	}
}
/*二手市场结束*/
$categories 	= get_categories_tree(0,'category');
$city['announce'] = $city['announce'];
?>
<!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 name="keywords" content="<?=$city[keywords]?>"/>
<meta name="description" content="<?=$city[description]?>"/>
<title><?=$city[title]?></title>
<link rel="shortcut icon" href="<?=$mymps_global[SiteUrl]?>/favicon.ico" />
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/global.css" />
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/style.css" />
<? if($mymps_global[bodybg] == 1){?><link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/bodybg.css" /><? }?>
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/style.head_<?=$mymps_global[head_style]?>.css" />
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/index.head_<?=$mymps_global[head_style]?>.css" />
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/index.css" />
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/global.js" type="text/javascript"></script>
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/jquery.min.js" type="text/javascript"></script>
</head>
<body class="<?=$mymps_global[cfg_tpl_dir]?> <?=$mymps_global[screen_index]?>">
<? include mymps_tpl('inc_head');?>
<div class="body1000">
	<div class="clear"></div>
	<div class="focushead">
		<div class="categories">
			<dl id="infomenu">
			<dt class="titup"><b>生活信息分类导航</b></dt>
			<dd class="cont">
			<? $i=1;foreach($categories as $k =>$v){?>
			<? if($i < 9){?>
			<li>
			<em><a href="<?=$v[uri]?>" style="color:<?=$v[color]?>" target="_blank"><?=$v[catname]?></a></em>
			<dl>
				<dt><b></b></dt>
				<dd>
				<? if(is_array($v[children])){?>
				<? foreach($v[children] as $u =>$w){?>
				<a href="<?=$w[uri]?>" style="color:<?=$w[color]?>" target="_blank" title="<?=$w[catname]?>"><?=$w[catname]?></a>
				<? }}?>
				</dd>
			</dl>
			</li>
			<? }?>
			<? $i=$i+1;}?>
			</dd>
			</dd>
			</dl>
		</div>
		<div class="focustop">
			<div class="portalfocuslide" id="MainPromotionBanner">
				<div class="container" id="idTransformView">
					<ul class="slider" id="idSlider">
						<? if(is_array($city['focus']['index'])){foreach($city['focus']['index'] as $k => $v){?>
						<li><a href="<?=$v[url]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?><?=$v[image]?>" alt="<?=$v[words]?>"/></a></li>
						<? }}?>
					</ul>
					<ul class="num" id="idNum">
						<li>1</li>
						<li>2</li>
						<li>3</li>
					</ul>
				</div>
			</div>
			<div class="indextopcourse">
				<div class="titleleft">
					<span>头版置顶</span>
				</div>
				<div class="courseshow">
					<ul>
					<? foreach($index_topinfo as $k =>$v){?>
					<li><span class="showtitle"><a title="<?=$v[title]?>" target="_blank" href="<?=$v[uri]?>" style="<? if($v[ifre] == 1){?>color:red;<? }?><? if($v[ifbold] == 1){?>font-weight:bold;<? }?>"><?=$v[title]?></a></span></li>
					<? }?>
					</ul>
				</div>
			</div>
		</div>
		<div class="announcepost">
			<div class="announcenews">
				<div id="tab1">
					<ul>
						<li onmouseover="setTab(1,0)" class="now">网站新闻</li>
						<li onmouseover="setTab(1,1)">网站公告</li>
					</ul>
				</div>
				<div class="clearfix"></div>
				<div id="tablist1">
					<div class="tablist block news">
						<ul>
						<? $i=1;foreach($news as $k =>$v){?>
						<? if($i == 1){?>
						<h1><a target="_blank" href="<?=$v[uri]?>" title="<?=$v[title]?>" <? if($v[iscommend] == 1){?>style="color:red"<? }?>><?=$v[title]?></a></h1>
						<p><?=$v[content]?></p> 
						<? }else{?>
						<li><span class="title"><a target="_blank" href="<?=$v[uri]?>" title="<?=$v[title]?>" <? if($v[iscommend] == 1){?>style="color:red"<? }?>><?=cutstr($v[title],42)?></a></span><span class="time"><?=GetTime($v[begintime])?></span></li>
						<? }?>
						<? $i=$i+1;}?>
						</ul>
					</div>
					<div class="tablist none announce">
						<ul>
						<? if(is_array($city['announce'])){foreach($city['announce'] as $k =>$v){?>
						<li><span class="announcetitle"><a title="<?=$v[title]?>" href="<?=$v[uri]?>" target="_blank"><?=$v[title]?></a></span><span class="announcetime"><?=GetTime($v[pubdate],'m-d')?></span></li>
						<? }}?>
						</ul>
					</div>
				</div>
				<div class="clear"></div>
				<div class="courseschool">
				<a class="postinfo" href="<?=$mymps_global[SiteUrl]?>/<?=$mymps_global[cfg_postfile]?>?cityid=<?=$city[cityid]?>" target="_blank">免费发布信息</a>
				<a class="postmember" href="<?=$mymps_global[SiteUrl]?>/<?=$mymps_global[cfg_member_logfile]?>?mod=register&action=store&cityid=<?=$city[cityid]?>" target="_blank">免费网上开店</a>
				</div>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div id="ad_indexcatad_<?=$portaluri[catidershou]?>"></div>
	<div class="ershou">
		<div class="hd">
			<div class="span">二手转让</div>
			<div class="center"><a href="<?=$mymps_global[SiteUrl]?>/<?=$portaluri[postershou]?>&cityid=<?=$city[cityid]?>" target="_blank">转让二手物品</a></div>
			<div class="more"><a href="<?=$portaluri[moreershou]?>" target="_blank">更多</a></div>
		</div>
		<div class="bd">
			<div class="ershouleft">
				<ul>
					<? foreach($ershou_img as $k =>$v){?>
					<li><a href="<?=$v[uri]?>" title="<?=$v[title]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?><?=$v[img_path]?>"></a></li>
					<? }?> 
				</ul>
			</div>
			<div class="ershouright">
				<ul>
					<? foreach($ershou as $k =>$v){?>
					<li>[<?=$v[catname]?> <?=GetTime($v[begintime],'m-d')?>] <a href="<?=$v[uri]?>" target="_blank" style="<? if($v[ifred] == 1){?>color:red;<? }?><? if($v[ifbold] == 1){?>font-weight:bold;<? }?>" title="<?=$v[title]?>"><?=$v[title]?></a> </li>
					<? }?>
				</ul>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div id="ad_indexcatad_<?=$portaluri[catidzufang]?>"></div>
	<div class="house">
		<div class="zufang">
			<div class="hd">
				<div class="span">出租房</div>
				<div class="center"><a href="<?=$mymps_global[SiteUrl]?>/<?=$portaluri[postzufang]?>&cityid=<?=$city[cityid]?>" target="_blank">发布出租房信息</a></div>
				<div class="more"><a href="<?=$portaluri[morezufang]?>" target="_blank">更多</a></div>
			</div>
			<div class="bd">
				<ul>
					<? foreach($czf as $k =>$v){?>
					<li>
						<div class="img"><a href="<?=$v[uri]?>" target="_blank" title="<?=$v[title]?>"><img src="<?=$mymps_global[SiteUrl]?><?=$v[img_path]?>" alt="<?=$v[title]?>"/></a></div>
						<div class="des"><a href="<?=$v[uri]?>" target="_blank"><?=$v[title]?></a></div>
						<div class="rent"><font color="red"><? if($v[$ioption[mini_rent]] == 0){?>面议<? }else{?><?=$v[$ioption[mini_rent]]?>元/月<? }?></font></div>
					</li>
					<? }?>
				</ul>
			</div>
		</div>
		<div class="ershoufang">
			<div class="hd">
				<div class="span">二手房</div>
				<div class="more"><a href="<?=$portaluri[moreershoufang]?>" target="_blank">更多</a></div>
			</div>
			<div class="bd">
				<ul>
					<? foreach($esf as $k =>$v){?>
					<li>
						<div class="title"><a href="<?=$v[uri]?>" target="_blank"><?=cutstr($v[title],26)?></a></div>
						<div class="des"><?=$v[acreage]?>平米/<?=$v[prices]?>万元</div>
					</li>
					<? }?>
				</ul>
			</div>
		</div>
	</div>
	<div id="ad_indexcatad_<?=$portaluri[catidershoufang]?>"></div>
	<div id="ad_indexcatad_<?=$portaluri[catidzhaopin]?>"></div>
	<div class="clearfix"></div>
	<div class="zhaopin_jianli">
		<div class="zhaopin">
			<div class="hd">
				<div class="span">招聘信息</div>
				<div class="center"><a href="<?=$mymps_global[SiteUrl]?>/<?=$portaluri[postzhaopin]?>&cityid=<?=$city[cityid]?>" target="_blank">发布招聘信息</a></div>
				<div class="more"><a href="<?=$portaluri[morezhaopin]?>" target="_blank">更多</a></div>
			</div>
			<div class="bd">
				<ul>
					<? foreach($zhaopin as $k =>$v){?>
					<li style="<? if($v[ifred] == 1){?>color:red;<? }?><? if($v[ifbold] == 1){?>font-weight:bold;<? }?>"><?=$v[company]?>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$v[uri]?>" target="_blank"><?=$v[title]?></a></li>
					<? }?>
				</ul>
			</div>
		</div>
		<div class="jianli">
			<div class="hd">
				<div class="span">人才简历</div>
				<div class="more"><a href="<?=$portaluri[morejianli]?>&cityid=<?=$city[cityid]?>" target="_blank">更多</a></div>
			</div>
			<div class="bd">
				<ul>
				<? foreach($jianli as $k =>$v){?>
				<li><a href="<?=$v[uri]?>"><?=$v[contact_who]?></a> , <?=$v[title]?></li>
				<? }?>
				</ul>
			</div>
			<div class="clear"></div>
			<div><a href="<?=$mymps_global[SiteUrl]?>/<?=$portaluri[postjianli]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?>/template/default/images/index/qiuzhi.gif" align="absmiddle" border="0"></a></div>
			<div class="clear"></div>
			<div><a href="<?=$mymps_global[SiteUrl]?>/<?=$portaluri[postzhaopin]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?>/template/default/images/index/zhaopin.gif" align="absmiddle" border="0"></a></div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div id="ad_indexcatad_<?=$portaluri[catidjianli]?>"></div>
	<div class="clear"></div>
	<? if(is_array($members)){?>
	<div class="shoplist">
	<div class="intershop">
	<div class="hd">
		<? foreach($shopclass as $k => $v){$i=1;if($i < 9){?>
		<a href="<?=$v[uri]?>" target="_blank"><?=$v[corpname]?></a>
		<? $i=$i+1;}?>
		<? }?>
		<span class="more"><a href="<?=$mymps_global[SiteUrl]?>/<?=$mymps_global[cfg_member_logfile]?>?mod=register&action=store&cityid=<?=$city[cityid]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?>/template/default/images/index/ruzhu.gif"></a> <a href="<?=$about[yp_uri]?>" target="_blank"><img src="<?=$mymps_global[SiteUrl]?>/template/default/images/index/gdsj.gif"></a>
		</span>
	</div>
	<div id="shop">
	<div class="bd" id="shop1">
	<? foreach($members as $k =>$v){?>
	<li class="item"><a href="<?=$v[uri]?>" target="_blank" ><img src="<?=$mymps_global[SiteUrl]?><?=$v[prelogo]?>"  alt="<?=$v[tname]?>"/></a> <span class="title"><a href="<?=$v[uri]?>" target="_blank"><?=substr($v[tname],0,16)?></a></span><span  class="sale">店主:  <?=$v[userid]?></span></li>
	<? }?>
	 </div>
	</div>
	</div>
	</div>
	<div class="clear"></div>
	<? }?>
	<? if(is_array($goods)){?>
	<div class="goods">
		<div class="hd">
			<div class="span">商品网购</div>
			<div class="more"><a href="<?=$city[domain]?>goods.php" target="_blank">更多</a></div>
		</div>
		<div class="bd">
			<ul>
			<? foreach($goods as $k => $v){?>
			<li>
			<a href="<?=$v[uri]?>"  target=_blank><img src="<?=$mymps_global[SiteUrl]?>/<?=$v[pre_picture]?>" title="<?=$v[goodsname]?>"/>
			<h3><?=$v[goodsname]?></h3>
			</a>
			<span class="price"><?=$v[nowprice]?></span>
			</li>
			<? }?>
			</ul>
		</div>
	</div>
	<div class="clear"></div>
	<? }?>
	<? if(is_array($groups)){?>
	<div class="group">
	<div class="hd">
	<div class="span">最新团购</div>
	<div class="more">
	<? foreach($groupclass as $k => $v){?>
	<a href="<?=$v[cate_uri]?>" target="_blank"><?=$v[cate_name]?></a>
	<? }?>
	<a href="<?=$city[domain]?>group.php" target="_blank" class="moree">更多</a>
	</div>
	</div>
	<div class="bd">
	<? foreach($groups as $k => $v){?>
	<ul>
	<div class="img"><a href="<?=$v[uri]?>"><img src="<?=$mymps_global[SiteUrl]?><?=$v[pre_picture]?>"></a></div>
	<div class="detail">
	<span class="name">活动名称：<a href="<?=$v[uri]?>" target="_blank"><?=$v[gname]?></a></span>
	<span>报名截止：<font color="#404040"><?=GetTime($v[enddate],'Y-m-d')?></font></span>
	<span>集合时间：<font color="#404040"><?=GetTime($v[meetdate],'Y-m-d')?></font></span>
	<span>活动地址：<font color="#404040"><?=$v[gaddress]?></font></span>
	</div>
	</ul>
	<? }?>
	</div>
	</div>
	<div class="clear"></div>
	<? }?>
	<? if(is_array($city['telephone'])){?>
	<div class="telephone">
		<div class="hd"><span class="hdleft">便民电话</span><span class="hdright">以下便民电话招商：<font color="red">300/年</font>，变色或加粗加100元。(可新增行业类别，每类别限一家，先占先得！)加盟电话：<font color="green"><?=$mymps_global[SiteTel]?></font></span></div>
		<div class="clearfix"></div>
		<div class="bd">
			<ul>
				<? foreach($city['telephone'] as $k => $v){?>
				<li><font style="color:<?=$v[color]?>;<? if($v[if_bold] == 1){?>font-weight:bold<? }?>"><?=$v[telname]?><br /><?=$v[telnumber]?></font></li>
				<? }?>
			</ul>
		</div>
	</div>
	<div class="clear"></div>
	<? }?>
	<? if(is_array($city['lifebox'])){?>
	<div class="lifebox">
		生活助手：
		<? foreach($city['lifebox'] as $k => $v){?><a rel="nofollow" href="<?=$mymps_global[SiteUrl]?>/lifebox.php?id=<?=$v[id]?>" target="_blank"><?=$v[lifename]?></a><? }?>
	</div>
	<div class="clear"></div>
	<? }?>
	<div class="flink">
	<div class="hd"><span class="hd1">友情链接</span><span class="hd2"><a href="<?=$about[friendlink_uri]?>">我要申请</a></span></div>
	<div class="bd">
		<? if(is_array($city['flink'][img])){?>
		<ul class="image">
		<? foreach($city['flink'][img] as $k =>$v){?>
		<li><a href="<?=$v[url]?>" target="_blank" title="<?=$v[name]?>"><img src="<?=$v[logo]?>" border="0" /></a></li>
		<? }?>
		</ul>
		<? }?>
        <? if(is_array($city['flink'][txt])){?>
		<ul class="text">
		<? foreach($city['flink'][txt] as $k =>$v){?>
		<li><a href="<?=$v[url]?>" target="_blank" title="<?=$v[name]?>"><?=$v[name]?></a></li>
		<? }?>
		</ul>
        <? }?>
	</div>
	</div>
	
	<div class="clear"></div>
	<? include mymps_tpl('inc_foot');?>
</div>
</div>
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/slide_portal.js" type="text/javascript"></script>
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/setTab.js" type="text/javascript"></script>
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/category.js" type="text/javascript"></script>
</body>
</html>