לוח הניהול

ברוך הבא למערכת הניהול!

משתמש: טוען...

ניהול כלבים

רישום, מעקב ועדכון פרטי כלבים

חוגים ופעילויות

ניהול אימונים, טיפוח וחוגים

ניהול צוות

מדריכים, וטרינרים ועובדים

לוח זמנים

משמרות, חוגים ותזמונים

אימוצים

מעקב תהליכי אימוץ ולקוחות

דוחות וסטטיסטיקות

נתונים ודוחות כלליים

document.addEventListener('DOMContentLoaded', function() { console.log('DOM ready and connecting buttons'); console.log('loadDogs function exists:', typeof loadDogs === 'function'); console.log('loadActivities function exists:', typeof loadActivities === 'function'); console.log('loadStaff function exists:', typeof loadStaff === 'function'); console.log('loadSchedule function exists:', typeof loadSchedule === 'function'); console.log('loadAdoptions function exists:', typeof loadAdoptions === 'function'); console.log('loadReports function exists:', typeof loadReports === 'function'); // Check if test button exists const testBtn = document.getElementById('btn-test'); console.log('Test button exists:', testBtn !== null); if (testBtn) { console.log('Test button found successfully!'); } else { console.error('Test button NOT found!'); } // Add event listeners to buttons (CSP-compliant) document.getElementById('btn-dogs').addEventListener('click', function() { console.log('Dogs button clicked!'); if (typeof loadDogs === 'function') { loadDogs(); } else { document.getElementById('contentArea').innerHTML = '

🐕 ניהול כלבים עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-activities').addEventListener('click', function() { console.log('Activities button clicked!'); if (typeof loadActivities === 'function') { loadActivities(); } else { document.getElementById('contentArea').innerHTML = '

📅 חוגים ופעילויות עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-staff').addEventListener('click', function() { console.log('Staff button clicked!'); if (typeof loadStaff === 'function') { loadStaff(); } else { document.getElementById('contentArea').innerHTML = '

� ניהול צוות עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-schedule').addEventListener('click', function() { console.log('Schedule button clicked!'); if (typeof loadSchedule === 'function') { loadSchedule(); } else { document.getElementById('contentArea').innerHTML = '

⏰ לוח זמנים עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-adoptions').addEventListener('click', function() { console.log('Adoptions button clicked!'); if (typeof loadAdoptions === 'function') { loadAdoptions(); } else { document.getElementById('contentArea').innerHTML = '

❤️ אימוצים עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-reports').addEventListener('click', function() { console.log('Reports button clicked!'); if (typeof loadReports === 'function') { loadReports(); } else { document.getElementById('contentArea').innerHTML = '

📊 דוחות עובד!

הכפתור עובד נכון!

'; } }); document.getElementById('btn-test').addEventListener('click', function() { console.log('Test button clicked! Working perfectly!'); alert('הכפתור עובד! עכשיו נציג את ההודעה...'); document.getElementById('contentArea').innerHTML = `
🎉

שלום עולם!

המערכת עובדת מצוין! 🚀

✅ הכפתורים עובדים!

✅ JavaScript פעיל!

✅ המערכת מוכנה!

זמן: ${new Date().toLocaleString('he-IL')}

`; }); }); // Test function window.testClick = function() { console.log('Test click works!'); alert('הכפתור עובד!'); };