Пример #1
0
// the Free Software Foundation; either version 2 of the License.
//
// $Id: GUI_group_admin.php,v 1.10 2010/03/14 20:56:11 manolis Exp $
//
//************************************************************************
if (!L_auth::isAdmin($userID)) {
    echo "go away";
    return;
}
require_once dirname(__FILE__) . '/CL_area.php';
$areaID = makeSane($_GET['areaID'], 1);
$pilotsList = array();
$pilotsID = array();
list($pilotsList, $pilotsID) = getPilotList();
list($takeoffs, $takeoffsID) = getTakeoffList();
list($countriesCodes, $countriesNames) = getCountriesList();
if ($_REQUEST["addTakeoffForm"]) {
    // form submitted
    $takeoffToAdd = $_POST['takeoff_select'] + 0;
    $query = "INSERT INTO {$areasTakeoffsTable}\t(areaID,takeoffID) VALUES ({$areaID},{$takeoffToAdd})";
    // echo $query;
    $res = $db->sql_query($query);
    if ($res <= 0) {
        echo "Problem in inserting takeoff to area";
    } else {
        echo "Takeoff added to area<br>";
    }
} else {
    // form not submitted
    // copy session variables (if any) to local variables
}
Пример #2
0
//************************************************************************
// Leonardo XC Server, http://www.leonardoxc.net
//
// Copyright (c) 2004-2010 by Andreadakis Manolis
//
// This program is free software. You can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License.
//
// $Id: GUI_index_full.php,v 1.13 2010/03/14 20:56:11 manolis Exp $
//
//************************************************************************
require_once dirname(__FILE__) . "/CL_template.php";
$Ltemplate = new LTemplate(dirname(__FILE__) . '/templates/' . $PREFS->themeName);
$Ltemplate->set_filenames(array('body' => 'index_full.html'));
list($countriesCodes, $countriesNames, $countriesFlightsNum) = getCountriesList();
$countriesNum = count($countriesNames);
require_once dirname(__FILE__) . "/FN_areas.php";
$i = 0;
foreach ($countriesNames as $countryName) {
    $continentNum = $countries2continent[$countriesCodes[$i]];
    $lgStrings[$continentNum] .= "<li><a href='javascript:jumpToLeague(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $ctStrings[$continentNum] .= "<li><a href='javascript:jumpToFlights(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $tkStrings[$continentNum] .= "<li><a href='javascript:jumpToTakeoffs(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $Ltemplate->assign_block_vars('lg', array('link' => "javascript:jumpToLeague('" . $countriesCodes[$i] . "')", 'name' => $countryName));
    $Ltemplate->assign_block_vars('ct', array('link' => "javascript:jumpToFlights('" . $countriesCodes[$i] . "')", 'name' => $countryName, 'flNum' => $countriesFlightsNum[$i]));
    $Ltemplate->assign_block_vars('tk', array('link' => "javascript:jumpToTakeoffs('" . $countriesCodes[$i] . "')", 'name' => $countryName));
    $i++;
}
$lgStr = '<div class="vnav">
<ul>
Пример #3
0
    ?>
</a>
	<ul>
	<?php 
    echo $catLiStr;
    ?>
	</ul>
</li>
</ul>
</div>

<?php 
}
// end of photos and comments filter
if (!$dontShowCountriesSelection) {
    list($countriesCodes, $countriesNames, $countriesFlightsNum) = getCountriesList(0, 0, $clubID);
    $countriesNum = count($countriesNames);
    if ($countriesNum == 1) {
        $country = $countriesCodes[0];
        $countryLegend = $countries[$country];
    }
    if ($country) {
        $countryFlagImg = leoHtml::img(strtolower($country) . ".gif", 0, 0, 'absmiddle', _MENU_COUNTRY, 'fl mb4');
    } else {
        $countryFlagImg = leoHtml::img("icon_globe.gif", 0, 0, 'absmiddle', _MENU_COUNTRY, 'icons1');
    }
}
?>

<?php 
if (!$dontShowCountriesSelection) {
Пример #4
0
<?php

require_once dirname(dirname(__FILE__)) . '/config.php';
require_once 'Common/pdf/OrisPDF.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/OrisFunctions.php';
require_once 'Common/pdf/PdfChunkLoader.php';
// ATTENTION!
// MUST BE called $PdfData
$PdfData = getCountriesList();
if (!isset($isCompleteResultBook)) {
    $pdf = new OrisPDF($PdfData->Code, $PdfData->Description);
} else {
    $pdf->setOrisCode('', $PdfData->Description);
}
require_once PdfChunkLoader('OrisListCountry.inc.php');
if (!isset($isCompleteResultBook)) {
    if (isset($_REQUEST['ToFitarco'])) {
        $Dest = 'D';
        if (isset($_REQUEST['Dest'])) {
            $Dest = $_REQUEST['Dest'];
        }
        $pdf->Output($_REQUEST['ToFitarco'], $Dest);
    } else {
        $pdf->Output();
    }
}