<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國際加速解決方案。 廣告
                [TOC] ## 調用指定欄目名稱: ~~~ {$CATEGORYS[欄目ID]['catname']} 調用指定欄目名稱 {$CATEGORYS[欄目ID]['letter']} 調用指定欄目拼音 {$CATEGORYS[欄目ID]['url']} 調用指定欄目url {$CATEGORYS[欄目ID]['image']} 調用指定欄目欄目圖片 {$CATEGORYS[欄目ID]['description']} 調用指定欄目欄目描述 ~~~ ## 一級欄目調用 ~~~ {pc:content action="category" catid="0" num="8" siteid="$siteid" order="listorder ASC"} {loop $data $r} <li> <a href="{$r[url]}" title="{$r[catname]}"> {$r[catname]} </a> </li> {/loop} {/pc} ~~~ ## 一級欄目+二級欄目 ~~~ <div class="xw navbox"> {pc:content action="category" catid="0" num="10" siteid="$siteid" order="listorder ASC"} <ul class="inbk"> <li class="nli"><h3><a href="{APP_PATH}" class="home">返回首頁</a></h3></li> {loop $data $r} <li class="nli"> <h3>{$r[catname]}</h3> <ul class="sub-nav cf"> {pc:content action="category" catid="$r[arrchildid]" num="10" siteid="$siteid" order="listorder ASC"} {loop $data $r} <li><a href="{$r[url]}">{$r[catname]}</a></li> {/loop} {/pc} </ul> </li> {/loop} </ul> {/pc} </div> ~~~ ## 當前欄目 ~~~ {if $catid==$r[catid]} class="current" something... {/if} ~~~ ## 在文章前顯示文章分類名 ~~~ {pc:content action="lists" catid="2" order="listorder DESC" num="14" } <?php $TYPE = getcache('type_content','commons');?> {loop $data $n $r} <li> {if $TYPE[$r[typeid]][name]} <span> [{$TYPE[$r[typeid]][name]}] </span> {/if} <a href="{$r['url']}" title="{$r['title']}" target="_blank"> {str_cut($r[title],33,'')} </a> </li> {/loop} {/pc} ~~~ ## 當前頁面的欄目圖片調用標簽 ~~~ {pc:content action="category" catid="$catid" siteid="$siteid" order="listorder ASC"} {loop $data $r} <img src="{thumb($r[image],90,0)}" width="90" height="60" alt="{$r[catname]}" /> {/loop} {/pc} ~~~ ## 下面是指定調用某個欄目的標簽 ~~~ {pc:content action="category" catid="這里填寫要調用的欄目ID" siteid="$siteid" order="listorder ASC"} {loop $data $r} <img src="{thumb($r[image],90,0)}" width="90" height="60" alt="{$r[catname]}" /> {/loop} {/pc} ~~~ ## 在list.html或者二級欄目中怎么調用出來父欄目 ~~~ {$CATEGORYS[$top_parentid][catname]} //頂級父欄目名稱 {$CATEGORYS[$CAT[parentid]][catname]} //父欄目名稱這個沒有測試過。 {$CATEGORYS[$top_parentid][XXX]} //頂級父欄目的相關字段值 ~~~ ~~~ {pc:content action="category" catid="$parentid" num="25" siteid="$siteid" order="listorder ASC"} //這里需要注意的是父欄目的id是$parentid <span>{$CATEGORYS[$top_parentid][catname]}</span> {loop $data $r} <a href="{$r[url]}">{$r[catname]}</a> {/loop} {/pc} ~~~ ## 內容頁show.html ~~~ {$CAT[catname]} //內容頁所在欄目的名稱 {$CATEGORYS[$top_parentid][catname]} //內容頁頂級欄目的名稱,和list.html一樣 {$CATEGORYS[$CAT[parentid]][catname]} //父欄目名稱。 ~~~ ~~~ {pc:content action="category" catid="$top_parentid" num="25" siteid="$siteid" order="listorder ASC"} {loop $data $r}//這里需要注意的是父欄目的id是$top_parentid <a href="{$r[url]}">{$r[catname]}</a> {/loop} /pc} ~~~ ## 文章的數據由標題、發布時間、閱讀數、評論數、縮略圖、摘要、文章關鍵詞標簽Tag組成 ~~~ {pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} {loop $data $r} {php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$r[id])); $views = $_r[views]; } {php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$catid.'-'.$r[id].'-'.$modelid));} <div class="cmsyouunit"> <h1><a href="{$r[url]}" target="_blank" title="{$r[title]}">{$r[title]}</a></h1> <h4>發表于<span class="ago">{date('Y-m-d H:i:s',$r[inputtime])}</span>|<span class="view_time">{if $views}{$views}次閱讀{else}哇,這是嶄新的文章!{/if}</span>|<span class="num_recom">{if $comment_total}{$comment_total}{else}0{/if}條評論</span></h4> <dl> <dt>{if $r[thumb]}<a href="{$r[url]}" target="_blank"><img src="{thumb($r[thumb],200,135)}" alt="{$r[title]}" /></a>{/if}</dt> <dd>{str_cut(strip_tags($r[description]), 398)}</dd> </dl> <div class="tag"> {php $keywords = explode(' ',$r[keywords]);} {loop $keywords $keyword} <a href="{APP_PATH}index.php?m=content&c=tag&catid={$catid}&tag={urlencode($keyword)}" target="_blank">{$keyword}</a> {/loop} </div> </div> {/loop} <div id="pages" class="text-c">{$pages}</div> {/pc} ~~~
                  <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>

                              哎呀哎呀视频在线观看