print '</td>'; print '<td class="nowrap" style="padding-left: 5px">' . $langs->trans('Value') . ':<input type="text" id="valuedeposit" name="valuedeposit" size="3" value="' . GETPOST('valuedeposit', 'int') . '"/>'; } print '</td></tr></table>'; print '</div></div>'; } if ($socid > 0) { if (!empty($conf->global->INVOICE_USE_SITUATION)) { // First situation invoice print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">'; $tmp = '<input type="radio" name="type" value="5"' . (GETPOST('type') == 5 ? ' checked' : '') . '> '; $desc = $form->textwithpicto($tmp . $langs->trans("InvoiceFirstSituationAsk"), $langs->transnoentities("InvoiceFirstSituationDesc"), 1, 'help', '', 0, 3); print $desc; print '</div></div>'; // Next situation invoice $opt = $form->selectSituationInvoices(GETPOST('originid'), $socid); print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">'; $tmp = '<input type="radio" name="type" value="5"' . (GETPOST('type') == 5 && GETPOST('originid') ? ' checked' : ''); if ($opt == '<option value ="0" selected>' . $langs->trans('NoSituations') . '</option>' || GETPOST('origin') && GETPOST('origin') != 'facture') { $tmp .= ' disabled'; } $tmp .= '> '; $text = $tmp . $langs->trans("InvoiceSituationAsk") . ' '; $text .= '<select class="flat" id="situations" name="situations">'; $text .= $opt; $text .= '</select>'; $desc = $form->textwithpicto($text, $langs->transnoentities("InvoiceSituationDesc"), 1, 'help', '', 0, 3); print $desc; print '</div></div>'; } // Replacement