<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                > 提示,下面這段可忽略,有點舊了(僅供其它地方設置class做參考使用)。 大家先看下面的示范代碼 ~~~ {qb:tag name="qun_pcshow_topic001" class="app\qun\model\Topic@get_label" union="aid=id" where="ext_sys=0&ext_mid=0" rows="10" js="qun_pcshow_topic001"} <div class="list"> <div class="list_left" style="width:620px;"> <div class="title"><span style="color:orange;">{if ($rs.status>1)}精{elseif (time()-$rs.create_time<3600*24)}新{elseif ($rs.view>100)}熱{else /}{$rs.view}{/if}</span><a href="{$rs.url}" target="_blank">{$rs.title|get_word=70}</a></div> </div> <div class="list_right" style="width:150px;"> <div><a href="{:get_url('user',$rs.uid)}" target="_blank" class="orange fa fa-user-o"> {$rs.uid|get_user_name}</a></div> <div class="o"><span class="glyphicon glyphicon-eye-open"> {$rs.view}</span><span style="float:right;">{$rs.create_time|format_time="Y-m-d"}</span></div> </div> </div> {/qb:tag} ~~~ 關鍵點就是下面的,這里是通過class類的方式調整用專題內容,而不是type="xxx" 所以這里沒有type這個參數 ~~~ class="app\qun\model\Topic@get_label" ~~~ 另一項參數是 ~~~ union="aid=id" ~~~ 代表只調用當前圈子的專題. > 特別提醒,上面的教程可以棄用了。升級后,不需要這么復雜。重點參考下面的 > 只須要指定 `type="qun_topic"` 即可。不需要設置 `class` 及 `union` 參數 ``` {qb:hy name="qun_fxshop_topic001" type="qun_topic" rows="2"} {/qb:hy} ``` 其中下面這個參數,是形同虛設的,可以刪除,因為他并沒指定想調用哪個頻道及哪個模型.你可以設置具體的頻道或模型,就可以只調取那個頻道的對應模型的數據,而不是所有頻道都一起調用. ~~~ where="ext_sys=0&ext_mid=0" ~~~ 比如下面的指定是頻道及模型的話,就代表只調取CMS頻道的文章模型,圖片模型及其它模型都不需要顯示 ~~~ where="ext_sys=cms&ext_mid=1" ~~~ 也可以只有一個參數,代表只調用CMS頻道的所有模型的數據. ~~~ where="ext_sys=cms" ~~~ 但不建議下面的,因為不指定頻道,只設置某個模型的話,數據是混亂的.沒實際意義 ~~~ where="ext_mid=1" ~~~ 最后,還可以加多一個參數 `status="2"` 代表只顯示權重標志為2的內容 特別提醒: 要重復多處根據不同的條件調取數據的話,要把標簽名換一下 ` name="qun_pcshow_topic001"` 這個標簽名不能出現雷同 要根據專題的權重值顯示不同的圖標,可以用這個判斷, ~~~ {if $rs['topic']['status']==2}精華{/if} ~~~ 注意status參數他不是頻道內容的參數,頻道內容的參數是`{$rs.status}`或者`{$rs['status']}`
                  <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>

                              哎呀哎呀视频在线观看