普陀 发表于 2024-9-19 11:55:31

苹果cms站点维护调用HTML,苹果CMS按星期几调用信息教程

首先循环一个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}
页: [1]
查看完整版本: 苹果cms站点维护调用HTML,苹果CMS按星期几调用信息教程