首页 > 后端开发 > php教程 > destoon各类调用汇总_PHP

destoon各类调用汇总_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-01 11:51:37
原创
1139 人浏览过

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

1

2

{DT_PATH}

{DT_SKIN}

登录后复制

导入头脚:

1

2

{template 'header'}

{template 'footer'}

登录后复制

对应模块首页:

1

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

登录后复制

对应模块列表页:

1

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

登录后复制

发布某模块信息:

1

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

登录后复制

调用广告:

1

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

登录后复制

时间函数:

1

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

登录后复制

控制字符数:

1

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

登录后复制

版权信息:

1

{$DT[copyright]}

登录后复制

客服电话:

1

{$DT[telephone]}

登录后复制

ICP备案号:

1

{$DT[icpno]}

登录后复制

本月:

1

addtime>$today_endtime-30*86400

登录后复制

供应:

1

2

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

登录后复制

求购:

1

2

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

登录后复制

行情:

1

2

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

登录后复制

公司:

1

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

登录后复制

展会:

1

2

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

登录后复制

资讯:

1

2

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

登录后复制

招商:

1

2

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

登录后复制

品牌:

1

2

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

登录后复制

人才:

1

2

{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")}

登录后复制

知道:

1

2

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

登录后复制

专题:

1

2

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

登录后复制

图库:

1

2

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

登录后复制

视频:

1

2

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

登录后复制

下载:

1

2

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

登录后复制

论坛:

1

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

登录后复制

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

1

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

登录后复制

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

1

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

登录后复制

网站标题:

1

{$seo_title}

登录后复制

关键字:

1

{$head_keywords}

登录后复制

网页描述:

1

{$head_description}

登录后复制

会员升级:

1

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

登录后复制

收藏本页:

1

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

登录后复制

设为首页:

1

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

登录后复制

WAP浏览:

1

{extendurl('wap')}

登录后复制

RSS订阅:

1

{extendurl('feed')}

登录后复制

商务中心:

1

{$MODULE[2][linkurl]}

登录后复制

发布信息:

1

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

登录后复制

排名推广:

1

{extendurl('spread')}

登录后复制

网站地图:

1

{DT_PATH}sitemap/

登录后复制

友情链接:

1

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

登录后复制

申请友情链接:

1

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

登录后复制

调用友情链接:

1

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

登录后复制

网站留言:

1

{extendurl('guestbook')}

登录后复制

广告服务:

1

{extendurl('ad')}

登录后复制

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

1

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

登录后复制

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

地区:

1

{$AREA[1][areaname]}

登录后复制

投票:

1

{extendurl('vote')}

登录后复制

登录框模板:

1

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

登录后复制

公告栏:

1

{extendurl('announce')}

登录后复制

分类模板:

1

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

登录后复制

相关评论模板:

1

{template 'comment', 'chip'}

登录后复制

联系方式模板:

1

{template 'contact', 'chip'}

登录后复制

留言加盟:

1

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

登录后复制

读缓存:

1

2

{php $CATEGORY = cache_read('category-21.php');}

{$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}

登录后复制

1

<meta http-equiv="x-ua-compatible" content="ie=7"/>

登录后复制


调用栏目名

1

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

登录后复制

调用大分类中的所有

1

2

3

4

5

6

7

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

登录后复制


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

1

<img src="{str_replace('thumb', 'middle', $t[thumb])}"    style="max-width:90%" height="{$height}" alt="{$t[alt]}"/>

登录后复制
相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板