地区 :[ 切换城市 ]       新闻 娱乐 企业 博客 视频 工具 网站建设 开发者 旅行 社区

手机生活网

Webmeng分类导航标签,模板

  • 2021-01-14 10:35:45 发布
  • 浏览:8816 次
  • 近一个月发布3条帖子
Webmeng分类导航标签,模板
市微信朋友圈广告开户,广告制作,广告投放。
9级金牌商家

超过98%同行

会员2年 营业执照认证
服务支持
先行赔付
35个月
加入生活网
347个
发布帖子
2000元
保障金
  • 人气 3.0 ↑
  • 活跃 3.0 ↑
  • 服务 3.9 -

温馨提示:1、在办理服务前请确认对方资质, 夸大的宣传和承诺不要轻信!2.任何要求预付定金、汇款至个人银行账户等方式均存在风险,谨防上当受骗!

设施服务

更多参数
是否上门
上门服务

服务描述



  public function _list($id)
  {
         preg_match("/^list\_(\d+).html$/i",$id,$url);
         $catid =  isset($url[1])?$url[1]:0;
       
$catIdList = $this->db->fetch("select cat_id from ".WEBMENG_CONMENG."category_inews where sort_path like '%,".$catid.",%'");
         
         $catListOR = array();
         foreach ($catIdList as $catId) {
           $catListOR[] = " catid = ". $catId['cat_id']." ";
         }
      //   var_dump($catListOR);
         $sql = "select * from ".WEBMENG_CONMENG."inews where status>'0'  and (".implode("or", $catListOR).") order by id desc";
      //   var_dump($sql);
         $result = page_for_db_extend($sql); 

         $data['info_reslut'] = $result['data'];
         $data['showpage'] = $result['page'];
     
       //  $sql = "select * from ".WEBMENG_CONMENG."goods where  lid='cn' and  catid='".$catid."' and  status>'0' ";
       //  $result = page_for_db_extend($sql); 
      //   $data['info_reslut'] = $result['data'];
      //   $data['showpage'] = $result['page'];

$sort_path = $this->db->fetch("select sort_path from ".WEBMENG_CONMENG."category_inews where cat_id = ".$catid,true);
        // var_dump($sort_path);
     //    var_dump(rtrim($sort_path['sort_path'],","));
         $catNavigationList = $this->db->fetch("select cat_id,cat_name from ".WEBMENG_CONMENG."category_inews where cat_id in (".rtrim($sort_path['sort_path'],",").")");
        // var_dump($catNavigation);
         $data['catNavigation'] = $catNavigationList;

// var_dump($sort_path);
// var_dump($catNavigationList);
// exit;

  $data['category_name'] = $this->db->fetch("select a.*,b.* from ".WEBMENG_CONMENG."inews a left join ".WEBMENG_CONMENG."category_inews b on a.catid=b.cat_id  where a.catid='".$catid."' ",true);
 
 
 
 
$data['info_comment'] = $this->get_info_comment();
$data['notice'] = $this->get_notice();   
$data['news_recommend'] = $this->get_news_recommend();
$data['inews_recommend'] = $this->get_inews_recommend();

$data['inews_new'] = $this->get_inews_new();
$data['news_new'] = $this->get_news_new(); 
$data['photo_new'] = $this->get_photo_new();   
$data['news_hit'] = $this->get_news_hit(); 
$data['inews_hit'] = $this->get_inews_hit();
$data['photo_hit'] = $this->get_photo_hit();
       $data['inews_images'] = $inews_images;
   
$this->display('cn/inews/list.html',$data); 

  }



/////分类标签,模板


<div class="con_dqwz">您的当前位置:<a href="/">首页</a> &gt;&gt; <a href="/goods/">产品中心</a>

{webmeng:foreach from=$catNavigation  item=v/}  
 
                                
  &gt;&gt; <a href="/goods/list_{webmeng:$v.cat_id/}.html">{webmeng:$v.cat_name/}
  </a>
                            
                         
{webmeng:/foreach/}



联系我时,请说是在 看到的,谢谢!


店铺信息

筛选
深圳
全部区域
© 2018 Baidu - GS(2016)2089号 - 甲测资字1100930 - 京ICP证030173号 - Data © 创梦科技

猜你喜欢

    您好!没有信息,请您浏览其它内容。

您可能感兴趣


  • 您好!没有信息,请您浏览其它内容。
其他人还浏览
    您好!没有信息,请您浏览其它内容。