diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php
index 7a6f0563dec..5887de9b4f4 100644
--- a/htdocs/fichinter/card.php
+++ b/htdocs/fichinter/card.php
@@ -1331,8 +1331,13 @@ if ($action == 'create')
{
print '
';
print '
';
-
print '';
+
+ // No.
+ if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
+ print ' | ';
+ }
+
print ''.$langs->trans('Description').' | ';
print ''.$langs->trans('Date').' | ';
print ''.(empty($conf->global->FICHINTER_WITHOUT_DURATION) ? $langs->trans('Duration') : '').' | ';
@@ -1344,11 +1349,16 @@ if ($action == 'create')
{
$objp = $db->fetch_object($resql);
-
// Ligne en mode visu
if ($action != 'editline' || GETPOST('line_id', 'int') != $objp->rowid)
{
print '
';
+
+ // No.
+ if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
+ print '| '.($i + 1).' | ';
+ }
+
print '';
print ''; // ancre pour retourner sur la ligne
print dol_htmlentitiesbr($objp->description);
@@ -1409,6 +1419,12 @@ if ($action == 'create')
if ($object->statut == 0 && $action == 'editline' && $user->rights->ficheinter->creer && GETPOST('line_id', 'int') == $objp->rowid)
{
print ' |
';
+
+ // No.
+ if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
+ print '| '.($i + 1).' | ';
+ }
+
print '';
print ''; // ancre pour retourner sur la ligne
@@ -1461,9 +1477,15 @@ if ($action == 'create')
{
if (!$num)
{
- print '
';
+ print ' ';
+ print '';
+ print '';
+
+ // No.
+ if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
+ print ' | ';
+ }
- print ' ';
print '| ';
print ''; // ancre
print $langs->trans('Description').' | ';
@@ -1474,6 +1496,12 @@ if ($action == 'create')
}
print ' '."\n";
+
+ // No.
+ if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
+ print '| '.($i + 1).' | ';
+ }
+
print '';
// editeur wysiwyg
if (empty($conf->global->FICHINTER_EMPTY_LINE_DESC)) {
| |