Changeset 737 for trunk/app/views/images

Show
Ignore:
Timestamp:
08/25/08 16:39:15 (3 months ago)
Author:
aarkerio
Message:

Little bugs fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/images/admin_listing.ctp

    r626 r737  
    22//popup or full window ? 
    33if ( $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'); 
    65    echo $html->getCrumbs(' / '); 
    76    echo $html->div('title_section', __('Images', true)); 
     
    2120  <fieldset> 
    2221     <legend><?php echo __('Upload Image'); ?></legend> 
    23       
    2422     <?php echo $form->label('Image.file', __('File', true)); 
    2523           echo $form->file('Image.file');  
    26            echo $form->error('Image.file', 'File is required.'); 
     24           echo $form->error('Image.file'); 
    2725           echo $form->end(__('Upload', true));  
    2826      ?> 
     
    3533$counter = 0; // five images in one row 
    3634 
    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 
     35foreach ($data as $val): 
     36 $counter++; 
     37 $image_stats = getimagesize('img/imgusers/'.$val['Image']['file']); 
     38 if ( $counter == 1 ): // open new row 
    4439        echo "<tr>"; 
    45    endif; 
     40 endif; 
    4641?> 
    4742<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 /> 
     
    6863        $counter = 0; //reset counter 
    6964    endif; 
    70   } 
     65 endforeach; 
    7166     
    7267 if ( $counter < 5 ): 
    7368       $colspan = (5 - $counter); 
    74        print '<td colspan="'.$colspan.'">&nbsp;</td></tr>';  // fill the row with column 
     69       print '<td colspan="'.$colspan.'">&nbsp;</td></tr>';  // fill the row with column(s) 
    7570       
    7671  endif;