fixed foto matrice
This commit is contained in:
parent
86782d26b2
commit
37909e8175
@ -48,13 +48,34 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span class='view'><?= $r['matrice'] ?></span>
|
<?php $matricePhoto = $r['matrice_photo'] ?? null; ?>
|
||||||
<select class='inline-edit form-select form-select-sm select2'
|
|
||||||
name='idmatrice'>
|
<div class="d-flex align-items-center">
|
||||||
<?= selectOptions($matrici, $r['idmatrice']) ?>
|
<!-- Parte testuale + select -->
|
||||||
</select>
|
<div class="flex-grow-1">
|
||||||
|
<span class='view'><?= htmlspecialchars($r['matrice']) ?></span>
|
||||||
|
|
||||||
|
<select class='inline-edit form-select form-select-sm select2'
|
||||||
|
name='idmatrice'>
|
||||||
|
<?= selectOptions($matrici, $r['idmatrice']) ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Miniatura foto matrice SOLO in view -->
|
||||||
|
<?php if (!empty($matricePhoto)): ?>
|
||||||
|
<div class="view ms-2">
|
||||||
|
<img src="photos/matrici/<?= htmlspecialchars($matricePhoto) ?>"
|
||||||
|
data-full="photos/matrici/<?= htmlspecialchars($matricePhoto) ?>"
|
||||||
|
class="photo-thumb"
|
||||||
|
style="width:42px;height:42px;object-fit:cover;
|
||||||
|
border-radius:6px;border:1px solid #ced4da;
|
||||||
|
cursor:pointer;">
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user