| 1 | | <?php echo $javascript->link('myfunctions'); ?> |
| 2 | | |
| 3 | | <div class="title_section">Add new image</div> |
| 4 | | |
| 5 | | <div class="spaced"> |
| 6 | | |
| 7 | | <?php echo $html->formTag('/images/add/','post', array("enctype"=>"multipart/form-data") ); ?> |
| 8 | | <?php echo $html->hiddenTag('Image/user_id', $othAuth->user('id')); ?> |
| 9 | | <?php echo $html->hiddenTag('return', '/users/edit'); ?> |
| | 1 | <?php |
| | 2 | echo $javascript->link('myfunctions'); |
| | 3 | |
| | 4 | echo $html->div('title_section', 'Add new image'); |
| | 5 | |
| | 6 | echo $form->create('Image', array("enctype"=>"multipart/form-data") ); |
| | 7 | echo $form->hidden('return', array('value'=>'/admin/images/listing')); |
| | 8 | ?> |
| 13 | | |
| 14 | | <p> |
| 15 | | <?php echo $form->labelTag( 'Image/file', 'Title:' );?><br /> |
| 16 | | <?php echo $html->file('Image/file'); ?> |
| 17 | | <?php echo $html->tagErrorMsg('Image/file', 'Title is required.'); ?> |
| 18 | | |
| 19 | | <br /> |
| 20 | | <?php echo $html->submit('Upload'); ?> |
| | 12 | <?php |
| | 13 | echo $form->label( 'Image.file', 'Title:' ); |
| | 14 | echo $form->file('Image.file'); |
| | 15 | echo $form->end('Upload'); |
| | 16 | ?> |