<!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="topifo border">
    <h2><strong><?php echo $dir_catname;?>信息推荐</strong><span class="tf-lk fr"><a href="post/" class="blue">想出现在这里？</a></span></h2>
    <div class="rempt">
      <ul>
	  	<?php $dir_page="";$_DATA=call_user_func('get_tag_data','22,31,48,59,74,84,94',0,4,6,0,1,'updatetime','desc','',0,'all');foreach($_DATA as $no => $r)if(is_array($r)){?>
		<?php $no++;?>
        <li class="n<?php echo $no;?>">
          <i></i>
          <div class="tr-p"><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="56" height="48" alt="<?php echo $r['title'];?>"></a></div>
          <div class="tr-txt">
            <h3><strong><a  href="<?php echo $r['url'];?>" title="<?php echo $r['title'];?>" target="_blank" class="orange"><?php echo $r['title'];?></a></strong></h3>
            <p><?php if($r['description']) { ?><?php echo sub_string($r['description'],60,'...');?><?php }else{ ?><?php echo sub_string(strip_tags($r['content']),60,'...');?><?php }?></p>
          </div>
        </li>
        <?php }unset($_DATA); ?>
        <div class="clear"></div>
      </ul>
    </div>
  </div>
</div>
<div class="page-wrap mt6">
  <div class="width726 fl">
    <div class="cs-qty border">
      <div class="qt-t">
        <span class="csif-s">
          <form  id="searchtop" action="search/index.php" method="get" name="mysearchform2" target="_blank">
	  	  <input type="hidden" name="modelid" value="all" />
            <input name="k" type="text"  class="txt">
            <input type="submit" class="btn" value="搜索">
          </form>
        </span>
      </div>
      <div class="qua">
          <div class="sech-clas">
            <p><?php echo searchfields($catid,$modelid);?></p>
          </div>
      </div>
    </div>
    <div class="sort-list mt6">
      <h2><strong class="f14 fl"><?php echo $dir_catname;?></strong><span class="issue-l fr"><a href="post/" target="_blank">免费发布信息</a></span></h2>
      <div class="cate-mage">
        <ul>
		  <?php $dir_page="";$_DATA=call_user_func('get_list_tag_data',$catid,16,'updatetime','desc',1,$page,all);foreach($_DATA as $no => $r)if(is_array($r)){?>
          <li>
            <?php if($r['thumb']) { ?><div class="cm-p"><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="80" height="60"></a></div><?php }?>
            <div class="cm-tbox">
              <div class="cmcont-t"><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'],100);?></a></strong><span class="fl"><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> class="gray"><?php echo catname($r['catid']);?></a></span><span  class="c-sh"><em><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?> class="orange"><?php echo $r['username'];?></a></em><em><?php echo date('Y-m-d',$r['updatetime']);?></em></span></div>
              <div class="m-cont"><?php if($r['description']) { ?><?php echo sub_string($r['description'],220,'...');?><?php }else{ ?><?php echo sub_string(strip_tags($r['content']),220,'...');?><?php }?></div>
              <div class="mq-tip">联系人：<?php echo $r['lianxiren'];?> 联系电话：<?php echo $r['dianhua'];?></div>
            </div>
          </li>
          <?php } $dir_page=$_DATA['pagestring'];unset($_DATA); ?>
        </ul>
        <div class="pagination">
			<?php $_DATA=listpage($catid,5,$page);@extract($_DATA); ?>
            当前是 <strong><?php echo $page;?></strong> 页<?php echo $index;?> <?php echo $pre;?> <?php echo $pagelist;?> <?php echo $next;?> <?php echo $end;?> 共 <strong><?php echo $totalcount;?></strong> 条 <strong><?php echo $pageno;?></strong> 页
            <?php unset($_DATA); ?>
        </div>
      </div>
    </div>
  </div>
  <div class="width248 ml6 fr">
    <div class="L3-clas">
      <h2><strong><?php echo $dir_catname;?></strong><b class="corner-left"></b><b class="corner-right"></b></h2>
      <div class="L3list">
        <ul>
         <?php $_DATA=get_category_data(0,0,0,$catid,array (
  0 => 1,
),'self',100);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $r['url'];?>"<?php echo title_style($r['style']);?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
        </ul>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<?php include template('footer');?>
</body>
</html>