Friso Airways | احجز رحلتك body { font-family: 'Arial', sans-serif; background: #f0f8ff; margin: 0; padding: 0; direction: rtl; } header { background: #005fa3; color: white; padding: 20px; text-align: center; } main { padding: 20px; max-width: 700px; margin: auto; background: white; border-radius: 15px; box-shadow: 0 0 15px rgba(0,0,0,0.1); margin-top: 20px; } label { display: block; margin-top: 10px; font-weight: bold; } input, select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #ccc; margin-top: 5px; } button { background: #007bff; color: white; border: none; padding: 15px; width: 100%; border-radius: 10px; font-size: 16px; margin-top: 20px; cursor: pointer; } .hidden { display: none; } .result, .search-result { margin-top: 20px; padding: 15px; background: #e8f5ff; border-radius: 10px; } h2 { color: #005fa3; } Friso Airways نسافر بك إلى حيث الجمال والراحة 🌍✈️ احجز رحلتك الآن من: عمانبيروتالقاهرةدبي

🔍 البحث عن حجز

const bookings = {}; function generateCode() { return 'FR' + Math.floor(Math.random() * 1000000); } document.getElementById("bookingForm").addEventListener("submit", function(event) { event.preventDefault(); const from = document.getElementById("from").value; const to = document.getElementById("to").value; const date = document.getElementById("date").value; const passengers = +document.getElementById("passengers").value; const tripType = document.getElementById("tripType").value; const travelClass = document.getElementById("class").value; const firstName = document.getElementById("firstName").value; const lastName = document.getElementById("lastName").value; const code = generateCode(); let basePrice = 100; if (travelClass === "تجارية") basePrice = 200; if (travelClass === "درجة أولى") basePrice = 350; const distanceFactor = from === to ? 1 : Math.floor(Math.random() * 5 + 1); const total = basePrice * passengers * distanceFactor; const plane = distanceFactor > 3 ? "Airbus A320" : "Cessna 208 Caravan"; const time = "" + (Math.floor(Math.random() * 12 + 1)) + ":" + (Math.floor(Math.random() * 59)).toString().padStart(2, '0') + " صباحًا"; bookings[code] = { from, to, date, passengers, tripType, travelClass, firstName, lastName, total, plane, time }; const resultDiv = document.getElementById("result"); resultDiv.innerHTML = `

تم الحجز بنجاح!

كود الحجز: ${code}

السيد/السيدة ${firstName} ${lastName}

من ${from} إلى ${to} بتاريخ ${date} الساعة ${time}

الدرجة: ${travelClass}

عدد المسافرين: ${passengers}

نوع الطائرة: ${plane}

السعر الكلي: ${total} دولار

🎉 شكرًا لاختيارك Friso Airways - نسعد بخدمتك دائمًا ✨

`; resultDiv.classList.remove("hidden"); }); function searchBooking() { const code = document.getElementById("searchCode").value.trim(); const lastName = document.getElementById("searchLastName").value.trim(); const data = bookings[code]; const searchDiv = document.getElementById("searchResult"); if (data && data.lastName === lastName) { searchDiv.innerHTML = `

تفاصيل الحجز:

${data.firstName} ${data.lastName}

${data.from} → ${data.to}

تاريخ الرحلة: ${data.date}

عدد المسافرين: ${data.passengers}

الدرجة: ${data.travelClass}

نوع الطائرة: ${data.plane}

الوقت: ${data.time}

السعر: ${data.total} دولار

`; } else { searchDiv.innerHTML = `

❌ لم يتم العثور على الحجز. تحقق من الكود واسم العائلة.

`; } searchDiv.classList.remove("hidden"); }