File size: 23,737 Bytes
767aaef 453ad19 767aaef 453ad19 767aaef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>معهد مدينة العلوم العصرية - المنصة التعليمية الإدارية</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #1a3a6d;
--secondary-color: #0a5c5c;
--accent-color: #f8ba10;
--light-color: #f4f7fc;
--dark-color: #1c2331;
}
body {
font-family: 'Tajawal', sans-serif;
background-color: var(--light-color);
min-height: 100vh;
background-image: linear-gradient(to bottom, #e6eef8, #f4f7fc);
}
.login-container {
max-width: 450px;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
background-color: white;
margin: 3rem auto;
border-top: 5px solid var(--primary-color);
transition: all 0.3s ease;
}
.login-container:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.dashboard-container {
display: none;
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}
.logo-container {
text-align: center;
margin-bottom: 2rem;
}
.logo-img {
max-width: 200px;
margin-bottom: 1rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.logo-img:hover {
transform: scale(1.05);
}
.form-control:focus, .btn:focus {
box-shadow: 0 0 0 0.25rem rgba(26, 58, 109, 0.25);
border-color: var(--primary-color);
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
padding: 0.6rem 1.5rem;
font-weight: 500;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: #0f2952;
border-color: #0f2952;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(15, 41, 82, 0.2);
}
.system-card {
height: 100%;
transition: all 0.3s ease;
border: none;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
background: linear-gradient(to bottom, #ffffff, #f9fbff);
}
.system-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-icon {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
transition: transform 0.3s ease;
background-color: rgba(26, 58, 109, 0.1);
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
margin: 0 auto 1.5rem;
}
.system-card:hover .card-icon {
transform: scale(1.1);
background-color: rgba(26, 58, 109, 0.15);
}
.footer {
text-align: center;
padding: 1.5rem 0;
margin-top: 3rem;
background-color: var(--primary-color);
color: white;
border-top: 3px solid var(--accent-color);
}
.footer a {
color: var(--accent-color);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
}
.footer a:hover {
text-decoration: underline;
color: #ffcc40;
}
.header {
background-color: var(--primary-color);
color: white;
padding: 1rem 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
.login-form {
position: relative;
}
.password-toggle {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
cursor: pointer;
color: var(--dark-color);
transition: all 0.3s ease;
}
.password-toggle:hover {
color: var(--primary-color);
}
.input-group {
margin-bottom: 1rem;
}
.input-group-text {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.form-control {
border: 1px solid #ddd;
padding: 0.6rem 1rem;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-color);
transform: translateY(-2px);
}
.systems-container {
background-color: white;
border-radius: 15px;
padding: 2rem;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
margin-bottom: 2rem;
transition: all 0.3s ease;
}
.systems-container:hover {
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.section-title {
position: relative;
padding-bottom: 0.5rem;
margin-bottom: 2rem;
text-align: center;
color: var(--primary-color);
font-weight: 700;
}
.section-title:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--accent-color);
}
.error-message {
color: #dc3545;
font-size: 0.875rem;
margin-top: 0.5rem;
display: none;
}
.login-alert {
display: none;
margin-top: 1rem;
}
.card-title {
color: var(--primary-color);
font-weight: 600;
margin-bottom: 1rem;
}
.card-text {
color: #6c757d;
margin-bottom: 1.5rem;
}
.logout-btn {
transition: all 0.3s ease;
}
.logout-btn:hover {
background-color: #f8f9fa;
transform: translateY(-2px);
}
/* تنسيق خاص لبطاقة الشكاوى */
.complaints-card {
background: linear-gradient(135deg, #dc3545, #c82333);
color: white;
}
.complaints-card .card-icon {
background-color: rgba(255, 255, 255, 0.2);
color: white;
}
.complaints-card:hover .card-icon {
background-color: rgba(255, 255, 255, 0.3);
}
.complaints-card .card-title,
.complaints-card .card-text {
color: white;
}
.complaints-card .btn-primary {
background-color: white;
color: #dc3545;
border-color: white;
}
.complaints-card .btn-primary:hover {
background-color: #f8f9fa;
color: #c82333;
border-color: #f8f9fa;
}
@media (max-width: 768px) {
.login-container {
margin: 1.5rem 1rem;
padding: 1.5rem;
}
.systems-container {
padding: 1.5rem;
}
}
</style>
</head>
<body>
<!-- صفحة تسجيل الدخول -->
<div id="login-page">
<div class="container">
<div class="login-container">
<div class="logo-container">
<img src="https://ufastpro.com/wp-content/uploads/2025/04/476234917_1002033431973236_2935522081755714863_n.jpg" alt="شعار معهد مدينة العلوم العصرية" class="logo-img">
<h2 class="mb-3 text-center" style="color: var(--primary-color);">معهد مدينة العلوم العصرية</h2>
<p class="text-muted text-center">المنصة التعليمية الإدارية</p>
</div>
<div class="alert alert-danger login-alert" id="login-error" role="alert">
<i class="fas fa-exclamation-circle me-2"></i> اسم المستخدم أو كلمة المرور غير صحيحة
</div>
<form id="login-form" class="needs-validation" novalidate>
<div class="mb-3">
<label for="username" class="form-label">اسم المستخدم</label>
<div class="input-group">
<span class="input-group-text"><i class="fas fa-user"></i></span>
<input type="text" class="form-control" id="username" placeholder="أدخل اسم المستخدم" required>
</div>
<div class="invalid-feedback">
يرجى إدخال اسم المستخدم
</div>
</div>
<div class="mb-3">
<label for="password" class="form-label">كلمة المرور</label>
<div class="input-group login-form">
<span class="input-group-text"><i class="fas fa-lock"></i></span>
<input type="password" class="form-control" id="password" placeholder="أدخل كلمة المرور" required>
<i class="fas fa-eye password-toggle" id="toggle-password"></i>
</div>
<div class="invalid-feedback">
يرجى إدخال كلمة المرور
</div>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="remember-me">
<label class="form-check-label" for="remember-me">تذكرني</label>
</div>
<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary btn-lg">
<i class="fas fa-sign-in-alt me-2"></i> تسجيل الدخول
</button>
</div>
</form>
<div class="mt-3 text-center">
<a href="#" class="text-decoration-none">نسيت كلمة المرور؟</a>
</div>
</div>
</div>
</div>
<!-- صفحة لوحة التحكم -->
<div id="dashboard-page" class="dashboard-container">
<div class="header">
<div class="container d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<img src="https://ufastpro.com/wp-content/uploads/2025/04/476234917_1002033431973236_2935522081755714863_n.jpg" alt="شعار معهد مدينة العلوم العصرية" height="60" class="me-3" style="border-radius: 8px;">
<h4 class="mb-0">معهد مدينة العلوم العصرية</h4>
</div>
<div>
<span class="me-3" id="username-display">مرحباً، المستخدم</span>
<button id="logout-btn" class="btn btn-sm btn-light logout-btn">
<i class="fas fa-sign-out-alt me-1"></i> تسجيل الخروج
</button>
</div>
</div>
</div>
<div class="container">
<div class="systems-container">
<h2 class="section-title">الأنظمة الإدارية</h2>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
<!-- نظام الطلاب -->
<div class="col">
<div class="card h-100 system-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-user-graduate"></i>
</div>
<h4 class="card-title">نظام الطلاب</h4>
<p class="card-text">إدارة شؤون الطلاب والتسجيل والمتابعة الأكاديمية</p>
<a href="https://quintadb.com/apps/cgvmoeW55dI43dTNDJW7WH/portals/coWOO0W7vdPykeWQboW71s/widget" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
<!-- نظام الحضور والانصراف -->
<div class="col">
<div class="card h-100 system-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-clock"></i>
</div>
<h4 class="card-title">الحضور والانصراف</h4>
<p class="card-text">نظام تسجيل حضور وانصراف الموظفين والمتابعة</p>
<a href="https://quintadb.com/apps/coWQVdNSnpW4_dMmo8FSo7/portals/avW6n-W5vooykwdColp8o_/widget" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
<!-- نظام بيانات الموظفين -->
<div class="col">
<div class="card h-100 system-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-id-card"></i>
</div>
<h4 class="card-title">بيانات الموظفين</h4>
<p class="card-text">إدارة بيانات الموظفين والملفات الشخصية</p>
<a href="https://quintadb.com/a4bbXi8" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
<!-- نظام الصادر والوارد -->
<div class="col">
<div class="card h-100 system-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-exchange-alt"></i>
</div>
<h4 class="card-title">الصادر والوارد</h4>
<p class="card-text">نظام إدارة المراسلات والوثائق الصادرة والواردة</p>
<a href="https://quintadb.com/bxWdcIC" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
<!-- نظام وارد معهد قوات مسلحة -->
<div class="col">
<div class="card h-100 system-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-file-alt"></i>
</div>
<h4 class="card-title">وارد معهد قوات مسلحة</h4>
<p class="card-text">نظام إدارة امتحانات وبيانات معهد القوات المسلحة</p>
<a href="https://quintadb.com/dcRdcGw" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
<!-- نظام الشكاوى -->
<div class="col">
<div class="card h-100 system-card complaints-card">
<div class="card-body text-center p-4">
<div class="card-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
<h4 class="card-title">نظام الشكاوى</h4>
<p class="card-text">تسجيل ومتابعة الشكاوى والاقتراحات من الطلاب والموظفين</p>
<a href="https://quintadb.com/cpWblW6" class="btn btn-primary w-100" target="_blank">
<i class="fas fa-external-link-alt me-1"></i> الدخول للنظام
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="mb-0">جميع الحقوق محفوظة © 2025 | معهد مدينة العلوم العصرية | تصميم شركة <a href="https://ufastpro.com/" target="_blank">فاستبرو</a></p>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
// بيانات تسجيل الدخول الثابتة
const ADMIN_USERNAME = "admin";
const ADMIN_PASSWORD = "10203040";
// التحقق من وجود بيانات تسجيل الدخول في التخزين المحلي
document.addEventListener('DOMContentLoaded', function() {
// فحص إذا كان المستخدم مسجل الدخول بالفعل
const isLoggedIn = localStorage.getItem('isLoggedIn');
if (isLoggedIn === 'true') {
const username = localStorage.getItem('username');
showDashboard(username);
}
// إضافة مستمع لنموذج تسجيل الدخول
const loginForm = document.getElementById('login-form');
loginForm.addEventListener('submit', function(event) {
event.preventDefault();
// التحقق من صحة النموذج
if (!loginForm.checkValidity()) {
event.stopPropagation();
loginForm.classList.add('was-validated');
return;
}
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
// التحقق من بيانات تسجيل الدخول
if (validateCredentials(username, password)) {
// تخزين بيانات المستخدم في التخزين المحلي إذا تم اختيار "تذكرني"
if (document.getElementById('remember-me').checked) {
localStorage.setItem('username', username);
localStorage.setItem('isLoggedIn', 'true');
}
// إخفاء رسالة الخطأ إذا كانت ظاهرة
document.getElementById('login-error').style.display = 'none';
// عرض لوحة التحكم
showDashboard(username);
} else {
// عرض رسالة الخطأ
document.getElementById('login-error').style.display = 'block';
}
});
// إضافة مستمع لزر تسجيل الخروج
document.getElementById('logout-btn').addEventListener('click', function() {
// حذف بيانات تسجيل الدخول من التخزين المحلي
localStorage.removeItem('isLoggedIn');
localStorage.removeItem('username');
// العودة إلى صفحة تسجيل الدخول
document.getElementById('login-page').style.display = 'block';
document.getElementById('dashboard-page').style.display = 'none';
});
// إضافة مستمع لتبديل رؤية كلمة المرور
document.getElementById('toggle-password').addEventListener('click', function() {
const passwordInput = document.getElementById('password');
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
this.classList.remove('fa-eye');
this.classList.add('fa-eye-slash');
} else {
passwordInput.type = 'password';
this.classList.remove('fa-eye-slash');
this.classList.add('fa-eye');
}
});
});
// دالة للتحقق من بيانات تسجيل الدخول
function validateCredentials(username, password) {
// التحقق من اسم المستخدم وكلمة المرور الثابتة
return (username === ADMIN_USERNAME && password === ADMIN_PASSWORD);
}
// دالة لعرض لوحة التحكم وإخفاء صفحة تسجيل الدخول
function showDashboard(username) {
document.getElementById('login-page').style.display = 'none';
document.getElementById('dashboard-page').style.display = 'block';
document.getElementById('username-display').textContent = 'مرحباً، ' + username;
}
</script>
</body>
</html> |