getThesis($thesisId); if (!$thesis) { die("TFE non trouvé"); } // Load current relationships via dedicated DB methods (no raw PDO) $currentLanguages = $db->getThesisLanguageIds($thesisId); $currentFormats = $db->getThesisFormatIds($thesisId); $jury = $db->getThesisJury($thesisId); // Reference / lookup data $orientations = $db->getAllOrientations(); $apPrograms = $db->getAllAPPrograms(); $finalityTypes = $db->getAllFinalityTypes(); $languages = $db->getAllLanguages(); $formatTypes = $db->getAllFormatTypes(); $licenseTypes = $db->getAllLicenseTypes(); $accessTypes = $db->getAccessTypes(); // Fetch raw FK IDs (view only exposes name strings) $rawRow = $db->getThesisRawFields($thesisId); $currentLicenseId = $rawRow['license_id'] ?? null; $currentAccessTypeId = $rawRow['access_type_id'] ?? null; $currentContextNote = $rawRow['context_note'] ?? ''; // Set page title for header $pageTitle = "Éditer TFE - " . htmlspecialchars($thesis['title']); } catch (Exception $e) { error_log("Error loading edit page: " . $e->getMessage()); die("Erreur lors du chargement: " . $e->getMessage()); } ?>

Modifier un TFE

'name']; include APP_ROOT . '/templates/partials/form/text-field.php'; ?> 'email']; include APP_ROOT . '/templates/partials/form/text-field.php'; ?> $at['id'], 'name' => $label]; }, $accessTypes); $name = 'access_type_id'; $label = 'Visibilité / Accès :'; $options = $accessOptions; $selected = $currentAccessTypeId; $placeholder = '- Non défini -'; include APP_ROOT . '/templates/partials/form/select-field.php'; ?>
Visible publiquement pour les TFE Interne ou Interdit. Max 1 500 caractères.
Bannière actuelle
JPG, PNG ou WEBP. Format paysage recommandé (4:1). Max 5 MB.
Annuler