JS日历控件

/ 0评 / 1

<link rel="stylesheet" type="text/css" href="/js/calendar/calendar-blue.css"/>
<script type="text/javascript" src="/js/calendar/calendar.js"></script>

<tr>
<th width="120">时间选择 :</th>
<td>
<input type="text" name="time_start" id="time_start" class="date" size="12" value="{time_start}">
-
<input type="text" name="time_end" id="time_end" class="date" size="12" value="{
time_end}">
</td>
</tr>

<script language="javascript" type="text/javascript">
Calendar.setup({
inputField : "time_start",
ifFormat : "%Y-%m-%d",
showsTime : 'true',
timeFormat : "24"
});
</script>
<script language="javascript" type="text/javascript">
Calendar.setup({
inputField : "time_end",
ifFormat : "%Y-%m-%d",
showsTime : 'true',
timeFormat : "24"
});
</script>