Changeset 1783

Show
Ignore:
Timestamp:
09/06/10 12:12:07 (17 months ago)
Author:
spf
Message:

added symbol for icegates [See #34]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/site/myboat.php

    r1782 r1783  
    171171         $status_content.="<br />"; 
    172172   
    173          $cwinfo = ""; 
     173         $wpsymbols = ""; 
    174174         switch ($wp['wpformat'] & (WP_CROSS_CLOCKWISE|WP_CROSS_ANTI_CLOCKWISE)) { 
    175175         case WP_CROSS_ANTI_CLOCKWISE: 
    176            $cwinfo = "↺"; 
     176           $wpsymbols .= "↺ "; 
    177177           break; 
    178178         case WP_CROSS_CLOCKWISE: 
    179            $cwinfo = "↻"; 
     179           $wpsymbols .= "↻ "; 
    180180           break; 
    181181         default: 
    182            $cwinfo = ""; 
    183182         } 
    184183         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          
    189195 
    190196         if ( ($wp['wpformat'] & 0xF) == WP_TWO_BUOYS ) { 
     
    196202            $status_content.="Gate Coords=<b>" .  
    197203              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>"; 
    199205         } else { 
    200206            $wp_south = $wp_north = $wp['latitude1']; 
     
    202208   
    203209                $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 />";  
    205211   
    206212         }