Show
Ignore:
Timestamp:
04/28/08 17:15:07 (9 months ago)
Author:
aarkerio
Message:

Treasures changes

Files:
1 modified

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?> 
    109   
    1110<fieldset> 
    1211  <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  ?> 
    2117</fieldset> 
    22 </form> 
    23 </div> 
     18