| 9 | | echo $form->labelTag('Ecourse/title', 'Title:'); |
| 10 | | echo $html->input('Ecourse/title', array("size" => 30, "maxlength" => 90)) . ' e.g. History of Literature'; |
| 11 | | echo $html->tagErrorMsg('Ecourse/title', 'A FAQ title is required.'); |
| 12 | | |
| 13 | | echo $form->labelTag('Ecourse/description', 'Description:'); |
| 14 | | echo $html->textarea('Ecourse/description', array("cols" => 40, "rows" =>4)); |
| 15 | | |
| 16 | | |
| 17 | | echo $form->labelTag('Ecourse/code', 'Code:' ); |
| 18 | | echo $html->input('Ecourse/code', array("size" => 12, "maxlenght" => 12)) . ' max. 12 characters, ie.ROM2121'; |
| 19 | | echo $html->tagErrorMsg('Ecourse/code', 'A category description is required.'); |
| | 9 | echo $form->input('Ecourse.title', array("size" => 30, "maxlength" => 90)) . ' e.g. History of Literature'; |
| | 10 | echo $form->error('Ecourse.title', 'A FAQ title is required.'); |
| | 11 | |
| | 12 | echo $form->label('Ecourse.description', 'Description:'); |
| | 13 | echo $form->textarea('Ecourse.description', array("cols" => 40, "rows" =>4)); |
| | 14 | |
| | 15 | |
| | 16 | echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12)) . ' max. 12 characters, ie.ROM2121'; |
| | 17 | echo $form->error('Ecourse.code', 'A category description is required.'); |
| 23 | | echo $form->labelTag('Ecourse/subject_id', 'Subject:'); |
| 24 | | echo $html->selectTag('Ecourse/subject_id', $subjects, null, null, null, false); |
| | 21 | echo $form->label('Ecourse.subject_id', 'Subject:'); |
| | 22 | echo $form->select('Ecourse.subject_id', $subjects, null, null, null, false); |
| 26 | | echo $form->labelTag('Ecourse/lang_id', 'Lang:'); |
| 27 | | echo $html->selectTag('Ecourse/lang_id', $langs, null, null, null, false); |
| | 24 | echo $form->label('Ecourse.lang_id', 'Lang:'); |
| | 25 | echo $form->select('Ecourse.lang_id', $langs, null, null, null, false); |
| 33 | | <?php echo $form->labelTag('Ecourse/access', 'Restricted access:' );?><br /> |
| 34 | | <?php echo $html->checkbox('Ecourse/access', null, array("value"=>1, "onclick" => "mostrar('invi_code')")); ?><br /> |
| 35 | | |
| 36 | | <div id="invi_code" style="display:none;"> |
| 37 | | <?php |
| 38 | | echo $form->labelTag('Ecourse/secret', 'Secret:' ); |
| 39 | | echo $html->input('Ecourse/secret', array("size" => 6, "maxlength" => 6)) . 'The code to allow students register by themselves'; |
| 40 | | ?> |
| 41 | | </div> |