<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #sp_sql_posts_paged_bycatid() > X1.2新增 ```php sp_sql_posts_paged_bycatid($cid,$tag,$pagesize,$pagetpl) ``` 功能: 根據分類文章分類ID 獲取該分類下所有文章(包含子分類中文章),已經分頁,調用方式同sp_sql_posts_paged 參數: `$cid`:分類id `$tag`:查詢標簽,以字符串方式傳入,例:"field:post_title,post_content;limit:0,8;order:post_date desc,listorder desc;where:id>0;" ``` field:調用post指定字段,如(id,post_title...) 默認全部 limit:數據條數,默認值為10,可以指定從第幾條開始,如3,8(表示共調用8條,從第3條開始) order:排序方式,如:post_date desc where:查詢條件,字符串形式,和sql語句一樣 $pagesize:每頁顯示文章數 $pagetpl:分頁模板,例:"{first}{prev}{liststart}{list}{listend}{next}{last}" ``` 返回: 類型數組,符合條件的文章列表,及分頁html ```php array( 'content'=>'',//符合條件的文章列表 'page'=>''//分頁html ) ``` 模板使用方法: ```html <div class="main-title"> <php> $result=sp_sql_posts_paged_bycatid($cat_id,"",20); </php> </div> <volist name="result['posts']" id="vo"> <php> $smeta=json_decode($vo['smeta'], true); </php> <div class="list-boxes"> <h2><a href="{:leuu('article/index',array('id'=>$vo['tid']))}">{$vo.post_title}</a></h2> <p>{$vo.post_excerpt}</p> <div> <div class="pull-left"> <div class="list-actions"> <a href="javascript:;"><i class="fa fa-eye"></i><span>{$vo.post_hits}</span></a> <a href="{:U('article/do_like',array('id'=>$vo['object_id']))}" class="J_count_btn"><i class="fa fa-thumbs-up"></i><span class="count">{$vo.post_like}</span></a> <a href="{:U('user/favorite/do_favorite',array('id'=>$vo['object_id']))}" class="J_favorite_btn" data-title="{$vo.post_title}" data-url="{:U('portal/article/index',array('id'=>$vo['tid']))}" data-key="{:sp_get_favorite_key('posts',$vo['object_id'])}"> <i class="fa fa-star-o"></i> </a> </div> </div> <a class="btn btn-warning pull-right" href="{:leuu('article/index',array('id'=>$vo['tid']))}">查看更多</a> </div> </div> </volist> <div class="pagination"> <ul> {$result['page']} </ul> </div> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看