Libellés + optimisation

This commit is contained in:
Fred Tempez 2020-04-04 16:13:03 +02:00
parent e11fc3d101
commit 6330400c63
3 changed files with 4 additions and 5 deletions

View File

@ -638,8 +638,7 @@ class template {
$j = 0; $j = 0;
foreach($body as $tr) { foreach($body as $tr) {
// Id de ligne pour les tableaux drag and drop // Id de ligne pour les tableaux drag and drop
$html .= '<tr id="' . $rowsId[$j] . '">'; $html .= '<tr id="' . $rowsId[$j++] . '">';
$j++;
$i = 0; $i = 0;
foreach($tr as $td) { foreach($tr as $td) {
$html .= '<td class="col' . $cols[$i++] . '">' . $td . '</td>'; $html .= '<td class="col' . $cols[$i++] . '">' . $td . '</td>';

View File

@ -24,8 +24,8 @@ class gallery extends common {
]; ];
public static $sort = [ public static $sort = [
'SORT_ASC' => 'Alphabétique naturel', 'SORT_ASC' => 'Alphabétique ',
'SORT_DSC' => 'Alphabétique naturel inverse', 'SORT_DSC' => 'Alphabétique inversé',
'none' => 'Aucun tri', 'none' => 'Aucun tri',
]; ];

View File

@ -45,6 +45,6 @@
</div> </div>
</div> </div>
<?php if($module::$pictures): ?> <?php if($module::$pictures): ?>
<?php echo template::table([4, 1, 7], $module::$pictures, ['Image', 'Album','Légende']); ?> <?php echo template::table([4, 1, 7], $module::$pictures, ['Image', 'Couverture','Légende']); ?>
<?php endif; ?> <?php endif; ?>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>