public function details($id,$cid,$catid,$areaid)
{
$id= htmlspecialchars($this->input->get("id",true));
$cid= htmlspecialchars($this->input->get("cid",true));
$catid= htmlspecialchars($this->input->get("catid",true));
$areaid= htmlspecialchars($this->input->get("areaid",true));
----------------------------------------------
$sort_path = $this->db->fetch("select sort_path from ".WEBMENG_CONMENG."category_forum 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_forum 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."forum a left join ".WEBMENG_CONMENG."category_forum b on a.catid=b.cat_id where a.catid='".$catid."' ",true);
-------------------------------------------
<!-- .grid -->
<div class="hentry ht_grid_1_3">
<a class="thumbnail-link" href="/news/details?id={webmeng:$recommend[rs].detailid/}&cid={webmeng:$recommend[rs].id/}&catid={webmeng:$recommend[rs].catid/}&areaid={webmeng:$recommend[rs].areaid/}&lg=zh-CN" target="_blank" title='{webmeng:$recommend[rs].title/}'>
<div class="thumbnail-wrap">
<img src="{webmeng:$webmeng.file_static.values/}{webmeng:$recommend[rs].thumb/}" alt="{webmeng:$recommend[rs].title/}" title='{webmeng:$recommend[rs].title/}'>
</div><!-- .thumbnail-wrap -->
</a>
<h2 class="entry-title"><a href="/news/details?id={webmeng:$recommend[rs].detailid/}&cid={webmeng:$recommend[rs].id/}&catid={webmeng:$recommend[rs].catid/}&areaid={webmeng:$recommend[rs].areaid/}&lg=zh-CN" target="_blank" title='{webmeng:$recommend[rs].title/}'>{webmeng:$recommend[rs].title|truncate:30:"...":true/}</a></h2>
</div>
<!-- .grid -->
{webmeng:/section/}
-----------------------------------------------------------
<a href="/cn/forum/">论坛首页</a>
{webmeng:foreach from=$catNavigation item=v/}
<em>></em><a href="/cn/forum/category_{webmeng:$v.cat_id/}.html"> {webmeng:$v.cat_name/} </a>
{webmeng:/foreach/}
public function details($id,$cid,$catid,$areaid)
{
$id= htmlspecialchars($this->input->get("id",true));
$cid= htmlspecialchars($this->input->get("cid",true));
$catid= htmlspecialchars($this->input->get("catid",true));
$areaid= htmlspecialchars($this->input->get("areaid",true));
----------------------------------------------
$sort_path = $this->db->fetch("select sort_path from ".WEBMENG_CONMENG."category_forum 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_forum 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."forum a left join ".WEBMENG_CONMENG."category_forum b on a.catid=b.cat_id where a.catid='".$catid."' ",true);
-------------------------------------------