Update card-rec.php
This commit is contained in:
parent
c7ad6c9a7c
commit
53469ee424
@ -404,8 +404,7 @@ if ($action == 'create') {
|
||||
$var=true;
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object($result);
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<tr class="oddeven">';
|
||||
|
||||
// Show product and description
|
||||
|
||||
@ -733,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;
|
||||
@ -748,7 +745,7 @@ if ($action == 'create') {
|
||||
if (! empty($objp->date_end)) $type=1;
|
||||
|
||||
// Show line
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>';
|
||||
$text = img_object($langs->trans('Service'), 'service');
|
||||
print $text.' '.nl2br($object->lines[$i]->desc);
|
||||
@ -879,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 "<tr ".$bc[$var].">";
|
||||
print '<tr class="oddeven">';
|
||||
print '<td><a href="'.$_SERVER['PHP_SELF'].'?id='.$objp->fich_rec.'">';
|
||||
print img_object($langs->trans("ShowIntervention"), "intervention").' '.$objp->titre;
|
||||
print "</a></td>\n";
|
||||
@ -959,7 +954,7 @@ if ($action == 'create') {
|
||||
}
|
||||
}
|
||||
} else
|
||||
print '<tr '.$bc[false].'><td colspan="6">'.$langs->trans("NoneF").'</td></tr>';
|
||||
print '<tr class="oddeven"><td colspan="6">'.$langs->trans("NoneF").'</td></tr>';
|
||||
|
||||
print "</table>";
|
||||
$db->free($resql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user