即将开始时间:也就是调用距离今天的最早结束时间
- <!–{php $tags=tag(“moduleid=8&length=29&condition=status=3 and fromtime>$DT_TIME&pagesize=1&datetype=1&order=totime desc&template=null”)}–>
正在进行的的代码
- <!–{php $tags=tag(“moduleid=8&condition=status=3 and fromtime<$DT_TIME and totime>$DT_TIME&pagesize=5&datetype=2&order=addtime desc&template=null”)}–>
离最近已经结束的代码
<!–{php $tags=tag(“moduleid=8&length=40&condition=status=3 and totime<$DT_TIME&pagesize=5&datetype=3&order=addtime desc&template=null”)}–>
如果不想要过期内容显示在首页,那么我们就要在标签中过滤,改下时间条件,方案如下:
1、在调用条件里加入: and $today_endtime<totime (包含未开始和已经开始了的)
2、正在开的展会: and $today_endtime<totime and $today_endtime>fromtime (只包含正在进行的)