Webmeng分类导航标签,模板
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_support where sort_path like '%,".$catid.",%'");
$catListOR = array();
foreach ($catIdList as $catId) {
$catListOR[] = " catid = ". $catId['cat_id']." ";
}
// var_dump($catListOR);
$sql = "select * from ".WEBMENG_CONMENG."support 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_support 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_support 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."support a left join ".WEBMENG_CONMENG."category_support 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['support_recommend'] = $this->get_support_recommend();
$data['support_new'] = $this->get_support_new();
$data['news_new'] = $this->get_news_new();
$data['photo_new'] = $this->get_photo_new();
$data['news_hit'] = $this->get_news_hit();
$data['support_hit'] = $this->get_support_hit();
$data['photo_hit'] = $this->get_photo_hit();
$data['support_images'] = $support_images;
$this->display('cn/support/list.html',$data);
}
/////分类标签,模板
{webmeng:foreach from=$catNavigation item=v/}
>> <a href="/goods/list_{webmeng:$v.cat_id/}.html">{webmeng:$v.cat_name/}
</a>
{webmeng:/foreach/}
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:service@webmeng.net 进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。
以上信息是否解决您的问题?
相关问题
- 阿里云OSS云储存
- JS 早中晚 提示问候代码
- Webmeng X 2025 升级
- webmeng 循环 列出 数据
- PHP判断语句
- 这个工具,节省80%工作量不过分吧
- CodeIgnter 报错 The Encrypt library...
- WebmengWeb 2024 体验版下载
- liunx系统开启推送服务
- Webmeng2024内页升级大全-访问ID分类地区留言 | 推荐
- webmeng第5代升级
- Webmeng登录模块login
- phpstudy配置运行CI4框架
- CI4框架应用三 - app目录
- Webmeng404错误 模板路径
- PHP获取当前页面URL路径
- CI框架中的开启调试模式
- JS如何实现网站中PC端和手机端自动识别并跳转对应的代码
- JS---PC端和移动端的无缝切换
- pc端、手机端网页切换
- 关于smarty限制文字输出字数
- php smarty 限制显示字数,smarty现在显示字数的各种...
- nginx和apache的区别,选择哪个好?
- Webmeng系统在Nginx下载伪静态写法
- ci 地址去掉index.php,CI框架去掉index.php的方
- search-高级搜索
- Webmeng 2022 V13.0.1 下载地址
- wap手机网页html通过特殊链接:打电话,发短信,发邮件详细教程
- Webmeng分类导航标签,模板
- Webmeng模板路径
- Webmeng内页导航
- Webmeng三级分类
- Webmeng控制器统计实现
- PHP安装扩展mcrypt以及相关依赖项 【PHP安装PECL扩展...
- Webmeng配置字段调用
- 调用Webmeng统计数据
- PHP单页统计方法
- .PHP后缀去除方法
- WebmengSAAS 商品管理 - 新增商品
- Webmengshop 支付宝配置
餐厅介绍
自助餐厅
用户评论