我希望根据特定日期在我的主页 (index.php) 中包含特定的 cfm 页面。
即: 01/01/2013 - 05/15/2013 display wet start.cfm 05/16/2013
- 05/31/2013 display first splash.cfm
06/01/2013 - 06/15/2013 display splashback.cfm
和依此类推,直到最后一个活动...
06/16/2013 - 12/31/2013 显示季节 over.cfm
我的包含页面如下所列,但我不知道如何获得正确的 if-else 语句。
<center><b>Our Next Event:</b></center>
<?php include '../includes/events/wet start.cfm'; ?>
<?php include '../includes/events/first splash.cfm'; ?>
<?php include 'includes/events/splashback.cfm'; ?>
<?php include '../includes/events/mardi gras.cfm'; ?>
<?php include '../includes/events/fiesta.cfm'; ?>
<?php include '../includes/events/steak feed.cfm'; ?>
<?php include '../includes/events/luau.cfm'; ?>
<?php include '../includes/events/tiki.cfm'; ?>
<?php include '../includes/events/toga.cfm'; ?>
<?php include '../includes/events/lumberyard.cfm'; ?>
<?php include '../includes/events/royal court.cfm'; ?>
<?php include '../includes/events/bullards bar.cfm'; ?>
<?php include '../includes/events/dance party.cfm'; ?>
<?php include '../includes/events/houseboat.cfm'; ?>
<?php include '../includes/events/season over.cfm'; ?>