<!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 http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--[if IE 6]><script type="text/javascript">try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</script><![endif]-->
<title><?php echo $head[title];?><?php if($page!=1) { ?>(<?php echo $page;?>)<?php }?></title>
<meta name="keywords" content="<?php echo $head[keywords];?>" />
<meta name="description" content="<?php echo $head[description];?>" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/base.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/public.css" rel="stylesheet" type="text/css">
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/classifieds.css" rel="stylesheet" type="text/css">
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<?php include template('header');?>
<div class="page-wrap">
  <div class="crumb-nav">您当前的位置：<?php echo $dir_postion;?></div>
</div>
<div class="page-wrap">
  <div class="clas">
    <h2><strong class="f14 fl">全部分类</strong><span class="sexpla fr">免费发布信息、查询"<?php echo $dir_catname;?>"
		  等本地生活信息</span><b class="corner-right"></b></h2>
    <?php include template('lascont');?>
  </div>
</div>
<div class="page-wrap mt6">
  <div class="width726 fl">
  <div class="latest-csinfo column border" style="margin-bottom:8px">
      <h2><strong>置顶信息</strong><span class="tit-lk fr" style="overflow:hidden">
	  <?php $_DATA=get_category_data(0,0,0,$catid,array (
  0 => 1,
),'son',6);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a> 
	  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
	  </span></h2>
      <div class="cs-p fl">
        <ul>
		<?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,4,6,0,1,'updatetime','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
        <li><a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank"><img src="<?php echo $r['thumb'];?>" width="88" height="74" alt="<?php echo $r['title'];?>"><span><?php echo sub_string($r['title'],16,'...');?></span></a></li>
        <?php }unset($_DATA); ?>
          <div class="clear"></div>
        </ul>
      </div>
      <div class="cs-t fr">
        <ul>
		<?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,4,10,0,0,'updatetime','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
        <li><span class="sot-t"><a href="<?php echo caturl($r['catid']);?>">[<?php echo catname($r['catid']);?>]</a></span><span class="fl"><a href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],36,'...');?></a></span><span class="date"><?php echo date('m-d',$r['updatetime']);?></span></li>
        <?php }unset($_DATA); ?>
        </ul>
      </div>
      <div class="clear"></div>
    </div>
  <?php $_DATA=get_category_data(0,0,0,$catid,array (
  0 => 1,
),'son',48);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
	<?php $no++;$i=$no;?>
    <div <?php if($i%2) { ?>class="sortinfo-box01 column border fl"<?php }else{ ?>class="sortinfo-box02 column border fr"<?php }?> style="margin-bottom:8px; height:275px">
      <h2><strong class="fl"><?php echo $r['catname'];?></strong><span class="more"><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?>>更多>></a></span></h2>
       <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,1,0,1,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
        <div class="si-major">
          <div class="sim-img"><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank"><img src="<?php echo $r['thumb'];?>" width="86" height="56" /></a></div>
          <div <?php if($i%2) { ?>class="sim-txt-w222"<?php }else{ ?>class="sim-txt-w262"<?php }?>>
            <h3><strong><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],30);?></a></strong></h3>
            <p><?php echo sub_string($r['description'],72,'...');?></p>
          </div>
          <div class="clear"></div>
        </div>
        <?php }unset($_DATA); ?>
        <div class="sinfo-list">
          <ul>
            <?php $dir_page="";$_DATA=call_user_func('get_tag_data',$catid,0,0,7,0,0,'id','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
            <li><span class="fl"><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> title="<?php echo $r['title'];?>" target="_blank"><?php echo sub_string($r['title'],34);?></a></span><span class="date"><?php echo date('m-d',$r['inputtime']);?></span></li>
            <?php }unset($_DATA); ?>
          </ul>
        </div>
    </div>
   <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>	
  </div>
  <div class="width248 ml6 fr">
    <div class="infomodi">
      <p><a href="post/" target="_blank" class="issuinfo">免费发布分类信息</a></p>
      <p><a href="member/" target="_blank" class="proif">推广我的信息</a></p>
      <p><a href="member/" target="_blank" class="edif">修改删除信息</a></p>
    </div>
    
    <div class="hcs column border mt6">
      <h2><strong>分类信息排行</strong></h2>
      <ul class="rank02">
		<?php $dir_page="";$_DATA=call_user_func('get_tag_data',$dir_catid,0,0,10,0,0,'clicks','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
		<?php $no++;?>
        <li class="n<?php echo $no;?>"><i></i><span class="sot-t"><a href="<?php echo caturl($r['catid']);?>">[<?php echo catname($r['catid']);?>]</a></span><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> target="_blank"><?php echo sub_string($r['title'],36,'...');?></a></li>
        <?php }unset($_DATA); ?>
      </ul>
    </div>
	<div class="hcs column border mt6">
      <h2><strong>信息评论排行</strong></h2>
      <ul class="rank02">
		<?php $dir_page="";$_DATA=call_user_func('get_tag_data',$dir_catid,0,0,10,0,0,'comments','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
		<?php $no++;?>
        <li class="n<?php echo $no;?>"><i></i><span class="sot-t"><a href="<?php echo caturl($r['catid']);?>">[<?php echo catname($r['catid']);?>]</a></span><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> target="_blank"><?php echo sub_string($r['title'],36,'...');?></a></li>
        <?php }unset($_DATA); ?>
      </ul>
    </div>
	<div class="nrep column border mt6">
      <h2><strong>最新回复</strong></h2>
      <ul class="nrpt">
	  	<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."comment` WHERE `".DB_PRE."comment`.`siteid`=1 AND `".DB_PRE."comment`.`status`=1 AND `".DB_PRE."comment`.`parentid`=0 ORDER BY `".DB_PRE."comment`.`support` DESC,`".DB_PRE."comment`.`id` DESC",4,0,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
        <li>
          <div class="rp-img"><a href="comment/index.php?contentid=<?php echo $r['contentid'];?>" target="_blank"><img src="<?php echo $r['userface'];?>" width="52" height="52"></a></div>
          <div class="rp-txt"><?php echo sub_string(strip_tags($r['content']),40,'...');?></div>
        </li>
        <?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
      </ul>
    </div>
  </div>
  <div class="clear"></div>
</div>
<?php include template('footer');?>
</body>
</html>