'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 ); return [ 'certificate' => $certificate, 'student' => $student, 'performance' => $performance, 'has_results' => $hasResults, 'honor' => $honor, 'template' => $template, 'center_name' => $centerName, 'center_logo' => $centerLogo, 'tagline' => $tagline, 'percentage_label' => $percentageLabel, 'body_message' => $bodyMessage, 'issue_date_label' => completion_certificate_date_label((string) ($certificate['latest_assessed_on'] ?? '')), ]; } $flash = consume_flash(); $settings = get_app_settings(); $applicationId = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT) ?: 0; $requestedCycleId = filter_input(INPUT_GET, 'cycle', FILTER_VALIDATE_INT) ?: 0; $autoprint = filter_input(INPUT_GET, 'autoprint', FILTER_VALIDATE_INT) ?: 0; $search = clean_text($_GET['search'] ?? '', 255); $filters = [ 'gender' => clean_text($_GET['gender'] ?? '', 50), 'grade_level' => clean_text($_GET['grade_level'] ?? '', 50), 'enrollment_status' => clean_text($_GET['enrollment_status'] ?? '', 50), ]; $application = $applicationId > 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 = 'الدورة الحالية'; $certificateItems = []; 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; if ($selectedCycleId > 0) { $students = list_school_students_by_cycle((int) $application['id'], $selectedCycleId, $search, 0, 0, $filters); foreach ($students as $studentRow) { $viewModel = completion_certificate_view_model($application, $settings, $selectedCycleId, $cycleLabel, (int) ($studentRow['id'] ?? 0)); if ($viewModel !== null) { $certificateItems[] = $viewModel; } } } } if (!$application || !$isApprovedSchool || $selectedCycleId <= 0) { http_response_code(404); } $studentsUrl = $application ? school_page_url('students.php', (int) $application['id'], $selectedCycleId) : 'students.php'; $pageTitle = $application ? 'تنزيل شهادات الإتمام: ' . (string) ($application['center_name'] ?? '') : 'تنزيل شهادات الإتمام'; $pageDescription = 'صفحة مجمعة لطباعة أو حفظ جميع شهادات الإتمام والتكريم كملف PDF واحد للمركز والدورة المختارة.'; render_page_start($pageTitle, 'approved', $pageDescription); render_flash($flash); ?>
جميع شهادات الإتمام والتكريم
شهادة. سيتم فتح نافذة الطباعة لتتمكن من الحفظ كملف PDF واحد.
العودة إلى الطلاب
المركز غير موجود

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

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

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

لا توجد دورة مختارة

اختر دورة صحيحة من صفحة الطلاب ثم أعد فتح تنزيل الشهادات.

العودة إلى سجل الطلاب
لا توجد شهادات مطابقة حالياً

قد تكون الفلاتر الحالية لا تُظهر أي طالب، أو لا توجد سجلات في هذه الدورة بعد.

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

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

رقم الطالب:

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