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 22, 2008
1 parent dd5d60d commit af3e4c3
Show file tree
Hide file tree
Showing 32 changed files with 293 additions and 158 deletions.
6 changes: 3 additions & 3 deletions CL_brands.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ function getBrandImg($brandID,$gliderName='',$glidetCat=0){
if ($brandID) {
if (!isset($brandName) ) $brandName=$CONF['brands']['list'][$brandID];
if (is_file("$CONF_abs_path/img/brands/".sprintf("%03d",$brandID).".gif") )
$gliderBrandImg="<img src='$moduleRelPath/img/brands/".sprintf("%03d",$brandID).".gif' title='$brandName $gliderName' alt='$brandName $gliderName' border='0' />";
$gliderBrandImg="<img align='absmiddle' src='$moduleRelPath/img/brands/".sprintf("%03d",$brandID).".gif' title='$brandName $gliderName' alt='$brandName $gliderName' border='0' />";
else
$gliderBrandImg="<img src='$moduleRelPath/img/space.gif' width=10 height=10 title='$brandName $gliderName' alt='$brandName $gliderName' border='0' />";
$gliderBrandImg="<img align='absmiddle' src='$moduleRelPath/img/space.gif' width=10 height=10 title='$brandName $gliderName' alt='$brandName $gliderName' border='0' />";
} else
$gliderBrandImg="<img src='$moduleRelPath/img/brands/unknown_".sprintf("%03d",$glidetCat).".gif' title='$gliderName' alt='$gliderName' border='0' />";
$gliderBrandImg="<img align='absmiddle' src='$moduleRelPath/img/brands/unknown_".sprintf("%03d",$glidetCat).".gif' title='$gliderName' alt='$gliderName' border='0' />";
return $gliderBrandImg;
}

Expand Down
13 changes: 8 additions & 5 deletions CL_flightData.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ function getJsonFilename() {
// Full url functions
//----------------------------------------
function getFlightLinkURL() {
return "http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$this->flightID;
return "http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$this->flightID));
}

function getIGC_URL($saned=0) {
Expand Down Expand Up @@ -3877,10 +3878,12 @@ function hideSameFlights() {
$msg.= " Disabling ";
$query="UPDATE $flightsTable SET private = private | 0x02 WHERE ID=".$fEntry['ID'];
}
$msg.= " <a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName().
"&op=show_flight&flightID=".$fEntry['ID']."'>Flight ".$fEntry['ID'].
"</a> from <a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName().
"&op=pilot_profile&pilotIDview=".$fEntry['userServerID'].'_'.$fEntry['userID']."'>PILOT ".
$msg.= " <a href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$fEntry['ID'])).
"'>Flight ".$fEntry['ID'].
"</a> from <a href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'pilot_profile','pilotIDview'=>$fEntry['userServerID'].'_'.$fEntry['userID'])).
"'>PILOT ".
$fEntry['userServerID'].'_'.$fEntry['userID']."</a><BR>\n";

$res= $db->sql_query($query);
Expand Down
5 changes: 4 additions & 1 deletion CL_gpsPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ function exportXML($forceProtocol='') {
if ($forceProtocol=='XML') $useJSON=0;
else $useJSON=1;
}
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_waypoint&waypointIDview=".$this->waypointID);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_waypoint','waypointIDview'=>$this->waypointID))
);


if (!$useJSON) {
return "<waypoint>
Expand Down
17 changes: 12 additions & 5 deletions EXT_flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
$XML_str="<result>\n";
$XML_str.="
<title>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</title>
<link>http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."</link>
<link>http://".$_SERVER['SERVER_NAME'].getLeonardoLink(array('op'=>'list_flights')) ."</link>
<date>". gmdate('D, d M Y H:i:s', time()) . " GMT</date>
";

Expand Down Expand Up @@ -90,7 +90,9 @@
// $nearestWaypoint->getFromDB();

$name=getPilotRealName($row["userID"],$row["userServerID"]);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row['ID']))
);
$this_year=substr($row[DATE],0,4);
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainDir().$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );

Expand Down Expand Up @@ -151,7 +153,10 @@
$nearestWaypoint->getFromDB();

$name=getPilotRealName($row["userID"],$row["userServerID"]);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row['ID']))
);

