| 3 | | <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?> |
| 4 | | <?php echo $html->addCrumb('News', '/admin/news/listing'); ?> |
| 5 | | <?php echo $html->getCrumbs(' / '); ?> |
| 6 | | |
| 7 | | <?php |
| 8 | | echo $html->formTag('/admin/news/edit/','post', array("onsubmit"=>"return validateNew()")); |
| 9 | | echo $html->hiddenTag('News/user_id', $othAuth->user('id')); |
| 10 | | echo $html->hiddenTag('News/id'); |
| | 7 | echo $form->create('News', array('action'=>'/admin/news/edit/', 'onsubmit'=>'return validateNew()')); |
| | 8 | echo $form->hidden('News.id'); |
| 15 | | <?php echo $form->labelTag( 'News/title', 'Title' ); ?> |
| 16 | | <?php echo $html->input('News/title', array("size" => 40, "maxlength" => 120, "class"=>"formas")); ?> |
| 17 | | <?php echo $html->tagErrorMsg('News/title', 'Title is required.'); ?> |
| | 13 | <?php |
| | 14 | echo $form->input('News.title', array("size" => 40, "maxlength" => 120)); |
| | 15 | echo $form->error('News.title', 'Title is required.'); |
| | 16 | ?> |
| 21 | | echo $form->labelTag( 'News/theme_id', 'Theme:' ); |
| 22 | | echo $html->selectTag('News/theme_id', $themes, null, null, null, false, false); |
| | 20 | echo $form->label('News.theme_id', 'Theme:' ); |
| | 21 | echo $form->select('News.theme_id', $themes, null, null, null, false, false); |
| 26 | | <?php echo $form->labelTag( 'News/reference', 'Reference' ); |
| 27 | | echo $html->input('News/reference', array("size" => 30, "maxlength" => 250, "class"=>"formas", "value"=>"http://")); |
| | 25 | <?php |
| | 26 | echo $form->label('News.reference', 'Reference' ); |
| | 27 | echo $html->input('News.reference', array("size" => 30, "maxlength" => 250, "value"=>"http://")); |
| 35 | | <?php echo $form->labelTag( 'News/Body', 'Body:' );?><br /> |
| 36 | | <?php echo $html->textarea('News/body', array("class"=>"formas", "cols"=>80, "rows"=>45)) ?> |
| 37 | | <?php echo $fck->load('News/body', 'Karamelo'); ?> |
| 38 | | <?php echo $html->tagErrorMsg('News/body', 'Body is required.'); ?> |
| | 35 | <?php |
| | 36 | echo $form->labelTag( 'News/Body', 'Body:' ); |
| | 37 | echo $html->textarea('News/body', array("cols"=>80, "rows"=>45)); |
| | 38 | echo $fck->load('News/body', 'Karamelo'); |
| | 39 | echo $html->tagErrorMsg('News/body', 'Body is required.'); |
| | 40 | ?> |