*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -54,6 +54,7 @@ $confirm = GETPOST('confirm', 'alpha');
$amount = price2num(GETPOST('amount', 'alphanohtml'), 'MT');
$donation_date = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
$projectid = (GETPOST('projectid') ? GETPOST('projectid', 'int') : 0);
+$public_donation = (int) GETPOST("public", 'int');
$object = new Don($db);
$extrafields = new ExtraFields($db);
@@ -151,8 +152,8 @@ if ($action == 'update')
$object->country_id = (int) GETPOST('country_id', 'int');
$object->email = (string) GETPOST("email", 'alpha');
$object->date = $donation_date;
- $object->public = (string) GETPOST("public", 'alpha');
- $object->fk_project = GETPOST("fk_project", 'alpha');
+ $object->public = $public_donation;
+ $object->fk_project = (int) GETPOST("fk_project", 'int');
$object->note_private = (string) GETPOST("note_private", 'restricthtml');
$object->note_public = (string) GETPOST("note_public", 'restricthtml');
$object->modepaymentid = (int) GETPOST('modepayment', 'int');
@@ -207,8 +208,8 @@ if ($action == 'add')
$object->date = $donation_date;
$object->note_private = (string) GETPOST("note_private", 'restricthtml');
$object->note_public = (string) GETPOST("note_public", 'restricthtml');
- $object->public = (string) GETPOST("public", 'alpha');
- $object->fk_project = (string) GETPOST("fk_project", 'alpha');
+ $object->public = $public_donation;
+ $object->fk_project = (int) GETPOST("fk_project", 'int');
$object->modepaymentid = (int) GETPOST('modepayment', 'int');
// Fill array 'array_options' with data from add form
@@ -224,8 +225,7 @@ if ($action == 'add')
}
}
}
-if ($action == 'confirm_delete' && GETPOST("confirm") == "yes" && $user->rights->don->supprimer)
-{
+if ($action == 'confirm_delete' && GETPOST("confirm") == "yes" && $user->rights->don->supprimer) {
$object->fetch($id);
$result = $object->delete($user);
if ($result > 0) {
@@ -236,42 +236,31 @@ if ($action == 'confirm_delete' && GETPOST("confirm") == "yes" && $user->rights-
setEventMessages($object->error, $object->errors, 'errors');
}
}
-if ($action == 'valid_promesse')
-{
+if ($action == 'valid_promesse') {
$object->fetch($id);
- if ($object->valid_promesse($id, $user->id) >= 0)
- {
+ if ($object->valid_promesse($id, $user->id) >= 0) {
setEventMessages($langs->trans("DonationValidated", $object->ref), null);
-
- header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
- exit;
+ $action = '';
} else {
setEventMessages($object->error, $object->errors, 'errors');
}
}
-if ($action == 'set_cancel')
-{
+if ($action == 'set_cancel') {
$object->fetch($id);
- if ($object->set_cancel($id) >= 0)
- {
- header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
- exit;
+ if ($object->set_cancel($id) >= 0) {
+ $action = '';
} else {
setEventMessages($object->error, $object->errors, 'errors');
}
}
-if ($action == 'set_paid')
-{
+if ($action == 'set_paid') {
$object->fetch($id);
- if ($object->set_paid($id, $modepayment) >= 0)
- {
- header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
- exit;
+ if ($object->set_paid($id, $modepayment) >= 0) {
+ $action = '';
} else {
setEventMessages($object->error, $object->errors, 'errors');
}
-} elseif ($action == 'classin' && $user->rights->don->creer)
-{
+} elseif ($action == 'classin' && $user->rights->don->creer) {
$object->fetch($id);
$object->setProject($projectid);
}
@@ -416,7 +405,7 @@ if ($action == 'create')
// Public donation
print ''.$langs->trans("PublicDonation")." ";
- print $form->selectyesno("public", isset($_POST["public"]) ? $_POST["public"] : 1, 1);
+ print $form->selectyesno("public", $public_donation, 1);
print " \n";
if (empty($conf->societe->enabled) || empty($conf->global->DONATION_USE_THIRDPARTIES))
@@ -493,7 +482,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
@@ -552,7 +541,7 @@ if (!empty($id) && $action == 'edit')
}
print ''.$langs->trans("PublicDonation")." ";
- print $form->selectyesno("public", 1, 1);
+ print $form->selectyesno("public", $object->public, 1);
print " ";
print " \n";
@@ -597,8 +586,7 @@ if (!empty($id) && $action == 'edit')
print "".''.$langs->trans("Status").' '.$object->getLibStatut(4).' ';
// Project
- if (!empty($conf->projet->enabled))
- {
+ if (!empty($conf->projet->enabled)) {
$formproject = new FormProjets($db);
$langs->load('projects');
@@ -620,7 +608,7 @@ if (!empty($id) && $action == 'edit')
print dol_get_fiche_end();
- print '
';
+ print '
';
print "\n";
}
diff --git a/htdocs/don/class/don.class.php b/htdocs/don/class/don.class.php
index e163f146678..042b22b3a1c 100644
--- a/htdocs/don/class/don.class.php
+++ b/htdocs/don/class/don.class.php
@@ -735,8 +735,7 @@ class Don extends CommonObject
{
if ($this->db->affected_rows($resql))
{
- if (!$notrigger)
- {
+ if (!$notrigger) {
// Call trigger
$result = $this->call_trigger('DON_VALIDATE', $user);
if ($result < 0) { $error++; }
@@ -748,8 +747,8 @@ class Don extends CommonObject
$this->error = $this->db->lasterror();
}
- if (!$error)
- {
+ if (!$error) {
+ $this->statut = 1;
$this->db->commit();
return 1;
} else {
@@ -777,10 +776,9 @@ class Don extends CommonObject
$sql .= " WHERE rowid = ".$id." AND fk_statut = 1";
$resql = $this->db->query($sql);
- if ($resql)
- {
- if ($this->db->affected_rows($resql))
- {
+ if ($resql) {
+ if ($this->db->affected_rows($resql)) {
+ $this->statut = 2;
return 1;
} else {
return 0;
@@ -804,10 +802,9 @@ class Don extends CommonObject
$sql = "UPDATE ".MAIN_DB_PREFIX."don SET fk_statut = -1 WHERE rowid = ".$id;
$resql = $this->db->query($sql);
- if ($resql)
- {
- if ($this->db->affected_rows($resql))
- {
+ if ($resql) {
+ if ($this->db->affected_rows($resql)) {
+ $this->statut = -1;
return 1;
} else {
return 0;
@@ -828,8 +825,7 @@ class Don extends CommonObject
public function reopen($user, $notrigger = 0)
{
// Protection
- if ($this->statut != self::STATUS_CANCELED)
- {
+ if ($this->statut != self::STATUS_CANCELED) {
return 0;
}
diff --git a/htdocs/don/payment/payment.php b/htdocs/don/payment/payment.php
index 0046a658707..9f944fe65b3 100644
--- a/htdocs/don/payment/payment.php
+++ b/htdocs/don/payment/payment.php
@@ -301,7 +301,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
diff --git a/htdocs/ecm/dir_add_card.php b/htdocs/ecm/dir_add_card.php
index 436e87714a2..a2726a1ba75 100644
--- a/htdocs/ecm/dir_add_card.php
+++ b/htdocs/ecm/dir_add_card.php
@@ -256,7 +256,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
}
diff --git a/htdocs/ecm/dir_card.php b/htdocs/ecm/dir_card.php
index 078eee7699c..9dc6977f1e4 100644
--- a/htdocs/ecm/dir_card.php
+++ b/htdocs/ecm/dir_card.php
@@ -438,7 +438,7 @@ if ($action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/ecm/file_card.php b/htdocs/ecm/file_card.php
index 7e2df52ed62..496afbf8568 100644
--- a/htdocs/ecm/file_card.php
+++ b/htdocs/ecm/file_card.php
@@ -395,7 +395,7 @@ if ($action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index af1c06d8214..facd5ee1d14 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -804,7 +804,7 @@ if (empty($reshook))
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // To redisplay the form being edited
exit();
}
- } elseif ($action == 'updateline' && $user->rights->expedition->creer && GETPOST('cancel', 'alpha') == $langs->trans('Cancel')) {
+ } elseif ($action == 'updateline' && $user->rights->expedition->creer && GETPOST('cancel', 'alpha') == $langs->trans("Cancel")) {
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // To redisplay the form being edited
exit();
}
@@ -1551,7 +1551,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -1789,7 +1789,7 @@ if ($action == 'create')
print ' ';
print $formproduct->selectMeasuringUnits("weight_units", "weight", $object->weight_units, 0, 2);
print ' ';
- print ' ';
+ print ' ';
print '';
} else {
print $object->trueWeight;
@@ -1822,7 +1822,7 @@ if ($action == 'create')
print ' ';
print $formproduct->selectMeasuringUnits("size_units", "size", $object->size_units, 0, 2);
print ' ';
- print ' ';
+ print ' ';
print '';
} else {
print $object->trueHeight;
@@ -2361,7 +2361,7 @@ if ($action == 'create')
{
print '';
print ' ';
- print ' ';
+ print ' ';
print ' ';
} elseif ($object->statut == Expedition::STATUS_DRAFT)
{
diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php
index baf77227163..83e1173fcb4 100644
--- a/htdocs/expensereport/card.php
+++ b/htdocs/expensereport/card.php
@@ -1487,7 +1487,7 @@ if ($action == 'create')
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -1620,7 +1620,7 @@ if ($action == 'create')
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -2353,8 +2353,8 @@ if ($action == 'create')
print '';
print ' ';
- print ' ';
- print ' ';
+ print ' ';
+ print ' ';
print ' ';
print '';
@@ -2648,7 +2648,7 @@ if ($action != 'create' && $action != 'edit')
if ($user->id == $object->fk_user_author || $user->id == $object->fk_user_valid)
{
// Cancel
- print '';
+ print '';
}
}
@@ -2686,14 +2686,14 @@ if ($action != 'create' && $action != 'edit')
if ($user->rights->expensereport->creer && ($user->id == $object->fk_user_author || $user->id == $object->fk_user_valid) && $object->status == ExpenseReport::STATUS_APPROVED)
{
// Cancel
- print '';
+ print '';
}
// TODO Replace this. It should be SetUnpaid and should go back to status unpaid not canceled.
if (($user->rights->expensereport->approve || $user->rights->expensereport->to_paid) && $object->status == ExpenseReport::STATUS_CLOSED)
{
// Cancel
- print '';
+ print '';
}
if ($user->rights->expensereport->to_paid && $object->paid && $object->status == ExpenseReport::STATUS_CLOSED)
diff --git a/htdocs/expensereport/payment/payment.php b/htdocs/expensereport/payment/payment.php
index 4da5eef07be..fdaeaf68977 100644
--- a/htdocs/expensereport/payment/payment.php
+++ b/htdocs/expensereport/payment/payment.php
@@ -348,7 +348,7 @@ if ($action == 'create' || empty($action))
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
diff --git a/htdocs/fichinter/card-rec.php b/htdocs/fichinter/card-rec.php
index 975a5dc9698..f245084f8db 100644
--- a/htdocs/fichinter/card-rec.php
+++ b/htdocs/fichinter/card-rec.php
@@ -421,7 +421,7 @@ if ($action == 'create') {
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
} else {
diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php
index fa5259a4f8e..172455c2c35 100644
--- a/htdocs/fichinter/card.php
+++ b/htdocs/fichinter/card.php
@@ -1013,7 +1013,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -1055,7 +1055,7 @@ if ($action == 'create')
print ' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print '';
@@ -1479,7 +1479,7 @@ if ($action == 'create')
print '';
print ' ';
- print ' ';
+ print ' ';
print ''."\n";
$line = new FichinterLigne($db);
diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index b4f3570ff34..e03fae8857d 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -1772,7 +1772,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
@@ -2597,7 +2597,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2717,7 +2717,7 @@ if ($action == 'create')
if ($error_occurred)
{
print " ".$langs->trans("ErrorOccurredReviseAndRetry")." ";
- print ' ';
+ print ' ';
} else {
$textinput_size = "50";
// Webservice url
@@ -2731,7 +2731,7 @@ if ($action == 'create')
print ' ';
print ' ';
//Cancel button
- print ' ';
+ print ' ';
print '';
}
@@ -2862,7 +2862,7 @@ if ($action == 'create')
print ' ';
print ' ';
}
- print ' ';
+ print ' ';
print '';
}
}
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 2b79a234a69..4dc090a85b6 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -1309,7 +1309,7 @@ if ($id > 0 || !empty($ref)) {
print ' ';
print '';
print '';
- print ' ';
+ print ' ';
print ' ';
}
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index a46c900e215..e63ad81d891 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -750,7 +750,7 @@ if ($resql)
print ' ';
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
}
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 709cbdb84f7..76a43475616 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2196,7 +2196,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 6b5c6cb67db..39b91f42b09 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -578,7 +578,7 @@ if ($resql)
print ' ';
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
}
diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 02a4ba89e2b..7248f385994 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -1099,7 +1099,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ''."\n";
@@ -1357,7 +1357,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add')
if ($action == 'editvalidator')
{
print ' ';
- print ' ';
+ print ' ';
}
print '';
print '';
diff --git a/htdocs/hrm/establishment/card.php b/htdocs/hrm/establishment/card.php
index 9f62fe96c70..15fd44e2c3b 100644
--- a/htdocs/hrm/establishment/card.php
+++ b/htdocs/hrm/establishment/card.php
@@ -246,7 +246,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -329,7 +329,7 @@ if (($id || $ref) && $action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/intracommreport/admin/intracommreport.php b/htdocs/intracommreport/admin/intracommreport.php
index c9968c14215..9947e844e40 100644
--- a/htdocs/intracommreport/admin/intracommreport.php
+++ b/htdocs/intracommreport/admin/intracommreport.php
@@ -195,7 +195,7 @@ print '';
print '';
diff --git a/htdocs/intracommreport/card.php b/htdocs/intracommreport/card.php
index 181cfac0cf6..668eca12674 100644
--- a/htdocs/intracommreport/card.php
+++ b/htdocs/intracommreport/card.php
@@ -160,7 +160,7 @@ if ($action == 'create')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php
index d8e2e3471df..17454356c76 100644
--- a/htdocs/loan/card.php
+++ b/htdocs/loan/card.php
@@ -372,7 +372,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -723,7 +723,7 @@ if ($id > 0)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/loan/payment/payment.php b/htdocs/loan/payment/payment.php
index 753e58d7ae5..1793854631e 100644
--- a/htdocs/loan/payment/payment.php
+++ b/htdocs/loan/payment/payment.php
@@ -397,7 +397,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "\n";
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index f26fb9a342d..d6999dba6e7 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1412,7 +1412,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
print 'var urlLoadInPlace = \''.DOL_URL_ROOT.'/core/ajax/loadinplace.php\';'."\n";
print 'var tooltipInPlace = \''.$langs->transnoentities('ClickToEdit').'\';'."\n"; // Added in title attribute of span
print 'var placeholderInPlace = \' \';'."\n"; // If we put another string than $langs->trans("ClickToEdit") here, nothing is shown. If we put empty string, there is error, Why ?
- print 'var cancelInPlace = \''.$langs->trans('Cancel').'\';'."\n";
+ print 'var cancelInPlace = \''.$langs->trans("Cancel").'\';'."\n";
print 'var submitInPlace = \''.$langs->trans('Ok').'\';'."\n";
print 'var indicatorInPlace = \' theme."/img/working.gif".'">\';'."\n";
print 'var withInPlace = 300;'; // width in pixel for default string edit
diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php
index 61f97ff6e2a..babce9eba15 100644
--- a/htdocs/modulebuilder/index.php
+++ b/htdocs/modulebuilder/index.php
@@ -2015,7 +2015,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2080,7 +2080,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2213,7 +2213,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2760,7 +2760,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2804,7 +2804,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -2943,7 +2943,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3039,7 +3039,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3096,7 +3096,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3164,7 +3164,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3212,7 +3212,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3260,7 +3260,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3315,7 +3315,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3397,7 +3397,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3514,7 +3514,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -3574,7 +3574,7 @@ if ($module == 'initmodule')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
diff --git a/htdocs/modulebuilder/template/myobject_card.php b/htdocs/modulebuilder/template/myobject_card.php
index de76d482be2..cc6630c5a01 100644
--- a/htdocs/modulebuilder/template/myobject_card.php
+++ b/htdocs/modulebuilder/template/myobject_card.php
@@ -237,7 +237,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -272,7 +272,7 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/mrp/mo_card.php b/htdocs/mrp/mo_card.php
index 4db2db6c9c1..a95d92d67a1 100644
--- a/htdocs/mrp/mo_card.php
+++ b/htdocs/mrp/mo_card.php
@@ -290,7 +290,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
if (GETPOST('fk_bom', 'int') > 0) {
@@ -340,7 +340,7 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php
index 53b1dfa6f8c..c1b6fa64ec8 100644
--- a/htdocs/mrp/mo_production.php
+++ b/htdocs/mrp/mo_production.php
@@ -658,7 +658,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print ' '.$langs->trans("AutoCloseMO").' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index 757713e67c3..ef583d08ff5 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -337,7 +337,7 @@ if ($action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php
index be3c747a02f..3c87b36dd82 100644
--- a/htdocs/opensurvey/results.php
+++ b/htdocs/opensurvey/results.php
@@ -530,7 +530,7 @@ if (GETPOST('ajoutsujet'))
print $langs->trans("Type").' '.$form->selectarray("typecolonne", $tmparray, GETPOST('typecolonne')).' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' '."\n";
} else {
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
@@ -583,7 +583,7 @@ if (GETPOST('ajoutsujet'))
print ' ';
print' '."\n";
print ' ';
- print ' ';
+ print ' ';
}
print ''."\n";
diff --git a/htdocs/product/admin/dynamic_prices.php b/htdocs/product/admin/dynamic_prices.php
index d54ca3e6d3c..228157a7be8 100644
--- a/htdocs/product/admin/dynamic_prices.php
+++ b/htdocs/product/admin/dynamic_prices.php
@@ -230,7 +230,7 @@ if ($action == 'create_variable' || $action == 'edit_variable') {
//Form Buttons
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
}
@@ -352,7 +352,7 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
//Form Buttons
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
}
diff --git a/htdocs/product/admin/price_rules.php b/htdocs/product/admin/price_rules.php
index 84510dfabad..94d2a658ecd 100644
--- a/htdocs/product/admin/price_rules.php
+++ b/htdocs/product/admin/price_rules.php
@@ -191,7 +191,7 @@ $genPriceOptions = function ($level) use ($price_options) {
print dol_get_fiche_end();
print '
-
+
';
print '';
diff --git a/htdocs/product/canvas/product/tpl/card_edit.tpl.php b/htdocs/product/canvas/product/tpl/card_edit.tpl.php
index 6fe8fc379d6..512ab13416b 100644
--- a/htdocs/product/canvas/product/tpl/card_edit.tpl.php
+++ b/htdocs/product/canvas/product/tpl/card_edit.tpl.php
@@ -108,7 +108,7 @@ dol_htmloutput_errors($object->error, $object->errors);
">
- ">
+ ">
diff --git a/htdocs/product/canvas/service/tpl/card_edit.tpl.php b/htdocs/product/canvas/service/tpl/card_edit.tpl.php
index ed5c43dc3a7..8e4613f21b0 100644
--- a/htdocs/product/canvas/service/tpl/card_edit.tpl.php
+++ b/htdocs/product/canvas/service/tpl/card_edit.tpl.php
@@ -80,7 +80,7 @@ dol_htmloutput_errors($object->error, $object->errors);
">
- ">
+ ">
diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index c93eea62c93..4e71bceb50e 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1392,7 +1392,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -1777,7 +1777,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php
index de79c294212..13ef4582d20 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -446,7 +446,7 @@ if ($id > 0 || !empty($ref))
print '';
if ($user->rights->produit->creer || $user->rights->service->creer)
{
- print ' ';
+ print ' ';
}
print ' ';
print ''."\n";
@@ -462,7 +462,7 @@ if ($id > 0 || !empty($ref))
print '';
/*if($user->rights->produit->creer || $user->rights->service->creer) {
- print ' ';
+ print ' ';
}*/
print '';
@@ -623,7 +623,7 @@ if ($id > 0 || !empty($ref))
print '';
print ' trans("Update").'">';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/product/document.php b/htdocs/product/document.php
index 60e0afe7858..0e3d3c662b0 100644
--- a/htdocs/product/document.php
+++ b/htdocs/product/document.php
@@ -327,7 +327,7 @@ if ($object->id)
}
print '';
- print ' ';
+ print ' ';
print ' ';
print '';
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index 3c900cd056a..1f5af12d3f2 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -826,7 +826,7 @@ END;
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/product/inventory/card.php b/htdocs/product/inventory/card.php
index 7d1d032a77d..425dd3622e3 100644
--- a/htdocs/product/inventory/card.php
+++ b/htdocs/product/inventory/card.php
@@ -209,7 +209,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -244,7 +244,7 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php
index 4e886763ed7..875f55b6fe4 100644
--- a/htdocs/product/inventory/inventory.php
+++ b/htdocs/product/inventory/inventory.php
@@ -315,7 +315,7 @@ if ($object->id > 0)
print ''.$langs->trans("InventoryDesc").' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print ' ';
print '';
@@ -352,7 +352,7 @@ if ($object->id > 0)
print 'id.'&action=updatebyscaning" class="butAction">'.$langs->trans("UpdateByScaning").' ';
}
} else {
- print ''.$langs->trans('Save').' '."\n";
+ print ''.$langs->trans("Save").' '."\n";
}
}
@@ -440,7 +440,7 @@ if ($object->id > 0)
print ' ';
print '';
print ' ';
- //print ' ';
+ //print ' ';
print ' ';
// Actions
print '';
diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 2acca68a63f..b950aa2af93 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -668,7 +668,7 @@ if (empty($reshook))
if ($result < 0) {
setEventMessages($prodcustprice->error, $prodcustprice->errors, 'errors');
} else {
- setEventMessages($langs->trans('Save'), null, 'mesgs');
+ setEventMessages($langs->trans("Save"), null, 'mesgs');
}
$action = '';
@@ -1170,7 +1170,7 @@ if ($action == 'edit_vat' && ($user->rights->produit->creer || $user->rights->se
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
@@ -1283,7 +1283,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
@@ -1403,7 +1403,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
print '';
print ' ';
print ' ';
- print '
';
+ print ' ';
print '';
}
}
@@ -1720,7 +1720,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES))
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print '';
@@ -1813,7 +1813,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES))
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print ' ';
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 6b7b598de39..38cc5fedd88 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -329,7 +329,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -778,7 +778,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index bb306aaf9dc..0ea05495e5a 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -450,7 +450,7 @@ if ($action == "transfert_stock" && !$cancel)
}
// Update batch information
-if ($action == 'updateline' && GETPOST('save') == $langs->trans('Save'))
+if ($action == 'updateline' && GETPOST('save') == $langs->trans("Save"))
{
$pdluo = new Productbatch($db);
$result = $pdluo->fetch(GETPOST('pdluoid', 'int'));
@@ -912,7 +912,7 @@ if (!$variants) {
}
print ' '.$pdluo->qty.($pdluo->qty < 0 ? ' '.img_warning() : '').' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print '';
print '';
@@ -985,7 +985,7 @@ if (!$variants) {
print ''.$formproduct->selectWarehouses('', 'fk_entrepot').' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
} else {
print ''.$langs->trans("Warehouse").' ';
diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php
index 49dea3b008c..8601ce25ebc 100644
--- a/htdocs/product/stock/productlot_card.php
+++ b/htdocs/product/stock/productlot_card.php
@@ -284,7 +284,7 @@ if ($action == 'create')
print dol_get_fiche_end();
- print '
';
+ print '
';
print '';
}
diff --git a/htdocs/product/stock/tpl/stockcorrection.tpl.php b/htdocs/product/stock/tpl/stockcorrection.tpl.php
index 57777f07b12..1b6fafe9994 100644
--- a/htdocs/product/stock/tpl/stockcorrection.tpl.php
+++ b/htdocs/product/stock/tpl/stockcorrection.tpl.php
@@ -146,9 +146,9 @@ print '';
print dol_get_fiche_end();
print '';
-print ' ';
+print ' ';
print ' ';
-print ' ';
+print ' ';
print '
';
print '';
diff --git a/htdocs/product/stock/tpl/stocktransfer.tpl.php b/htdocs/product/stock/tpl/stocktransfer.tpl.php
index 56546787413..dab7cd07b78 100644
--- a/htdocs/product/stock/tpl/stocktransfer.tpl.php
+++ b/htdocs/product/stock/tpl/stocktransfer.tpl.php
@@ -135,9 +135,9 @@ print '';
print dol_get_fiche_end();
print '';
-print ' ';
+print ' ';
print ' ';
-print ' ';
+print ' ';
print '
';
print '';
diff --git a/htdocs/product/traduction.php b/htdocs/product/traduction.php
index 475cc413243..97eb37a2689 100644
--- a/htdocs/product/traduction.php
+++ b/htdocs/product/traduction.php
@@ -261,7 +261,7 @@ if ($action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
@@ -333,7 +333,7 @@ if ($action == 'add' && ($user->rights->produit->creer || $user->rights->service
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php
index a923352a69e..94a7b772fac 100644
--- a/htdocs/projet/card.php
+++ b/htdocs/projet/card.php
@@ -684,10 +684,10 @@ if ($action == 'create' && $user->rights->projet->creer)
if (!empty($backtopage))
{
print ' ';
- print ' ';
+ print ' ';
} else {
print ' ';
- print ' ';
+ print ' ';
}
print '';
@@ -1113,7 +1113,7 @@ if ($action == 'create' && $user->rights->projet->creer)
{
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php
index b93ec75e302..0b207223351 100644
--- a/htdocs/projet/tasks.php
+++ b/htdocs/projet/tasks.php
@@ -600,7 +600,7 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php
index f965b2317bd..c2bf79af197 100644
--- a/htdocs/projet/tasks/task.php
+++ b/htdocs/projet/tasks/task.php
@@ -452,7 +452,7 @@ if ($id > 0 || !empty($ref))
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index f872890b548..cc650b36027 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -979,13 +979,13 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0)
print ' ';
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
} else {
print ''.$langs->trans("ThirdPartyRequiredToGenerateInvoice").'
';
print '';
- print ' ';
+ print ' ';
print '
';
$massaction = '';
}
@@ -1164,7 +1164,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0)
print '';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -1451,7 +1451,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0)
print ' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
} elseif ($user->rights->projet->lire || $user->rights->projet->all->creer) // Read project and enter time consumed on assigned tasks
{
if ($task_time->fk_user == $user->id || in_array($task_time->fk_user, $childids) || $user->rights->projet->all->creer)
diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php
index 517e201d20f..c61ffd58819 100644
--- a/htdocs/public/members/new.php
+++ b/htdocs/public/members/new.php
@@ -682,7 +682,7 @@ print dol_get_fiche_end();
print '';
print ' ';
if (!empty($backtopage)) {
- print ' ';
+ print ' ';
}
print '
';
diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php
index 6a54be849f7..40495a66be4 100644
--- a/htdocs/reception/card.php
+++ b/htdocs/reception/card.php
@@ -649,7 +649,7 @@ if (empty($reshook))
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // Pour reaffichage de la fiche en cours d'edition
exit();
}
- } elseif ($action == 'updateline' && $user->rights->reception->creer && GETPOST('cancel', 'alpha') == $langs->trans('Cancel')) {
+ } elseif ($action == 'updateline' && $user->rights->reception->creer && GETPOST('cancel', 'alpha') == $langs->trans("Cancel")) {
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // Pour reaffichage de la fiche en cours d'edition
exit();
}
@@ -1164,7 +1164,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -1403,7 +1403,7 @@ if ($action == 'create')
print ' ';
print $formproduct->selectMeasuringUnits("weight_units", "weight", $object->weight_units, 0, 2);
print ' ';
- print ' ';
+ print ' ';
print '';
} else {
print $object->trueWeight;
@@ -1436,7 +1436,7 @@ if ($action == 'create')
print ' ';
print $formproduct->selectMeasuringUnits("size_units", "size", $object->size_units, 0, 2);
print ' ';
- print ' ';
+ print ' ';
print '';
} else {
print $object->trueHeight;
@@ -1903,7 +1903,7 @@ if ($action == 'create')
{
print '';
print ' ';
- print ' ';
+ print ' ';
} elseif ($object->statut == Reception::STATUS_DRAFT)
{
// edit-delete buttons
diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php
index 4df73cce925..e175437c0cc 100644
--- a/htdocs/reception/list.php
+++ b/htdocs/reception/list.php
@@ -585,7 +585,7 @@ if ($resql)
print ' ';
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
}
diff --git a/htdocs/recruitment/recruitmentcandidature_card.php b/htdocs/recruitment/recruitmentcandidature_card.php
index ab5a2b229ff..8c76fdbb28e 100644
--- a/htdocs/recruitment/recruitmentcandidature_card.php
+++ b/htdocs/recruitment/recruitmentcandidature_card.php
@@ -336,7 +336,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -371,7 +371,7 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/recruitment/recruitmentjobposition_applications.php b/htdocs/recruitment/recruitmentjobposition_applications.php
index 381a3181485..ef151beb8d5 100644
--- a/htdocs/recruitment/recruitmentjobposition_applications.php
+++ b/htdocs/recruitment/recruitmentjobposition_applications.php
@@ -219,7 +219,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -253,8 +253,8 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
- print '';
diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php
index 32c2cca810d..487757ad567 100644
--- a/htdocs/salaries/card.php
+++ b/htdocs/salaries/card.php
@@ -358,7 +358,7 @@ if ($action == 'create')
print ' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '';
print '';
diff --git a/htdocs/societe/canvas/company/tpl/card_edit.tpl.php b/htdocs/societe/canvas/company/tpl/card_edit.tpl.php
index 13f17feee94..57b8a06b019 100644
--- a/htdocs/societe/canvas/company/tpl/card_edit.tpl.php
+++ b/htdocs/societe/canvas/company/tpl/card_edit.tpl.php
@@ -217,7 +217,7 @@ if (!empty($this->control->tpl['localtax'])) echo $this->control->tpl['localtax'
">
- ">
+ ">
diff --git a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
index 575499e7f48..b5f57544c5f 100644
--- a/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
+++ b/htdocs/societe/canvas/individual/tpl/card_edit.tpl.php
@@ -181,7 +181,7 @@ if ($this->control->tpl['fournisseur']) {
">
- ">
+ ">
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 6825c219fc9..1edd5492a81 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1543,10 +1543,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
if (!empty($backtopage))
{
print ' ';
- print ' ';
+ print ' ';
} else {
print ' ';
- print ' ';
+ print ' ';
}
print ''."\n";
@@ -2186,7 +2186,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index d7ca24299b0..fa06ea5eae1 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -1691,7 +1691,7 @@ if ($socid && $action == 'edit' && $user->rights->societe->creer)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
@@ -1738,7 +1738,7 @@ if ($socid && $action == 'editcard' && $user->rights->societe->creer)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
@@ -1854,7 +1854,7 @@ if ($socid && $action == 'create' && $user->rights->societe->creer)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
@@ -1904,7 +1904,7 @@ if ($socid && $action == 'createcard' && $user->rights->societe->creer)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index ca876da7a22..a06b1f0940e 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -136,7 +136,7 @@ if (empty($reshook))
if ($result < 0) {
setEventMessages($prodcustprice->error, $prodcustprice->errors, 'errors');
} else {
- setEventMessages($langs->trans('Save'), null, 'mesgs');
+ setEventMessages($langs->trans("Save"), null, 'mesgs');
}
$action = '';
@@ -172,7 +172,7 @@ if (empty($reshook))
if ($result < 0) {
setEventMessages($prodcustprice->error, $prodcustprice->errors, 'errors');
} else {
- setEventMessages($langs->trans('Save'), null, 'mesgs');
+ setEventMessages($langs->trans("Save"), null, 'mesgs');
}
$action = '';
@@ -345,7 +345,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
@@ -424,7 +424,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print ' ';
diff --git a/htdocs/supplier_proposal/card.php b/htdocs/supplier_proposal/card.php
index eb918d8b3b4..b891d042e5b 100644
--- a/htdocs/supplier_proposal/card.php
+++ b/htdocs/supplier_proposal/card.php
@@ -1002,7 +1002,7 @@ if (empty($reshook))
setEventMessages($object->error, $object->errors, 'errors');
}
}
- } elseif ($action == 'updateline' && $usercancreate && GETPOST('cancel', 'alpha') == $langs->trans('Cancel')) {
+ } elseif ($action == 'updateline' && $usercancreate && GETPOST('cancel', 'alpha') == $langs->trans("Cancel")) {
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // Pour reaffichage de la fiche en cours d'edition
exit();
}
@@ -1357,7 +1357,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "";
@@ -1828,8 +1828,8 @@ if ($action == 'create')
$form_close .= $object->note;
$form_close .= ' ';
$form_close .= '';
- $form_close .= ' ';
- $form_close .= ' ';
+ $form_close .= ' ';
+ $form_close .= ' ';
$form_close .= ' ';
$form_close .= ' ';
$form_close .= ' ';
diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php
index f836370a398..a7bb7f0e955 100644
--- a/htdocs/ticket/card.php
+++ b/htdocs/ticket/card.php
@@ -720,9 +720,9 @@ if ($action == 'create' || $action == 'presend')
print dol_get_fiche_end();
print '';
- print ' ';
+ print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php
index 49185f093fc..895cacdb4ed 100644
--- a/htdocs/ticket/class/actions_ticket.class.php
+++ b/htdocs/ticket/class/actions_ticket.class.php
@@ -234,7 +234,7 @@ class ActionsTicket
if (!empty($user->rights->ticket->manage) && $action == 'edit_message_init') {
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
print '';
diff --git a/htdocs/user/bank.php b/htdocs/user/bank.php
index d16d429b2fe..20369e37d69 100644
--- a/htdocs/user/bank.php
+++ b/htdocs/user/bank.php
@@ -296,7 +296,7 @@ if ($action != 'edit' && $action != 'create') // If not bank account yet, $acco
$ret .= ' ';
$ret .= $form->selectExpenseCategories($object->default_c_exp_tax_cat, 'default_c_exp_tax_cat', 1);
$ret .= ' ';
- $ret .= ' ';
+ $ret .= ' ';
$ret .= '';
print $ret;
} else {
@@ -318,7 +318,7 @@ if ($action != 'edit' && $action != 'create') // If not bank account yet, $acco
$maxRangeNum = ExpenseReportIk::getMaxRangeNumber($object->default_c_exp_tax_cat);
$ret .= $form->selectarray('default_range', range(0, $maxRangeNum), $object->default_range);
$ret .= ' ';
- $ret .= ' ';
+ $ret .= ' ';
$ret .= '';
print $ret;
} else {
@@ -675,7 +675,7 @@ if ($id && ($action == 'edit' || $action == 'create') && $user->rights->user->us
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 0885809de78..52b94cbc2f9 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1257,7 +1257,7 @@ if ($action == 'create' || $action == 'adduserldap')
print '';
print ' ';
//print ' ';
- //print ' ';
+ //print ' ';
print '
';
print "";
@@ -2745,7 +2745,7 @@ if ($action == 'create' || $action == 'adduserldap')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/user/clicktodial.php b/htdocs/user/clicktodial.php
index dee2c325063..fff39a3d45f 100644
--- a/htdocs/user/clicktodial.php
+++ b/htdocs/user/clicktodial.php
@@ -186,7 +186,7 @@ if ($id > 0)
print ' ';
print ' ';
print '   ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/user/group/card.php b/htdocs/user/group/card.php
index 5edc9e6df51..68d9639990c 100644
--- a/htdocs/user/group/card.php
+++ b/htdocs/user/group/card.php
@@ -288,7 +288,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
print "";
@@ -549,7 +549,7 @@ else {
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/user/note.php b/htdocs/user/note.php
index fbb9a6e1756..95527747d2e 100644
--- a/htdocs/user/note.php
+++ b/htdocs/user/note.php
@@ -137,7 +137,7 @@ if ($id)
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php
index 6ef0c4bd317..52f7a28be44 100644
--- a/htdocs/user/param_ihm.php
+++ b/htdocs/user/param_ihm.php
@@ -322,7 +322,7 @@ if ($action == 'edit')
print '';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print '
';
} else {
print dol_get_fiche_head($head, 'guisetup', $title, -1, 'user');
diff --git a/htdocs/variants/admin/admin.php b/htdocs/variants/admin/admin.php
index 8b75391a296..7e5683e710b 100644
--- a/htdocs/variants/admin/admin.php
+++ b/htdocs/variants/admin/admin.php
@@ -68,7 +68,7 @@ if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
}
print ' ';
print '';
-print '
';
+print '
';
print '';
// End of page
diff --git a/htdocs/variants/card.php b/htdocs/variants/card.php
index 04bcdb96183..057e184d184 100644
--- a/htdocs/variants/card.php
+++ b/htdocs/variants/card.php
@@ -181,9 +181,9 @@ print dol_get_fiche_end();
if ($action == 'edit') {
print '';
} else {
@@ -252,9 +252,9 @@ if ($action == 'edit') {
-
+ " class="button button-save">
-
+ " class="button button-cancel">
- value="trans('Create') : $langs->trans('Save') ?>" class="button">
+ value="trans('Create') : $langs->trans("Save") ?>" class="button button-save">
-
+ " class="button button-cancel">
';
print ' ';
print ' ';
-print ' ';
+print ' ';
print '';
print '';
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 39f451df174..2a073aded73 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2489,7 +2489,7 @@ if (!GETPOST('hide_websitemenu'))
if ($action == 'editcss') print ' ';
if (preg_match('/^create/', $action) && $action != 'file_manager' && $action != 'replacesite' && $action != 'replacesiteconfirm') print ' ';
if (preg_match('/^edit/', $action) && $action != 'file_manager' && $action != 'replacesite' && $action != 'replacesiteconfirm') print ' ';
- if ($action != 'preview') print ' ';
+ if ($action != 'preview') print ' ';
}
print '';
@@ -2805,7 +2805,7 @@ if (!GETPOST('hide_websitemenu'))
if ($action == 'editsource' || $action == 'editmeta') print ' ';
if (preg_match('/^create/', $action)) print ' ';
if (preg_match('/^edit/', $action)) print ' ';
- if ($action != 'preview') print ' ';
+ if ($action != 'preview') print ' ';
}
print ''; // end websitetools
@@ -3233,7 +3233,7 @@ if ($action == 'createsite')
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
@@ -3263,7 +3263,7 @@ if ($action == 'importsite')
print ' ';
print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
@@ -3641,7 +3641,7 @@ if ($action == 'editmeta' || $action == 'createcontainer')
print '';
print ' ';
- print ' ';
+ print ' ';
print '
';
}
diff --git a/htdocs/website/websiteaccount_card.php b/htdocs/website/websiteaccount_card.php
index e2535ab374f..17f50e709b7 100644
--- a/htdocs/website/websiteaccount_card.php
+++ b/htdocs/website/websiteaccount_card.php
@@ -156,7 +156,7 @@ if ($action == 'create')
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -187,7 +187,7 @@ if (($id || $ref) && $action == 'edit')
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';
diff --git a/htdocs/zapier/hook_card.php b/htdocs/zapier/hook_card.php
index e701c03455e..43706c0c533 100644
--- a/htdocs/zapier/hook_card.php
+++ b/htdocs/zapier/hook_card.php
@@ -159,7 +159,7 @@ if ($action == 'create') {
print '';
print ' ';
print ' ';
- print ' '; // Cancel for create does not post form if we don't know the backtopage
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
@@ -190,7 +190,7 @@ if (($id || $ref) && $action == 'edit') {
print dol_get_fiche_end();
print ' ';
- print ' ';
+ print ' ';
print '
';
print '';