print '</td>'; print "</tr>\n"; $var = true; $total = 0; $subtotal = 0; while ($i < min($num, $limit)) { $objp = $db->fetch_object($result); $now = dol_now(); $var = !$var; print '<tr ' . $bc[$var] . '>'; print '<td class="nowrap">'; $objectstatic->id = $objp->askpricesupplierid; $objectstatic->ref = $objp->ref; print '<table class="nobordernopadding"><tr class="nocellnopadd">'; print '<td class="nobordernopadding nowrap">'; print $objectstatic->getNomUrl(1); print '</td>'; print '<td style="min-width: 20px" class="nobordernopadding nowrap">'; if ($objp->fk_statut == 1 && $db->jdate($objp->dfv) < $now - $conf->askpricesupplier->cloture->warning_delay) { print img_warning($langs->trans("Late")); } if (!empty($objp->note_private)) { print ' <span class="note">'; print '<a href="' . DOL_URL_ROOT . '/comm/askpricesupplier/note.php?id=' . $objp->askpricesupplierid . '">' . img_picto($langs->trans("ViewPrivateNote"), 'object_generic') . '</a>'; print '</span>'; } print '</td>'; // Ref print '<td width="16" align="right" class="nobordernopadding hideonsmartphone">'; $filename = dol_sanitizeFileName($objp->ref); $filedir = $conf->askpricesupplier->dir_output . '/' . dol_sanitizeFileName($objp->ref);
if ($resql) { print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("DraftRequests") . '</td></tr>'; $langs->load("askpricesupplier"); $num = $db->num_rows($resql); if ($num) { $i = 0; $var = True; while ($i < $num) { $var = !$var; $obj = $db->fetch_object($resql); print "<tr " . $bc[$var] . ">"; $askpricesupplierstatic->id = $obj->rowid; $askpricesupplierstatic->ref = $obj->ref; print '<td class="nowrap">' . $askpricesupplierstatic->getNomUrl(1) . '</td>'; $companystatic->id = $obj->socid; $companystatic->name = $obj->socname; $companystatic->client = $obj->client; $companystatic->canvas = $obj->canvas; print '<td>' . $companystatic->getNomUrl(1, 'customer', 24) . '</td>'; print '</tr>'; $i++; } } print "</table><br>"; } } print '</div><div class="fichetwothirdright"><div class="ficheaddleft">'; $max = 5; /*