Changeset 541 for trunk/app/views/images/admin_listview.ctp
- Timestamp:
- 05/21/08 15:27:00 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/images/admin_listview.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/images/admin_listview.ctp
r346 r541 3 3 <td style="text-align:left;" colspan="5"> 4 4 5 <?php echo $ html->formTag('/admin/images/add/','post', array("enctype"=>"multipart/form-data") ); ?>6 <?php echo $ html->hiddenTag('Image/return', '/admin/images/listview'); ?>5 <?php echo $form->create('Images','post', array("enctype"=>"multipart/form-data") ); ?> 6 <?php echo $form->hidden('Image.return', '/admin/images/listview'); ?> 7 7 <fieldset> 8 8 <legend>Upload Image</legend> … … 41 41 42 42 <br /> 43 <?php 44 if ( $cU['User']['id'] == $val['Image']['user_id'] ) 45 { 46 echo $form->create('Image', array('action'=>'admin_delete')); 43 <?php 44 if ( $session->read('Auth.User.id') == $val['Image']['user_id'] ): 45 echo $form->create('Image', array('action'=>'delete')); 47 46 echo $form->hidden('Image.return', array('value'=>'/admin/images/listing')); 48 47 echo $form->hidden('Image.id', array('value'=>$val['Image']['id'])); 49 48 echo $form->end('Delete'); 50 } 51 ?> 52 </td> 49 endif; 53 50 54 <?php 55 if ( $counter == 5 ) 51 echo '</td>'; 52 53 if ( $counter == 5 ) 56 54 { 57 55 print "</tr>";
