Changeset 438 for trunk/app/views/images
- Timestamp:
- 04/28/08 17:15:07 (7 months ago)
- Location:
- trunk/app/views/images
- Files:
-
- 2 modified
-
admin_add.ctp (modified) (1 diff)
-
admin_listing.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/images/admin_add.ctp
r268 r438 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 ?> 10 9 11 10 <fieldset> 12 11 <legend>Image</legend> 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 ?> 21 17 </fieldset> 22 </form> 23 </div> 18 -
trunk/app/views/images/admin_listing.ctp
r375 r438 19 19 <td style="text-align:left;" colspan="5"> 20 20 <?php 21 echo $form->create('Image', array(' action'=>'add', 'enctype'=>'multipart/form-data'));21 echo $form->create('Image', array('enctype'=>'multipart/form-data')); 22 22 echo $form->hidden('Image.return', array('value'=>'/admin/images/listing/'.$return)); 23 23 ?> 24 24 <fieldset> 25 <legend> Upload Image</legend>25 <legend><?php echo __('Upload Image'); ?></legend> 26 26 27 <?php echo $form->label('Image.file', 'File:' );27 <?php echo $form->label('Image.file', 'File:'); 28 28 echo $form->file('Image.file'); 29 echo $form->error('Image.file', 'Title is required.'); 30 echo '</fieldset>'; 29 echo $form->error('Image.file', 'File is required.'); 31 30 echo $form->end('Upload'); 32 31 ?> 32 </fieldset> 33 33 </td> 34 34 </tr>
