日期:2010-11-16 浏览次数:20699 次
<select name="train_date">
<?PHP
$s_date=date("Y-m-d");
echo "<option value='$s_date'>$s_date</option>";
$today=mktime(0,0,0,date("m"),date("d"),date("Y"));
for ($i=1;$i<15;$i++){
$date=dateadd("day",$i,$today);
$s_date=date("Y-m-d",$date);
echo "<option value='$s_date'>$s_date</option>";
}
?>
</select>