',
+ ' | ',
+ '',
+ $prod->getNomUrl(1, '', 16),
+ ' | ',
+ '' . $objp->label . ' | ',
+ '';
if (!empty($conf->service->enabled) && $type == 1) {
- print '';
if (preg_match('/([0-9]+)y/i', $objp->duration, $regs)) {
- print $regs[1] . ' ' . $langs->trans('DurationYear');
+ $duration = $regs[1] . ' ' . $langs->trans('DurationYear');
} elseif (preg_match('/([0-9]+)m/i', $objp->duration, $regs)) {
- print $regs[1] . ' ' . $langs->trans('DurationMonth');
+ $duration = $regs[1] . ' ' . $langs->trans('DurationMonth');
} elseif (preg_match('/([0-9]+)d/i', $objp->duration, $regs)) {
- print $regs[1] . ' ' . $langs->trans('DurationDay');
+ $duration = $regs[1] . ' ' . $langs->trans('DurationDay');
} else {
- print $objp->duration;
+ $duration = $objp->duration;
}
- print ' | ';
+ echo '',
+ $duration,
+ ' | ';
}
- print '' . $objp->desiredstock . ' | ';
- print '';
+
if (!$objp->stock_physique) {
$objp->stock_physique = 0;
}
@@ -461,38 +461,39 @@ if ($resql) {
if ($objp->seuil_stock_alerte
&& ($stock < $objp->seuil_stock_alerte)) {
$warn = $langs->trans('StockTooLow');
- print img_warning($warn) . ' ';
+ $stock = img_warning($warn) . ' ' . $stock;
}
- print $stock;
- print ' | ';
//depending on conf, use either physical stock or
//virtual stock to compute the stock to buy value
$stocktobuy = $objp->desiredstock - $stock;
- print ''.$stocktobuy.' | ';
- print '';
- print '';
- print ordered($prod->id);
- print ' | ';
- $form = new Form($db);
- print '';
- print $form->select_product_fourn_price($prod->id,
+ echo ' | ' . $objp->desiredstock . ' | ',
+ '',
+ $stock,
+ ' | ',
+ ''.$stocktobuy.' | ',
+ '',
+ '',
+ ordered($prod->id),
+ ' | ',
+ '',
+ $form->select_product_fourn_price($prod->id,
'fourn' . $i,
1
- );
- print ' | ';
- print '  | ';
- print "
";
+ ),
+ '',
+ '