Ignore:
Timestamp:
11/26/09 01:12:01 (10 years ago)
Author:
tiico
Message:

[ConcoursPhoto] Add method selection for audit page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ConcoursPhoto/admin/audit.php

    r4368 r4370  
    188188        */ 
    189189 
    190         // Ordre image by "note" 
    191         $concours_img = array_sort($concours_img, 'note', false); 
     190        // Ordre image by "note" or "moyenne" 
     191    if ($concours->concours_infos['method'] == 1) // sum method 
     192        $concours_img = array_sort($concours_img, 'note', false); 
     193    elseif ($concours->concours_infos['method'] == 2) // moy method 
     194        $concours_img = array_sort($concours_img, 'moyenne', false); 
     195     
    192196        $rang = 1; 
    193197        foreach ($concours_img  as $key => $value)  
Note: See TracChangeset for help on using the changeset viewer.