调入JS文件
<script src="static/js/calendar.js" type="text/javascript"></script>
input 框
<input name="lastdate" type="text" id="lastdate" size="20" autocomplete="off" onclick="showcalendar(event, this, true)" />
PHP接受写入到数据库
$lastdate = strtotime($_G['gp_lastdate']);