Home > Backend Development > PHP Tutorial > Summary of various destoon calls_PHP tutorial

Summary of various destoon calls_PHP tutorial

WBOY
Release: 2016-07-13 10:24:22
Original
971 people have browsed it

Root directory, template directory and style directory:

{DT_PATH}
{DT_SKIN}
Copy after login

Import header and foot:

{template 'header'}
{template 'footer'}
Copy after login

Corresponding module home page:

{$MODULE[$moduleid][linkurl]} //注:$moduleid表示对应模块的ID号
Copy after login

Corresponding module list page:

{$MODULE[$moduleid][linkurl]}list.php?catid=$catid  //注:$catid表示调用的分类的ID号
Copy after login

Publish module information:

{$MODULE[2][linkurl]}my.php?mid=$moduleid&action=add
Copy after login

Call ad:

{ad(27)}  //注:27表示广告位为27的广告
Copy after login

Time function:

{date('Y-m-d',$t[addtime])} // 注:addtime是添加时间,可以换别的
Copy after login

Control the number of characters:

{dsubstr($t[company],30)}  //注:company是公司名称字段,可以换别的。30表示字符数为15个
Copy after login

Copyright information:

{$DT[copyright]} 
Copy after login

Customer service phone number:

{$DT[telephone]}
Copy after login

ICP registration number:

{$DT[icpno]}
Copy after login

This month:

addtime>$today_endtime-30*86400
Copy after login

Supply:

(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")}
Copy after login

Want to buy:

(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")}
Copy after login

Quote:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=7&table=quote&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Company:

{php $tags = tag("moduleid=4&table=company&condition=groupid>5&pagesize=10&order=fromtime desc&template=null")}
Copy after login

Exhibition:

(level=1)
{php $tags = tag("moduleid=8&table=exhibit&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Information:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=21&table=article_21&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Investment:

(level=1)
{php $tags = tag("moduleid=22&table=info_22&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Brand:

(level=1)
{php $tags = tag("moduleid=13&table=brand&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Talent:

{php $tags = tag("moduleid=9&table=job&length=30&condition=status=3 and catid=&#63;&pagesize=10&order=addtime desc&template=null")}
{php $tags = tag("moduleid=9&table=resume&length=30&condition=status=3 and catid=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Know:

(level=1)
{php $tags = tag("moduleid=10&table=know&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Topic:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=11&table=special&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Gallery:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=12&table=photo&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Video:

(level=1)
{php $tags = tag("moduleid=14&table=video&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Download:

(level=1)
{php $tags = tag("moduleid=15&table=down&length=30&condition=status=3 and catid=&#63; and thumb<>'' and level=&#63;&pagesize=10&order=addtime desc&template=null")}
Copy after login

Forum:

{php $tags=tag("table=discuz.cdb_threads&prefix=&condition=status=0 and fid=&#63;&order=dateline desc&pagesize=10&target=_blank&template=null")}
Copy after login

Call module content, example of information module:

{php $tagss = tag("moduleid=21&table=article_data_21&condition=itemid=".$t[itemid]."&template=null")}
Copy after login

Call classification, information module example:

{php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and parentid=&#63;&pagesize=10&order=catid desc&template=null")}
Copy after login

Website title:

{$seo_title}
Copy after login

Keywords:

{$head_keywords}
Copy after login

Web page description:

{$head_description}
Copy after login

Member upgrade:

{$MODULE[2][linkurl]}grade.php
Copy after login

Bookmark this page:

<script type="text/javascript">addFav('收藏本页');</script>
Copy after login

Set as homepage:

<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">设为首页</a>
Copy after login

WAP browsing:

{extendurl('wap')}
Copy after login

RSS Subscription:

{extendurl('feed')}
Copy after login

Business Center:

{$MODULE[2][linkurl]}
Copy after login

Release information:

{$MODULE[2][linkurl]}{$DT[file_my]}
Copy after login

Ranking promotion:

{extendurl('spread')}
Copy after login

Site map:

{DT_PATH}sitemap/
Copy after login

Friendly links:

{extendurl('link')}index.php&#63;typeid=1
Copy after login

Apply for friendly link:

{extendurl('link')}{rewrite('index.php&#63;action=reg')}
Copy after login

Call friendly link:

{php $tags = tag("table=link&length=14&condition=status=3 and typeid=1&pagesize=40&order=addtime desc&template=null")}
Copy after login

Website message:

{extendurl('guestbook')}
Copy after login

Advertising Services:

{extendurl('ad')}
Copy after login

Copyright Privacy, Agreement of Use, Contact Information, About Us

{tag("table=webpage&condition=item=1&order=listorder desc,itemid desc&template=list-webpage")}
Copy after login

Copyright.html, agreement.html, contact.html, about.html

Region:

{$AREA[1][areaname]}
Copy after login

Vote:

{extendurl('vote')}
Copy after login

Login box template:

{if $DT[page_login]}{template 'user', 'chip'}{/if}
Copy after login

Bulletin Board:

{extendurl('announce')}
Copy after login

Category template:

{php $mid=5;}{template 'catalog' 'chip'}
Copy after login

Related comment template:

{template 'comment', 'chip'}
Copy after login

Contact template:

{template 'contact', 'chip'}
Copy after login

Leave a message to join:

<iframe src="{$MOD[linkurl]}message.php&#63;itemid={$itemid}" name="destoon_message" id="destoon_message" style="width:99%;height:0px;" scrolling="no" frameborder="0"></iframe>
Copy after login

Read cache:

{php $CATEGORY = cache_read('category-21.php');}
{$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}
Copy after login
<meta http-equiv="x-ua-compatible" content="ie=7"/>

Copy after login


Call column name

{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} 
Copy after login

Call all
in the big category

{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>&#8226;<a href="{$ts[linkurl]}" target="_blank">{$ts[title]}</a></li>    
     {/loop}
  {/loop}
Copy after login


How to call the large picture in middle.jpg for product pictures?

<img src="{str_replace('thumb', 'middle', $t[thumb])}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825488.htmlTechArticleRoot directory, template directory and style directory: {DT_PATH}{DT_SKIN} Import header and footer: {template 'header' }{template 'footer'} Corresponding module homepage: {$MODULE[$moduleid][linkurl]} //Note: $mo...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template