Happymeng | 快乐之梦
技术周刊订阅频道
发表主题 回复主题
级别: 论坛版主
发帖
227
云币
443

{webmeng:section loop=$recommend name=rs/}
<!-- .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>&gt;</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);
-------------------------------------------



您好!没有相关评论,请您浏览其它内容!
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 

验证问题: 搜寻云提供的什么服务? 正确答案:云服务器
上一个 下一个