Webmeng $recommend 系统模板内容循环代码

time:01-24  人气:4829       返回分类   返回首页 
{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);
-------------------------------------------



------------ 官方公告与活动通知 ------------
  
  • 那PHP的现状究竟如何?
  • Webmeng Video 202...
  • 关于 Webmeng.net 数据...
  • WebmengX 2025 多语言...
  • 域名强化实名制管理通知
  • 责任编辑:


    查看原文      
    最新评论   点击评论  
    您好!没有相关评论,请 点击评论

    注册         登录
           

    ------------ 搜寻搜索提供的广告| Soufind Ads ------------
    ------------ 搜寻搜索提供的广告| Soufind Ads ------------
    返回新闻中心