==================================================================

destoon各栏目调用汇总

==================================================================

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

{DT_PATH}  = http://localhost/
{DT_SKIN}  = http://localhost/skin/default/

导入头脚:

{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"  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]}"/>

destoon各栏目调用汇总的更多相关文章

  1. DEDECMS标签调用汇总啊

    非常有用的标签调用的方法 关键描述调用标签: <meta name="keywords" content="{dede:field name='keywords'/ ...

  2. phpcms v9 下拉菜单 二级 三级子栏目调用方法

    很多网站的导航栏可以实现下拉二级菜单,三级菜单等效果,今天我们就来分享phpcms v9 支持下拉菜单的方法,可以支持无限子栏目调用,具体写法如下: <ul> {pc:content ac ...

  3. phpcms标签整理_当前栏目调用

    phpcms标签整理_当前栏目调用 转载 **//SQL语句调用: {pc:get sql="select * from phpcms_category where catid in($ca ...

  4. dede栏目调用大全

    A:侧边栏常用的当前栏目的父栏目调用(5.7) 1.在include/common.inc.php增加函数 function getTopCategoryName($cid=0) { global $ ...

  5. PHPCMS栏目调用2

    {php $j=1;}                {loop subcat(50) $v}                {php if($v['type']!=0) continue;}     ...

  6. DEDECMS之四 栏目调用

    一.内容页调用 {dede:type} <a href=" [field:typelink /] "> [field:typename/] </a> {/d ...

  7. phpcms v9指定栏目调用系列教程

    调用指定栏目名称: {$CATEGORYS[栏目ID]['catname']} 调用指定栏目url {$CATEGORYS[栏目ID]['url']} 调用指定栏目栏目图片 {$CATEGORYS[栏 ...

  8. dede导航栏目调用

    1.基础调用 {dede:channel row='5' type ='top' } <li><a href="[field:typelink/]">[fi ...

  9. phpcms栏目调用

    {loop subcat(0,0,0,$siteid) $r} {php $num++} <h3><a href="{$r[url]}">{$r[catna ...

随机推荐

  1. [转]Android sharedpreferences使用

    1.    SharedPerferences保存的数据主要是类似配置信息格式的数据,因此它保存的数据主要是简单类型的key-value对,SharedPreferences本身并没有写入数据的能力, ...

  2. jQuery知识盲点

    一.属性操作 元素的尺寸 width() height() innerWidth() innerHeight() outerWidth() outerHeight() $('div').width() ...

  3. 如何用Python在豆瓣中获取自己喜欢的TOP N电影信息

    一.什么是 Python Python (蟒蛇)是一门简单易学. 优雅健壮. 功能强大. 面向对象的解释型脚本语言.具有 20+ 年发展历史, 成熟稳定. 具有丰富和强大的类库支持日常应用. 1989 ...

  4. spring boot 之fastJson的使用(二)

    昨天说了springboot的简单入门程序.今天进一步深入.今天说一下,fastJson的使用.做过springmvc的都知道fastjson.其实boot自带json可是本人用惯了fastjson, ...

  5. PHP 微信分享页面(图文)

    首先确保你的公众号配置没有问题,详细请看: PHP 微信公众号-创建菜单-配置 1.获取签名包 这里需要你的appid 和 开发者密码 //获取签名包 public function getSignP ...

  6. Heroku登录失败

    Heoku 在国内,注册和登录是个大问题,不知道原来怎么注册上了,如今需要登录删除 app 就是删除不了.. 今天努力找了个vpn ,无奈还是登录不成功.https://id.heroku.com/l ...

  7. Java实现矩阵计算器【代码】

    其实这个程序最开始是大二下学期Java的一次平时作业,当时只要求产生几个随机矩阵并对这些矩阵进行计算. 所以当时没去实现现在这么丰富而且实用的功能.不过当时倒是挺想去做的,无奈有些不知道怎么去实现. ...

  8. Java工程读取resources中资源文件路径问题

    正常在Java工程中读取某路径下的文件时,可以采用绝对路径和相对路径,绝对路径没什么好说的,相对路径,即相对于当前类的路径.在本地工程和服务器中读取文件的方式有所不同,以下图配置文件为例. 本地读取资 ...

  9. css实现切角效果

    1. 一个切角 思路:如果我们要得到有一个切角的元素,我们只需要使用一个径向渐变就可以达到这个目标,这个渐变需要把一个透明色标放在切角处,然后再相同的位置设置另一个色标,并且把它的颜色设置成我们想要的 ...

  10. Hyperledger Fabric 1.0 从零开始(九)——Fabric多节点集群生产启动

    7:Fabric多节点集群生产启动 7.1.多节点服务器配置 在生产环境上,我们沿用4.1.配置说明中的服务器各节点配置方案. 我们申请了五台生产服务器,其中四台服务器运行peer节点,另外一台服务器 ...