Files
EasySoft-ZenTaoPMS/module/common/view/datepicker.html.php
chencongzhi520@gmail.com f508ac76f3 * Adjust the css of datepicker.
2012-06-12 00:18:38 +00:00

28 lines
1.1 KiB
PHP

<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php
css::import($defaultTheme . 'datepicker.css');
js::import($jsRoot . 'jquery/datepicker/min.js');
js::import($jsRoot . 'jquery/datepicker/date.js');
?>
<script language='javascript'>
Date.firstDayOfWeek = 1;
Date.format = 'yyyy-mm-dd';
$.dpText = {
TEXT_PREV_YEAR : '去年',
TEXT_PREV_MONTH : '上个月',
TEXT_NEXT_YEAR : '明年',
TEXT_NEXT_MONTH : '下个月',
TEXT_CLOSE : '关闭',
TEXT_CHOOSE_DATE : '&nbsp;&nbsp;&nbsp;&nbsp;'
}
Date.dayNames = ['日', '一', '二', '三', '四', '五', '六'];
Date.abbrDayNames = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
Date.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
$(function() {
startDate = new Date(1970, 1, 1);
$(".date").datePicker({createButton:true, startDate:startDate})
.dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_RIGHT)
});
</script>