destoon各类调用汇总


Posted in PHP onJune 20, 2014

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

{DT_PATH}
{DT_SKIN}

导入头脚:

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

对应模块首页:

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

对应模块列表页:

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

发布某模块信息:

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

调用广告:

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

时间函数:

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

控制字符数:

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

版权信息:

{$DT[copyright]}

客服电话:

{$DT[telephone]}

ICP备案号:

{$DT[icpno]}

本月:

addtime>$today_endtime-30*86400

供应:

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

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

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

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

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

网站标题:

{$seo_title}

关键字:

{$head_keywords}

网页描述:

{$head_description}

会员升级:

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

收藏本页:

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

设为首页:

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

WAP浏览:

{extendurl('wap')}

RSS订阅:

{extendurl('feed')}

商务中心:

{$MODULE[2][linkurl]}

发布信息:

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

排名推广:

{extendurl('spread')}

网站地图:

{DT_PATH}sitemap/

友情链接:

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

申请友情链接:

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

调用友情链接:

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

网站留言:

{extendurl('guestbook')}

广告服务:

{extendurl('ad')}

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

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

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

地区:

{$AREA[1][areaname]}

投票:

{extendurl('vote')}

登录框模板:

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

公告栏:

{extendurl('announce')}

分类模板:

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

相关评论模板:

{template 'comment', 'chip'}

联系方式模板:

{template 'contact', 'chip'}

留言加盟:

<iframe src="{$MOD[linkurl]}message.php?itemid={$itemid}" name="destoon_message" id="destoon_message" style="width:99%;height:0px;" 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"/>

调用栏目名

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

调用大分类中的所有

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

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

<img src="{str_replace('thumb', 'middle', $t[thumb])}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>
PHP 相关文章推荐
php面向对象全攻略 (十) final static const关键字的使用
Sep 30 PHP
PHP 循环列出目录内容的函数代码
May 26 PHP
PHP分多步骤填写发布信息的简单方法实例代码
Sep 23 PHP
php class中public,private,protected的区别以及实例分析
Jun 18 PHP
如何阻止网站被恶意反向代理访问(防网站镜像)
Mar 18 PHP
yii2.0实现验证用户名与邮箱功能
Dec 22 PHP
Symfony2使用第三方库Upload制作图片上传实例详解
Feb 04 PHP
如何用PHP做到页面注册审核
Mar 02 PHP
Yii2框架加载css和js文件的方法分析
May 25 PHP
yii框架结合charjs统计上一年与当前年数据的方法示例
Apr 04 PHP
PHP 实现 JSON 数据的编码和解码操作详解
Apr 22 PHP
PHP数组实际占用内存大小原理解析
Dec 11 PHP
destoon公司主页模板风格的添加方法
Jun 20 #PHP
destoon官方标签大全
Jun 20 #PHP
destoon二次开发入门示例
Jun 20 #PHP
ThinkPHP实现跨模块调用操作方法概述
Jun 20 #PHP
ThinkPHP之getField详解
Jun 20 #PHP
ThinkPHP之N方法实例详解
Jun 20 #PHP
ThinkPHP之R方法实例详解
Jun 20 #PHP
You might like
DC最新动画电影:《战争之子》为何内容偏激,毁了一个不错的漫画
2020/04/09 欧美动漫
PHP获取表单所有复选框的值的方法
2014/08/28 PHP
详解PHP归并排序的实现
2016/10/18 PHP
PHP后台备份MySQL数据库的源码实例
2019/03/18 PHP
JavaScript 异步调用框架 (Part 1 - 问题 &amp; 场景)
2009/08/03 Javascript
prototype 中文参数乱码解决方案
2009/11/09 Javascript
IE JS无提示关闭窗口不提示的方法
2010/04/29 Javascript
通过jQuery源码学习javascript(二)
2012/12/27 Javascript
jquery实现具有嵌套功能的选项卡
2016/02/12 Javascript
Node.js中JavaScript操作MySQL的常用方法整理
2016/03/01 Javascript
第一次接触神奇的Bootstrap表单
2016/07/27 Javascript
js 判断附件后缀的简单实现方法
2016/10/11 Javascript
谈谈JS中常遇到的浏览器兼容问题和解决方法
2016/12/17 Javascript
Bootstrap滚动监听组件scrollspy.js使用方法详解
2017/07/20 Javascript
JavaScript中利用Array filter() 方法压缩稀疏数组
2018/02/24 Javascript
vue keep-alive请求数据的方法示例
2018/05/16 Javascript
详解从Vue-router到html5的pushState
2018/07/21 Javascript
react中实现搜索结果中关键词高亮显示
2018/07/31 Javascript
Vue elementui字体图标显示问题解决方案
2020/08/18 Javascript
[01:11:08]Winstrike vs NB 2018国际邀请赛淘汰赛BO1 8.21
2018/08/22 DOTA
Python3处理HTTP请求的实例
2018/05/10 Python
Python常见MongoDB数据库操作实例总结
2018/07/24 Python
python将list转为matrix的方法
2018/12/12 Python
Python实现制度转换(货币,温度,长度)
2019/07/14 Python
Python Web版语音合成实例详解
2019/07/16 Python
Python列表切片常用操作实例解析
2020/03/10 Python
什么是python的id函数
2020/06/11 Python
Python3实现建造者模式的示例代码
2020/06/28 Python
Python pysnmp使用方法及代码实例
2020/08/24 Python
美国精油公司:Plant Therapy
2019/05/17 全球购物
护士实习自我鉴定
2013/10/22 职场文书
建筑总经理岗位职责
2014/02/02 职场文书
总经理助理职责
2014/02/04 职场文书
ktv总经理岗位职责
2014/02/17 职场文书
《春天来了》教学反思
2014/04/07 职场文书
Oracle设置DB、监听和EM开机启动的方法
2021/04/25 Oracle