$this_year=substr($row[DATE],0,4);
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainDir().$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );

Expand Down Expand Up @@ -203,7 +208,7 @@
$XML_str="
<result>
<title>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</title>
<link>http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."</link>
<link>http://".$_SERVER['SERVER_NAME']. getLeonardoLink(array('op'=>'list_flights'))."</link>
<description>Leonardo at ".$_SERVER['SERVER_NAME']." :: Flight list</description>
<managingEditor>".$CONF_admin_email."</managingEditor>
<webMaster>".$CONF_admin_email."</webMaster>
Expand All @@ -215,7 +220,9 @@
$nearestWaypoint->getFromDB();

$name=getPilotRealName($row["userID"],$row["userServerID"]);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']);
$link=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row['ID']))
);
$this_year=substr($row[DATE],0,4);
$linkIGC=htmlspecialchars ("http://".$_SERVER['SERVER_NAME'].getRelMainDir().$flightsRelPath."/".$row[userID]."/flights/".$this_year."/".$row[filename] );

Expand Down
4 changes: 1 addition & 3 deletions EXT_google_maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ function createMarker(point, id , description, iconUrl, shadowUrl ) {
var marker = new GMarker(point);
}
// Show this marker's index in the info window when it is clicked
/* var html = "<b>" + description + "</b><br>";
// html+="<img src='img/icon_magnify_small.gif' align='absmiddle' border=0> <a href='<?=getRelMainFileName()?>&op=list_flights&takeoffID="+id+"&year=0&month=0&season=0&pilotID=0&country=0&cat=0' target='_top'><? echo _See_flights_near_this_point ?></a>";
*/


GEvent.addListener(marker, "click", function() {
getAjax('EXT_takeoff.php?op=get_info&wpID='+id,null,openMarkerInfoWindow);
Expand Down
4 changes: 0 additions & 4 deletions EXT_google_maps_track.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,6 @@ function createWaypoint(point, id , description, iconUrl, shadowUrl ) {
} else {
var marker = new GMarker(point);
}
// Show this marker's index in the info window when it is clicked
/* var html = "<b>" + description + "</b><br>";
html+="<img src='img/icon_magnify_small.gif' align='absmiddle' border=0> <a href='<?=getRelMainFileName()?>&op=list_flights&takeoffID="+id+"&year=0&month=0&pilotID=0&country=0&cat=0'><? echo _See_flights_near_this_point ?></a>";
*/

GEvent.addListener(marker, "click", function() {
getAjax('EXT_takeoff.php?op=get_info&wpID='+id,null,openMarkerInfoWindow);
Expand Down
4 changes: 3 additions & 1 deletion EXT_takeoff.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
// echo "<b>".$description."</b><br><img src='img/icon_pin.png' align='absmiddle' border=0> <a href='GUI_EXT_waypoint_info.php?wID=$wpID' rel='facebox'>"._SITE_INFO."</a><br>";

} else {
echo "<b>".$description."</b><br><img src=\'img/icon_pin.png\' align=\'absmiddle\' border=0> <a target=\'_top\' href=\'".getRelMainFileName()."&op=show_waypoint&waypointIDview=$wpID\'>"._SITE_INFO."</a><br>";
echo "<b>".$description."</b><br><img src=\'img/icon_pin.png\' align=\'absmiddle\' border=0> <a target=\'_top\' href=\'".
getLeonardoLink(array('op'=>'show_waypoint','waypointIDview'=>$wpID))
."\'>"._SITE_INFO."</a><br>";
}


Expand Down
19 changes: 12 additions & 7 deletions EXT_takeoff_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
echo "error in query :$query";
}

echo "<a target='_blank' href='".getRelMainFileName()."&op=show_waypoint&waypointIDview=$wpID'>$description</a><br>";
echo "<a target='_blank' href='".
getLeonardoLink(array('op'=>'show_waypoint','waypointIDview'=>$wpID))
."'>$description</a><br>";



Expand All @@ -104,14 +106,17 @@
$flightNum=mysql_num_rows($res);

if ($flightNum>0) {
echo "<b><a href='".getRelMainFileName().
"&op=list_flights&takeoffID=".$wpID."&year=0&month=0&season=0&pilotID=0&country=0&cat=0' target='_blank'> Flights[ ".$flightNum." ]</a></b><br>";
echo "<b>"._SITE_RECORD."</b>:";
echo "<b><a href='".
getLeonardoLink(array('op'=>'list_flights','takeoffID'=>$wpID,
'year'=>0,'month'=>'0','season'=>'0','pilotID'='0_0','country'=>'0','cat'=>'0'
))."' target='_blank'> Flights[ ".$flightNum." ]</a></b><br>";
echo "<b>"._SITE_RECORD."</b>:";

$row = mysql_fetch_assoc($res);
$row = mysql_fetch_assoc($res);

echo '<a target=\'_top\' href=\'http://'.$_SERVER['SERVER_NAME'].getRelMainFileName().'&op=show_flight&flightID='.$row['ID'].'\'>'.
formatDistance($row['record_km'],1).'</a>';
echo '<a target=\'_top\' href=\'http://'.$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row['ID'])).'\'>'.
formatDistance($row['record_km'],1).'</a>';
} else {
echo " No flights from this location";
}
Expand Down
14 changes: 10 additions & 4 deletions FN_flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function extractGlider($lines) {
}

