$url = 'place.php?id=' . $obj->rowid; if (!$placewil->is_inUse()) { if ($placewil->is_notInUse()) { if ($user->rights->pos->backend) { print "<td></td>\n"; print '<td align="left">'; print '<form action="' . $url . '" name="free" method="POST">'; print '<input type="hidden" name="id" value="' . $placewil->id . '">'; print '<input type="hidden" name="action" value="closeplace">'; print '<input class="button" type="submit" value="' . $langs->trans("CloseIt") . '">'; print '</form>'; print '</td>'; } else { print "<td></td>\n"; } } elseif ($placewil->is_closed()) { if ($user->rights->pos->backend) { print "<td></td>\n"; print '<td align="left">'; print '<form action="' . $url . '" name="free" method="POST">'; print '<input type="hidden" name="id" value="' . $placewil->id . '">'; print '<input type="hidden" name="action" value="openplace">'; print '<input class="button" type="submit" value="' . $langs->trans("OpenIt") . '">'; print '</form>'; print '</td>'; } else { print "<td></td>\n"; print "<td></td>\n"; } } } else {