print '<a name="' . $line->id . '"></a>';
 // ancre pour retourner sur la ligne
 if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && $line->fk_product > 0) {
     $product_static = new ProductFournisseur($db);
     $product_static->fetch_opt($line->fk_product);
     $text = $product_static->getNomUrl(1, 'supplier');
     $text .= ' - ' . $product_static->libelle;
     $description = $conf->global->PRODUIT_DESC_IN_FORM ? '' : dol_htmlentitiesbr($line->description);
     print $form->textwithtooltip($text, $description, 3, '', '', $i);
     // Show range
     print_date_range($date_start, $date_end);
     print '<br>';
 } else {
     $forceall = 1;
     // For suppliers, we always show all types
     print $form->select_type_of_lines($line->product_type, 'type', 1, 0, $forceall);
     if ($forceall || !empty($conf->product->enabled) && !empty($conf->service->enabled) || empty($conf->product->enabled) && empty($conf->service->enabled)) {
         print '<br>';
     }
 }
 if (is_object($hookmanager)) {
     $parameters = array('fk_parent_line' => $line->fk_parent_line, 'line' => $line, 'var' => $var, 'num' => $num, 'i' => $i);
     $reshook = $hookmanager->executeHooks('formEditProductOptions', $parameters, $object, $action);
 }
 $nbrows = ROWS_2;
 if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
     $nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
 }
 $doleditor = new DolEditor('eldesc', $line->description, '', 200, 'dolibarr_details', '', false, true, $conf->global->FCKEDITOR_ENABLE_DETAILS, $nbrows, 70);
 $doleditor->Create();
 print '</td>';
 print '<tr ' . $bc[$var] . '>';
 // Show product and description
 print '<td>';
 print '<input type="hidden" name="lineid" value="' . $object->lines[$i]->rowid . '">';
 if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && $object->lines[$i]->fk_product > 0) {
     print '<input type="hidden" name="idprod" value="' . $object->lines[$i]->fk_product . '">';
     $product_static = new ProductFournisseur($db);
     $product_static->fetch($object->lines[$i]->fk_product);
     $text = $product_static->getNomUrl(1);
     $text .= ' - ' . $product_static->libelle;
     print $text;
     print '<br>';
 } else {
     $forceall = 1;
     // For suppliers, we always show all types
     print $form->select_type_of_lines($object->lines[$i]->product_type, 'type', 1, 0, $forceall);
     if ($forceall || !empty($conf->product->enabled) && !empty($conf->service->enabled) || empty($conf->product->enabled) && empty($conf->service->enabled)) {
         print '<br>';
     }
 }
 if (is_object($hookmanager)) {
     $parameters = array('fk_parent_line' => $line->fk_parent_line, 'line' => $object->lines[$i], 'var' => $var, 'num' => $num, 'i' => $i);
     $reshook = $hookmanager->executeHooks('formEditProductOptions', $parameters, $object, $action);
 }
 $nbrows = ROWS_2;
 if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
     $nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
 }
 $doleditor = new DolEditor('desc', $object->lines[$i]->description, '', 128, 'dolibarr_details', '', false, true, $conf->global->FCKEDITOR_ENABLE_DETAILS, $nbrows, 70);
 $doleditor->Create();
 print '</td>';
Example #3
0
 print '<tr ' . $bc[$var] . '>';
 print '<td>';
 print '<a name="' . $line->id . '"></a>';
 // ancre pour retourner sur la ligne
 if (($conf->product->enabled || $conf->service->enabled) && $line->fk_product > 0) {
     $product_static = new ProductFournisseur($db);
     $product_static->fetch($line->fk_product);
     $text = $product_static->getNomUrl(1, 'supplier');
     $text .= ' - ' . $product_static->libelle;
     $description = $conf->global->PRODUIT_DESC_IN_FORM ? '' : dol_htmlentitiesbr($line->description);
     print $html->textwithtooltip($text, $description, 3, '', '', $i);
     // Show range
     print_date_range($line->date_start, $line->date_end);
     print '<br>';
 } else {
     print $html->select_type_of_lines($line->product_type, 'type', 1);
     if ($conf->product->enabled && $conf->service->enabled) {
         print '<br>';
     }
 }
 // Description - Editor wysiwyg
 require_once DOL_DOCUMENT_ROOT . "/lib/doleditor.class.php";
 $nbrows = ROWS_2;
 if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
     $nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
 }
 $doleditor = new DolEditor('eldesc', $line->description, '', 200, 'dolibarr_details', '', false, true, $conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS, $nbrows, 70);
 $doleditor->Create();
 print '</td>';
 print '<td>';
 print $html->load_tva('tva_tx', $line->tva_tx);
Example #4
0
 print '<input type="hidden" name="action" value="update_line">';
 print '<tr ' . $bc[$var] . '>';
 // Show product and description
 print '<td>';
 if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && $object->lines[$i]->fk_product) {
     print '<input type="hidden" name="idprod" value="' . $object->lines[$i]->fk_product . '">';
     $product_static = new ProductFournisseur($db);
     $product_static->fetch($object->lines[$i]->fk_product);
     $text = $product_static->getNomUrl(1);
     $text .= ' - ' . $product_static->libelle;
     print $text;
     print '<br>';
 } else {
     $forceall = 1;
     // For suppliers, we always show all types
     print $form->select_type_of_lines($object->lines[$i]->product_type, 'type', 1);
     if ($forceall || !empty($conf->product->enabled) && !empty($conf->service->enabled) || empty($conf->product->enabled) && empty($conf->service->enabled)) {
         print '<br>';
     }
 }
 if (is_object($hookmanager)) {
     $parameters = array('fk_parent_line' => $line->fk_parent_line, 'line' => $object->lines[$i], 'var' => $var, 'num' => $num, 'i' => $i);
     $reshook = $hookmanager->executeHooks('formEditProductOptions', $parameters, $object, $action);
 }
 $nbrows = ROWS_2;
 if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
     $nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
 }
 $doleditor = new DolEditor('desc', $object->lines[$i]->description, '', 128, 'dolibarr_details', '', false, true, $conf->global->FCKEDITOR_ENABLE_DETAILS, $nbrows, 70);
 $doleditor->Create();
 print '</td>';