0 ? get_application($applicationId) : null; $isApprovedSchool = $application && (string) $application['status'] === 'approved'; $cycleContext = ['cycles' => [], 'selected' => null, 'active' => null, 'read_only' => false]; $selectedCycle = null; $selectedCycleId = 0; $cycleLabel = 'الدورة الحالية'; if ($application && $isApprovedSchool) { $cycleContext = resolve_school_cycle_context((int) $application['id'], $application, $requestedCycleId); $selectedCycle = $cycleContext['selected']; $selectedCycleId = $selectedCycle ? (int) ($selectedCycle['id'] ?? 0) : 0; $cycleLabel = $selectedCycle ? (string) ($selectedCycle['cycle_name'] ?? 'الدورة الحالية') : $cycleLabel; } $certificate = $isApprovedSchool && $selectedCycleId > 0 && $studentId > 0 ? school_student_certificate_summary((int) $application['id'], $selectedCycleId, $studentId) : [ 'student' => null, 'assessments' => [], 'has_results' => false, 'completed_assessments' => 0, 'active_assessments' => 0, 'missing_assessments' => 0, 'absent_assessments' => 0, 'excused_assessments' => 0, 'overall_percentage' => 0.0, 'score_total' => 0.0, 'max_score_total' => 0.0, 'latest_assessed_on' => '', 'performance' => student_certificate_performance_meta(0.0), ]; $student = is_array($certificate['student'] ?? null) ? $certificate['student'] : null; if (!$application || !$isApprovedSchool || $selectedCycleId <= 0 || $studentId <= 0 || $student === null) { http_response_code(404); } $performance = $certificate['performance'] ?? student_certificate_performance_meta(0.0); $hasResults = !empty($certificate['has_results']); $honor = $hasResults ? student_completion_certificate_honor_meta((float) ($certificate['overall_percentage'] ?? 0)) : [ 'key' => 'completion', 'title' => 'Successful Completion', 'title_ar' => 'إتمام ناجح', 'completion_line_ar' => 'أتمّ/أتمّت الدورة بنجاح واستفاد/استفادت من محتواها العلمي.', ]; $template = (string) ($settings['completion_certificate_template'] ?? 'modern'); if (!in_array($template, ['modern', 'classic'], true)) { $template = 'modern'; } $centerName = trim((string) ($application['center_name'] ?? '')); if ($centerName === '') { $centerName = (string) ($settings['app_name'] ?? project_name()); } $centerLogo = trim((string) ($application['logo'] ?? '')); if ($centerLogo === '') { $centerLogo = trim((string) ($settings['app_logo'] ?? '')); } $tagline = trim((string) ($settings['completion_certificate_tagline'] ?? '')); if ($tagline === '') { $tagline = 'شهادة إتمام وتكريم'; } $overallPercentage = (float) ($certificate['overall_percentage'] ?? 0); $percentageLabel = $hasResults ? completion_certificate_decimal_value($overallPercentage) . '%' : '—'; $fallbackMessage = sprintf( 'تشهد إدارة %s بأن الطالب/الطالبة %s قد أتمّ/أتمّت متطلبات %s %s.', $centerName, (string) ($student['full_name'] ?? 'الطالب/الطالبة'), $cycleLabel, $honor['title_ar'] ); $bodyMessage = completion_certificate_message_text( (string) ($settings['completion_certificate_message'] ?? ''), [ '{student}' => (string) ($student['full_name'] ?? ''), '{center}' => $centerName, '{cycle}' => $cycleLabel, '{performance}' => (string) ($performance['label_ar'] ?? 'مميز'), '{honor}' => (string) ($honor['title_ar'] ?? 'بنجاح'), '{percentage}' => $hasResults ? completion_certificate_decimal_value($overallPercentage) : '0', ], $fallbackMessage ); $issueDateLabel = completion_certificate_date_label((string) ($certificate['latest_assessed_on'] ?? '')); $studentsUrl = $application ? school_page_url('students.php', (int) $application['id'], $selectedCycleId) : 'students.php'; $detailedCertificateUrl = $application ? school_page_url('student_certificate.php', (int) $application['id'], $selectedCycleId) . '&student_id=' . urlencode((string) $studentId) : 'student_certificate.php'; $pageTitle = $student ? 'شهادة إتمام الدورة: ' . (string) $student['full_name'] : 'شهادة إتمام الدورة'; $pageDescription = 'شهادة إتمام وتكريم قابلة للطباعة تعرض اسم المركز وشعاره ونتيجة الطالب النهائية بتصميم جميل ومختصر.'; render_page_start($pageTitle, 'approved', $pageDescription); render_flash($flash); ?>
شهادة الإتمام والتكريم
نسخة مختصرة وأنيقة للطباعة، مستقلة عن كشف الدرجات التفصيلي.
المركز غير موجود

تحقق من الرابط ثم أعد فتح الشهادة من صفحة الطلاب.

المراكز المعتمدة
الشهادة غير متاحة حالياً

يمكن إصدار شهادة الإتمام للمراكز المعتمدة فقط.

تعذر العثور على الطالب

ربما تم تغيير الدورة أو أن الطالب لا يتبع هذا المركز.

العودة إلى سجل الطلاب
Certificate of Completion

تُمنح هذه الشهادة إلى

رقم الطالب:

التقدير النهائي
الدورة
تاريخ الإصدار
نسبة الأداء
التقييمات المكتملة
لا توجد تقييمات مرصودة لهذا الطالب بعد، لذلك تم إصدار شهادة إتمام مختصرة بدون مرتبة أداء رقمية.
مدير/ة المركز
اعتماد الشهادة