diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php
index afcba2ef23d..6c3a6f30646 100644
--- a/htdocs/admin/boxes.php
+++ b/htdocs/admin/boxes.php
@@ -175,9 +175,9 @@ if ($action == 'switch') {
$newfirst = $objto->box_order;
$newsecond = $objfrom->box_order;
if ($newfirst == $newsecond) {
- $newsecondchar = preg_replace('/[0-9]+/', '', $newsecond);
- $newsecondnum = preg_replace('/[a-zA-Z]+/', '', $newsecond);
- $newsecond = sprintf("%s%02d", $newsecondchar ? $newsecondchar : 'A', $newsecondnum + 1);
+ $newsecondchar = preg_replace('/[0-9]+/', '', $newsecond);
+ $newsecondnum = preg_replace('/[a-zA-Z]+/', '', $newsecond);
+ $newsecond = sprintf("%s%02d", $newsecondchar ? $newsecondchar : 'A', $newsecondnum + 1);
}
$sql = "UPDATE ".MAIN_DB_PREFIX."boxes SET box_order='".$db->escape($newfirst)."' WHERE rowid=".((int) $objfrom->rowid);
@@ -300,14 +300,13 @@ $boxtoadd = InfoBox::listBoxes($db, 'available', -1, null, $actives);
// Activated boxes
$boxactivated = InfoBox::listBoxes($db, 'activated', -1, null);
-print "
\n";
-print "\n\n".''."\n";
-print load_fiche_titre($langs->trans("BoxesAvailable"), '', '');
-
print '
| '.$langs->trans("Box").' | '; -print ''.$langs->trans("Note").'/'.$langs->trans("Parameters").' | '; -print ''.$langs->trans("ActivatableOn").' | '; -print ''.$langs->trans("PositionByDefault").' | '; -print ''.$langs->trans("Disable").' | '; -print '|
| '.img_object("", $logo, 'height="14px"').' '.$langs->transnoentitiesnoconv($box->boxlabel); + print ' | |||||
| '.img_object("", $logo, 'class="pictofixedwidth" height="14px"').' '.$langs->transnoentitiesnoconv($box->boxlabel); if (!empty($box->class) && preg_match('/graph_/', $box->class)) { print img_picto('', 'graph', 'class="paddingleft"'); } @@ -410,14 +397,17 @@ foreach ($boxactivated as $key => $box) { } } print ' | '; - print ''; + $langs->load("errors"); + print ' | note).'">'; if ($box->note == '(WarningUsingThisBoxSlowDown)') { - $langs->load("errors"); print img_warning('', 0).' '.$langs->trans("WarningUsingThisBoxSlowDown"); } else { print ($box->note ? $box->note : ' '); } print ' | '; + print ''; + print $form->textwithpicto('', $langs->trans("SourceFile").' : '.$box->sourcefile); + print ' | '."\n"; print ''.(empty($arrayofhomepages[$box->position]) ? '' : $langs->trans($arrayofhomepages[$box->position])).' | '; $hasnext = ($key < (count($boxactivated) - 1)); $hasprevious = ($key != 0); @@ -437,6 +427,8 @@ print '|