diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index e01eee09663..91c786b2a10 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -473,8 +473,8 @@ if ($user->rights->adherent->cotisation->creer && $action == 'cotisation' && ! $
// Define output language
$outputlangs = $langs;
$newlang = '';
- if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST ['lang_id']))
- $newlang = $_REQUEST ['lang_id'];
+ if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id']))
+ $newlang = $_REQUEST['lang_id'];
if ($conf->global->MAIN_MULTILANGS && empty($newlang))
$newlang = $customer->default_lang;
if (! empty($newlang)) {
diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 01c9956408b..4a6b04f54fb 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -116,7 +116,7 @@ if ($action == 'confirm_clone' && $confirm == 'yes') {
if ($object->id > 0) {
$result = $object->createFromClone($socid);
if ($result > 0) {
- header("Location: " . $_SERVER ['PHP_SELF'] . '?id=' . $result);
+ header("Location: " . $_SERVER['PHP_SELF'] . '?id=' . $result);
exit();
} else {
setEventMessage($object->error, 'errors');
@@ -157,7 +157,7 @@ else if ($action == 'confirm_deleteline' && $confirm == 'yes' && $user->rights->
propale_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $object->id);
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id);
exit();
}
@@ -331,7 +331,7 @@ else if ($action == 'add' && $user->rights->propal->creer) {
propale_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $id);
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $id);
exit();
} else {
$db->rollback();
@@ -482,7 +482,7 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
// This avoid sending mail twice if going out and then back to page
$mesg = $langs->trans('MailSuccessfulySent', $mailfile->getValidAddress($from, 2), $mailfile->getValidAddress($sendto, 2));
setEventMessage($mesg);
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $object->id);
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id);
exit();
} else {
dol_print_error($db);
@@ -886,7 +886,7 @@ else if ($action == 'updateligne' && $user->rights->propal->creer && GETPOST('sa
}
else if ($action == 'updateligne' && $user->rights->propal->creer && GETPOST('cancel') == $langs->trans('Cancel')) {
- header('Location: ' . $_SERVER ['PHP_SELF'] . '?id=' . $object->id); // Pour reaffichage de la fiche en cours d'edition
+ header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $object->id); // Pour reaffichage de la fiche en cours d'edition
exit();
}
@@ -910,7 +910,7 @@ else if ($action == 'builddoc' && $user->rights->propal->creer) {
dol_print_error($db, $result);
exit();
} else {
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $object->id . (empty($conf->global->MAIN_JUMP_TAG) ? '' : '#builddoc'));
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . (empty($conf->global->MAIN_JUMP_TAG) ? '' : '#builddoc'));
exit();
}
}
@@ -983,7 +983,7 @@ else if ($action == 'up' && $user->rights->propal->creer) {
propale_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $id . '#' . GETPOST('rowid'));
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $id . '#' . GETPOST('rowid'));
exit();
}
@@ -1002,7 +1002,7 @@ else if ($action == 'down' && $user->rights->propal->creer) {
propale_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
- header('Location: ' . $_SERVER ["PHP_SELF"] . '?id=' . $id . '#' . GETPOST('rowid'));
+ header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $id . '#' . GETPOST('rowid'));
exit();
} else if ($action == 'update_extras') {
// Fill array 'array_options' with data from update form
@@ -1040,7 +1040,7 @@ if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->propal->
}
if ($result >= 0) {
- header("Location: " . $_SERVER ['PHP_SELF'] . "?id=" . $object->id);
+ header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $object->id);
exit();
} else {
if ($object->error == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
@@ -1067,7 +1067,7 @@ if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->propal->
$result = $object->delete_contact($lineid);
if ($result >= 0) {
- header("Location: " . $_SERVER ['PHP_SELF'] . "?id=" . $object->id);
+ header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $object->id);
exit();
} else {
dol_print_error($db);
@@ -1099,7 +1099,7 @@ if ($action == 'create') {
$object = new Propal($db);
- print '
';
print ' ';
print ' ';
if ($soc->id > 0) print ' ' . "\n";
@@ -2160,17 +2160,17 @@ if ($action == 'create')
// Discounts for third party
print '' . $langs->trans('Discounts') . ' ';
if ($soc->remise_percent)
- print $langs->trans("CompanyHasRelativeDiscount", 'id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">' . $soc->remise_percent . ' ');
+ print $langs->trans("CompanyHasRelativeDiscount", 'id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">' . $soc->remise_percent . ' ');
else
print $langs->trans("CompanyHasNoRelativeDiscount");
- print ' id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">(' . $langs->trans("EditRelativeDiscount") . ') ';
+ print ' id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">(' . $langs->trans("EditRelativeDiscount") . ') ';
print '. ';
print ' ';
if ($absolute_discount)
- print $langs->trans("CompanyHasAbsoluteDiscount", 'id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">' . price($absolute_discount) . ' ', $langs->trans("Currency" . $conf->currency));
+ print $langs->trans("CompanyHasAbsoluteDiscount", 'id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">' . price($absolute_discount) . ' ', $langs->trans("Currency" . $conf->currency));
else
print $langs->trans("CompanyHasNoAbsoluteDiscount");
- print ' id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">(' . $langs->trans("EditGlobalDiscounts") . ') ';
+ print ' id . '&action=' . $action . '&origin=' . GETPOST('origin') . '&originid=' . GETPOST('originid')) . '">(' . $langs->trans("EditGlobalDiscounts") . ') ';
print '.';
print ' ';
}
@@ -2426,7 +2426,7 @@ if ($action == 'create')
// Confirmation de la conversion de l'avoir en reduc
if ($action == 'converttoreduc') {
$text = $langs->trans('ConfirmConvertToReduc');
- $formconfirm = $form->formconfirm($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('ConvertToReduc'), $text, 'confirm_converttoreduc', '', "yes", 2);
+ $formconfirm = $form->formconfirm($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('ConvertToReduc'), $text, 'confirm_converttoreduc', '', "yes", 2);
}
// Confirmation to delete invoice
@@ -2453,9 +2453,9 @@ if ($action == 'create')
// array('type' => 'checkbox', 'name' => 'update_prices', 'label' => $langs->trans("PuttingPricesUpToDate"), 'value'
// => 1),
array('type' => 'other','name' => 'idwarehouse','label' => $label,'value' => $formproduct->selectWarehouses(GETPOST('idwarehouse')?GETPOST('idwarehouse'):'ifone', 'idwarehouse', '', 1, 0, 0, $langs->trans("NoStockAction"))));
- $formconfirm = $form->formconfirm($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('DeleteBill'), $text, 'confirm_delete', $formquestion, "yes", 1);
+ $formconfirm = $form->formconfirm($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('DeleteBill'), $text, 'confirm_delete', $formquestion, "yes", 1);
} else {
- $formconfirm = $form->formconfirm($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('DeleteBill'), $text, 'confirm_delete', '', '', 1);
+ $formconfirm = $form->formconfirm($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('DeleteBill'), $text, 'confirm_delete', '', '', 1);
}
}
@@ -2517,7 +2517,7 @@ if ($action == 'create')
{
$text .= ' ' . img_warning() . ' ' . $langs->trans("ErrorInvoiceOfThisTypeMustBePositive");
}
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ValidateBill'), $text, 'confirm_valid', $formquestion, (($object->type != Facture::TYPE_CREDIT_NOTE && $object->total_ttc < 0) ? "no" : "yes"), ($conf->notification->enabled ? 0 : 2));
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ValidateBill'), $text, 'confirm_valid', $formquestion, (($object->type != Facture::TYPE_CREDIT_NOTE && $object->total_ttc < 0) ? "no" : "yes"), ($conf->notification->enabled ? 0 : 2));
}
// Confirm back to draft status
@@ -2554,12 +2554,12 @@ if ($action == 'create')
array('type' => 'other','name' => 'idwarehouse','label' => $label,'value' => $value));
}
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('UnvalidateBill'), $text, 'confirm_modif', $formquestion, "yes", 1);
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('UnvalidateBill'), $text, 'confirm_modif', $formquestion, "yes", 1);
}
// Confirmation du classement paye
if ($action == 'paid' && $resteapayer <= 0) {
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ClassifyPaid'), $langs->trans('ConfirmClassifyPaidBill', $object->ref), 'confirm_paid', '', "yes", 1);
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ClassifyPaid'), $langs->trans('ConfirmClassifyPaidBill', $object->ref), 'confirm_paid', '', "yes", 1);
}
if ($action == 'paid' && $resteapayer > 0) {
// Code
@@ -2588,7 +2588,7 @@ if ($action == 'create')
// Cree un tableau formulaire
$formquestion = array('text' => $langs->trans("ConfirmClassifyPaidPartiallyQuestion"),array('type' => 'radio','name' => 'close_code','label' => $langs->trans("Reason"),'values' => $arrayreasons),array('type' => 'text','name' => 'close_note','label' => $langs->trans("Comment"),'value' => '','size' => '100'));
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ClassifyPaid'), $langs->trans('ConfirmClassifyPaidPartially', $object->ref), 'confirm_paid_partially', $formquestion, "yes");
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('ClassifyPaid'), $langs->trans('ConfirmClassifyPaidPartially', $object->ref), 'confirm_paid_partially', $formquestion, "yes");
}
// Confirmation du classement abandonne
@@ -2619,13 +2619,13 @@ if ($action == 'create')
// Cree un tableau formulaire
$formquestion = array('text' => $langs->trans("ConfirmCancelBillQuestion"),array('type' => 'radio','name' => 'close_code','label' => $langs->trans("Reason"),'values' => $arrayreasons),array('type' => 'text','name' => 'close_note','label' => $langs->trans("Comment"),'value' => '','size' => '100'));
- $formconfirm = $form->formconfirm($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('CancelBill'), $langs->trans('ConfirmCancelBill', $object->ref), 'confirm_canceled', $formquestion, "yes");
+ $formconfirm = $form->formconfirm($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $langs->trans('CancelBill'), $langs->trans('ConfirmCancelBill', $object->ref), 'confirm_canceled', $formquestion, "yes");
}
}
// Confirmation de la suppression d'une ligne produit
if ($action == 'ask_deleteline') {
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id . '&lineid=' . $lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 'no', 1);
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id . '&lineid=' . $lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 'no', 1);
}
// Clone confirmation
@@ -2636,7 +2636,7 @@ if ($action == 'create')
// array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneMainAttributes"), 'value' => 1)
array('type' => 'other','name' => 'socid','label' => $langs->trans("SelectThirdParty"),'value' => $form->select_company('', 'socid', '(s.client=1 OR s.client=2 OR s.client=3)', 1)));
// Paiement incomplet. On demande si motif = escompte ou autre
- $formconfirm = $form->formconfirm($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('CloneInvoice'), $langs->trans('ConfirmCloneInvoice', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
+ $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?facid=' . $object->id, $langs->trans('CloneInvoice'), $langs->trans('ConfirmCloneInvoice', $object->ref), 'confirm_clone', $formquestion, 'yes', 1);
}
if (! $formconfirm) {
@@ -2675,12 +2675,12 @@ if ($action == 'create')
print $langs->trans('RefCustomer');
print '';
if ($action != 'refclient' && ! empty($object->brouillon))
- print '' . img_edit($langs->trans('Modify')) . ' ';
+ print '' . img_edit($langs->trans('Modify')) . ' ';
print '';
print '';
print '';
if ($user->rights->facture->creer && $action == 'refclient') {
- print 'id . '" method="post">';
+ print ' id . '" method="post">';
print ' ';
print ' ';
print ' ';
@@ -2697,11 +2697,11 @@ if ($action == 'create')
print '' . $langs->trans('Company') . ' ';
print '';
if (! empty($conf->global->FACTURE_CHANGE_THIRDPARTY) && $action != 'editthirdparty' && $object->brouillon && $user->rights->facture->creer)
- print ' id . '">' . img_edit($langs->trans('SetLinkToThirdParty'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetLinkToThirdParty'), 1) . ' ';
print ' ';
print ' ';
if ($action == 'editthirdparty') {
- $form->form_thirdparty($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->socid, 'socid');
+ $form->form_thirdparty($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->socid, 'socid');
} else {
print ' ' . $soc->getNomUrl(1, 'compta');
print ' ';
@@ -2756,9 +2756,9 @@ if ($action == 'create')
print ' ';
// Relative and absolute discounts
- $addrelativediscount = 'id . '">' . $langs->trans("EditRelativeDiscounts") . ' ';
- $addabsolutediscount = 'id . '">' . $langs->trans("EditGlobalDiscounts") . ' ';
- $addcreditnote = 'id . '">' . $langs->trans("AddCreditNote") . ' ';
+ $addrelativediscount = 'id . '">' . $langs->trans("EditRelativeDiscounts") . ' ';
+ $addabsolutediscount = 'id . '">' . $langs->trans("EditGlobalDiscounts") . ' ';
+ $addcreditnote = 'id . '">' . $langs->trans("AddCreditNote") . ' ';
print '' . $langs->trans('Discounts');
print ' ';
@@ -2787,7 +2787,7 @@ if ($action == 'create')
} else {
// Remise dispo de type remise fixe (not credit note)
print ' ';
- $form->form_remise_dispo($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, GETPOST('discountid'), 'remise_id', $soc->id, $absolute_discount, $filterabsolutediscount, $resteapayer, ' (' . $addabsolutediscount . ')');
+ $form->form_remise_dispo($_SERVER["PHP_SELF"] . '?facid=' . $object->id, GETPOST('discountid'), 'remise_id', $soc->id, $absolute_discount, $filterabsolutediscount, $resteapayer, ' (' . $addabsolutediscount . ')');
}
} else {
if ($absolute_creditnote > 0) // If not, link will be added later
@@ -2814,7 +2814,7 @@ if ($action == 'create')
print ' ';
// $form->form_remise_dispo($_SERVER["PHP_SELF"].'?facid='.$object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote,
// $filtercreditnote, $resteapayer);
- $form->form_remise_dispo($_SERVER ["PHP_SELF"] . '?facid=' . $object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote, $filtercreditnote, 0); // We
+ $form->form_remise_dispo($_SERVER["PHP_SELF"] . '?facid=' . $object->id, 0, 'remise_id_for_payment', $soc->id, $absolute_creditnote, $filtercreditnote, 0); // We
// must
// allow
// credit
@@ -2848,13 +2848,13 @@ if ($action == 'create')
print $langs->trans('Date');
print ' ';
if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editinvoicedate' && ! empty($object->brouillon) && $user->rights->facture->creer)
- print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . ' ';
print ' ';
print '';
if ($object->type != Facture::TYPE_CREDIT_NOTE) {
if ($action == 'editinvoicedate') {
- $form->form_date($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->date, 'invoicedate');
+ $form->form_date($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->date, 'invoicedate');
} else {
print dol_print_date($object->date, 'daytext');
}
@@ -2984,7 +2984,7 @@ if ($action == 'create')
print ' : ';
print '' . price($obj->amount_ttc) . ' ';
print '';
- print 'id . '&action=unlinkdiscount&discountid=' . $obj->rowid . '">' . img_delete() . ' ';
+ print 'id . '&action=unlinkdiscount&discountid=' . $obj->rowid . '">' . img_delete() . ' ';
print ' ';
$i ++;
if ($invoice->type == Facture::TYPE_CREDIT_NOTE)
@@ -3082,14 +3082,14 @@ if ($action == 'create')
print $langs->trans('PaymentConditionsShort');
print '';
if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editconditions' && ! empty($object->brouillon) && $user->rights->facture->creer)
- print 'id . '">' . img_edit($langs->trans('SetConditions'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetConditions'), 1) . ' ';
print '';
print '';
if ($object->type != Facture::TYPE_CREDIT_NOTE) {
if ($action == 'editconditions') {
- $form->form_conditions_reglement($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'cond_reglement_id');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'cond_reglement_id');
} else {
- $form->form_conditions_reglement($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'none');
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->cond_reglement_id, 'none');
}
} else {
print ' ';
@@ -3102,12 +3102,12 @@ if ($action == 'create')
print $langs->trans('DateMaxPayment');
print ' ';
if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editpaymentterm' && ! empty($object->brouillon) && $user->rights->facture->creer)
- print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . ' ';
print '';
print '';
if ($object->type != Facture::TYPE_CREDIT_NOTE) {
if ($action == 'editpaymentterm') {
- $form->form_date($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->date_lim_reglement, 'paymentterm');
+ $form->form_date($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->date_lim_reglement, 'paymentterm');
} else {
print dol_print_date($object->date_lim_reglement, 'daytext');
if ($object->date_lim_reglement < ($now - $conf->facture->client->warning_delay) && ! $object->paye && $object->statut == 1 && ! isset($object->am))
@@ -3124,13 +3124,13 @@ if ($action == 'create')
print $langs->trans('PaymentMode');
print ' ';
if ($action != 'editmode' && ! empty($object->brouillon) && $user->rights->facture->creer)
- print 'id . '">' . img_edit($langs->trans('SetMode'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetMode'), 1) . ' ';
print '';
print '';
if ($action == 'editmode') {
- $form->form_modes_reglement($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->mode_reglement_id, 'mode_reglement_id');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->mode_reglement_id, 'mode_reglement_id');
} else {
- $form->form_modes_reglement($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->mode_reglement_id, 'none');
+ $form->form_modes_reglement($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->mode_reglement_id, 'none');
}
print ' ';
@@ -3160,11 +3160,11 @@ if ($action == 'create')
print $langs->trans('RevenueStamp');
print '';
if ($action != 'editrevenuestamp' && ! empty($object->brouillon) && $user->rights->facture->creer)
- print 'id . '">' . img_edit($langs->trans('SetRevenuStamp'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->trans('SetRevenuStamp'), 1) . ' ';
print '';
print '';
if ($action == 'editrevenuestamp') {
- print 'id . '" method="post">';
+ print ' id . '" method="post">';
print ' ';
print ' ';
print $formother->select_revenue_stamp(GETPOST('revenuestamp'), 'revenuestamp', $mysoc->country_code);
@@ -3194,7 +3194,7 @@ if ($action == 'create')
print $langs->trans('Project');
print ' ';
if ($action != 'classify') {
- print 'id . '">';
+ print ' id . '">';
print img_edit($langs->trans('SetProject'), 1);
print ' ';
}
@@ -3202,9 +3202,9 @@ if ($action == 'create')
print '';
if ($action == 'classify') {
- $form->form_project($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->socid, $object->fk_project, 'projectid');
+ $form->form_project($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->socid, $object->fk_project, 'projectid');
} else {
- $form->form_project($_SERVER ['PHP_SELF'] . '?facid=' . $object->id, $object->socid, $object->fk_project, 'none');
+ $form->form_project($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->socid, $object->fk_project, 'none');
}
print ' ';
print '';
@@ -3236,7 +3236,7 @@ if ($action == 'create')
}
if ($action == 'edit_extras' && $user->rights->facture->creer && GETPOST('attribute') == $key) {
- print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -504,9 +504,9 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES)) {
print '' . price($prices ['remise_percent']) . ' % ';
print '';
if (($user->rights->produit->creer || $user->rights->service->creer)) {
- print 'id . '&action=edit_price_by_qty&rowid=' . $prices ["rowid"] . '">';
+ print ' id . '&action=edit_price_by_qty&rowid=' . $prices ["rowid"] . '">';
print img_edit() . ' ';
- print 'id . '&action=delete_price_by_qty&rowid=' . $prices ["rowid"] . '">';
+ print ' id . '&action=delete_price_by_qty&rowid=' . $prices ["rowid"] . '">';
print img_delete() . ' ';
} else {
print ' ';
@@ -516,7 +516,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES)) {
}
}
if ($action != 'edit_price_by_qty') {
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -561,7 +561,7 @@ if (! $action || $action == 'delete') {
print "\n" . '' . "\n";
if ($user->rights->produit->creer || $user->rights->service->creer) {
- print '
';
+ print '
';
}
print "\n
\n";
@@ -574,7 +574,7 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print_fiche_titre($langs->trans("NewPrice"), '', '');
if (empty($conf->global->PRODUIT_MULTIPRICES)) {
- print ' id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -625,7 +625,7 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print ' ';
} else {
for($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i ++) {
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -761,7 +761,7 @@ if ($result) {
if ($user->rights->produit->supprimer) {
print '';
if ($i > 0) {
- print 'id . '&lineid=' . $objp->rowid . '">';
+ print ' id . '&lineid=' . $objp->rowid . '">';
print img_delete();
print ' ';
} else
@@ -812,7 +812,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print_fiche_titre($langs->trans('PriceByCustomer'));
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -887,7 +887,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
setEventMessage($prodcustprice->error, 'errors');
}
- print ' id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -972,7 +972,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
if (count($prodcustprice->lines) > 0) {
- print ' id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print '';
@@ -1022,7 +1022,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
}
print "\n" . '' . "\n";
- print '
';
+ print '
';
print "\n
\n";
} else {
@@ -1045,7 +1045,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
if (count($prodcustprice->lines) > 0) {
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print '';
@@ -1102,13 +1102,13 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
// Action
if ($user->rights->produit->supprimer || $user->rights->service->supprimer) {
print '';
- print 'id . '&lineid=' . $line->id . '">';
+ print ' id . '&lineid=' . $line->id . '">';
print img_delete();
print ' ';
- print 'id . '&lineid=' . $line->id . '">';
+ print ' id . '&lineid=' . $line->id . '">';
print img_edit();
print ' ';
- print 'id . '&socid=' . $line->fk_soc . '">';
+ print ' id . '&socid=' . $line->fk_soc . '">';
print img_info();
print ' ';
print ' ';
@@ -1132,7 +1132,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print "\n" . '' . "\n";
if ($user->rights->produit->creer || $user->rights->service->creer) {
- print '
';
+ print '
';
}
print "\n
\n";
}
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index ae71537e648..0765a6adb31 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -232,7 +232,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print_fiche_titre($langs->trans('PriceByCustomer'));
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -307,7 +307,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
setEventMessage($prodcustprice->error, 'errors');
}
- print ' id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print ' ';
print ' ';
@@ -394,7 +394,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
if (count($prodcustprice->lines) > 0) {
- print ' id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print '';
@@ -443,7 +443,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
}
print "\n" . '' . "\n";
- print '
';
+ print '
';
print "\n
\n";
} else {
@@ -466,7 +466,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
if (count($prodcustprice->lines) > 0) {
- print 'id . '" method="POST">';
+ print ' id . '" method="POST">';
print ' ';
print '