Changeset 1804

Show
Ignore:
Timestamp:
09/07/10 21:01:20 (17 months ago)
Author:
paparazzia
Message:

with WP symbol (see #400)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/site/races.php

    r1803 r1804  
    1616        $nbWPs = $fullRacesObj->races->getWPsCount(); 
    1717        if ( $nbWPs > 1 ) { 
    18           for ($wp_num=1; $wp_num < $nbWPs; $wp_num++) { 
    19             $WP=$fullRacesObj->races->giveWPCoordinates($wp_num); 
    20             if ( ($WP['wpformat'] & (WP_ICE_GATE_N | WP_ICE_GATE_S)) == 0 ) { 
    21               array_push($tables, "WP" . $wp_num); 
    22             } 
    23           } 
     18            for ($wp_num=1; $wp_num < $nbWPs; $wp_num++) { 
     19                $WP=$fullRacesObj->races->giveWPCoordinates($wp_num); 
     20                if ( ($WP['wpformat'] & (WP_ICE_GATE_N | WP_ICE_GATE_S)) == 0 ) { 
     21                    array_push($tables, "WP" . $wp_num); 
     22                } 
     23            } 
    2424        } 
    2525 
     
    3030 
    3131        //on détermine la "bonne largeur" pour le menu des wps 
    32         $nblines = ceil(count($tables)/20.); 
     32        $nblines = ceil(count($tables)/25.); 
    3333        $sizeline = ceil(count($tables)/$nblines); 
    3434        $colnum = 0; 
     
    4141                if ( strstr(substr($table, 0, 2), "WP") ) { 
    4242                    $WP = $fullRacesObj->races->giveWPCoordinates(substr($table,2)); 
    43                     $cellcontent = $WP['libelle']."<br />(".$table.")"; 
     43                    $cellcontent = $WP['libelle']." (".$table." ".getWaypointHTMLSymbols(intval(substr($table,2)))." )"; 
    4444                } else { 
    4545                    $cellcontent = ucfirst($table); 
     
    4949                if ( strstr(substr($table, 0, 2), "WP") ) { 
    5050                    $WP=$fullRacesObj->races->giveWPCoordinates(substr($table,2)); 
    51                     $tlabel=$WP['libelle']."<br />(".$table.")"; 
     51                    $tlabel=$WP['libelle']." (".$table." ".getWaypointHTMLSymbols(intval(substr($table,2)))." )"; 
    5252                } else { 
    5353                    $tlabel=$table; 
     
    6565            //gère le multiligne quand il y a beaucoup de wp. 
    6666            $colnum += 1; 
    67             if ($colnum%$sizeline == 0 && $colnum < count($tables)) {echo "</tr><tr>"; 
     67            if ($colnum%$sizeline == 0 && $colnum < count($tables)) echo "</tr><tr>"; 
    6868        } 
    6969        echo "</tr></table>";