|
|
|
|
@ -8,15 +8,13 @@ |
|
|
|
|
|
|
|
|
|
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php'; |
|
|
|
|
|
|
|
|
|
global $charset; |
|
|
|
|
api_protect_course_script(); |
|
|
|
|
|
|
|
|
|
$show_description_field = false; //for now |
|
|
|
|
$nameTools = get_lang('Doc'); |
|
|
|
|
$this_section = SECTION_COURSES; |
|
|
|
|
Event::event_access_tool(TOOL_LEARNPATH); |
|
|
|
|
|
|
|
|
|
api_protect_course_script(); |
|
|
|
|
|
|
|
|
|
if (isset($_SESSION['gradebook'])) { |
|
|
|
|
$gradebook = $_SESSION['gradebook']; |
|
|
|
|
} |
|
|
|
|
@ -165,7 +163,7 @@ if (!empty($publicated_on)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '<div id="start_date_div" style="display:'.$display_date.';">'); |
|
|
|
|
$form->addDatePicker('publicated_on', get_lang('PublicationDate')); |
|
|
|
|
$form->addDateTimePicker('publicated_on', get_lang('PublicationDate')); |
|
|
|
|
$form->addElement('html', '</div>'); |
|
|
|
|
|
|
|
|
|
//End date |
|
|
|
|
@ -183,7 +181,7 @@ if (!empty($expired_on)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '<div id="end_date_div" style="display:'.$display_date.';">'); |
|
|
|
|
$form->addDatePicker('expired_on', get_lang('ExpirationDate')); |
|
|
|
|
$form->addDateTimePicker('expired_on', get_lang('ExpirationDate')); |
|
|
|
|
$form->addElement('html', '</div>'); |
|
|
|
|
|
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
|