<?php
/* MyTickets (C) 2010 \\ Thank you Talal  */
$c_array = array("uae" => "الإمارات العربية المتحدة","sa" => "المملكة العربية السعودية","jo" => "الأردن","sd" => "السودان","kw" => "الكويت","iq" => "العراق","ye" => "اليمن","om" => "عُمان","ps" => "فلسطين","qa" => "قطر","bh" => "مملكة البحرين","eg" => "مصر","lb" => "لبنان","la" => "ليبيا","sy" => "سوريا","ai" => "أنغولا","al" => "ألبانيا",
"am" => "أرمينيا","ar" => "الأرجنتين","at" => "النمسا","au" => "أستراليا","aw" => "أروبا","so" => "الصومال","dz" => "الجزائر",
"cn" => "الصين","de" => "ألمانيا","ec" => "الإكوادور","ee" => "أستونيا","gr" => "اليونان","es" => "إسبانيا","et" => "إثيوبيا","id" => "إندونيسيا",
"ie" => "إيرلندا","in" => "الهند","ir" => "إيران","is" => "آيسلندا","it" => "إيطاليا","jp" => "اليابان","ua" => "أكرانيا","ug" => "أوغندا",
"mx" => "المكسيك","ma" => "المغرب","uk" => "المملكة المتحدة","us" => "الولايات المتحدة","uy" => "أورغواي","uz" => "أوز باكستان","br" => "البرازيل",
"ph" => "الفلبين","pt" => "البرتغال","no" => "النرويج","se" => "السويد","np" => "النيبال","bs" => "البهاما","bw" => "بوتسوانا","gb" => "بريطانيا","pk" => "باكستان","py" => "برغواي",
"be" => "بلجيكا","pa" => "بَنْما","pl" => "بولندا","bg" => "بلغاريا","bm" => "برمودا","bo" => "بوليفيا","th" => "تايلند","tn" => "تونس","tr" => "تركيا","tw" => "تايوان",
"tz" => "تنزانيا","cl" => "تشيلي","ge" => "جورجيا","gl" => "جرين لاند","cz" => "جمهورية التشيك","jm" => "جامايكا","za" => "جنوب أفريقيا","ro" => "رومانيا","lc" => "سانت لوسيا",
"lk" => "سريلانكا","sg" => "سنغافورة","ch" => "سويسرا","ci" => "ساحل العاج","fr" => "فرنسا","fi" => "فنلندا","ve" => "فينزويلا","vn" => "فيتنام","cy" => "قبرص",
"kg" => "قرغيزستان","kz" => "كازاخستان","co" => "كولومبيا","cr" => "كوستريكا","cu" => "كوبا","ca" => "كندا","ke" => "كينيا",
"lu" => "لوكسمبورغ","lv" => "لاتفيا","hu" => "هنغاريا","nl" => "هولندا","mc" => "موناكو","md" => "مولدوفيا",
"my" => "ماليزيا","mk" => "مقدونيا","na" => "ناميبيا","ng" => "نيجيريا","nz" => "نيوزيلندا"
);

$b_array = array("uae" => "United Arab Emirates","sa" => "Saudi Arabia","jo" => "Jordan","sd" => "Sudan","kw" => "Kuwait",
"iq" => "Iraq","ye" => "Yemen","om" => "Oman","ps" => "Palestine","qa" => "Qatar","bh" => "Bahrain","eg" => "Egypt","lb" => "Lebanon","la" => "Libya","ai" => "Angola","al" => "Albania",
"am" => "Armenia","ar" => "Argentina","at" => "Austria","au" => "Australia","aw" => "Aruba","so" => "Samoa","dz" => "Algeria",
"cn" => "China","de" => "Germany","ec" => "Ecuador","ee" => "Estonia","gr" => "Greece","es" => "Spain","et" => "Ethiopia","id" => "Indonesia",
"ie" => "Ireland","in" => "India","ir" => "Iran","is" => "Iceland","it" => "Italy","jp" => "Japan","ua" => "Ukraine","ug" => "Uganda",
"mx" => "Mexico","ma" => "Morocco","uk" => "United Kingdom","us" => "United States of America","uy" => "Uruguay","uz" => "Uzbekistan","br" => "Brazil",
"ph" => "Philippines","pt" => "Portugal","no" => "Norway","se" => "Sweden","np" => "Nepal","bs" => "Bahamas","bw" => "Botswana","gb" => "Britain","pk" => "Pakistan","py" => "Paraguay",
"be" => "Belgium","pa" => "Panama","pl" => "Poland","bg" => "Bulgaria","bm" => "Bermuda","bo" => "Bolivia","th" => "Thailand","tn" => "Tunisia","tr" => "Turkey","tw" => "Taiwan",
"tz" => "Tanzania","cl" => "Chile","ge" => "Georgia","gl" => "Greenland","cz" => "Czech Republic","jm" => "Jamaica","za" => "South Africa","ro" => "Romania","lc" => "Lesotho",
"lk" => "Sri Lanka","sg" => "Singapore","ch" => "Switzerland","ci" => "Christmas Island","fr" => "France","fi" => "Finland","ve" => "Venezuela","vn" => "Vietnam","cy" => "Cyprus",
"kg" => "Kyrgyzstan","kz" => "Kazakhstan","co" => "Colombia","cr" => "Costa Rica","cu" => "Cuba","ca" => "Canada","ke" => "Kenya",
"lu" => "Luxembourg","lv" => "Latvia","hu" => "Hungary","nl" => "Netherlands (Holland, Europe)","mc" => "Monaco","md" => "Moldova",
"my" => "Malaysia","mk" => "Macedonia","na" => "Nambia","ng" => "Nigeria","nz" => "New Zealand"
);


global $c_array;


	function countrys_menu($SELECT='',$l=1){
		global $array;
		if($l == 1){
			global $c_array;
	    		$array['country'] .= '<select name="country">';
	 		   foreach ($c_array as $flag => $country) {
	 			   $array['country'] .= "<option value=\"{$flag}\"";
	 			   if ($SELECT == $flag) $array['country'] .= "selected";
	  			  $array['country'] .= ">{$country}</option>";
	  		  }
	  		  $array['country'] .= '</select>';
		}else{
			global $b_array;
	    		$array['country'] .= '<select name="country">';
	 		   foreach ($b_array as $flag => $country) {
	 			   $array['country'] .= "<option value=\"{$flag}\"";
	 			   if ($SELECT == $flag) $array['country'] .= "selected";
	  			  $array['country'] .= ">{$country}</option>";
	  		  }
	  		  $array['country'] .= '</select>';
		}
	}
	
	   
	   
	function country($SELECT,$l=1){
		if($l == 1){
		global $c_array;
		foreach ($c_array as $flag => $country) {
	    if ($SELECT == $flag) return $SELECT = $country;
	    }
		}else{
		global $b_array;
		foreach ($b_array as $flag => $country) {
	    if ($SELECT == $flag) return $SELECT = $country;
	    }
		}
	}
	   
?>