From 8c514c8025e5c2589bc52bf5dd05330d0e105ed5 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 3 Sep 2020 08:24:12 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/comm/propal/list.php | 78 ++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index f84f8652f96..dfc16f4d810 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -1312,47 +1312,47 @@ if ($resql) print $formfile->showdocuments('massfilesarea_proposals', '', $filedir, $urlsource, 0, $delallowed, '', 1, 1, 0, 48, 1, $param, $title, '', '', '', null, $hidegeneratedfilelistifempty); if ($action == 'validate') { - if (GETPOST('confirm') == 'yes') { - $tmpproposal = new Propal($db); - foreach ($toselect as $checked) { - $tmpproposal->fetch($checked); - if ($tmpproposal->fetch($checked)) { - if ($tmpproposal->statut == 0) { - $tmpproposal->valid($user); - setEventMessage($tmpproposal->ref . " " . $langs->trans('PassedInOpenStatus'), 'mesgs'); - } else { - setEventMessage($tmpproposal->ref . " " . $langs->trans('IsNotADraft'), 'errors'); - } - } - } - - if ($action == "sign") { - if (GETPOST('confirm') == 'yes') { - $tmpproposal = new Propal($db); - foreach ($toselect as $checked) { - $tmpproposal->fetch($checked); - if ($tmpproposal->fetch($checked)) { - if ($tmpproposal->statut == 1) { - $sqlp = "UPDATE " . MAIN_DB_PREFIX . "propal SET fk_statut = 2 WHERE rowid = " . $checked; - $resqlp = $db->query($sqlp); - if ($resqlp) { - setEventMessage($tmpproposal->ref . " " . $langs->trans('Signed'), 'mesgs'); - } else { - dol_print_error($db); - } - } else { - setEventMessage($tmpproposal->ref . " " . $langs->trans('CantBeSign'), 'errors'); - } + if (GETPOST('confirm') == 'yes') { + $tmpproposal = new Propal($db); + foreach ($toselect as $checked) { + $tmpproposal->fetch($checked); + if ($tmpproposal->fetch($checked)) { + if ($tmpproposal->statut == 0) { + $tmpproposal->valid($user); + setEventMessage($tmpproposal->ref . " " . $langs->trans('PassedInOpenStatus'), 'mesgs'); } else { - dol_print_error($db); + setEventMessage($tmpproposal->ref . " " . $langs->trans('IsNotADraft'), 'errors'); } } } - } -} else { - dol_print_error($db); -} -// End of page -llxFooter(); -$db->close(); + if ($action == "sign") { + if (GETPOST('confirm') == 'yes') { + $tmpproposal = new Propal($db); + foreach ($toselect as $checked) { + $tmpproposal->fetch($checked); + if ($tmpproposal->fetch($checked)) { + if ($tmpproposal->statut == 1) { + $sqlp = "UPDATE " . MAIN_DB_PREFIX . "propal SET fk_statut = 2 WHERE rowid = " . $checked; + $resqlp = $db->query($sqlp); + if ($resqlp) { + setEventMessage($tmpproposal->ref . " " . $langs->trans('Signed'), 'mesgs'); + } else { + dol_print_error($db); + } + } else { + setEventMessage($tmpproposal->ref . " " . $langs->trans('CantBeSign'), 'errors'); + } + } else { + dol_print_error($db); + } + } + } + } + } else { + dol_print_error($db); + } + + // End of page + llxFooter(); + $db->close();