Changeset 1783
- Timestamp:
- 09/06/10 12:12:07 (17 months ago)
- Files:
-
- 1 modified
-
trunk/site/myboat.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/site/myboat.php
r1782 r1783 171 171 $status_content.="<br />"; 172 172 173 $ cwinfo= "";173 $wpsymbols = ""; 174 174 switch ($wp['wpformat'] & (WP_CROSS_CLOCKWISE|WP_CROSS_ANTI_CLOCKWISE)) { 175 175 case WP_CROSS_ANTI_CLOCKWISE: 176 $ cwinfo = "↺";176 $wpsymbols .= "↺ "; 177 177 break; 178 178 case WP_CROSS_CLOCKWISE: 179 $ cwinfo = "↻";179 $wpsymbols .= "↻ "; 180 180 break; 181 181 default: 182 $cwinfo = "";183 182 } 184 183 if (($wp['wpformat'] & WP_CROSS_ONCE) == WP_CROSS_ONCE) { 185 $coinfo = "⊅"; 186 } else { 187 $coinfo = ""; 188 } 184 $wpsymbols .= "⊅"; 185 } 186 187 switch ($wp['wpformat'] & (WP_ICE_GATE_N|WP_ICE_GATE_S)) { 188 case WP_ICE_GATE_S: 189 $wpsymbols .= "⥴"; 190 break; 191 case WP_ICE_GATE_N: 192 $wpsymbols .= "⥲"; 193 default: 194 189 195 190 196 if ( ($wp['wpformat'] & 0xF) == WP_TWO_BUOYS ) { … … 196 202 $status_content.="Gate Coords=<b>" . 197 203 round($wp['latitude1']/1000,3) . "," . round($wp['longitude1']/1000,3) . 198 " <----> " . round($wp['latitude2']/1000,3) . "," . round($wp['longitude2']/1000,3) . " $ cwinfo $coinfo</b>";204 " <----> " . round($wp['latitude2']/1000,3) . "," . round($wp['longitude2']/1000,3) . " $wpsymbols </b>"; 199 205 } else { 200 206 $wp_south = $wp_north = $wp['latitude1']; … … 202 208 203 209 $status_content.="Waypoint Coords=<b>" . 204 round($wp_south/1000,3) . "," . round($wp_east/1000,3) . " ($wp_laisser_au) $ cwinfo $coinfo" . "</b><br />";210 round($wp_south/1000,3) . "," . round($wp_east/1000,3) . " ($wp_laisser_au) $wpsymbols" . "</b><br />"; 205 211 206 212 }
