Changeset 1779
- Timestamp:
- 09/06/10 09:56:26 (21 months ago)
- Files:
-
- 1 modified
-
trunk/site/myboat.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/site/myboat.php
r1775 r1779 171 171 $status_content.="<br />"; 172 172 173 $cwinfo = ""; 174 switch ($wp['wpformat'] & (WP_CROSS_CLOCKWISE|WP_CROSS_ANTI_CLOCKWISE)) { 175 case WP_CROSS_ANTI_CLOCKWISE: 176 $cwinfo = "BA;"; 177 break; 178 case WP_CROSS_CLOCKWISE: 179 $cwinfo = "BB;"; 180 break; 181 default: 182 $cwinfo = ""; 183 } 173 184 if ( ($wp['wpformat'] & 0xF) == WP_TWO_BUOYS ) { 174 185 $wp_north = max ($wp['latitude1'], $wp['latitude2']); … … 179 190 $status_content.="Gate Coords=<b>" . 180 191 round($wp['latitude1']/1000,3) . "," . round($wp['longitude1']/1000,3) . 181 " <----> " . round($wp['latitude2']/1000,3) . "," . round($wp['longitude2']/1000,3) . " </b>";192 " <----> " . round($wp['latitude2']/1000,3) . "," . round($wp['longitude2']/1000,3) . " $cwinfo </b>"; 182 193 } else { 183 194 $wp_south = $wp_north = $wp['latitude1']; … … 185 196 186 197 $status_content.="Waypoint Coords=<b>" . 187 round($wp_south/1000,3) . "," . round($wp_east/1000,3) . " ($wp_laisser_au) " . "</b><br />";198 round($wp_south/1000,3) . "," . round($wp_east/1000,3) . " ($wp_laisser_au) $cwinfo" . "</b><br />"; 188 199 189 200 }
