Home > Backend Development > PHP Tutorial > destoon各类调用汇总_PHP

destoon各类调用汇总_PHP

WBOY
Release: 2016-06-01 11:51:37
Original
1101 people have browsed it

根目录、模板目录和样式目录:

{DT_PATH}
{DT_SKIN}
Copy after login

导入头脚:

{template 'header'}
{template 'footer'}
Copy after login

对应模块首页:

{$MODULE[$moduleid][linkurl]} //注:$moduleid表示对应模块的ID号
Copy after login

对应模块列表页:

{$MODULE[$moduleid][linkurl]}list.php?catid=$catid  //注:$catid表示调用的分类的ID号
Copy after login

发布某模块信息:

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

调用广告:

{ad(27)}  //注:27表示广告位为27的广告
Copy after login

时间函数:

{date('Y-m-d',$t[addtime])} // 注:addtime是添加时间,可以换别的
Copy after login

控制字符数:

{dsubstr($t[company],30)}  //注:company是公司名称字段,可以换别的。30表示字符数为15个
Copy after login

版权信息:

{$DT[copyright]} 
Copy after login

客服电话:

{$DT[telephone]}
Copy after login

ICP备案号:

{$DT[icpno]}
Copy after login

本月:

addtime>$today_endtime-30*86400
Copy after login

供应:

(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")}
Copy after login

求购:

(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")}
Copy after login

行情:

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

公司:

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

展会:

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

资讯:

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

招商:

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

品牌:

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

人才:

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

知道:

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

专题:

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

图库:

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

视频:

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

下载:

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

论坛:

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

调用模块内容,资讯模块举例:

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

调用分类,资讯模块举例:

{php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and parentid=&#63;&pagesize=10&order=catid desc&template=null")}
Copy after login

网站标题:

{$seo_title}
Copy after login

关键字:

{$head_keywords}
Copy after login

网页描述:

{$head_description}
Copy after login

会员升级:

{$MODULE[2][linkurl]}grade.php
Copy after login

收藏本页:

<script type="text/javascript">addFav('收藏本页');</script>
Copy after login

设为首页:

<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">设为首页</a>
Copy after login

WAP浏览:

{extendurl('wap')}
Copy after login

RSS订阅:

{extendurl('feed')}
Copy after login

商务中心:

{$MODULE[2][linkurl]}
Copy after login

发布信息:

{$MODULE[2][linkurl]}{$DT[file_my]}
Copy after login

排名推广:

{extendurl('spread')}
Copy after login

网站地图:

{DT_PATH}sitemap/
Copy after login

友情链接:

{extendurl('link')}index.php&#63;typeid=1
Copy after login

申请友情链接:

{extendurl('link')}{rewrite('index.php&#63;action=reg')}
Copy after login

调用友情链接:

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

网站留言:

{extendurl('guestbook')}
Copy after login

广告服务:

{extendurl('ad')}
Copy after login

版权隐私、使用协议、联系方式、关于我们

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

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

地区:

{$AREA[1][areaname]}
Copy after login

投票:

{extendurl('vote')}
Copy after login

登录框模板:

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

公告栏:

{extendurl('announce')}
Copy after login

分类模板:

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

相关评论模板:

{template 'comment', 'chip'}
Copy after login

联系方式模板:

{template 'contact', 'chip'}
Copy after login

留言加盟:

<iframe src="{$MOD[linkurl]}message.php&#63;itemid={$itemid}" name="destoon_message" id="destoon_message" style="width:99%;height:0px;" scrolling="no" frameborder="0"></iframe>
Copy after login

读缓存:

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

Copy after login


调用栏目名

{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} 
Copy after login

调用大分类中的所有

{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>&#8226;<a href="{$ts[linkurl]}" target="_blank">{$ts[title]}</a></li>    
     {/loop}
  {/loop}
Copy after login


产品图片怎么调用middle.jpg中大的图?

<img src="{str_replace('thumb', 'middle', $t[thumb])}"    style="max-width:90%" height="{$height}" alt="{$t[alt]}"/>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template