diff --git a/htdocs/fichinter/card-rec.php b/htdocs/fichinter/card-rec.php
index 96d7e106b5a..08600d71ee5 100644
--- a/htdocs/fichinter/card-rec.php
+++ b/htdocs/fichinter/card-rec.php
@@ -29,12 +29,7 @@
* \brief Page to show predefined fichinter
*/
-$res=0;
-if (! $res && file_exists("../../main.inc.php"))
- $res=@include("../../main.inc.php"); // For root directory
-if (! $res && file_exists("../../../main.inc.php"))
- $res=@include("../../../main.inc.php"); // For "custom" directory
-
+require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinterrec.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
@@ -409,8 +404,7 @@ if ($action == 'create') {
$var=true;
while ($i < $num) {
$objp = $db->fetch_object($result);
- $var=!$var;
- print "
";
+ print '
';
// Show product and description
@@ -738,10 +732,8 @@ if ($action == 'create') {
$num = count($object->lines);
$i = 0;
- $var=true;
while ($i < $num) {
- $var=!$var;
-
+
// Show product and description
if (isset($object->lines[$i]->product_type))
$type=$object->lines[$i]->product_type;
@@ -753,7 +745,7 @@ if ($action == 'create') {
if (! empty($objp->date_end)) $type=1;
// Show line
- print "
";
+ print '
';
print '| ';
$text = img_object($langs->trans('Service'), 'service');
print $text.' '.nl2br($object->lines[$i]->desc);
@@ -884,12 +876,10 @@ if ($action == 'create') {
// les filtres à faire ensuite
if ($num > 0) {
- $var=true;
while ($i < min($num, $limit)) {
$objp = $db->fetch_object($resql);
- $var=!$var;
- print " |
";
+ print '
';
print '| ';
print img_object($langs->trans("ShowIntervention"), "intervention").' '.$objp->titre;
print " | \n";
@@ -964,7 +954,7 @@ if ($action == 'create') {
}
}
} else
- print '
| '.$langs->trans("NoneF").' |
';
+ print '| '.$langs->trans("NoneF").' |
';
print "";
$db->free($resql);