Commit d53fe2ae authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

modifié : module/These/src/These/Controller/CoEncadrantController.php

        modifié :         module/These/view/these/pdf/coencadrant-footer.phtml
        modifié :         module/These/view/these/pdf/coencadrant-header.phtml

metivier@n302z-dsi008:~/workspace/sygal$ git add .
metivier@n302z-dsi008:~/workspace/sygal$ git add .
metivier@n302z-dsi008:~/workspace/sygal$ git commit -m
parent f1373587
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ Journal des modifications

6.0.8
-----
- 
- [THESE] Ajout de logos sur le document des co-encadrements

6.0.7
-----
+2 −3
Original line number Diff line number Diff line
@@ -216,9 +216,8 @@ class CoEncadrantController extends AbstractActionController
        try {
            $export->getMpdf()->SetMargins(0, 0, 60);
            //todo passer un header exploitant les logo
//        $export->setHeaderScript('pdf/header.phtml', null, $logos);
            $export->setHeaderScriptToNone();
            $export->setFooterScriptToNone();
            $export->setHeaderScript('these/pdf/coencadrant-header.phtml', null, $logos);
            $export->setFooterScript('these/pdf/coencadrant-footer.phtml');
            $export->addBodyHtml($corps);
            return $export->export($filename);
        } catch (MpdfException $e) {
+7 −0
Original line number Diff line number Diff line
<?php

use DateTime;

?>

Document créé par ESUP-SyGAL le <?php echo (new DateTime())->format('d/m/Y H:i'); ?>
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
<?php

/**
 * @var array $logos
 */

$logosComue = (isset($logos['COMUE']) && $logos['COMUE'] !== null) ? $logos['COMUE'] : null;
$logosEtablissement = (isset($logos['ETAB']) && $logos['ETAB'] !== null) ? $logos['ETAB'] : null;

?>

<?php if ($logosComue) : ?>
    <img src="<?php echo $logosComue; ?>" style="max-height:40mm; max-width:60mm;" alt="Logo de la COMUE"/>
<?php endif; ?>


<?php if ($logosEtablissement) : ?>
    <img src="<?php echo $logosEtablissement; ?>" style="max-height:40mm; max-width:60mm;" alt="Logo de l'établissement"/>
<?php endif; ?>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
Choucroute
 No newline at end of file