phpcms怎么直接显示内容页
1个回答
展开全部
phpcms直接显示内容页方法如下:
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"}
{loop $data $r}
<p><A href="{$r[url]}" title="{$r[title]}" >[标题]{$r[title]}+id:{$r[id]}</a>
</p>
<BR>
<span>
{pc:get sql="select * from v9_news_data where id=$r[id]" return="newdata"/}
{loop $newdata $r}
{$r[content]}
{/loop}
{/pc}
</span><BR>
<p class="tags" style="zoom:1">无</p>
{/loop}
{/pc}
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"}
{loop $data $r}
<p><A href="{$r[url]}" title="{$r[title]}" >[标题]{$r[title]}+id:{$r[id]}</a>
</p>
<BR>
<span>
{pc:get sql="select * from v9_news_data where id=$r[id]" return="newdata"/}
{loop $newdata $r}
{$r[content]}
{/loop}
{/pc}
</span><BR>
<p class="tags" style="zoom:1">无</p>
{/loop}
{/pc}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询