function getAddFlightErrMsg($result,$flightID) {
$callingURL="http://".$_SERVER['SERVER_NAME'].getRelMainFileName();
$callingURL="http://".$_SERVER['SERVER_NAME'];
if (is_array($flightID) ) {
$flightID=$flightID[0]['ID'];
}
Expand All @@ -529,16 +529,22 @@ function getAddFlightErrMsg($result,$flightID) {
break;
case ADD_FLIGHT_ERR_SAME_DATE_FLIGHT:
$errMsg=_THERE_IS_SAME_DATE_FLIGHT."<br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
"<a href='$callingURL".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$flightID)).
"'>"._DELETE_THE_OLD_ONE."</a>";
break;
case ADD_FLIGHT_ERR_SAME_FILENAME_FLIGHT:
$errMsg=_THERE_IS_SAME_FILENAME_FLIGHT."<br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a><br><br>".
"<a href='$callingURL".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$flightID)).
"'>"._DELETE_THE_OLD_ONE."</a><br><br>".
_CHANGE_THE_FILENAME;
break;
case ADD_FLIGHT_ERR_SAME_HASH_FLIGHT:
$errMsg=_THERE_IS_SAME_DATE_FLIGHT." (HASH) <br><br>"._IF_YOU_WANT_TO_SUBSTITUTE_IT." ".
"<a href='$callingURL&op=show_flight&flightID=$flightID'>"._DELETE_THE_OLD_ONE."</a>";
"<a href='$callingURL".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$flightID)).
"'>"._DELETE_THE_OLD_ONE."</a>";
break;
case ADD_FLIGHT_ERR_DATE_IN_THE_FUTURE:
$errMsg="The date of the flight is in the future<BR>Please use the Year-month-day not the US Year-day-month format";
Expand Down
11 changes: 8 additions & 3 deletions FN_waypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,17 @@ function makeWaypointPlacemark($waypointID,$returnCountryCode=0) {
$flightNum=mysql_num_rows($res);
$row = $db->sql_fetchrow($res);

$siteRecordLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
$siteRecordLink="<a href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row['ID']))."'>".
formatDistance($row['record_km'],1)."</a>";
} else $siteRecordLink="";

$pointFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&takeoffID=$waypointID&year=0'>"._See_flights_near_this_point." [ ".$flightNum." ]</a>";
$countryFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&year=0&takeoffID=0&country=".$wpInfo->countryCode."'>".$countries[$wpInfo->countryCode]."</a>";
$pointFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'list_flights','takeoffID'=>$waypointID,'year'=>'0','season'=>'0'))
."'>"._See_flights_near_this_point." [ ".$flightNum." ]</a>";
$countryFlightsLink="<a href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'list_flights','takeoffID'=>'0','year'=>'0','season'=>'0','country'=>$wpInfo->countryCode))
."'>".$countries[$wpInfo->countryCode]."</a>";
if ($wpInfo->link) $siteLink='<a href="'.formatURL($wpInfo->link).'" target="_blank">'.formatURL($wpInfo->link).'</a>';
else $siteLink="-";

Expand Down
9 changes: 5 additions & 4 deletions GUI_EXT_waypoint_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,15 @@
$flightNum=mysql_num_rows($res);
$row = mysql_fetch_assoc($res);

echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
formatDistance($row['record_km'],1)."</a>";
echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"]))
."'>".formatDistance($row['record_km'],1)."</a>";
}


?>
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName().
"&op=list_flights&takeoffID=$waypointIDview&year=0&month=0'>".
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'list_flights','takeoffID'=>$waypointIDview,'year'=>'0','month'=>'0','season'=>'0','pilotID'=>'0','country'=>'0','cat'=>'0'))."'>".
_See_flights_near_this_point." [ ".$flightNum." ]</a>"; ?></strong></td>
</tr>
<tr bgcolor="#49766D">
Expand Down
9 changes: 6 additions & 3 deletions GUI_EXT_waypoint_details_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,17 @@
$flightNum=mysql_num_rows($res);
$row = mysql_fetch_assoc($res);

echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=show_flight&flightID=".$row['ID']."'>".
echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"])) ."'>".
formatDistance($row['record_km'],1)."</a>";
}


?>
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].getRelMainFileName().
"&op=list_flights&takeoffID=$waypointIDview&year=0&month=0'>".
<p> <strong><? echo "<a target='_blank' href='http://".$_SERVER['SERVER_NAME'].
getLeonardoLink(array('op'=>'list_flights','takeoffID'=>$waypointIDview,'year'=>'0','month'=>'0',
'season'=>'0','pilotID'=>'0','country'=>'0','cat'=>'0'
))."'>".
_See_flights_near_this_point." [ ".$flightNum." ]</a>"; ?></strong></td>
</tr>
<tr bgcolor="#49766D">
Expand Down
16 changes: 12 additions & 4 deletions GUI_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ function chmodDir($dir){
}

$orgIgcURL= "http://".$server->data['url_base']."/download.php?type=igc&zip=0&flightID=".$row["original_ID"];
echo "$i. Flight ID: <a href='".getRelMainFileName()."&op=show_flight&flightID=".$row["ID"]."' target=_blank>".$row["ID"]."</a> [".$row["dateAdded"]."] ";
echo "$i. Flight ID: <a href='".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"]))
."' target=_blank>".$row["ID"]."</a> [".$row["dateAdded"]."] ";

// echo " [ ".$row['filename']." ] ";
echo " <a href='$moduleRelPath/$rdir/".$row['filename']."'>IGC</a> ";
Expand Down Expand Up @@ -467,7 +469,9 @@ function chmodDir($dir){
}

