<?php date_default_timezone_set("PRC"); $nowtime = time(); $rq = date("Y-m-d",$nowtime); $rqq = date("Y-m-d",$nowtime 7*24*3600);?><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>time</title><script type="text/javascript" src="./mydate.js" ></script> </head><body><form action="./form.php" method="post"> start:<input type="text" name="starttime" onfocus="MyCalendar.SetDate(this)" value="<?php echo $rq;?>"> end:<input type="text" name="endtime" onfocus="MyCalendar.SetDate(this)" value="<?php echo $rqq;?>"> <input type="submit" value="Submit" /></form></body></html>
评论