ob_start();
include('includes/class.gzip_encode.php');
include "includes/connect.php";
include "includes/functions.php";
include "includes/language.php";
// --------------------------------------------------------------------------------------
if ($country != "") {
$result_countryname2 = mysql_query("SELECT * FROM country_t WHERE country_id='$country'");
$disp_countryname2 = mysql_result($result_countryname2,0,$lang);
$pagetitle = "WFD - $disp_countryname2";
} else {
$pagetitle = "World Football Organization";
$disp_countryname2 = $e_Unable;
}
include "includes/head-body.php";
include "includes/haus-adal.php";
include "includes/menu-wff.php";
include "includes/menu-database.php";
$c4 = "arrow.gif";
$t4 = "arrow.gif";
include "includes/main-left-country.php";
?>
echo "
";
echo "
";
echo "";
echo "$disp_countryname2 > $m_Locations";
echo " |
";
?>
//--------- Raða venjulega -----------
if ($sort != "reg")
{
$resultLocations = mysql_query ("SELECT location_id, country_id, l_name, district, sortfield FROM location_t WHERE country_id='$country' ORDER BY sortfield, l_name");
if ($row = mysql_fetch_array($resultLocations)) {
do {
print ("");
print $row["l_name"];
print ("");
// fá Region og prenta út
$districtid = $row["district"];
$getRegion = mysql_query ("SELECT * from location_district_t WHERE district_id='$districtid' ORDER by d_name");
if ($row = mysql_fetch_array($getRegion)) {
do {
echo " (";
print $row["d_name"];
echo ")";
} while($row = mysql_fetch_array($getRegion));
}
//loka Region útprenti
echo "
\n";
} while($row = mysql_fetch_array($resultLocations));
} else {
echo $e_NoLocations;
}
}
//--------Loka venjulegri röðun--------
?>
//--------- Raða eftir svæði ---------
if ($sort == "reg")
{
$resultRegions = mysql_query ("SELECT * from location_district_t WHERE country_id = '$country' ORDER by sortfield, d_name");
if ($row = mysql_fetch_array($resultRegions)) {
do {
$districtid = $row["district_id"];
$district = $row["d_name"];
print ("$district
\n");
$resultLocations = mysql_query ("SELECT * from location_t WHERE country_id = '$country' AND district = '$districtid' ORDER by sortfield, l_name");
if ($row = mysql_fetch_array($resultLocations)) {
do {
print (" ");
print $row["l_name"];
print ("
\n");
} while($row = mysql_fetch_array($resultLocations));
} else {
echo " $e_NoLocations
";
}
} while($row = mysql_fetch_array($resultRegions));
} else {
echo $e_NoLocations;
}
}
//-----------Loka svæðisröðun---------
?>
include "includes/sponsor.php";
include "includes/fotur-body.php";
new gzip_encode();
?>