Changeset 737 for trunk/app/views/images
- Timestamp:
- 08/25/08 16:39:15 (3 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/images/admin_listing.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/images/admin_listing.ctp
r626 r737 2 2 //popup or full window ? 3 3 if ( $set == null ): 4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 5 echo $html->addCrumb(__('Images', true), '#'); 4 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 6 5 echo $html->getCrumbs(' / '); 7 6 echo $html->div('title_section', __('Images', true)); … … 21 20 <fieldset> 22 21 <legend><?php echo __('Upload Image'); ?></legend> 23 24 22 <?php echo $form->label('Image.file', __('File', true)); 25 23 echo $form->file('Image.file'); 26 echo $form->error('Image.file' , 'File is required.');24 echo $form->error('Image.file'); 27 25 echo $form->end(__('Upload', true)); 28 26 ?> … … 35 33 $counter = 0; // five images in one row 36 34 37 foreach ($data as $val) 38 { 39 $counter++; 40 41 $image_stats = getimagesize('img/imgusers/'.$val['Image']['file']); 42 43 if ( $counter == 1 ): // open new row 35 foreach ($data as $val): 36 $counter++; 37 $image_stats = getimagesize('img/imgusers/'.$val['Image']['file']); 38 if ( $counter == 1 ): // open new row 44 39 echo "<tr>"; 45 endif;40 endif; 46 41 ?> 47 42 <td style="text-align:center;padding:3px;vertical-align:top;"><span style="font-size:8px;"><?php echo '/img/imgusers/'.$val['Image']['file']; ?></span><br /><br /> … … 68 63 $counter = 0; //reset counter 69 64 endif; 70 }65 endforeach; 71 66 72 67 if ( $counter < 5 ): 73 68 $colspan = (5 - $counter); 74 print '<td colspan="'.$colspan.'"> </td></tr>'; // fill the row with column 69 print '<td colspan="'.$colspan.'"> </td></tr>'; // fill the row with column(s) 75 70 76 71 endif;
