ajustements

This commit is contained in:
Florian Schmitt 2025-02-10 16:52:42 +03:00
parent 7c708a13f4
commit 9de86a18f7
4 changed files with 34 additions and 13 deletions

View file

@ -19,8 +19,8 @@
} }
.indications img, .indications img,
.indications2 img { .indications2 img {
width: 200mm; width: 182mm;
height: 286mm; height: 260mm;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
@ -215,8 +215,8 @@
} }
.indications img, .indications img,
.indications2 img { .indications2 img {
width: 200mm; width: 182mm;
height: 286mm; height: 260mm;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }

View file

@ -33,6 +33,15 @@ $qrcodeurl = '<span class="rotated-img"><img src="custom/templates/bazar/assets/
$structure = !empty($fiche['bf_structure']) ? $fiche['bf_structure'] : $fiche['bf_nom_contributeur']; $structure = !empty($fiche['bf_structure']) ? $fiche['bf_structure'] : $fiche['bf_nom_contributeur'];
$indications = '';
if ($_GET['wiki'] == $fiche['id_fiche']) {
$indications = '<div class="full-portrait-a4 indications">
<img src="custom/templates/bazar/assets/Instructions_pliage_recto.webp" alt="instructions recto" />
</div>
<div class="full-portrait-a4 indications2">
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.webp" alt="instructions verso" />
</div>';
}
echo <<<TEMPLATE echo <<<TEMPLATE
<div class="full-portrait-a4 recto"> <div class="full-portrait-a4 recto">
<div class="left"> <div class="left">
@ -74,12 +83,7 @@ echo <<<TEMPLATE
</div> </div>
</div> </div>
</div> </div>
<div class="full-portrait-a4 indications"> {$indications}
<img src="custom/templates/bazar/assets/Instructions_pliage_recto.webp" alt="instructions recto" />
</div>
<div class="full-portrait-a4 indications2">
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.webp" alt="instructions verso" />
</div>
<button style="margin-top:1em;" class="btn btn-primary no-print new-window" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button> <button style="margin-top:1em;" class="btn btn-primary no-print new-window" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
<script> <script>
// un hack tres aléatoire des css print de bootstrap // un hack tres aléatoire des css print de bootstrap

View file

@ -11,5 +11,17 @@ $renderedEntry; echo '<a
<i class="fa fa-print" aria-hidden="true"></i> Imprimer ce parcours thématique </a <i class="fa fa-print" aria-hidden="true"></i> Imprimer ce parcours thématique </a
>'; } else { $activites = explode(',', $fiche['bf_activite']); foreach >'; } else { $activites = explode(',', $fiche['bf_activite']); foreach
($activites as $activite) { echo $GLOBALS['wiki']->Format('{{include ($activites as $activite) { echo $GLOBALS['wiki']->Format('{{include
page="'.$activite.'"}}'); } $_GET['returnTo'] = $GLOBALS['wiki']->href('', ''); page="'.$activite.'"}}'); } echo '
} ?> <div class="full-portrait-a4 indications">
<img
src="custom/templates/bazar/assets/Instructions_pliage_recto.webp"
alt="instructions recto"
/>
</div>
<div class="full-portrait-a4 indications2">
<img
src="custom/templates/bazar/assets/Instructions_pliage_verso.webp"
alt="instructions verso"
/>
</div>
'; $_GET['returnTo'] = $GLOBALS['wiki']->href('', ''); } ?>

View file

@ -41,8 +41,13 @@ $modal = ''; // declaration d'une chaine de char vide
</figure> </figure>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<div class="full-portrait-a4 indications">
<img src="custom/templates/bazar/assets/Instructions_pliage_recto.webp" alt="instructions recto" />
</div>
<div class="full-portrait-a4 indications2">
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.webp" alt="instructions verso" />
</div>
</div> </div>
<hr>
<div id="selected-actions"> <div id="selected-actions">
<strong>Pour la sélection :</strong> <strong>Pour la sélection :</strong>
<a class="btn-print-selected btn btn-primary">🖨️ Imprimer</a> <a class="btn-print-selected btn btn-primary">🖨️ Imprimer</a>