Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
manolis committed Nov 10, 2007
1 parent 42315c3 commit 022eeb9
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 163 deletions.
10 changes: 5 additions & 5 deletions FN_output.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function formatDistance($distance,$showUnits=false) { // in meters
$units=_KM;
}
// return sprintf("%.2f km",$distance/1000);
return sprintf("%.1f %s",$dis,($showUnits)?$units:"");
return sprintf("%.1f %s",$dis,($showUnits)?$units:"");
}

function formatDistanceOpen($distance,$showKm=true) { // in meters
Expand Down Expand Up @@ -113,7 +113,7 @@ function formatAltitude($alt) {
} else {
$units=_M;
}
return '<span class="altitude_style">'.sprintf("%d %s",$alt,$units).'</span>';
return '<span class="altitude_style">'.sprintf("%d&nbsp;%s",$alt,$units).'</span>';
}

function formatSpeed($speed) { // in km/h
Expand All @@ -126,7 +126,7 @@ function formatSpeed($speed) { // in km/h
} else {
$units=_KM_PER_HR;
}
return '<span class="speed_style">'.sprintf("%.1f %s",$speed,$units).'</span>';
return '<span class="speed_style">'.sprintf("%.1f&nbsp;%s",$speed,$units).'</span>';
}

function formatVario($vario) { // in m/sec
Expand All @@ -136,10 +136,10 @@ function formatVario($vario) { // in m/sec
if ($PREFS->metricSystem==2) {
$vario=$vario*3.28*60; // feet /min
$units=_FPM;
return '<span class="vario_style">'.sprintf("%.0f %s",$vario,$units).'</span>';
return '<span class="vario_style">'.sprintf("%.0f&nbsp;%s",$vario,$units).'</span>';
} else {
$units=_M_PER_SEC;
return '<span class="vario_style">'.sprintf("%.1f %s",$vario,$units).'</span>';
return '<span class="vario_style">'.sprintf("%.1f&nbsp;%s",$vario,$units).'</span>';
}

}
Expand Down
1 change: 0 additions & 1 deletion GUI_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function chmodDir($dir){
echo "<h3>Update operations</h3>";

echo "<ul>";
echo "<li><a href='".CONF_MODULE_ARG."&op=admin_languages'>Administer Language Translations</a> ";
echo "<li><a href='".CONF_MODULE_ARG."&op=admin&admin_op=fixTakeoffNames'>Fix Takeoff names</a><BR>It will update the takeoff names where the local or english name is missing and put the existing name into the missing one i.e if the local name is missing the english/international name will be used as the local too. ";
if ($CONF_use_validation)
echo "<li><a href='".CONF_MODULE_ARG."&op=admin&admin_op=updateValidation'>Update G-Record Validation</a> <BR>
Expand Down
Loading

0 comments on commit 022eeb9

Please sign in to comment.