|
|
|
|
@ -1,25 +1,5 @@ |
|
|
|
|
<?php // $Id: datepickerdate.php 16033 2008-08-20 21:21:44Z yannoo $
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
Dokeos - elearning and course management software |
|
|
|
|
|
|
|
|
|
Copyright (c) 2004-2008 Dokeos SPRL. |
|
|
|
|
Copyright (c) Bart Mollet, Hogeschool Gent |
|
|
|
|
|
|
|
|
|
For a full list of contributors, see "credits.txt". |
|
|
|
|
The full license can be read in "license.txt". |
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or |
|
|
|
|
modify it under the terms of the GNU General Public License |
|
|
|
|
as published by the Free Software Foundation; either version 2 |
|
|
|
|
of the License, or (at your option) any later version. |
|
|
|
|
|
|
|
|
|
See the GNU General Public License for more details. |
|
|
|
|
|
|
|
|
|
Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium |
|
|
|
|
Mail: info@dokeos.com |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
require_once ('HTML/QuickForm/date.php'); |
|
|
|
|
/** |
|
|
|
|
* Form element to select a date and hour (with popup datepicker) |
|
|
|
|
@ -29,8 +9,7 @@ class HTML_QuickForm_datepickerdate extends HTML_QuickForm_date |
|
|
|
|
/** |
|
|
|
|
* Constructor |
|
|
|
|
*/ |
|
|
|
|
function HTML_QuickForm_datepickerdate($elementName = null, $elementLabel = null, $attributes = null) |
|
|
|
|
{ |
|
|
|
|
function HTML_QuickForm_datepickerdate($elementName = null, $elementLabel = null, $attributes = null) { |
|
|
|
|
global $myMinYear, $myMaxYear; |
|
|
|
|
$js_form_name = $attributes['form_name']; |
|
|
|
|
unset($attributes['form_name']); |
|
|
|
|
@ -51,8 +30,8 @@ class HTML_QuickForm_datepickerdate extends HTML_QuickForm_date |
|
|
|
|
$this->_locale[$lang_code]['months_long'] = api_get_months_long(); |
|
|
|
|
} |
|
|
|
|
$this->_options['format'] = 'dFY '.$popup_link; |
|
|
|
|
$this->_options['minYear'] = date('Y')-1; |
|
|
|
|
$this->_options['maxYear'] = date('Y')+15; |
|
|
|
|
$this->_options['minYear'] = date('Y')-5; |
|
|
|
|
$this->_options['maxYear'] = date('Y')+10; |
|
|
|
|
$this->_options['language'] = $lang_code; |
|
|
|
|
//$this->_options['addEmptyOption'] = true; |
|
|
|
|
//$this->_options['emptyOptionValue'] = 0; |
|
|
|
|
|