* @package chamilo.attendance */ // protect a course script api_protect_course_script(true); // error messages if ($error) { Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'),false); } $param_gradebook = ''; if (isset($_SESSION['gradebook'])) { $param_gradebook = '&gradebook='.Security::remove_XSS($_SESSION['gradebook']); } if (!$error) { $token = Security::get_token(); } // display form $form = new FormValidator('attendance_add','POST','index.php?action=attendance_add&'.api_get_cidreq().$param_gradebook,'','style="width: 100%;"'); $form->addElement('header', '', get_lang('CreateANewAttendance')); $form->addElement('hidden', 'sec_token', $token); $form->add_textfield('title', get_lang('Title'), true, array('size'=>'50')); $form->applyFilter('title','html_filter'); $form->add_html_editor('description', get_lang('Description'), false, false, array('ToolbarSet' => 'TrainingDescription', 'Width' => '100%', 'Height' => '200')); // Adavanced Parameters $form->addElement('html', '
'); $form->addElement('html',' '); $form->addElement('html',''); $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->display(); ?>