首页提取代码
公告栏:
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""return quote_search();">
<input type="text" size="12" value="输入产品名" name="kw" id="quote_kw" class="quote_head_i""if(this.value=='输入产品名')this.value='';"/>
<input type="image" src=https://www.qiyeyunshang.com/skin/default/image/nopic.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"> {$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就行了
---------------------
作者:梓钰
来源:CSDN
原文:https://blog.csdn.net/zhan0623/article/details/75534439
版权声明:本文为博主原创文章,转载请附上博文链接!