if ($newfilename=='') {
echo "$j. Flight ID: <a href='".getRelMainFileName()."&op=show_flight&flightID=".$row["ID"]."' target=_blank>".$row["ID"]."</a> ";
echo "$j. Flight ID: <a href='".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"]))
."' target=_blank>".$row["ID"]."</a> ";
echo "Latin filename for [ ".$row['filename']." ] is NULL!!!!!<BR>";
$j++;

Expand Down Expand Up @@ -515,7 +519,9 @@ function chmodDir($dir){

$i++;
$newfilename=safeFilename( $newfilename);
echo "$i. Flight ID: <a href='".getRelMainFileName()."&op=show_flight&flightID=".$row["ID"]."' target=_blank>".$row["ID"]."</a> will rename [".$row["filename"]."] ( $oldFilename ) to [ $newfilename ] <br>";
echo "$i. Flight ID: <a href='".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"]))
."' target=_blank>".$row["ID"]."</a> will rename [".$row["filename"]."] ( $oldFilename ) to [ $newfilename ] <br>";

if ( $latinAvailable && $newfilename ) {
$flight=new flight();
Expand Down Expand Up @@ -545,7 +551,9 @@ function chmodDir($dir){
echo "FOUND UTF !!!!!! :<HR>";
}
$newfilename=toLatin1($row['filename']);
echo "$i. Flight ID: <a href='".getRelMainFileName()."&op=show_flight&flightID=".$row["ID"]."' target=_blank>".$row["ID"]."</a> [ $newfilename ] [".$row["dateAdded"]."] $status <br>";
echo "$i. Flight ID: <a href='".
getLeonardoLink(array('op'=>'show_flight','flightID'=>$row["ID"]))
."' target=_blank>".$row["ID"]."</a> [ $newfilename ] [".$row["dateAdded"]."] $status <br>";
echo "$filenameUTF<BR>";
continue;
}
Expand Down
5 changes: 2 additions & 3 deletions GUI_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@



$filterUrl="http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=filter&fl_url=1";
$redirectUrl="http://".$_SERVER['SERVER_NAME'].getRelMainFileName()."&op=list_flights&sortOrder=DATE&year=0&month=0&pilotID=0";

$filterUrl="http://".$_SERVER['SERVER_NAME'].getLeonardoLink(array('op'=>'filter','fl_url'=>'1'));
$redirectUrl="http://".$_SERVER['SERVER_NAME'].getLeonardoLink(array('op'=>'list_flights'));

require_once dirname(__FILE__).'/CL_dialogfilter.php';
$dlgfilters=array();
Expand Down
20 changes: 15 additions & 5 deletions GUI_list_comp.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ function sortArrayBest($arrayName,$countHowMany) {
$legendRight.=" [&nbsp;".($startNum+1)."-".$endNum."&nbsp;"._From."&nbsp;".$itemsNum ."&nbsp;]";
if ($itemsNum==0) $legendRight="[ 0 ]";

echo "<div class='tableTitle shadowBox'><div class='titleDiv'>$legend</div><div class='pagesDiv'>$legendRight</div></div>" ;
// echo "<div class='tableTitle shadowBox'><div class='titleDiv'>$legend</div><div class='pagesDiv'>$legendRight</div></div>" ;

require_once dirname(__FILE__)."/MENU_second_menu.php";

Expand Down Expand Up @@ -355,8 +355,16 @@ function sortArrayBest($arrayName,$countHowMany) {

echo " <div class='menu1' $style ><a href='".getLeonardoLink(array('op'=>'competition','comp'=>$subcatID) )."'>$subcatTitle</a></div>";
}
echo "<BR>";



echo "<div style='height:5px;clear:both;'></div>";

echo "<div class='list_header'>
<div class='list_header_r'></div>
<div class='list_header_l'></div>
<h1>$legend</h1>
<div class='pagesDiv'>$legendRight</div>
</div>";

listCategory($leagueCategories[$leagueCategory]['legend'],$leagueCategories[$leagueCategory]['header'],
$leagueCategories[$leagueCategory]['arrayName'],$leagueCategories[$leagueCategory]['formatFunction']);
Expand Down Expand Up @@ -387,14 +395,16 @@ function listCategory($legend,$header, $arrayName, $formatFunction="") {
global $flights;

$legendRight=""; // show all pilots up to $CONF_compItemsPerPage
if ($tabID == ($_GET['comp']+0) ) $defaultTabStr=" tabbertabdefault";

/* if ($tabID == ($_GET['comp']+0) ) $defaultTabStr=" tabbertabdefault";
else $defaultTabStr="";
$tabID++;
echo "<div class='tabbertab $defaultTabStr' title='$legend'>";
*/

$legend.=" (".$countHowMany." "._N_BEST_FLIGHTS.")";
echo "<br><table class='listTable listTableTabber' cellpadding='2' cellspacing='0'>
echo "<table class='listTable listTableTabber' cellpadding='2' cellspacing='0'>
<tr><td class='tableTitleExtra' colspan='".($countHowMany+4)."'>$legend</td></tr>";

?>
Expand Down
11 changes: 9 additions & 2 deletions GUI_list_flights.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,19 @@ function replace_spaces($str) {
$legendRight.=" [&nbsp;".($startNum+1)."-".$endNum."&nbsp;"._From."&nbsp;".$itemsNum ."&nbsp;]";
if ($itemsNum==0) $legendRight="[ 0 ]";

echo "<div class='tableTitle'>
if (0)echo "<div class='tableTitle'>
<div class='titleDiv'>$legend</div>
<div class='pagesDiv' style='white-space:nowrap'>$legendRight</div>
</div>" ;

require_once dirname(__FILE__)."/MENU_second_menu.php";

echo "<div class='list_header'>
<div class='list_header_r'></div>
<div class='list_header_l'></div>
<h1>$legend</h1>
<div class='pagesDiv'>$legendRight</div>
</div>";

listFlights($res,$legend, $queryExtraArray,$sortOrder);

Expand Down
Loading

0 comments on commit af3e4c3

Please sign in to comment.