Scripts 学盟
标题: [phpcms] 栏目页列表页输出来源 [打印本页]
作者: 莺子 时间: 2012-12-29 16:50:08 标题: [phpcms] 栏目页列表页输出来源
<div class="ztbkr">
<div class="ztbklist">
<?php
require_once CACHE_MODEL_PATH.'content_output.class.php';
$content_output = new content_output($r['modelid'],$catid,$CATEGORYS);
?>
{pc:content action="lists" catid="$catid" num="10" moreinfo="1" order="listorder DESC, inputtime DESC"}
{loop $data $r}
<?php $r['copyfrom'] = $content_output->copyfrom('copyfrom', $r['copyfrom']); ?>
<dl>
<h3><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></h3>
<dt><a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{if $r[thumb]}{$r[thumb]}{else}{thumb($r[thumb])}{/if}" width="110" height="85" alt="{$r[title]}" /></a></dt>
<dd class="dd1"><span>主题源于:{$r[copyfrom]}</span><span></span><span>发布时间:{date('Y.m.d',$r[inputtime])}</span></dd>
<dd class="dd2">{$r[description]}</dd>
<dd class="dd3"><a href="{$r[url]}" title="{$r[title]}" target="_blank">阅读全文</a></dd>
</dl>
{/loop}
{/pc}
</div>
<div id="pages" class="psge1 txtc">{$pages}</div>
欢迎光临 Scripts 学盟 (http://www.iscripts.org/) |
Powered by Discuz! X2 |