<!DOCTYPE html>
<html lang="zh-CN" class="index_page">
<head>
	<?php include mymps_tpl('header');?>
	<title><?=$cat['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/list.css">
	<script src="template/js/jq.min.js"></script>
	<script src="template/js/list.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">本地信息</a><font class="raquo"></font><a href="index.php?mod=category&catid=<?=$parent['catid']?>"><?=$parent['catname']?></a><font class="raquo"></font><a href="index.php?mod=category&catid=<?=$catid?>"><?=$cat['catname']?></a></span>
	</div>
	
	<div class="filter">
	
		<?php if(is_array($cat_list[$catid]['children'])){?>
		<dl class="filter_item cmcdata" type="cmc_cmcs">
			<dt>分类</dt>
			<dd style="padding-right: 30px;">
			<?php foreach($cat_list[$catid]['children'] as $k => $v){?>
				<a href="index.php?mod=category&catid=<?=$v['catid']?>" <?php echo $v['catid'] == $catid ? 'class="selected"' : ''; ?>><?=$v[catname]?></a>
			<?php }?>
			</dd>
		</dl>
		<?php }?>
		
		<dl class="filter_item cmcdata" type="cmc_cmcs">
			<dt>地区</dt>
			<dd style="padding-right: 30px;">
			<?php foreach($area_list as $k => $v){?>
				<a href="<?=$v[uri]?>" <?php echo $v['areaid'] == $areaid ? 'class="selected"' : ''; ?>><?=$v[areaname]?></a>
			<?php }?>
			</dd>
		</dl>
		
		<?php if(empty($shaixuan)){?>
		<? } else {?>
			<?php foreach($shaixuan as $k => $v){?>
			<dl class="filter_item cmcdata" type="cmc_cmcs" style="display:none;">
				<dt><?=substring($v['title'],0,4)?></dt>
				<dd style="padding-right:30px;">
				<?php foreach($v['list'] as $x => $c){?>
					<a href="<?=$c[uri]?>" <?php echo $c['select'] == 1 ? 'class="selected"' : ''?>><?=$c[name]?></a>
				<?php }?>
				</dd>
			</dl>
			<?php }?>
			
			<div class="filter_more">
				<a href="javascript:;"><span>更多筛选条件</span><b class="arrow"></b></a>
			</div>
			
		<?}?>
	</div>

	<div class="infolst_w">
		<ul class="list-info">
		<?php 
			if(empty($info_list)) echo '<div style="margin:30px 0; text-align:center;color:#999"">抱歉，暂无'.$cat[catname].'相关信息记录！ <a href="index.php?mod=category&catid='.$parent['catid'].'">返回</a></div>';
			foreach((array)$info_list as $k => $v){ ?>
    		<li>
                <a href="index.php?mod=information&id=<?php echo $v['id']; ?>">
				<?php if(!empty($v['img_path'])){?>
					<img class="thumbnail" src="<?=$mymps_global['SiteUrl']?><?php echo $v['img_path']; ?>" alt="<?php echo $v['title']; ?></strong>">
				<? } else {?>
					<img class="thumbnail" src="template/images/noimg.gif" alt="nopic">
				<?}?>
				<dl>
					<dt class="tit"><?php echo $v['title']; ?>&nbsp;<?php if(!empty($v['img_path'])){?><sapn style="background:#339966; color:#FFFFFF; font-size:14px; padding:0 2px;text-align:center;"><?=$v[img_count]?>图</sapn><? } else {?><?}?><?php echo $v['upgrade_type_list']==2 ? '<span class="ico ding"></span></span>' : ''?> </dt>
					<dd class="attr"><span><?=substring($v['content'],0,50)?></span></dd>
					<dd class="attr pr5">
					
						<?php echo $v['recr_salary'] ? '<span class="price">'.$v['recr_salary'].'</span>' : ''?>

						<?php if(!empty($v['fc_jiage'])){?>
							<span class="price"><?php if($v[fc_jiage] == '0万元') {?>面议<?php }else{ ?><?=$v[fc_jiage]?><?php }?></span>
						<? } else {?>
						<?}?>
						
						<?php if(!empty($v['nwe_zujin'])){?>
							<span class="price"><?php if($v[nwe_zujin] == '0万元/年' || $v[nwe_zujin] == '面议万元/年' || $v[nwe_zujin] == '万元/年') {?>面议<?php }else{ ?><?=$v[nwe_zujin]?><?php }?></span>
						<? } else {?>
						<?}?>
						
						<?php if(!empty($v['trade_price'])){?>
							<span class="price"><?php if($v[trade_price] == '0元') {?>面议<?php }else{ ?><?=$v[trade_price]?><?php }?></span>
						<? } else {?>
						<?}?>

						<?php if(!empty($v['zujin'])){?>
							<span class="price"><?php if($v[zujin] == '0元/月' || $v[zujin] == '面议元/月') {?>面议<?php }else{ ?><?=$v[zujin]?><?php }?></span>
						<? } else {?>
						<?}?>

						<span class="chengzi"><?php echo $v['userid'] ? ''.$v[userid].'' : $v['contact_who']; ?></span>
						<span class="lvzi"><?php echo $v['begintime']; ?></span>
						<span>阅<?php echo $v['hit']; ?></span>
					</dd>
				</dl>
				
                </a>
    		</li>
		<?php }?>
		</ul>  
	</div>

	<?php if(!empty($info_list)){?>
	<div class="pager">
	<?php pager();?>
	</div>
	<?php }?>
	<?php include mymps_tpl('footer');?>
</div>
</body>
</html>