[TOC]
## 显示内容:
~~~
{$title}
~~~
~~~
{$inputtime}
~~~
时间截取
~~~
{date('Y-m-d',strtotime($inputtime))}
~~~
~~~
{$content}
{$copyfrom}
{$thumb}
~~~
## 当前所属栏目:
~~~
{$CAT[catname]}
~~~
## 当前所属栏目URL:
~~~
{$CAT[url]}
~~~
## 获取多文件类型的上传的第一个文件地址:
~~~
{php eval("\$arr=" . $r[upload] . ";");echo $arr[0]['fileurl'];}
~~~
## 父栏目下的子栏目,含图片
~~~
{pc:content action="category" catid="$top_parentid" num="8" siteid="$siteid" order="listorder ASC"}
{loop $data $r}
<li {if $r[catid]==$catid} class="now"{/if}>
<div class="pic"><img src="{thumb($r[image])}" alt=""></div>
<a href="{$r[url]}" class="txt">{$r[catname]}</a>
</li>
{/loop}
{/pc}
~~~
## 父栏目名称与链接:
~~~
{$CATEGORYS[$CAT[parentid]][catname]}
{$CATEGORYS[$CAT[parentid]][url]}
~~~
## 获取上上级栏目名称与链接:
~~~
{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}
{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}
~~~
## 组图列表:
~~~
{loop $photos $r}
<li>
<a href="{$r[url]}">
<img src="{thumb($r[url], 75, 45, 0)}" alt="{$r[alt]}" />
</a>
</li>
{/loop}
~~~
## 浏览次数:
~~~
<span id="hits"></span>次
<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
~~~
## 显示上一页和下一页:
~~~
<p>
<strong>上一篇:</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a><br />
<strong>下一篇:</strong><a href="{$next_page[url]}">{$next_page[title]}</a>
</p>
~~~
## 文章内容分页:
~~~
<div id="pages">{$pages}</div>
~~~
## 加载评论:
~~~
{if $allow_comment && module_exists('comment')}
<iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
{/if}
~~~