首先循环一个7天遍历出来,方便判断{php} $rq=date("w"); if($rq==0){ $rq=7; } $rqarray=array(1,2,3,4,5,6,7); {/php} 然后来调用判断日期来调用数据 {volist name="rqarray" id="week" key="iii"} {maccms:vod num="6" type="'.$vo5['type_id'].'" weekday="'.$iii.'" order="desc" by="time" id="vo2" key="key2"} {$vo2.vod_name} {include file="public/serial"}{/maccms:vod} {/volist} {else /} {if condition="$rq eq 1"} 今天{else /}周一{/if}{if condition="$rq eq 2"} 今天{else /}周二{/if}{if condition="$rq eq 3"} 今天{else /}周三{/if}{if condition="$rq eq 4"} 今天{else /}周四{/if}{if condition="$rq eq 5"} 今天{else /}周五{/if}{if condition="$rq eq 6"} 今天{else /}周六{/if}{if condition="$rq eq 7"} 今天{else /}周日{/if}{volist name="rqarray" id="week" key="iii"} {maccms:vod num="6" type="'.$vo5['type_id'].'" weekday="'.$iii.'" order="desc" by="time" id="vo2" key="key2"} {$vo2.vod_name} {include file="public/serial"}{/maccms:vod} {/volist}
|