楼主,这一段理解不了,给个图文教程吧,谢谢:在列表模板中调用方法: [e:loop={"select * from phome_ecms_house where top=1 and checked=1 and classid='$GLOBALS[navclassid]' limit 3",3,24,0}] <tr onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#F1F5FC'"> <td><?=$bqr[myarea]?></td> <td class="tx"><font color="red">[置顶]</font> <a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><?=$bqr[xiangxidizhi]?></a></td> <td><?=$bqr[shi]?>室<?=$bqr[ting]?>厅</td> <td><?=$bqr[size]?><span class="m">㎡</span></td> <td><?=$bqr[money]?></td> <td align="right"><?=date('Y-m-d',$bqr[newstime])?></td> </tr> [/e:loop]
//01.23日更新功能添加到期时间字段date 到期之后置顶功能无效 上面的列表模板sql中添加 and (unix_timestamp(youxiaoqi)-UNIX_TIMESTAMP(NOW()))>0
模板大家自己修改,如有什么问题大家跟帖我会尽量解答
|