Changeset 1804
- Timestamp:
- 09/07/10 21:01:20 (17 months ago)
- Files:
-
- 1 modified
-
trunk/site/races.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/site/races.php
r1803 r1804 16 16 $nbWPs = $fullRacesObj->races->getWPsCount(); 17 17 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 } 24 24 } 25 25 … … 30 30 31 31 //on détermine la "bonne largeur" pour le menu des wps 32 $nblines = ceil(count($tables)/2 0.);32 $nblines = ceil(count($tables)/25.); 33 33 $sizeline = ceil(count($tables)/$nblines); 34 34 $colnum = 0; … … 41 41 if ( strstr(substr($table, 0, 2), "WP") ) { 42 42 $WP = $fullRacesObj->races->giveWPCoordinates(substr($table,2)); 43 $cellcontent = $WP['libelle']." <br />(".$table.")";43 $cellcontent = $WP['libelle']." (".$table." ".getWaypointHTMLSymbols(intval(substr($table,2)))." )"; 44 44 } else { 45 45 $cellcontent = ucfirst($table); … … 49 49 if ( strstr(substr($table, 0, 2), "WP") ) { 50 50 $WP=$fullRacesObj->races->giveWPCoordinates(substr($table,2)); 51 $tlabel=$WP['libelle']." <br />(".$table.")";51 $tlabel=$WP['libelle']." (".$table." ".getWaypointHTMLSymbols(intval(substr($table,2)))." )"; 52 52 } else { 53 53 $tlabel=$table; … … 65 65 //gère le multiligne quand il y a beaucoup de wp. 66 66 $colnum += 1; 67 if ($colnum%$sizeline == 0 && $colnum < count($tables)) {echo "</tr><tr>";67 if ($colnum%$sizeline == 0 && $colnum < count($tables)) echo "</tr><tr>"; 68 68 } 69 69 echo "</tr></table>";
