<?php
if($cat['modid'] > 1 && $idin) {
	$des = get_info_option_array();
	$extra = $db ->getAll("SELECT a.* FROM `{$db_mymps}information_{$cat[modid]}` AS a WHERE 1 {$idin}"); 
	foreach($extra as $k => $v){
		unset($v['iid']);
		unset($v['content']);
		foreach($v as $u => $w){
			$g = get_info_option_titval($des[$u],$w);
			if($u != 'id' && !is_numeric($u)) $info_list[$v[id]][$u] = $g['value'];
		}
	}
}
?>
<!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="<?=$cat[keywords]?>" />
<meta name="description" content="<?=$cat[description]?>" />
<title><?=$page_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/category.css" />
<link rel="stylesheet" href="<?=$mymps_global[SiteUrl]?>/template/default/css/pagination2.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>
<script src="<?=$mymps_global[SiteUrl]?>/template/default/js/hover_bg.js" type="text/javascript"></script>
</head>

<body class="<?=$mymps_global[cfg_tpl_dir]?> <?=$mymps_global[screen_cat]?>">
<? include mymps_tpl('inc_head');?>
<div class="body1000">
	<div class="clear"></div>
	<div class="location">
		<?=$location?>
	</div>
	<div class="clear"></div>
	<div class="wrapper">
		<? include mymps_tpl('list_select');?>
	</div>
	
	<div class="clear"></div>
	<div class="<?=$mymps_global[head_style]?>_listhd">
		<div class="listhdleft">
			<div><a href="#" class="currentr"><span></span><?=$cat[catname]?>信息</a></div>
		</div>
		<div class="listhdcenter">
			信息总数：<span><?=$rows_num?></span> ，您知道吗？置顶发布的信息可使成交率提高5倍！
		</div>
		<div class="listhdright">
			<a href="<?=$mymps_global[SiteUrl]?>/<?=$mymps_global[cfg_postfile]?>?catid=<?=$cat[catid]?>&cityid=<?=$city[cityid]?>" target="_blank">免费发布<?=$city[cityname]?><?=$cat[catname]?>信息>></a>
		</div>
	</div>
	<div class="clear5"></div>
	<div style="body1000;">
	<!--栏目侧边页广告开始-->
	<div id="ad_intercatdiv"></div>
	<!--栏目侧边页广告结束-->
	<div class="infolists">
		<div class="list_jyzh">
		<!--栏目列表页头部广告开始-->
		<div id="ad_interlistad_top"></div>
		<!--栏目列表页头部广告结束-->
		<ul>
		<? foreach($info_list as $k =>$v){?>
		<div class="hover <? if($v[upgrade_type] > 1){?>ding<? }?>">
		<span class="lfaceimg"><a href='<?=$v[uri]?>' target='_blank'><img src='<? if (!$v[img_path]){?><?=$mymps_global[SiteUrl]?>/images/nophoto.gif<? }else{?><?=$mymps_global[SiteUrl]?><?=$v[img_path]?><? }?>' title='<?=$v[title]?>' align="absmiddle"></a></span>
		<span class="lsex"><?=$v[sex]?>&nbsp;</span>
		<span class="ltitlevalue"><br />
		<a href="<?=$info[uri]?>" target="_blank" style="<? if($v[ifred] == 1){?>color:red;<? }?> <? if($v[ifbold] == 1){?>font-weight:bold;<? }?>"><?=$v[title]?></a><? if($v[img_count]){?><span class="img_count"><?=$v[img_count]?>图</span><? }?><? if($v[certify] == 1){?><span class="certify">认证</span><? }?><font class="area">(<?=$v[areaname]?>)</font> <br />
		<?=$v[age]?> / <?=$v[jobs]?>
		</span>
		<span class="ltime"><?=$v[begintime]?></span>
		</div>
		<? }?>
		</ul>
		<!--栏目列表页尾部广告开始-->
		<div id="ad_interlistad_bottom"></div>
		<!--栏目列表页尾部广告结束-->
		</div>
		<div class="clear"></div>
		<div class="pagination2"><?=$pageview?></div>
		<div class="clear"></div>
		<div class="totalpost"><a href="<?=$mymps_global[SiteUrl]?>/<?=$mymps_global[cfg_postfile]?>?catid=<?=$cat[catid]?>" target="_blank">马上发布一条<?=$city[cityname]?><?=$cat[catname]?>信息&raquo;</a></div>
	</div>
	</div>
    <? if($hotcities){?>
	<div class="clear"></div>
	<div class="cateintro relate">
		<div class="introleft"><?=$cat[catname]?>相关分站</div>
		<div class="introright">
			<? foreach($hotcities as $k => $v){?><a href='<?=$v[domain]?><?=$cat[caturi]?>' target="_blank"><?=$v[cityname]?><?=$cat[catname]?></a><? }?>
		</div>
	</div>
    <? }?>
	<div class="clearfix"></div>
	<div class="cateintro">
		<div class="introleft"><?=$city[cityname]?><?=$cat[catname]?>频道</div>
		<div class="introright"><?=$city[cityname]?><?=$cat[catname]?>频道为您提供<?=$city[cityname]?><?=$cat[catname]?>信息，在此有大量<?=$city[cityname]?><?=$cat[catname]?>信息供您选择，您可以免费查看和发布<?=$city[cityname]?><?=$cat[catname]?>信息。</div>
	</div>
	<? if(is_array($friendlink)){?>
	<div class="clearfix"></div>
	<div class="cateintro">
		<div class="introleft">友情链接</div>
		<div class="introflink">
			<? foreach($friendlink as $k => $v){ ?>
			<a href='<?=$friendlink[url]?>' target='_blank'><?=$friendlink[name]?></a>
			<? }?>
			<a href="<?=$city[domain]?><?=$about[friendlink_uri]?>" target="_blank">更多</a>
		</div>
	</div>
	<? }?>
	<? include mymps_tpl('inc_foot');?>
</div>
</body>
</html>