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中DOMDocument简单用法示例代码(XML创建、添加、删除、修改)
Dec 19 PHP
整理的一些实用WordPress后台MySQL操作命令
Jan 07 PHP
深入解析Session是否必须依赖Cookie
Aug 02 PHP
php实现批量下载百度云盘文件例子分享
Apr 10 PHP
php实现的RSS生成类实例
Apr 23 PHP
PHP设置images目录不充许http访问的方法
Nov 01 PHP
PHP获取当前执行php文件名的代码
Mar 02 PHP
PHP实现的简单AES加密解密算法实例
May 29 PHP
php使用curl下载指定大小的文件实例代码
Sep 30 PHP
PHP中递归的实现实例详解
Nov 14 PHP
PHP实现求连续子数组最大和问题2种解决方法
Dec 26 PHP
PHP微信发送推送消息乱码的解决方法
Feb 28 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
聊天室php&amp;mysql(三)
2006/10/09 PHP
PHP中的session安全吗?
2016/01/22 PHP
laravel实现查询最后执行的一条sql语句的方法
2019/10/09 PHP
小议Function.apply() 之一------(函数的劫持与对象的复制)
2006/11/30 Javascript
JSON.stringify 语法实例讲解
2012/03/14 Javascript
运算符&amp;&amp;的三个不同层次
2013/04/07 Javascript
jQuery异步上传文件插件ajaxFileUpload详细介绍
2015/05/19 Javascript
Jquery基础教程之DOM操作
2015/08/19 Javascript
javascript检测flash插件是否被禁用的方法
2016/01/14 Javascript
Node.js 条形码识别程序构建思路详解
2016/02/14 Javascript
jQuery多个版本和其他js库冲突的解决方法
2016/08/11 Javascript
vue mint-ui学习笔记之picker的使用
2017/10/11 Javascript
前后端常见的几种鉴权方式(小结)
2019/08/04 Javascript
vue实现在线学生录入系统
2020/05/30 Javascript
Python中如何获取类属性的列表
2016/12/26 Python
Python基于贪心算法解决背包问题示例
2017/11/27 Python
详解Django-auth-ldap 配置方法
2018/12/10 Python
python DataFrame 取差集实例
2019/01/30 Python
Python OOP类中的几种函数或方法总结
2019/02/22 Python
python如何使用jt400.jar包代码实例
2019/12/20 Python
通过 Python 和 OpenCV 实现目标数量监控
2020/01/05 Python
python写文件时覆盖原来的实例方法
2020/07/22 Python
Python脚本调试工具安装过程
2021/01/11 Python
英国领先的在线礼品店:Getting Personal
2019/09/24 全球购物
养成教育经验材料
2014/05/26 职场文书
建筑工地标语
2014/06/18 职场文书
2014年高中教师工作总结
2014/12/19 职场文书
2015年感恩父亲节活动策划方案
2015/05/05 职场文书
电影地道战观后感
2015/06/04 职场文书
毕业班工作总结
2015/08/10 职场文书
幼儿园大班教育随笔
2015/08/14 职场文书
2019入党申请书格式和范文
2019/06/25 职场文书
2019自荐信范文集锦!
2019/07/03 职场文书
如何用PHP websocket实现网页实时聊天
2021/05/26 PHP
奥特曼十大神器:奥特手镯在榜,第一是贝利亚的神器
2022/03/18 日漫
彩虹社八名人气艺人全新周边限时推出,性转女装男装一次拥有!
2022/04/01 日漫