<p class="listintro"><span id="sp"></span>函数</p> <p style="width:340px;height:285px;float:left;"> //下面的一段代码显示一个从今天起15天的列表<br><?php require("date.inc.php3"); ?><br><br><select name="train_date"><br> <?php <br/> $s_date=date("Y-m-d");<br> echo "<option value="$s_date">$s_date</option>";<br> $today=mktime(0,0,0,date("m"),date("d"),date("Y"));<br> for ($i=1;$i $date=dateadd("day",$i,$today);<br> $s_date=date("Y-m-d",$date);<br> echo "<option value="$s_date">$s_date</option>";<br> }<br> ?> <br></select><br><br> </p> <center> </center> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p>