From 59f550a3f8ff1f1a88f5c89a236d07a0a0a96ed0 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 21 Sep 2012 18:27:52 +0200 Subject: [PATCH] Fixing pick date in lp add/edit forms --- main/newscorm/lp_add.php | 4 ++-- main/newscorm/lp_edit.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/newscorm/lp_add.php b/main/newscorm/lp_add.php index 5b721ee17e..3715f3c260 100644 --- a/main/newscorm/lp_add.php +++ b/main/newscorm/lp_add.php @@ -137,13 +137,13 @@ $form -> addElement('html',''); diff --git a/main/newscorm/lp_edit.php b/main/newscorm/lp_edit.php index 85b8e511e7..2c2d223629 100644 --- a/main/newscorm/lp_edit.php +++ b/main/newscorm/lp_edit.php @@ -81,7 +81,7 @@ $defaults=array(); $form = new FormValidator('form1', 'post', 'lp_controller.php'); // Form title -$form->addElement('header', null, get_lang('EditLPSettings')); +$form->addElement('header', get_lang('EditLPSettings')); // Title $form->addElement('text', 'lp_name', api_ucfirst(get_lang('LearnpathTitle')), array('size' => 43)); @@ -186,7 +186,7 @@ $expired_on = $_SESSION['oLP'] ->expired_on; $publicated_on = $_SESSION['oLP'] ->publicated_on; // Prerequisites -$form->addElement('html', '
+$form->addElement('html', '
'.$_SESSION['oLP']->display_lp_prerequisites_list().' '.get_lang('LpPrerequisiteDescription').'
'); //Start date @@ -198,7 +198,7 @@ if ($publicated_on!='0000-00-00 00:00:00' && !empty($publicated_on)) { } $form->addElement('html','
'); -$form->addElement('datepicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'exercise_admin'), 5); +$form->addElement('datepicker', 'publicated_on', get_lang('PublicationDate'), array('form_name'=>'form1'), 5); $form->addElement('html','
'); //End date