1.列表页中有无图片的显示
<img src= [field:litpic runphp="yes"]
if(@me =="/plus/img/dfpic.gif") @me = "'' style='height: 0px; width: 0px;padding: 0px;border: none'";
[/field:litpic] alt="[field:title/]" width="65" height="65" class="two_tu"/>
2.判断分栏
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{dede:arclist row=10 titlelen=24 orderby=pubdate}
<td width="345" height="25" align="left"><img src="../images/yuedu/icon_li.gif" width="3" height="3" /> <a href="#" class="blue13">冯骥才称假日应该为节日服务</a> <span class="gray12">11/10</span> </td>
[field:global name='autoindex' runphp='yes']
if(@me%2==0) @me = "</tr><tr>";
else @me = "";
[/field:global]
{/dede:arclist}
</table>
3.相同标题,作者等分类
{dede:loop table='dede_archives' sort='id' row=1 if="title='内蒙古蒙牛乳业股份有限公司董事长牛根生'"}<br>
<a href="[field:arcurl/]">[field:description/]
([field:title/])</a> <br/>
{/dede:loop}
<img src= [field:litpic runphp="yes"]
if(@me =="/plus/img/dfpic.gif") @me = "'' style='height: 0px; width: 0px;padding: 0px;border: none'";
[/field:litpic] alt="[field:title/]" width="65" height="65" class="two_tu"/>
2.判断分栏
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{dede:arclist row=10 titlelen=24 orderby=pubdate}
<td width="345" height="25" align="left"><img src="../images/yuedu/icon_li.gif" width="3" height="3" /> <a href="#" class="blue13">冯骥才称假日应该为节日服务</a> <span class="gray12">11/10</span> </td>
[field:global name='autoindex' runphp='yes']
if(@me%2==0) @me = "</tr><tr>";
else @me = "";
[/field:global]
{/dede:arclist}
</table>
3.相同标题,作者等分类
{dede:loop table='dede_archives' sort='id' row=1 if="title='内蒙古蒙牛乳业股份有限公司董事长牛根生'"}<br>
<a href="[field:arcurl/]">[field:description/]
([field:title/])</a> <br/>
{/dede:loop}
1万+

被折叠的 条评论
为什么被折叠?



