标题
关键词
描述标签
描述标签
标题
关键词
描述标签
描述标签
标题
浏览量
关键词
描述标签
挑错(新建页面)
标题
关键词
描述标签
描述标签
[field:array runphp=yes]
global $cfg_basehost,$cfg_templets_skin;
@me = (stristr(@me['litpic'],'defaultpic') ? "" : "<div class='image_frame'><a href='{$cfg_basehost}{@me['arcurl']}'><img src='{$cfg_basehost}{$cfg_templets_skin}{@me['litpic']}'></a>时间:".MyDate('Y-m-d',@me['pubdate'])."</div>");
[/field:array]
<!-- 一级栏目 -->
{dede:channelartlist row=7 typeid=top currentstyle=current}
<li>
<a href="{dede:field.typeurl/}">{dede:field.typename/}</a>
<ul class="class2">
<!-- 二级栏目 -->
{dede:channel type=son noself=yes}
<li>
<a href="[field:typelink/]">[field:typename/]</a>
<ul class="class3">
<!-- 二级栏目下的文章+普通文章自定义字段body -->
[field:id runphp=yes]
global $dsql;
$sql = "SELECT arc.*,addf.* FROM `#@__archives` arc LEFT JOIN `#@__addonarticle` addf ON arc.id=addf.aid WHERE arc.arcrank>-1 AND arc.typeid=@me ORDER BY arc.id DESC limit 0,10";
$dsql->SetQuery($sql);
$dsql->Execute('t');
$result = '';
while($row = $dsql->GetArray('t'))
{
$arcrow = GetOneArchive($row['id']);
$row['arcurl'] = $arcrow['arcurl'];
$row['pubdate'] = MyDate('Y-m-d',$row['pubdate']);
$result .= "<li><span class=\"time\">时间:{$row['pubdate']}</span><a href=\"{$row['arcurl']}\">{$row['title']}<img src=\"{$row['litpic']}\"></a><span>文章内容:{$row['body']}</span></li>";
}
@me = $result;
[/field:id]
</ul>
</li>
{/dede:channel}
</ul>
</li>
{/dede:channelartlist}