لوحة تحكم الطالب

لوحة تحكم الطالب - مدرسة الديرة الأهلية

لوحة التحكم

متصل 350 نقطة
3
دورات مسجل بها
12
دروس مكتملة
2
حجوزات قادمة
5
شهادات
أحدث دوراتي
عرض الكل
الرياضيات المتقدمة

أ. أحمد محمد

12/16 درس 75%
الفيزياء للثانوية

أ. سارة علي

5/16 درس 30%
اللغة الإنجليزية

أ. نورة أحمد

مكتمل شهادة
رصيد المحفظة
1,250 ريال
آخر الإنجازات
أول درس 10 نقطة
إتمام دورة 50 نقطة
الانضباط 25 نقطة
آخر المعاملات
التاريخ العملية المبلغ الحالة
2024-02-20 شراء دورة رياضيات -200 ريال مكتمل
2024-02-18 إيداع رصيد +500 ريال مكتمل
2024-02-15 حجز حصة فيزياء -150 ريال معلق
// ===== تحديث واجهة المستخدم ===== function updateUserUI(userData) { if (userData.name) { document.getElementById('studentName').textContent = userData.name; // تحديث الصورة الرمزية const avatarImg = document.querySelector('.profile-image'); if (avatarImg) { avatarImg.src = `https://ui-avatars.com/api/?name=${encodeURIComponent(userData.name)}&background=1e293b&color=fff&size=80`; } } // هنا يمكن جلب البيانات الفعلية من API // loadStudentData(userData.email); } // ===== جلب بيانات الطالب من API (للاستخدام المستقبلي) ===== function loadStudentData(email) { // سيتم إضافة كود جلب البيانات من API لاحقاً console.log('جلب بيانات الطالب:', email); } // ===== دوال تسجيل الخروج ===== function showLogoutModal() { document.getElementById('logoutModal').classList.add('active'); } function hideLogoutModal() { document.getElementById('logoutModal').classList.remove('active'); } function logout() { // حذف بيانات المستخدم localStorage.removeItem('user'); localStorage.removeItem('selectedTeacher'); localStorage.removeItem('pendingBooking'); // إخفاء النافذة hideLogoutModal(); // توجيه المستخدم للصفحة الرئيسية window.location.href = '/p/login_21.html'; } // ===== إغلاق النافذة بالضغط على Escape ===== document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { hideLogoutModal(); } }); // ===== إغلاق النافذة بالضغط خارجها ===== document.getElementById('logoutModal').addEventListener('click', function(e) { if (e.target === this) { hideLogoutModal(); } }); // ===== تفعيل الرابط النشط في القائمة ===== document.addEventListener('DOMContentLoaded', function() { const currentPath = window.location.pathname; document.querySelectorAll('.sidebar .nav-link').forEach(link => { const href = link.getAttribute('href'); if (href && currentPath.includes(href)) { link.classList.add('active'); } }); });