《 Joomla Extension Development 》书中第31页,关于在后台页面html表单中添加joomla自带的日期选择控件。添加了showCalendar方法,但是在显示效果中无法正常使用。最终查阅资料发现,showCalendar方法在调用时第二个参数‘Y-mm-dd’,应改为”%Y-%m-%d“
<tr>
<td width="100" align="right" class="key"> Review Date: </td>
<td><input class="inputbox" type="text" name="review_date"
id="review_date" size="25" maxlength="19"
value="<?php echo $row->review_date; ?>" />
<input type="reset" class="button" value="..."
onclick="return showCalendar('review_date', '%Y-%m-%d');" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"> Published: </td>
<td><?php
echo $lists['published'];
?></td>
</tr>