Ajouter un TFE

'; $synopsisExtra = ''; // Jury: fresh add (all empty) $juryPromoteur = null; $juryPromoteurs = []; $juryPromoteurUlb = null; $juryPromoteursUlb = []; $lecteursInternes = []; $lecteursExternes = []; $showPromoteurUlb = true; $promoteurUlbConditional = false; // Licence / access $libreEnabled = ($siteSettings['access_type_libre_enabled'] ?? '0') === '1'; $interneEnabled = ($siteSettings['access_type_interne_enabled'] ?? '1') === '1'; $interditEnabled = ($siteSettings['access_type_interdit_enabled'] ?? '1') === '1'; $generalitiesHtml = $helpFn('fieldset_generalites'); $defaultAccessTypeId = 2; // Optional sections $showContact = false; // Admin: contact visibility controlled by filling 'mail' field in fieldset-tfe-info $showBackoffice = true; // Files: add mode $filesMode = 'add'; // Website URL (repopulation) $existingWebsiteUrl = $formData['website_url'] ?? ''; $existingWebsiteLabel = $formData['website_label'] ?? ''; // Backoffice (add mode: null → falls back to formData) $currentRaw = []; $currentAuthorEmail = null; $currentAuthorShowContact = false; $currentContextNote = null; include APP_ROOT . '/templates/partials/form/form.php'; ?>