print '<td></td>'; print '<td colspan="2" class="liste_titre" align="right">'; print '<input type="image" class="liste_titre" name="button_search" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/search.png" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">'; print ' '; print '<input type="image" class="liste_titre" name="button_removefilter" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/searchclear.png" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">'; print '</td>'; print "</tr>\n"; $var = True; while ($i < min($num, $conf->liste_limit)) { $obj = $db->fetch_object($resql); $cashwil = new Cash($db); $cashwil->fetch($obj->rowid); $var = !$var; print "<tr {$bc[$var]}>"; print '<td width="30%">' . $cashwil->getNomUrl(1) . '</td>'; print "<td>" . $cashwil->tactiltype($obj->tactil) . "</td>\n"; print '<td align="left">' . $cashwil->getLibStatut(4) . '</td>'; $url = 'cash.php?id=' . $obj->rowid; if (!$cashwil->is_closed) { if ($cashwil->fk_user_u) { $userstatic = new User($db); $userstatic->fetch($cashwil->fk_user_u); if ($user->rights->pos->backend) { print "<td>" . $userstatic->getNomUrl(1) . "</td>\n"; print '<td align="center">'; print '<form action="' . $url . '" name="free" method="POST">'; print '<input type="hidden" name="id" value="' . $cashwil->id . '">'; print '<input type="hidden" name="action" value="freeterminal">'; print '<input class="button" type="submit" value="' . $langs->trans("FreeIt") . '">'; print '</form>'; print '</td>';