body { direction: rtl; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f8; margin: 0; } .entry-content, .wp-block-group { max-width: 100% !important; padding: 0 !important; } h2 { color: #333; text-align: center; font-size: 1.9em; margin: 22px 0; } .controls { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; padding:14px 18px; border-radius:10px; border:1px solid #e0e0e0; background:#fff; width:95%; margin:8px auto; box-shadow:0 3px 10px rgba(0,0,0,0.04); } select { height:44px; padding:0 10px; min-width:160px; border-radius:6px; border:1px solid #ccc; } .join-box { width:95%; margin:10px auto; background:#fff7d9; border-left:4px solid #f0b400; padding:14px; border-radius:10px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; } .join-text { color:#6a5200; font-size:1.05em; flex:1 1 auto; } .join-actions { display:flex; gap:10px; align-items:center; } .or-text { font-weight:600; color:#444; } .btn { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:8px; font-weight:700; text-decoration:none; cursor:pointer; min-width:150px; transition: 0.3s; } .btn-join { background:#fff; border:2px solid #25D366; color:#25D366; } .btn-join:hover { opacity:0.85; } .btn-share { background:#128C7E; color:#fff; border:2px solid #128C7E; } .btn-share:hover { opacity:0.85; } #fetchButtonContainer { width:95%; margin:12px auto; text-align:center; } #fetchButtonContainer button { padding:10px 20px; border-radius:8px; border:none; background:#007BFF; color:#fff; font-weight:700; cursor:pointer; } #weekTitle { display:none; text-align:center; font-size:1.2em; margin:12px auto; color:#333; } #lessonsList { display:none; width:95%; margin:0 auto 30px; background:#fafbfd; padding:12px; border-radius:10px; } .lesson-item { display:flex; justify-content:space-between; align-items:center; background:#fff; padding:12px 14px; margin-bottom:10px; border-radius:8px; border-left:5px solid #007BFF; box-shadow:0 3px 10px rgba(0,0,0,0.04); } .lesson-info { display:flex; flex-direction:column; gap:2px; } .lesson-title, .lesson-sub { margin:0 !important; padding:0; line-height:1.1; } .lesson-title { font-weight:800; } .lesson-sub { font-size:.9em; color:#555; } .lesson-button { padding: 8px 14px; border-radius: 8px; border: 2px solid #007BFF; cursor: pointer; font-weight: 800; background: #fff; color: #007BFF; display: flex; align-items: center; gap: 8px; transition: 0.3s; } .lesson-button:hover { background: #007BFF; color: #fff; } .empty-message { text-align:center; padding:12px; background:#fff3cd; border-radius:6px; } @media (max-width:700px) { .join-box { flex-direction:column; align-items:stretch; } .join-actions { width:100%; justify-content:flex-start; } .btn { width:100%; } .lesson-item { flex-direction:column; align-items:flex-start; gap:10px; } .lesson-button { width:100%; justify-content:center; } } تحميل دروس التعليم الصريح اختر المستوى المستوى الأول المستوى الثاني المستوى الثالث المستوى الرابع المستوى الخامس المستوى السادس اختر المادة العربية الفرنسية الرياضيات اختر المرحلة المرحلة الأولى المرحلة الثانية المرحلة الثالثة المرحلة الرابعة المرحلة الخامسة المرحلة السادسة اختر الأسبوع الأسبوع الأول الأسبوع الثاني الأسبوع الثالث الأسبوع الرابع الأسبوع الخامس الأسبوع السادس جلب الحصص ✉️ انضم إلى قناتنا على الواتساب للتوصل بمختلف الموارد التربوية فور نشرها انضم إلينا أو شارك الموقع في حال وجود اي مشكل او عطب تواصل معنا من هنا: اتصل بنا document.addEventListener('DOMContentLoaded', () => { const lessons = document.getElementById('lessonsList'); const weekT = document.getElementById('weekTitle'); // زر مشاركة الموقع document.getElementById('btnShare').onclick = () => { const text = "📚 حمل دروس التعليم الصريح بروابط مباشرة من https://www.e-tice.com"; window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(text)}`, '_blank'); }; document.getElementById('getLessons').onclick = () => { const level = document.getElementById('level').value, phase = document.getElementById('phase').value, week = document.getElementById('week').value, subject = document.getElementById('subject').value; if(!level || !phase || !week || !subject){ return alert("الرجاء تحديد جميع الاختيارات"); } weekT.style.display = 'block'; lessons.style.display = 'block'; lessons.innerHTML = 'جاري جلب الحصص...'; // استدعاء fetch.php مع المعلمات const fetchUrl = `https://www.e-tice.com/lecons-explicites/fetch.php?phase=${phase}&week=${week}&level=${level}&subject=${subject}&t=${Date.now()}`; fetch(fetchUrl) .then(res => { if (!res.ok) throw new Error(`HTTP ${res.status}`); return res.json(); }) .then(data => { lessons.innerHTML = ''; // في حال وجود خطأ من PHP if(data.error){ lessons.innerHTML = `${data.error}${data.message || ''}`; return; } if(!Array.isArray(data) || data.length === 0){ lessons.innerHTML = 'لا توجد حصص مطابقة للاختيارات.'; return; } weekT.textContent = `حصص ${week.replace('SEM','الأسبوع ')}`; data.forEach(f => { lessons.innerHTML += ` ${f.title || 'الحصة'} ${f.sub || ''} 📥 تحميل `; }); }) .catch(err => { lessons.innerHTML = `خطأ في الاتصال أو الملف غير موجود.${err.message}`; }); }; });
شكراااا
Merci
شكرا