destoon中對類進(jìn)行調(diào)用的方法有哪些-創(chuàng)新互聯(lián)

這篇文章給大家介紹destoon中對類進(jìn)行調(diào)用的方法有哪些,內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

創(chuàng)新互聯(lián)成立于2013年,我們提供高端網(wǎng)站建設(shè)、成都網(wǎng)站制作網(wǎng)站設(shè)計、網(wǎng)站定制、全網(wǎng)營銷推廣、微信小程序開發(fā)、微信公眾號開發(fā)、營銷推廣服務(wù),提供專業(yè)營銷思路、內(nèi)容策劃、視覺設(shè)計、程序開發(fā)來完成項目落地,為發(fā)電機(jī)租賃企業(yè)提供源源不斷的流量和訂單咨詢。

根目錄、模板目錄和樣式目錄:

{DT_PATH}
{DT_SKIN}

導(dǎo)入頭腳:

{template 'header'}
{template 'footer'}

對應(yīng)模塊首頁:

{$MODULE[$moduleid][linkurl]} //注:$moduleid表示對應(yīng)模塊的ID號

對應(yīng)模塊列表頁:

{$MODULE[$moduleid][linkurl]}list.php?catid=$catid  //注:$catid表示調(diào)用的分類的ID號

發(fā)布某模塊信息:

{$MODULE[2][linkurl]}my.php?mid=$moduleid&action=add

調(diào)用廣告:

{ad(27)}  //注:27表示廣告位為27的廣告

時間函數(shù):

{date('Y-m-d',$t[addtime])} // 注:addtime是添加時間,可以換別的

控制字符數(shù):

{dsubstr($t[company],30)}  //注:company是公司名稱字段,可以換別的。30表示字符數(shù)為15個

版權(quán)信息:

{$DT[copyright]}

客服電話:

{$DT[telephone]}

ICP備案號:

{$DT[icpno]}

本月:

addtime>$today_endtime-30*86400

供應(yīng):

(level=1)
{php $tags = tag("moduleid=5&table=sell&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}

求購:

(level=1)
{php $tags = tag("moduleid=6&table=buy&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}

行情:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=7&table=quote&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

公司:


{php $tags = tag("moduleid=4&table=company&condition=groupid>5&pagesize=10&order=fromtime desc&template=null")}

展會:

(level=1)
{php $tags = tag("moduleid=8&table=exhibit&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

資訊:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=21&table=article_21&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

招商:

(level=1)
{php $tags = tag("moduleid=22&table=info_22&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

品牌:

(level=1)
{php $tags = tag("moduleid=13&table=brand&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

人才:


{php $tags = tag("moduleid=9&table=job&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}
{php $tags = tag("moduleid=9&table=resume&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}

知道:

(level=1)
{php $tags = tag("moduleid=10&table=know&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

專題:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=11&table=special&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

圖庫:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=12&table=photo&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

視頻:

(level=1)
{php $tags = tag("moduleid=14&table=video&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

下載:

(level=1)
{php $tags = tag("moduleid=15&table=down&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

論壇:


{php $tags=tag("table=discuz.cdb_threads&prefix=&condition=status=0 and fid=?&order=dateline desc&pagesize=10&target=_blank&template=null")}

調(diào)用模塊內(nèi)容,資訊模塊舉例:


{php $tagss = tag("moduleid=21&table=article_data_21&condition=itemid=".$t[itemid]."&template=null")}

調(diào)用分類,資訊模塊舉例:


{php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and parentid=?&pagesize=10&order=catid desc&template=null")}

網(wǎng)站標(biāo)題:

{$seo_title}

關(guān)鍵字:

{$head_keywords}

網(wǎng)頁描述:

{$head_description}

會員升級:

{$MODULE[2][linkurl]}grade.php

收藏本頁:

<script type="text/javascript">addFav('收藏本頁');</script>

設(shè)為首頁:

<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">設(shè)為首頁</a>

WAP瀏覽:

{extendurl('wap')}

RSS訂閱:

{extendurl('feed')}

商務(wù)中心:

{$MODULE[2][linkurl]}

發(fā)布信息:

{$MODULE[2][linkurl]}{$DT[file_my]}

排名推廣:

{extendurl('spread')}

網(wǎng)站地圖:

{DT_PATH}sitemap/

友情鏈接:

{extendurl('link')}index.php?typeid=1

申請友情鏈接:

{extendurl('link')}{rewrite('index.php?action=reg')}

調(diào)用友情鏈接:


{php $tags = tag("table=link&length=14&condition=status=3 and typeid=1&pagesize=40&order=addtime desc&template=null")}

網(wǎng)站留言:

{extendurl('guestbook')}

廣告服務(wù):

{extendurl('ad')}

版權(quán)隱私、使用協(xié)議、聯(lián)系方式、關(guān)于我們


{tag("table=webpage&condition=item=1&order=listorder desc,itemid desc&template=list-webpage")}

Copyright.html、agreement.html、contact.html、about.html

地區(qū):

{$AREA[1][areaname]}

投票:

{extendurl('vote')}

登錄框模板:

{if $DT[page_login]}{template 'user', 'chip'}{/if}

公告欄:

{extendurl('announce')}

分類模板:

{php $mid=5;}{template 'catalog' 'chip'}

相關(guān)評論模板:

{template 'comment', 'chip'}

聯(lián)系方式模板:

{template 'contact', 'chip'}

留言加盟:


<iframe src="{$MOD[linkurl]}message.php?itemid={$itemid}" name="destoon_message" id="destoon_message"  scrolling="no" frameborder="0"></iframe>

讀緩存:


{php $CATEGORY = cache_read('category-21.php');}
{$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}
<meta http-equiv="x-ua-compatible" content="ie=7"/>


調(diào)用欄目名


{php $tags = tag("moduleid=21&table=article_21&length=32 &condition=status=3 &pagesize=11&order=addtime desc&template=null")}    {loop $tags $t}    <li><span class="rq">{date('Y-m-d',$t[addtime])}</span><span class="catn"> {php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and catid=".$t[catid]."&template=null")}     {loop $tagss $tt}     【<a href="{$tt[linkurl]}" target="_blank">{dsubstr($tt[catname],12)}</a>】     {/loop} </span><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a></li>    {/loop}

調(diào)用大分類中的所有


{php $tags = tag("moduleid=26&table=category&condition=moduleid=26 and catid=137&template=null")}
   {loop $tags $t}
  {php $tagss = tag("moduleid=26&length=26&condition=status=3 and level=4 and catid IN(".$t[arrchildid].")&pagesize=4&order=addtime desc&template=null")}
   {loop $tagss $ts}
        <li>?<a href="{$ts[linkurl]}" target="_blank">{$ts[title]}</a></li>    
     {/loop}
  {/loop}


產(chǎn)品圖片怎么調(diào)用middle.jpg中大的圖?


<img src="{str_replace('thumb', 'middle', $t[thumb])}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>

關(guān)于destoon中對類進(jìn)行調(diào)用的方法有哪些就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

網(wǎng)站欄目:destoon中對類進(jìn)行調(diào)用的方法有哪些-創(chuàng)新互聯(lián)
文章分享:http://muchs.cn/article46/ejjeg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計品牌網(wǎng)站制作、域名注冊、手機(jī)網(wǎng)站建設(shè)Google、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營