print '<td class="liste_titre"><input size="8" type="text" class="flat" name="search_ref" value="' . $search_ref . '"></td>'; if (empty($conf->global->SUPPLIER_ORDER_HIDE_REF_SUPPLIER)) { print '<td class="liste_titre"><input type="text" class="flat" size="8" name="search_refsupp" value="' . $search_refsupp . '"></td>'; } print '<td class="liste_titre"><input type="text" class="flat" size="8" name="search_company" value="' . $search_company . '"></td>'; if (!empty($conf->global->PROJECT_SHOW_REF_INTO_LISTS)) { print '<td class="liste_titre">'; print '</td>'; } print '<td class="liste_titre"><input type="text" size="6" class="flat" name="search_user" value="' . $search_user . '"></td>'; print '<td class="liste_titre" align="right"><input type="text" size="6" class="flat" name="search_ht" value="' . $search_ht . '"></td>'; print '<td class="liste_titre" align="right"><input type="text" size="6" class="flat" name="search_ttc" value="' . $search_ttc . '"></td>'; print '<td class="liste_titre"> </td>'; print '<td class="liste_titre"> </td>'; print '<td class="liste_titre" align="right">'; $formorder->selectSupplierOrderStatus(strstr($search_status, ',') ? -1 : $search_status, 1, 'search_status'); print '</td>'; print '<td align="center">'; print $form->selectyesno('billed', $billed, 1, 0, 1); print '</td>'; print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">'; print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">'; print "</td></tr>\n"; $var = true; $userstatic = new User($db); $objectstatic = new CommandeFournisseur($db); $projectstatic = new Project($db); while ($i < min($num, $conf->liste_limit)) { $obj = $db->fetch_object($resql); $var = !$var; $objectstatic->id = $obj->rowid;
print_liste_field_titre($langs->trans("AmountTTC"), $_SERVER["PHP_SELF"], "total_ttc", "", $param, $sortfield, $sortorder); print_liste_field_titre($langs->trans("OrderDate"), $_SERVER["PHP_SELF"], "dc", "", $param, 'align="center"', $sortfield, $sortorder); print_liste_field_titre($langs->trans('DateDeliveryPlanned'), $_SERVER["PHP_SELF"], 'cf.date_livraison', '', $param, 'align="right"', $sortfield, $sortorder); print_liste_field_titre($langs->trans("Status"), $_SERVER["PHP_SELF"], "cf.fk_statut", "", $param, 'align="right"', $sortfield, $sortorder); print_liste_field_titre(''); print "</tr>\n"; print '<tr class="liste_titre">'; print '<td class="liste_titre"><input type="text" class="flat" name="search_ref" value="' . $search_ref . '"></td>'; print '<td class="liste_titre"><input type="text" class="flat" name="search_refsupp" value="' . $search_refsupp . '"></td>'; print '<td class="liste_titre"><input type="text" class="flat" name="search_company" value="' . $search_company . '"></td>'; print '<td class="liste_titre"><input type="text" class="flat" name="search_user" value="' . $search_user . '"></td>'; print '<td class="liste_titre"><input type="text" class="flat" name="search_ttc" value="' . $search_ttc . '"></td>'; print '<td class="liste_titre"> </td>'; print '<td class="liste_titre"> </td>'; print '<td class="liste_titre" align="right">'; $formorder->selectSupplierOrderStatus($search_status, 1, 'search_status'); print '</td>'; print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">'; print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">'; print "</td></tr>\n"; $var = true; $userstatic = new User($db); $objectstatic = new CommandeFournisseur($db); while ($i < min($num, $conf->liste_limit)) { $obj = $db->fetch_object($resql); $var = !$var; print "<tr " . $bc[$var] . ">"; // Ref print '<td><a href="' . DOL_URL_ROOT . '/fourn/commande/card.php?id=' . $obj->rowid . '">' . img_object($langs->trans("ShowOrder"), "order") . ' ' . $obj->ref . '</a>'; $filename = dol_sanitizeFileName($obj->ref); $filedir = $conf->fournisseur->dir_output . '/commande' . '/' . dol_sanitizeFileName($obj->ref);