destoon新手二次开发标签调用

首页提取代码 
公告栏:
Js调用代码   
<script type="text/javascript">
var announcetitle = new Array();  
var announcehref = new Array();  
{if $tags}  
{loop $tags $i $t}  
announcetitle[{$i}] = '[{timetodate($t['addtime'], 2)}]{str_replace("'", "\'", $t[title])}'; 
announcehref[{$i}] = '{$t[linkurl]}'; 
{/loop} {else}  
announcetitle[0] = '暂无公告'; 
announcehref[0] = DTPath; 
{/if}  
showannounce(); 
</script>   
网页调用代码  
<div class="announce"><a href="/destoon/announce/"><strong>公告栏:</strong></a> <a target="_blank" id="printAnnounce" href="http://127.0.0.1/destoon/">暂无公告</a></div>


行情速递:({if $DT[page_price]} {/if} )
网页调用代码
<td width="240" valign="top">    
{if $DT[page_price]}    
<div class="quote_head">    
<span class="f_r">    
<form action="{$MODULE[7][linkurl]}price.php" οnsubmit="return  quote_search();"> 
<input type="text" size="12" value="输入产品名" name="kw" id="quote_kw" class="quote_head_i" οnclick="if(this.value=='输入产品名')this.value='';"/> 
<input type="image" src="{DT_SKIN}image/btn_quote.gif" align="absmiddle"/>    
</form>    
</span>    
<div>
<a href="{$MODULE[7][linkurl]}{rewrite('price.php?product=all')}" class="w"><strong>行情速递</strong></a></div>
</div>    
<div class="quote_body">     
<div id="quote_0" style="height:140px;overflow:hidden;">     
<div id="quote_1">     
<!--{php $tags=tag("moduleid=5&table=sell&condition=tag<>'' and unit<>'' and price>0 and status=3&pagesize=".$DT['page_price']."&order=edittime desc&template=null");}-->     
<ul>     
{loop $tags $k $t}     
<li><span class="f_r">&nbsp;{$t[price]} {$DT[money_unit]} / {$t[unit]}</span><a href="{$t[linkurl]}" target="_blank" title="[{area_pos($t[areaid], '', 2)}] {$t[alt]}">{$t[tag]}</a></li>     
{/loop}     
</ul>     
</div>     
</div>    
</div>    
{/if}   
</td> 


企业新闻:{if $DT[page_comnews]}{/if}  
网页代码  
<!--{tag("table=news&condition=status=3  and  level>0&pagesize=".$DT[page_comnews]."&datetype=2&order=addtime desc&target=_blank")}--> 


友情链接:{if $DT[page_logo] || $DT[page_text]}  
网页代码  
{if $DT[page_logo]}  
<!--{tag("table=link&condition=status=3 and level>0 and  thumb<>'' and  username=''&pagesize=".$DT['page_logo']."&order=listorder desc,itemid  desc&template=list-link&cols=9")}-->  
{/if}  
{if $DT[page_text]}  
<!--{tag("table=link&condition=status=3 and level>0 and  thumb='' and  username=''&pagesize=".$DT['page_text']."&order=listorder desc,itemid  desc&template=list-link&cols=9")}-->  

{/if}

$DT[page_rank]       //对于全站都有效,打开后台网站设置 ---》页面细节   里边的首页***显示数量都是通过这个参数调取,调取是只需改变moduleid就行了





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值