Example #1
0
             print $text . ' ' . nl2br($object->lines[$i]->description);
         }
         print_date_range($objp->date_start, $objp->date_end);
         print "</td>\n";
     }
     print '<td align="center">' . $object->lines[$i]->qty_asked . '</td>';
     print '<td align="center">' . $object->lines[$i]->qty_shipped . '</td>';
     print "</tr>";
     //Display lines extrafields
     if (is_array($extralabelslines) && count($extralabelslines) > 0) {
         $colspan = 2;
         $mode = $object->statut == 0 ? 'edit' : 'view';
         $line = new LivraisonLigne($db);
         $line->fetch_optionals($object->lines[$i]->id, $extralabelslines);
         print '<tr ' . $bc[$var] . '>';
         print $line->showOptionals($extrafieldsline, $mode, array('style' => $bc[$var], 'colspan' => $colspan), $i);
         print '</tr>';
     }
     $i++;
 }
 print "</table>\n";
 dol_fiche_end();
 //if ($object->statut == 0)	// only if draft
 //	print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"></div>';
 print '</form>';
 /*
  *    Boutons actions
  */
 if ($user->societe_id == 0) {
     print '<div class="tabsAction">';
     if ($object->statut == 0 && $num_prod > 0) {