💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 织梦标签大全 - 全局标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>global<span class="token2">.</span>cfg_basehost <span class="token">/</span><span class="token2">}</span> 主机网址 <span class="token2">{</span>dede<span class="token2">:</span>global<span class="token2">.</span>cfg_webname<span class="token">/</span><span class="token2">}</span> 网站名称 <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typename<span class="token">/</span><span class="token2">}</span> 栏目名称 <span class="token"><</span>title<span class="token">></span><span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typename<span class="token">/</span><span class="token2">}</span> _ <span class="token2">{</span>dede<span class="token2">:</span>global<span class="token2">.</span>cfg_webname<span class="token">/</span><span class="token2">}</span><span class="token"><</span><span class="token">/</span>title<span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"description"</span> content<span class="token">=</span><span class="token4">"{dede:global.cfg_description/}"</span> <span class="token">/</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"keywords"</span> content<span class="token">=</span><span class="token4">"{dede:global.cfg_keywords/}"</span> <span class="token">/</span><span class="token">></span> <span class="token"><</span>title<span class="token">></span> <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>title<span class="token">/</span><span class="token2">}</span> _ <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typename<span class="token">/</span><span class="token2">}</span> _ <span class="token2">{</span>dede<span class="token2">:</span>global<span class="token2">.</span>cfg_webname<span class="token">/</span><span class="token2">}</span><span class="token"><</span><span class="token">/</span>title<span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"description"</span> content<span class="token">=</span><span class="token4">"{dede:global.cfg_description/}"</span> <span class="token">/</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"keywords"</span> content<span class="token">=</span><span class="token4">"{dede:global.cfg_keywords/}"</span> <span class="token">/</span><span class="token">></span> $GLOBALS<span class="token2">[</span><span class="token4">'_sys_globals'</span><span class="token2">]</span><span class="token2">[</span><span class="token4">'curfile'</span><span class="token2">]</span><span class="token">=</span>partview<span class="token2">;</span>首页<span class="token">/</span>list列表页<span class="token">/</span>archives文章页 文章对象 $GLOBALS<span class="token2">[</span><span class="token4">'arc'</span><span class="token2">]</span><span class="token">-</span><span class="token">></span>Fields 分类 $GLOBALS<span class="token2">[</span><span class="token4">'_sys_globals'</span><span class="token2">]</span><span class="token2">[</span><span class="token4">'typename'</span><span class="token2">]</span> <span class="token2">[</span>field<span class="token2">:</span>global runphp<span class="token">=</span><span class="token4">'yes'</span> name<span class="token">=</span>autoindex<span class="token2">]</span>@me<span class="token">=</span>@me<span class="token">+</span><span class="token3">1</span><span class="token2">;</span><span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>global<span class="token2">]</span> <span class="token2">{</span>dede<span class="token2">:</span>include filename<span class="token">=</span><span class="token4">"head.htm"</span><span class="token">/</span><span class="token2">}</span>调用模板 ``` ``` - php标签,判断有图无图 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>tagname runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">}</span> @me <span class="token">=</span><span class="token1">dump</span><span class="token2">(</span><span class="token2">[</span><span class="token3">1</span><span class="token2">,</span><span class="token3">2</span><span class="token2">,</span><span class="token3">3</span><span class="token2">]</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>tagname<span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>litpic runphp<span class="token">=</span><span class="token4">"yes"</span><span class="token2">]</span>@me<span class="token">=</span><span class="token1">is_pic</span><span class="token2">(</span>@me<span class="token2">)</span><span class="token2">;</span><span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>litpic<span class="token2">]</span> ``` ``` - 栏目标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>channelartlist typeid<span class="token">=</span><span class="token4">'top'</span><span class="token2">}</span> <span class="token"><</span>li<span class="token">></span> <span class="token"><</span>a href<span class="token">=</span><span class="token4">"{dede:field name='typeurl'/}"</span><span class="token">></span> <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">'typename'</span><span class="token">/</span><span class="token2">}</span> <span class="token"><</span><span class="token">/</span>a<span class="token">></span> <span class="token2">{</span>dede<span class="token2">:</span>channel type<span class="token">=</span><span class="token4">'son'</span> noself<span class="token">=</span><span class="token4">'yes'</span> currentstyle<span class="token">=</span><span class="token4">'on'</span> <span class="token2">}</span> <span class="token"><</span>li class<span class="token">=</span><span class="token4">"{dede:field.currentstyle/}"</span><span class="token">></span><span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:typeurl/]"</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>typename<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span><span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channel<span class="token2">}</span> <span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channelartlist<span class="token2">}</span> 单独调用 <span class="token2">{</span>dede<span class="token2">:</span>channel type<span class="token">=</span><span class="token4">'top'</span> currentstyle<span class="token">=</span><span class="token4">"<li ><a class='on' href='~typelink~'>~typename~</a> </li>"</span><span class="token2">}</span> <span class="token"><</span>li<span class="token">></span><span class="token"><</span>a href<span class="token">=</span><span class="token4">'[field:typeurl/]'</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>typename<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span><span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channel<span class="token2">}</span> 调用<span class="token3">2</span> <span class="token2">{</span>dede<span class="token2">:</span>channelartlist typeid<span class="token">=</span><span class="token4">'top'</span> currentstyle<span class="token">=</span><span class="token4">'on'</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>global name<span class="token">=</span><span class="token4">'itemindex'</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>currentstyle<span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typeurl<span class="token">/</span><span class="token2">}</span><span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typename<span class="token">/</span><span class="token2">}</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channelartlist<span class="token2">}</span> ``` ``` - 某个栏目标签,可以为空,取当前栏目 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>type typeid<span class="token">=</span><span class="token3">1</span><span class="token2">}</span> <span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:typelink /]"</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>typename <span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>type<span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">"typename"</span><span class="token">/</span><span class="token2">}</span>当前栏目名称 <span class="token2">{</span>dede<span class="token2">:</span>channelartlist typeid<span class="token">=</span><span class="token4">"9,10,11"</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>type<span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>id<span class="token">/</span><span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>type<span class="token2">}</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channelartlist<span class="token2">}</span> ``` ``` - 友情链接标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>flink row<span class="token">=</span><span class="token4">'24'</span> type<span class="token">=</span><span class="token4">'image'</span> titlelen<span class="token">=</span><span class="token4">"24"</span> typeid<span class="token">=</span><span class="token4">"0"</span><span class="token2">}</span> <span class="token"><</span>li<span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>link <span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>flink<span class="token2">}</span> ``` ``` - 面包屑 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">'position'</span><span class="token">/</span><span class="token2">}</span> ``` ``` - 数据库读取标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>sql sql<span class="token">=</span><span class="token4">'Select * from #@__arctype where topid=2'</span><span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>arcpic<span class="token">/</span><span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>sql<span class="token2">}</span> ``` ``` - 万能调用标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>loop table<span class="token">=</span><span class="token4">'#@__arctype'</span> sort<span class="token">=</span><span class="token4">'sortrank'</span> row<span class="token">=</span><span class="token4">'4'</span> <span class="token5">if</span><span class="token">=</span><span class="token4">'1=1'</span> orderway<span class="token">=</span><span class="token4">'asc'</span><span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>typename<span class="token">/</span><span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>loop<span class="token2">}</span> ``` ``` - 文档列表,不能分页,listtype='all' 栏目类型 image含有缩略图 commend推荐 ``` <pre class="calibre14">``` 自定义字段需要添加addfields<span class="token">=</span><span class="token4">'filetyp'</span> channelid<span class="token">=</span><span class="token4">'3'</span> <span class="token2">{</span>dede<span class="token2">:</span>arclist row<span class="token">=</span><span class="token3">5</span> titlelen<span class="token">=</span><span class="token3">42</span> typeid<span class="token">=</span><span class="token3">9</span> flag<span class="token">=</span><span class="token4">'p'</span> orderby<span class="token">=</span><span class="token4">'pubdate'</span> orderway<span class="token">=</span><span class="token4">'desc'</span> <span class="token2">}</span> <span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:arcurl/]"</span><span class="token">></span><span class="token"><</span>img src<span class="token">=</span><span class="token4">"[field:litpic/]"</span> <span class="token">/</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>title <span class="token5">function</span><span class="token">=</span><span class="token4">'cn_substr(@me,80)'</span> <span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span> <span class="token2">[</span>field<span class="token2">:</span>infos <span class="token5">function</span><span class="token">=</span><span class="token4">'cn_substr(@me,80)'</span> <span class="token">/</span><span class="token2">]</span> 描述 时间 <span class="token2">[</span>field<span class="token2">:</span>pubdate <span class="token5">function</span><span class="token">=</span><span class="token4">"MyDate('Y-m-d H:i:s',@me)"</span><span class="token">/</span><span class="token2">]</span> K值 <span class="token2">[</span>field<span class="token2">:</span>global<span class="token2">.</span>autoindex<span class="token">/</span><span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>arclist<span class="token2">}</span> 随机文章 <span class="token2">{</span>dede<span class="token2">:</span>arclist row<span class="token">=</span><span class="token3">6</span>’ orderby<span class="token">=</span><span class="token4">'rand’ typeid='</span>all' <span class="token2">}</span> <span class="token"><</span>li<span class="token">></span><span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:arcurl/]"</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>title<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span><span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>arclist<span class="token2">}</span> 相关文章 <span class="token2">{</span>dede<span class="token2">:</span>likearticle row<span class="token">=</span><span class="token3">6</span><span class="token2">}</span> <span class="token"><</span>a href<span class="token">=</span><span class="token4">'[field:arcurl/]'</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>title<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>likearticle<span class="token2">}</span> ``` ``` - 热门标签 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>tag row<span class="token">=</span><span class="token4">'10'</span> getall<span class="token">=</span><span class="token4">'1'</span> sort<span class="token">=</span><span class="token4">'month'</span><span class="token2">}</span> <span class="token"><</span>li<span class="token">></span><span class="token"><</span>a href<span class="token">=</span><span class="token4">'[field:link/]'</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>tag <span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span><span class="token"><</span><span class="token">/</span>li<span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>tag<span class="token2">}</span> ``` ``` - 列表和分页调用 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>list col<span class="token">=</span><span class="token4">'3'</span> pagesize<span class="token">=</span><span class="token4">'6'</span> orderby<span class="token">=</span><span class="token4">"default"</span><span class="token2">}</span> <span class="token"><</span>img src<span class="token">=</span><span class="token4">"[field:litpic/]"</span> alt<span class="token">=</span><span class="token4">""</span><span class="token">/</span><span class="token">></span> <span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:arcurl/]"</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>title<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span> <span class="token2">[</span>field<span class="token2">:</span>description<span class="token">/</span><span class="token2">]</span> <span class="token2">[</span>field<span class="token2">:</span>pubdate <span class="token5">function</span><span class="token">=</span><span class="token4">"MyDate('Y-m-d H:i:s',@me)"</span><span class="token">/</span><span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>list<span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>pagelist listitem<span class="token">=</span><span class="token4">"pre,pageno,next"</span> listsize<span class="token">=</span><span class="token4">"6"</span><span class="token">/</span><span class="token2">}</span> ``` ``` - 内容页 ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>title<span class="token">/</span><span class="token2">}</span>_<span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>typename<span class="token">/</span><span class="token2">}</span>_<span class="token2">{</span>dede<span class="token2">:</span>global<span class="token2">.</span>cfg_webname<span class="token">/</span><span class="token2">}</span>标题<span class="token">-</span>栏目<span class="token">-</span>网站名称 文章标题 <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>title<span class="token">/</span><span class="token2">}</span> 缩略图 <span class="token"><</span>img src<span class="token">=</span><span class="token4">"{dede:field.litpic /}"</span><span class="token">></span> 作者 <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>writer<span class="token">/</span><span class="token2">}</span> 当前栏目和id名 <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">"typename"</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">"typeid"</span><span class="token">/</span><span class="token2">}</span> 栏目描述 <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>description<span class="token">/</span><span class="token2">}</span> 栏目链接 <span class="token2">{</span>dede<span class="token2">:</span>type row<span class="token">=</span><span class="token3">1</span><span class="token2">}</span><span class="token2">[</span>field<span class="token2">:</span>typelink <span class="token">/</span><span class="token2">]</span><span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>type<span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">'typename'</span> <span class="token5">function</span><span class="token">=</span><span class="token4">"GetTypeName(@me)"</span><span class="token">/</span><span class="token2">}</span> 函数法获取栏目名 发布时间 <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">"pubdate"</span> <span class="token5">function</span><span class="token">=</span><span class="token4">"MyDate('Y-m-d',@me)"</span><span class="token">/</span><span class="token2">}</span> 阅读数 <span class="token"><</span>script src<span class="token">=</span><span class="token4">"{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"</span>type<span class="token">=</span><span class="token4">'text/javascript'</span> language<span class="token">=</span><span class="token4">"javascript"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>script<span class="token">></span> 描述<span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>description<span class="token2">}</span> 内容 <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>body<span class="token">/</span><span class="token2">}</span> 上一篇下一篇 以及修文字 <span class="token2">{</span>dede<span class="token2">:</span>prenext get<span class="token">=</span><span class="token4">'pre'</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>prenext get<span class="token">=</span><span class="token4">'next'</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>prenext <span class="token5">function</span><span class="token">=</span><span class="token4">"str_replace('上一篇:','上一条:',@me)"</span> get<span class="token">=</span><span class="token4">'pre'</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>prenext <span class="token5">function</span><span class="token">=</span><span class="token4">"str_replace('下一篇:','下一条:',@me)"</span> get<span class="token">=</span><span class="token4">'next'</span><span class="token">/</span><span class="token2">}</span> 图集的上一页下一页 <span class="token2">{</span>dede<span class="token2">:</span>prenext get<span class="token">=</span><span class="token4">'preimg'</span><span class="token">/</span><span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>prenext get<span class="token">=</span><span class="token4">'nextimg'</span><span class="token">/</span><span class="token2">}</span> ``` ``` - 实现自定义表单验证码 ``` <pre class="calibre14">``` 验证函数 onsubmit<span class="token">=</span><span class="token4">"return check()"</span> <span class="token"><</span>img id<span class="token">=</span><span class="token4">"vdimgck1"</span> onClick<span class="token">=</span><span class="token4">"changeAuthCode();"</span> style<span class="token">=</span><span class="token4">"cursor: pointer;"</span>alt<span class="token">=</span><span class="token4">"看不清?点击更换"</span> src<span class="token">=</span><span class="token4">"/include/vdimgck.php"</span> title<span class="token">=</span><span class="token4">"看不清?点击更换"</span> <span class="token">/</span><span class="token">></span> <span class="token"><</span>script type<span class="token">=</span><span class="token4">"text/javascript"</span> language<span class="token">=</span><span class="token4">"javascript"</span><span class="token">></span> <span class="token5">function</span> <span class="token1">changeAuthCode</span><span class="token2">(</span><span class="token2">)</span> <span class="token2">{</span> var num <span class="token">=</span> <span class="token5">new</span> <span class="token1">Date</span><span class="token2">(</span><span class="token2">)</span><span class="token2">.</span><span class="token1">getTime</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span> var rand <span class="token">=</span> Math<span class="token2">.</span><span class="token1">round</span><span class="token2">(</span>Math<span class="token2">.</span><span class="token1">random</span><span class="token2">(</span><span class="token2">)</span> <span class="token">*</span> <span class="token3">10000</span><span class="token2">)</span><span class="token2">;</span> num <span class="token">=</span> num <span class="token">+</span> rand<span class="token2">;</span> $<span class="token2">(</span><span class="token4">'#ver_code'</span><span class="token2">)</span><span class="token2">.</span><span class="token1">css</span><span class="token2">(</span><span class="token4">'visibility'</span><span class="token2">,</span><span class="token4">'visible'</span><span class="token2">)</span><span class="token2">;</span> <span class="token5">if</span> <span class="token2">(</span>$<span class="token2">(</span><span class="token4">"#vdimgck1"</span><span class="token2">)</span><span class="token2">[</span><span class="token3">0</span><span class="token2">]</span><span class="token2">)</span> <span class="token2">{</span> $<span class="token2">(</span><span class="token4">"#vdimgck1"</span><span class="token2">)</span><span class="token2">[</span><span class="token3">0</span><span class="token2">]</span><span class="token2">.</span>src <span class="token">=</span> <span class="token4">"/include/vdimgck.php?tag="</span> <span class="token">+</span> num<span class="token2">;</span> <span class="token2">}</span> <span class="token5">return</span> <span class="token3">false</span><span class="token2">;</span> <span class="token2">}</span> <span class="token"><</span><span class="token">/</span>script<span class="token">></span> ``` ``` - 图集输出,有三种显示样式,在系统配置-附件里面, ``` <pre class="calibre14">``` <span class="token2">{</span>dede<span class="token2">:</span>productimagelist<span class="token2">}</span> <span class="token"><</span>img src<span class="token">=</span><span class="token4">"[field:imgsrc/]"</span> alt<span class="token">=</span><span class="token4">"[field:text/]"</span><span class="token">/</span><span class="token">></span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>productimagelist<span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>field name<span class="token">=</span><span class="token4">'imgurls'</span> alt<span class="token">=</span><span class="token4">'图片输出区'</span><span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>pagestyle runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">]</span> @me<span class="token">=</span> <span class="token2">(</span>@me<span class="token">==</span><span class="token3">1</span> <span class="token">?</span> <span class="token4">'<li>'</span> <span class="token2">:</span> <span class="token4">''</span><span class="token2">)</span><span class="token2">;</span><span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>pagestyle<span class="token2">]</span> <span class="token"><</span>img src<span class="token">=</span><span class="token4">'[field:imgsrc/]'</span> alt<span class="token">=</span><span class="token4">'[field:alttext /]'</span> <span class="token">/</span><span class="token">></span> <span class="token2">[</span>field<span class="token2">:</span>title <span class="token">/</span><span class="token2">]</span> <span class="token2">[</span>field<span class="token2">:</span>pagestyle runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">]</span> @me <span class="token">=</span> <span class="token2">(</span>@me<span class="token">==</span><span class="token3">1</span> <span class="token">?</span> <span class="token4">'</li>'</span> <span class="token2">:</span> <span class="token4">''</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>pagestyle<span class="token2">]</span> <span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>field<span class="token2">}</span> 分页自写 在arc<span class="token2">.</span>archives<span class="token2">.</span>class<span class="token2">.</span>php里面定义 pagestyle2 pagestyle3 表示幻灯片 和mn行列 <span class="token2">{</span>dede<span class="token2">:</span>imgbreak<span class="token">/</span><span class="token2">}</span> ``` ``` - 数组的输出,在数组输出中 ``` <pre class="calibre14">``` <span class="token2">[</span>field<span class="token2">:</span>array runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">]</span> <span class="token5">if</span><span class="token2">(</span>@me<span class="token2">[</span><span class="token4">'litpic'</span><span class="token2">]</span><span class="token">==</span><span class="token4">'/images/defaultpic.gif'</span><span class="token2">)</span><span class="token2">{</span> @me<span class="token">=</span> <span class="token1">get_imgs2</span><span class="token2">(</span>@me<span class="token2">[</span><span class="token4">'id'</span><span class="token2">]</span><span class="token2">,</span><span class="token3">1</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">}</span><span class="token5">else</span><span class="token2">{</span> @me<span class="token">=</span>@me<span class="token2">[</span><span class="token4">'litpic'</span><span class="token2">]</span><span class="token2">;</span> <span class="token2">}</span><span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>array<span class="token2">]</span> ``` ``` 栏目里判断 ``` <pre class="calibre16">``` <span class="token2">{</span>dede<span class="token2">:</span>field<span class="token2">.</span>array runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">}</span><span class="token5">if</span><span class="token2">(</span>@me<span class="token2">[</span>id<span class="token2">]</span><span class="token">==</span><span class="token3">3</span><span class="token2">)</span><span class="token2">{</span>$url <span class="token">=</span> @me<span class="token2">[</span><span class="token4">'typeurl'</span><span class="token2">]</span><span class="token2">;</span>@me<span class="token">=</span><span class="token4">"onclick=\"location.href='$url'\""</span><span class="token2">;</span><span class="token2">}</span><span class="token5">else</span><span class="token2">{</span>@me<span class="token">=</span><span class="token4">""</span><span class="token2">;</span><span class="token2">}</span><span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>field<span class="token2">.</span>array<span class="token2">}</span> <span class="token2">{</span>dede<span class="token2">:</span>global name<span class="token">=</span><span class="token4">'itemindex'</span> runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">}</span><span class="token5">if</span><span class="token2">(</span>@me<span class="token">==</span><span class="token3">2</span><span class="token2">)</span><span class="token2">{</span>@me<span class="token">=</span><span class="token4">"<br />"</span><span class="token2">;</span><span class="token2">}</span><span class="token5">else</span><span class="token2">{</span>@me<span class="token">=</span><span class="token4">' '</span><span class="token2">;</span><span class="token2">}</span><span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>global<span class="token2">}</span> <span class="token2">[</span>field<span class="token2">:</span>global name<span class="token">=</span><span class="token4">'autoindex'</span> runphp<span class="token">=</span><span class="token4">'yes'</span><span class="token2">]</span><span class="token5">if</span><span class="token2">(</span>@me<span class="token">==</span><span class="token3">2</span><span class="token2">)</span><span class="token2">{</span>@me<span class="token">=</span><span class="token4">"<br />"</span><span class="token2">;</span><span class="token2">}</span><span class="token5">else</span><span class="token2">{</span>@me<span class="token">=</span><span class="token4">' '</span><span class="token2">;</span><span class="token2">}</span><span class="token2">[</span><span class="token">/</span>field<span class="token2">:</span>global<span class="token2">]</span> 用于channel ``` ```