搜索

destoon各栏目调用汇总

2020-4-29 11:54| 发布者: happyxp| 查看: 8551| 评论: 0

摘要: destoon根目录、模板目录和样式目录:{DT_PATH}  = http://localhost/{DT_SKIN}  = http://localhost/skin/default/destoon导入头脚:{template 'header'}{template 'footer'}destoon对应模块首页:{$MODULE} // ...
destoon根目录、模板目录和样式目录:
{DT_PATH}  = http://localhost/
{DT_SKIN}  = http://localhost/skin/default/
destoon导入头脚:
{template 'header'}
{template 'footer'}
destoon对应模块首页:
{$MODULE[$moduleid][linkurl]} //注:$moduleid表示对应模块的ID号
destoon对应模块列表页:
{$MODULE[$moduleid][linkurl]}list.php?catid=$catid  //注:$catid表示调用的分类的ID号
destoon发布某模块信息:
{$MODULE[][linkurl]}my.php?mid=$moduleid&action=add
调用广告:
{ad(7)}  //注:7表示广告位为7的广告
时间函数:
{date('Y-m-d',$t[addtime])} // 注:addtime是添加时间,可以换别的
控制字符数:
{dsubstr($t[company],30)}  //注:company是公司名称字段,可以换别的。30表示字符数为5个
版权信息:
{$DT[copyright]}
客服电话:
{$DT[telephone]}
ICP备案号:
{$DT[icpno]}
本月:
addtime>$today_endtime-30*86400
供应:
(level=)
{php $tags = tag("moduleid=5&table=sell&length=30&condition=status=3 and catid=? and level=?&pagesize=0&order=addtime desc&template=null")}
求购:
(level=)
{php $tags = tag("moduleid=6&table=buy&length=30&condition=status=3 and catid=? and level=?&pagesize=0&order=addtime desc&template=null")}
行情:
(level=,,3,4,5)
{php $tags = tag("moduleid=7&table=quote&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
公司:
{php $tags = tag("moduleid=4&table=company&condition=groupid>5&pagesize=0&order=fromtime desc&template=null")}
展会:
(level=)
{php $tags = tag("moduleid=8&table=exhibit&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
资讯:
(level=,,3,4,5)
{php $tags = tag("moduleid=&table=article_&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
招商:
(level=)
{php $tags = tag("moduleid=&table=info_&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
品牌:
(level=)
{php $tags = tag("moduleid=3&table=brand&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
人才:
{php $tags = tag("moduleid=9&table=job&length=30&condition=status=3 and catid=?&pagesize=0&order=addtime desc&template=null")}
{php $tags = tag("moduleid=9&table=resume&length=30&condition=status=3 and catid=?&pagesize=0&order=addtime desc&template=null")}
知道:
(level=)
{php $tags = tag("moduleid=0&table=know&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
专题:
(level=,,3,4,5)
{php $tags = tag("moduleid=&table=special&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
图库:
(level=,,3,4,5)
{php $tags = tag("moduleid=&table=photo&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
视频:
(level=)
{php $tags = tag("moduleid=4&table=video&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
下载:
(level=)
{php $tags = tag("moduleid=5&table=down&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=0&order=addtime desc&template=null")}
论坛:
{php $tags=tag("table=discuz.cdb_threads&prefix=&condition=status=0 and fid=?&order=dateline desc&pagesize=0&target=_blank&template=null")}
调用模块内容,资讯模块举例:
{php $tagss = tag("moduleid=&table=article_data_&condition=itemid=".$t[itemid]."&template=null")}
调用分类,资讯模块举例:
{php $tagss = tag("moduleid=&table=category&condition=moduleid= and parentid=?&pagesize=0&order=catid desc&template=null")}
网站标题:
{$seo_title}
关键字:
{$head_keywords}
网页描述:
{$head_description}
会员升级:
{$MODULE[][linkurl]}grade.php
收藏本页:
<script type="text/javascript">addFav('收藏本页');</script>
设为首页:
<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.xp6.org');">设为首页</a>
WAP浏览:
{extendurl('wap')}
RSS订阅:
{extendurl('feed')}
商务中心:
{$MODULE[][linkurl]}
发布信息:
{$MODULE[][linkurl]}{$DT[file_my]}
排名推广:
{extendurl('spread')}
网站地图:
{DT_PATH}sitemap/
友情链接:
{extendurl('link')}index.php?typeid=
申请友情链接:
{extendurl('link')}{rewrite('index.php?action=reg')}
调用友情链接:
{php $tags = tag("table=link&length=4&condition=status=3 and typeid=&pagesize=40&order=addtime desc&template=null")}
网站留言:
{extendurl('guestbook')}
广告服务:
{extendurl('ad')}
版权隐私、使用协议、联系方式、关于我们
{tag("table=webpage&condition=item=&order=listorder desc,itemid desc&template=list-webpage")}
Copyright.html、agreement.html、contact.html、about.html
地区:
{$AREA[][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="<strong>destoon</strong>_message" id="<strong>destoon</strong>_message"  scrolling="no" frameborder="0"></iframe>
读缓存:
{php $CATEGORY = cache_read('category-.php');}
{$MODULE[][linkurl]}{$CATEGORY[5][linkurl]}
<meta http-equiv="x-ua-compatible" content="ie=7"/>
调用栏目名
{php $tags = tag("moduleid=&table=article_&length=3 &condition=status=3 &pagesize=&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=&table=category&condition=moduleid= and catid=".$t[catid]."&template=null")}     {loop $tagss $tt}     【<a href="{$tt[linkurl]}" target="_blank">{dsubstr($tt[catname],)}</a>】     {/loop} </span><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a></li>    {/loop} 
调用大分类中的所有
{php $tags = tag("moduleid=6&table=category&condition=moduleid=6 and catid=37&template=null")}
   {loop $tags $t}
  {php $tagss = tag("moduleid=6&length=6&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各栏目调用汇总
destoon各栏目调用汇总
destoon根目录、模板目录和样式目录:{DT_PATH}  = http://localhost/{DT_SKIN}  = http://localhost/skin/default/destoon导入头脚:{template 'header'}{template 'footer'}destoon对应模块首页:{$
destoon6.0开发修改之付费VIP会员才开通二级域名
destoon6.0开发修改之付费VIP会员才开通二级域名
1、打开includeglobal.func.php文件 搜索:if($subdomain || $domain) {修改为:$HY = userinfo($username);//S addif($subdomain $HY || $domain) {//S eidt2、打开modulecompanyindex.inc.p
destoon企业会员绑定三级域名、二级域名的方法。
destoon企业会员绑定三级域名、二级域名的方法。
使用destoon的过程中,会给企业会员的公司主页绑定二级域名方便用户保存网址,但是有的时候很多二级域名我们需要自己保留使用,比如新闻中心news.xp37.com等而不想使用二级域名,那么我们可以使用三级域名
destoon后台登录提示未被允许的地区
destoon后台登录提示未被允许的地区
工作中使用destoon二次开发B2B平台,今天在登录destoon后台的时候,突然出现报错,报错提示为”未被允许的地区“。因为前面在后台设置中为了防止后台被破解设置了允许登录后台地区,可能是因为我们这边的I
解决Destoon7.0 远程图片无法下载到本地保存失败
解决Destoon7.0 远程图片无法下载到本地保存失败
Destoon中可以保存下载远程图片,非常实用的一个功能,可以把图片下载保存到本地,避免站外图片链接失效果对网站访问体验的影响。但常常会发现,你更换了服务器或者主机后,保存远程图片虽然开启了设置,
Destoon致命bug导致缓存失效修复方法
Destoon致命bug导致缓存失效修复方法
最近发现最新版本的destoon 2017 11月最新版本,的Mysqli的缓存配置文件一个小错误,导致文件缓存失效,系统非常缓慢。可能是destoon官方不希望免费版效果太好导致的。修复办法:打开include下的mysqldb.c
destoon模块开发流程,如何添加一个新的模块
destoon模块开发流程,如何添加一个新的模块
一、复制模块首先根据需要制作的模块功能,从系统已有模块里选择一个功能类似的模块,在此模块基础上进行修改开发例如,复制求购模块为采购,模块为offer复制 module/buy/ 为 module/offer 修改 module/of
destoon中如何调用产品级别level为指定1.2
destoon中如何调用产品级别level为指定1.2
destoon经常会调用产品级别对应级别level的信息,比如有的产品,你在1位置首页图片大图调用了,在2推荐的位置位置又想调用,1的位置显示的内容2里面必须有,2里面有的内容1里面不一定有。正常级别的话,设
destoon修改默认模板名称没反应解决方法
destoon修改默认模板名称没反应解决方法
destoon建立一个新模板的时候习惯为它命名一个新的中文名称方便查找,今天发现不能保存中文名称了。原因:模板文件中每个文件里面都有一个these.name.php文件,对应记录相关模块的自命名名称,如果文件权
Destoon5.0性能优化之公司列表慢的解决办法
Destoon5.0性能优化之公司列表慢的解决办法
由于更多的功能和更快的性能,中国产品网升级到了最新版的Destoon5.0,但是发现Company公司黄页模块速度非常慢,我们经过检查,发现程序是采用的Like查询分类ID,而MYSQL的普通索引对LIKE查询无效,造成公

虾皮社区,成立十年了!

站长自己也搞不懂想做个什么,反正就是一直在努力的做!

Copyright © 2007-2024 xp6.org Powered by Discuz

QQ|Archiver|手机版|小黑屋|虾皮社区 |网站地图
返回顶部