又添加这个字段主要是避免与老大的那个firsttitle起冲突,避免以后升级带来的麻烦
假如会员积分不足提示积分不足但信息仍让可以提交只是不能置顶。
在列表模板中调用方法:
代码如下:
[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 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到期之后置顶功能无效.
<tr onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#F1F5FC'">
<td><?=$bqr[myarea]?></td>
<td class="tx"><font color="red">[置顶]</font>
<a 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
模板大家自己修改,相信不难解决.
上传以下图片:
希望本文所述对大家的帝国CMS建站有所帮助。
标签:帝国CMS
相关阅读 >>
更多相关阅读请进入《帝国CMS》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。