<!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=<?=$cat['catid']?>"><?=$cat['catname']?></a></span>
	</div>

	<div class="filter">
		<dl class="filter_item cmcdata" style="border-bottom:none;" type="cmc_cmcs">
			<dt>分类</dt>
			<dd style="padding-right: 30px;">
			<a href="index.php?mod=category&catid=<?=$catid?>" <?php echo empty($areaid) ? 'class="selected"' : ''; ?>>全部</a>
			<?php foreach($cat_list[$catid]['children'] as $k => $v){?>	
			<a href="index.php?mod=category&catid=<?=$v['catid']?>"><?=$v['catname']?></a>
			<?php }?>
			</dd>
		</dl>
	</div>


	<div class="infolst_w">
		<ul class="list-info">
		<?php 
			if(empty($info_list)) echo '<div class="warning">抱歉，暂无'.$cat[catname].'相关信息记录！ <a href="index.php?mod=category&catid='.$parent['catid'].'">返回</a></div>';
			foreach($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']==2 ? '<span class="ico ding"></span></span>' : ''?> </dt>
					<dd class="attr"><span><?php echo clear_html(substring($v['content'],0,40)); ?></span></dd>
					<dd class="attr"><span class="chengzi"><?php echo $v['userid'] ? ''.$v[userid].'' : $v['contact_who']; ?></span>&nbsp;&nbsp;<span class="lvzi"><?php echo get_format_time($v['begintime']); ?></span>&nbsp;&nbsp;阅<?php echo $v['hit']; ?></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>