| 12 | | <p> |
| 13 | | <?php echo $form->labelTag( 'Lesson/title', 'Title:' );?><br /> |
| 14 | | <?php echo $html->input('Lesson/title', array("size" => 50, "maxlength" => 120, "class"=>"formas")); ?> |
| 15 | | <?php echo $html->tagErrorMsg('Lesson/title', 'Title is required.'); ?> |
| 16 | | <br /><br /> |
| 17 | | |
| 18 | | <p><?php echo $form->labelTag( 'Lesson/body', 'Body:' );?><br /> |
| 19 | | <?php echo $html->textarea('Lesson/body', array("class"=>"formas", "cols"=>80, "rows"=>45)) ?> |
| 20 | | <?php echo $fck->load('Lesson/body', 'Karamelo'); ?> |
| 21 | | <?php echo $html->tagErrorMsg('Lesson/body', 'Body is required.'); ?> |
| 22 | | <br /> |
| 23 | | </p> |
| 24 | | |
| 25 | | <p><?php echo $form->labelTag( 'Lesson/status', 'Published:' );?><br /> |
| 26 | | <?php echo $html->checkbox('Lesson/status'); ?> |
| 27 | | <br /><br /> |
| 28 | | |
| 29 | | <p><?php echo $form->labelTag( 'Lesson/disc', 'Comments allowed to this Lesson:' );?><br /> |
| 30 | | <?php echo $html->checkbox('Lesson/disc'); ?> |
| 31 | | <br /><br /> |
| 32 | | |
| 33 | | <?php echo $html->hiddenTag('Lesson/user_id', $othAuth->user('id')) ?> |
| 34 | | |
| 35 | | |
| 36 | | <br /> |
| 37 | | <?php echo $html->submit('Send'); ?> |
| | 8 | <legend>Add Lesson</legend> |
| | 9 | <table> |
| | 10 | <tr><td> |
| | 11 | <?php |
| | 12 | echo $form->labelTag( 'Lesson/title', 'Title:' ); |
| | 13 | echo $html->input('Lesson/title', array("size" => 50, "maxlength" => 120, "class"=>"formas")); |
| | 14 | echo $html->tagErrorMsg('Lesson/title', 'Title is required.'); |
| | 15 | ?> |
| | 16 | </td> |
| | 17 | <td> |
| | 18 | <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> |
| | 19 | </td> |
| | 20 | </tr> |
| | 21 | <tr> |
| | 22 | <td colspan="2"> |
| | 23 | <?php |
| | 24 | echo $form->labelTag( 'Lesson/body', 'Body:' ); |
| | 25 | echo $html->textarea('Lesson/body', array("class"=>"formas", "cols"=>80, "rows"=>45)); |
| | 26 | echo $fck->load('Lesson/body', 'Karamelo'); |
| | 27 | echo $html->tagErrorMsg('Lesson/body', 'Body is required.'); |
| | 28 | ?> |
| | 29 | </td></tr> |
| | 30 | <tr><td> |
| | 31 | <?php |
| | 32 | echo $form->labelTag( 'Lesson/status', 'Published:' ); |
| | 33 | echo $html->checkbox('Lesson/status'); |
| | 34 | ?> |
| | 35 | </td><td> |
| | 36 | <?php |
| | 37 | echo $form->labelTag( 'Lesson/disc', 'Comments allowed to this Lesson:' ); |
| | 38 | echo $html->checkbox('Lesson/disc'); |
| | 39 | ?> |
| | 40 | </td></tr> |
| | 41 | <tr><td colspan="2"> |
| | 42 | <?php echo $html->submit('Save'); ?> |
| | 43 | </td></tr> |
| | 44 | </table> |