destoon各类调用汇总
这篇文章主要介绍了destoon的各类调用,需要的朋友可以参考下
根目录、模板目录和样式目录:
{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
收藏本页:
设为首页:
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'}
留言加盟:
读缓存:
{php $CATEGORY = cache_read('category-21.php');} {$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}
调用栏目名

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use Python to call Baidu Map API to implement geographical location query function? With the development of the Internet, the acquisition and utilization of geographical location information is becoming more and more important. Baidu Maps is a very common and practical map application that provides a wealth of geographical location query services. This article will introduce how to use Python to call Baidu Map API to implement the geographical location query function, and attach a code example. Apply for a Baidu Map developer account and application First, you need to have a Baidu Map developer account and create an application. Log in

Wedge We know that objects are created in two main ways, one is through Python/CAPI, and the other is by calling a type object. For instance objects of built-in types, both methods are supported. For example, lists can be created through [] or list(). The former is Python/CAPI and the latter is a calling type object. But for instance objects of custom classes, we can only create them by calling type objects. If an object can be called, then the object is callable, otherwise it is not callable. Determining whether an object is callable depends on whether a method is defined in its corresponding type object. like

PHP camera calling skills: How to switch between multiple cameras. Camera applications have become an important part of many web applications, such as video conferencing, real-time monitoring, etc. In PHP, we can use various technologies to call and operate the camera. This article will focus on how to implement multi-camera switching and provide some sample code to help readers better understand. Basics of camera calling In PHP, we can call the camera by calling the JavaScript API. Specifically, we

How to solve the problem of accessing and calling external resources in PHP development requires specific code examples. In PHP development, we often encounter situations where we need to access and call external resources, such as API interfaces, third-party libraries or other server resources. When dealing with these external resources, we need to consider how to access and call safely while ensuring performance and reliability. This article describes several common solutions and provides corresponding code examples. 1. Use the curl library to call external resources. Curl is a very powerful open source library.

How to call Baidu Map API through Python programming to implement map display function? With the rapid development of the Internet, map applications have become an indispensable part of our lives. As one of the largest map applications in China, Baidu Maps provides us with a wealth of services and API interfaces, which can easily realize the map display function. This article will introduce how to call Baidu Map API through Python programming to realize the map display function, and give corresponding code examples. First, we need to register a

Many friends still don’t know how to call m files in matlab, so the editor below explains how to call m files in matlab. If you are in need, please take a look. I believe it will be helpful to everyone. 1. First open the matlab software and click "Open" in the main interface, as shown in the figure below. 2. Then select an m file that needs to be opened and select Open, as shown in the figure below. 3. Then look at the file name and number of variables of the m file in the editor, as shown in the figure below. 4. You can enter the m file name followed by the variable value in brackets on the command line to call it, as shown in the figure below. 5. Finally, the m file can be successfully called, as shown in the figure below. The above is the complete description of how to call m files in matlab brought to you by the editor.

The method steps of using Java to call WebService require specific code examples. Web service is a Web-based application program interface that provides various functions through the network. In Java development, we often need to use Web services to interact with other systems. This article will introduce how to use Java to call WebService and provide specific code examples. 1. Understand WebService WebService is a standardized communication protocol using XML format

Laravel practice: How to call controller methods correctly? In the Laravel framework, the controller is an important component that serves as a bridge between routing and models. The methods in the controller are used to handle routing requests, pass the data to the model for processing, and then return it to the view for display to the user. Therefore, calling controller methods correctly is crucial to the realization of program functions. This article will introduce how to correctly call controller methods in Laravel and provide specific code examples.
