@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | public $date_update; |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @return int |
|
| 78 | + * @return string |
|
| 79 | 79 | */ |
| 80 | 80 | public function getIdBBCVols() |
| 81 | 81 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @return int |
|
| 86 | + * @return string |
|
| 87 | 87 | */ |
| 88 | 88 | public function getId() |
| 89 | 89 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $extralabels = $extrafields->fetch_name_optionals_label($object->table_element); |
| 60 | 60 | |
| 61 | 61 | // Load object |
| 62 | -include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 62 | +include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 63 | 63 | |
| 64 | 64 | // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array |
| 65 | 65 | $hookmanager->initHooks(array('bbcvols')); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $extralabels = $extrafields->fetch_name_optionals_label($object->table_element); |
| 110 | 110 | |
| 111 | 111 | // Load object |
| 112 | -include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 112 | +include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 113 | 113 | |
| 114 | 114 | // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array |
| 115 | 115 | $hookmanager->initHooks(array('bbcvols')); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | $parameters = array(); |
| 130 | 130 | $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, |
| 131 | - $action); // Note that $action and $object may have been modified by some hooks |
|
| 131 | + $action); // Note that $action and $object may have been modified by some hooks |
|
| 132 | 132 | if ($reshook < 0) { |
| 133 | 133 | setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 134 | 134 | } |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | print '<div class="tabsAction">' . "\n"; |
| 481 | 481 | $parameters = array(); |
| 482 | 482 | $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, |
| 483 | - $action); // Note that $action and $object may have been modified by hook |
|
| 483 | + $action); // Note that $action and $object may have been modified by hook |
|
| 484 | 484 | if ($reshook < 0) { |
| 485 | 485 | setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 486 | 486 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $extralabels = $extrafields->fetch_name_optionals_label($object->table_element); |
| 60 | 60 | |
| 61 | 61 | // Load object |
| 62 | -include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 62 | +include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 63 | 63 | |
| 64 | 64 | // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array |
| 65 | 65 | $hookmanager->initHooks(array('bbcvols')); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | print '<tr><td class="fieldrequired">' . $langs->trans("Fielddate") . '</td><td>' . dol_print_date($object->date) . '</td></tr>'; |
| 90 | 90 | |
| 91 | 91 | if ($user->rights->flightLog->vol->financial) { |
| 92 | - print '<tr><td class="fieldrequired">' . $langs->trans("Fieldis_facture") . '</td><td>' . $object->getLibStatut(5). '</td></tr>'; |
|
| 92 | + print '<tr><td class="fieldrequired">' . $langs->trans("Fieldis_facture") . '</td><td>' . $object->getLibStatut(5) . '</td></tr>'; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | print '<tr><td class="fieldrequired">' . $langs->trans("Fieldkilometers") . '</td><td>' . $object->kilometers . ' KM</td></tr>'; |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return TabCollection |
| 47 | 47 | */ |
| 48 | - public function addTab(Tab $tab){ |
|
| 48 | + public function addTab(Tab $tab) { |
|
| 49 | 49 | $this->tabs[] = $tab; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @return array |
| 54 | 54 | */ |
| 55 | - public function toArray(){ |
|
| 55 | + public function toArray() { |
|
| 56 | 56 | $tabAsArray = []; |
| 57 | 57 | |
| 58 | - foreach ($this->tabs as $tab){ |
|
| 58 | + foreach ($this->tabs as $tab) { |
|
| 59 | 59 | $tabAsArray[] = $tab->toArray(); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $extralabels = $extrafields->fetch_name_optionals_label($object->table_element); |
| 60 | 60 | |
| 61 | 61 | // Load object |
| 62 | -include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 62 | +include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals |
|
| 63 | 63 | |
| 64 | 64 | // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array |
| 65 | 65 | $hookmanager->initHooks(array('bbcvols')); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | |
| 179 | 179 | $parameters = array(); |
| 180 | 180 | $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, |
| 181 | - $action); // Note that $action and $object may have been modified by some hooks |
|
| 181 | + $action); // Note that $action and $object may have been modified by some hooks |
|
| 182 | 182 | if ($reshook < 0) { |
| 183 | 183 | setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 184 | 184 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | // Add fields from hooks |
| 291 | 291 | $parameters = array(); |
| 292 | 292 | $reshook = $hookmanager->executeHooks('printFieldListSelect', |
| 293 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 293 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 294 | 294 | $sql .= $hookmanager->resPrint; |
| 295 | 295 | $sql .= " FROM " . MAIN_DB_PREFIX . "bbc_vols as t"; |
| 296 | 296 | if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) { |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | // Add where from hooks |
| 381 | 381 | $parameters = array(); |
| 382 | 382 | $reshook = $hookmanager->executeHooks('printFieldListWhere', |
| 383 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 383 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 384 | 384 | $sql .= $hookmanager->resPrint; |
| 385 | 385 | $sql .= $db->order($sortfield, $sortorder); |
| 386 | 386 | //$sql.= $db->plimit($conf->liste_limit+1, $offset); |
@@ -422,58 +422,58 @@ discard block |
||
| 422 | 422 | if ($limit > 0 && $limit != $conf->liste_limit) { |
| 423 | 423 | $param .= '&limit=' . $limit; |
| 424 | 424 | } |
| 425 | -if ($search_idBBC_vols != '') { |
|
| 425 | +if ($search_idBBC_vols != '') { |
|
| 426 | 426 | $param .= '&search_idBBC_vols=' . urlencode($search_idBBC_vols); |
| 427 | 427 | } |
| 428 | -if ($search_date != '') { |
|
| 428 | +if ($search_date != '') { |
|
| 429 | 429 | $param .= '&search_date=' . urlencode($search_date); |
| 430 | 430 | } |
| 431 | -if ($search_lieuD != '') { |
|
| 431 | +if ($search_lieuD != '') { |
|
| 432 | 432 | $param .= '&search_lieuD=' . urlencode($search_lieuD); |
| 433 | 433 | } |
| 434 | -if ($search_lieuA != '') { |
|
| 434 | +if ($search_lieuA != '') { |
|
| 435 | 435 | $param .= '&search_lieuA=' . urlencode($search_lieuA); |
| 436 | 436 | } |
| 437 | -if ($search_heureD != '') { |
|
| 437 | +if ($search_heureD != '') { |
|
| 438 | 438 | $param .= '&search_heureD=' . urlencode($search_heureD); |
| 439 | 439 | } |
| 440 | -if ($search_heureA != '') { |
|
| 440 | +if ($search_heureA != '') { |
|
| 441 | 441 | $param .= '&search_heureA=' . urlencode($search_heureA); |
| 442 | 442 | } |
| 443 | -if ($search_BBC_ballons_idBBC_ballons != '') { |
|
| 443 | +if ($search_BBC_ballons_idBBC_ballons != '') { |
|
| 444 | 444 | $param .= '&search_BBC_ballons_idBBC_ballons=' . urlencode($search_BBC_ballons_idBBC_ballons); |
| 445 | 445 | } |
| 446 | -if ($search_nbrPax != '') { |
|
| 446 | +if ($search_nbrPax != '') { |
|
| 447 | 447 | $param .= '&search_nbrPax=' . urlencode($search_nbrPax); |
| 448 | 448 | } |
| 449 | -if ($search_remarque != '') { |
|
| 449 | +if ($search_remarque != '') { |
|
| 450 | 450 | $param .= '&search_remarque=' . urlencode($search_remarque); |
| 451 | 451 | } |
| 452 | -if ($search_incidents != '') { |
|
| 452 | +if ($search_incidents != '') { |
|
| 453 | 453 | $param .= '&search_incidents=' . urlencode($search_incidents); |
| 454 | 454 | } |
| 455 | -if ($search_fk_type != '') { |
|
| 455 | +if ($search_fk_type != '') { |
|
| 456 | 456 | $param .= '&search_fk_type=' . urlencode($search_fk_type); |
| 457 | 457 | } |
| 458 | 458 | if ($search_fk_pilot != '') { |
| 459 | 459 | $param .= '&search_fk_pilot=' . urlencode($search_fk_pilot); |
| 460 | 460 | } |
| 461 | -if ($search_fk_organisateur != '') { |
|
| 461 | +if ($search_fk_organisateur != '') { |
|
| 462 | 462 | $param .= '&search_fk_organisateur=' . urlencode($search_fk_organisateur); |
| 463 | 463 | } |
| 464 | -if ($search_is_facture != '') { |
|
| 464 | +if ($search_is_facture != '') { |
|
| 465 | 465 | $param .= '&search_is_facture=' . urlencode($search_is_facture); |
| 466 | 466 | } |
| 467 | -if ($search_kilometers != '') { |
|
| 467 | +if ($search_kilometers != '') { |
|
| 468 | 468 | $param .= '&search_kilometers=' . urlencode($search_kilometers); |
| 469 | 469 | } |
| 470 | -if ($search_cost != '') { |
|
| 470 | +if ($search_cost != '') { |
|
| 471 | 471 | $param .= '&search_cost=' . urlencode($search_cost); |
| 472 | 472 | } |
| 473 | -if ($search_fk_receiver != '') { |
|
| 473 | +if ($search_fk_receiver != '') { |
|
| 474 | 474 | $param .= '&search_fk_receiver=' . urlencode($search_fk_receiver); |
| 475 | 475 | } |
| 476 | -if ($search_justif_kilometers != '') { |
|
| 476 | +if ($search_justif_kilometers != '') { |
|
| 477 | 477 | $param .= '&search_justif_kilometers=' . urlencode($search_justif_kilometers); |
| 478 | 478 | } |
| 479 | 479 | |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | |
| 530 | 530 | $parameters = array(); |
| 531 | 531 | $reshook = $hookmanager->executeHooks('printFieldPreListTitle', |
| 532 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 532 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 533 | 533 | if (empty($reshook)) { |
| 534 | 534 | $moreforfilter .= $hookmanager->resPrint; |
| 535 | 535 | } else { |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | |
| 545 | 545 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
| 546 | 546 | $selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, |
| 547 | - $varpage); // This also change content of $arrayfields |
|
| 547 | + $varpage); // This also change content of $arrayfields |
|
| 548 | 548 | |
| 549 | 549 | print '<div class="div-table-responsive">'; |
| 550 | 550 | print '<table class="tagtable liste' . ($moreforfilter ? " listwithfilterbefore" : "") . '">' . "\n"; |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | // Hook fields |
| 640 | 640 | $parameters = array('arrayfields' => $arrayfields); |
| 641 | 641 | $reshook = $hookmanager->executeHooks('printFieldListTitle', |
| 642 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 642 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 643 | 643 | print $hookmanager->resPrint; |
| 644 | 644 | if (!empty($arrayfields['t.datec']['checked'])) { |
| 645 | 645 | print_liste_field_titre($arrayfields['t.datec']['label'], $_SERVER["PHP_SELF"], "t.datec", "", $param, |
@@ -753,7 +753,7 @@ discard block |
||
| 753 | 753 | // Fields from hook |
| 754 | 754 | $parameters = array('arrayfields' => $arrayfields); |
| 755 | 755 | $reshook = $hookmanager->executeHooks('printFieldListOption', |
| 756 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 756 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 757 | 757 | print $hookmanager->resPrint; |
| 758 | 758 | if (!empty($arrayfields['t.datec']['checked'])) { |
| 759 | 759 | // Date creation |
@@ -794,116 +794,116 @@ discard block |
||
| 794 | 794 | // Show here line of result |
| 795 | 795 | print '<tr ' . $bc[$var] . '>'; |
| 796 | 796 | |
| 797 | - if (! empty($arrayfields['t.idBBC_vols']['checked'])) |
|
| 797 | + if (!empty($arrayfields['t.idBBC_vols']['checked'])) |
|
| 798 | 798 | { |
| 799 | - print '<td>'.$flight->getNomUrl(0).'</td>'; |
|
| 799 | + print '<td>' . $flight->getNomUrl(0) . '</td>'; |
|
| 800 | 800 | |
| 801 | - if (! $i) $totalarray['nbfield']++; |
|
| 801 | + if (!$i) $totalarray['nbfield']++; |
|
| 802 | 802 | } |
| 803 | - if (! empty($arrayfields['t.date']['checked'])) |
|
| 803 | + if (!empty($arrayfields['t.date']['checked'])) |
|
| 804 | 804 | { |
| 805 | 805 | print '<td>'; |
| 806 | 806 | print dol_print_date($db->jdate($obj->date), '%d-%m-%y'); |
| 807 | 807 | print '</td>'; |
| 808 | 808 | |
| 809 | - if (! $i) $totalarray['nbfield']++; |
|
| 809 | + if (!$i) $totalarray['nbfield']++; |
|
| 810 | 810 | } |
| 811 | - if (! empty($arrayfields['t.lieuD']['checked'])) |
|
| 811 | + if (!empty($arrayfields['t.lieuD']['checked'])) |
|
| 812 | 812 | { |
| 813 | - print '<td>'.$obj->lieuD.'</td>'; |
|
| 813 | + print '<td>' . $obj->lieuD . '</td>'; |
|
| 814 | 814 | |
| 815 | - if (! $i) $totalarray['nbfield']++; |
|
| 815 | + if (!$i) $totalarray['nbfield']++; |
|
| 816 | 816 | } |
| 817 | - if (! empty($arrayfields['t.lieuA']['checked'])) |
|
| 817 | + if (!empty($arrayfields['t.lieuA']['checked'])) |
|
| 818 | 818 | { |
| 819 | - print '<td>'.$obj->lieuA.'</td>'; |
|
| 819 | + print '<td>' . $obj->lieuA . '</td>'; |
|
| 820 | 820 | |
| 821 | - if (! $i) $totalarray['nbfield']++; |
|
| 821 | + if (!$i) $totalarray['nbfield']++; |
|
| 822 | 822 | } |
| 823 | - if (! empty($arrayfields['t.heureD']['checked'])) |
|
| 823 | + if (!empty($arrayfields['t.heureD']['checked'])) |
|
| 824 | 824 | { |
| 825 | - print '<td>'.$obj->heureD.'</td>'; |
|
| 825 | + print '<td>' . $obj->heureD . '</td>'; |
|
| 826 | 826 | |
| 827 | - if (! $i) $totalarray['nbfield']++; |
|
| 827 | + if (!$i) $totalarray['nbfield']++; |
|
| 828 | 828 | } |
| 829 | - if (! empty($arrayfields['t.heureA']['checked'])) |
|
| 829 | + if (!empty($arrayfields['t.heureA']['checked'])) |
|
| 830 | 830 | { |
| 831 | - print '<td>'.$obj->heureA.'</td>'; |
|
| 831 | + print '<td>' . $obj->heureA . '</td>'; |
|
| 832 | 832 | |
| 833 | - if (! $i) $totalarray['nbfield']++; |
|
| 833 | + if (!$i) $totalarray['nbfield']++; |
|
| 834 | 834 | } |
| 835 | - if (! empty($arrayfields['t.BBC_ballons_idBBC_ballons']['checked'])) |
|
| 835 | + if (!empty($arrayfields['t.BBC_ballons_idBBC_ballons']['checked'])) |
|
| 836 | 836 | { |
| 837 | - print '<td>'.$obj->bal.'</td>'; |
|
| 837 | + print '<td>' . $obj->bal . '</td>'; |
|
| 838 | 838 | |
| 839 | - if (! $i) $totalarray['nbfield']++; |
|
| 839 | + if (!$i) $totalarray['nbfield']++; |
|
| 840 | 840 | } |
| 841 | - if (! empty($arrayfields['t.nbrPax']['checked'])) |
|
| 841 | + if (!empty($arrayfields['t.nbrPax']['checked'])) |
|
| 842 | 842 | { |
| 843 | - print '<td>'.$obj->nbrPax.'</td>'; |
|
| 843 | + print '<td>' . $obj->nbrPax . '</td>'; |
|
| 844 | 844 | |
| 845 | - if (! $i) $totalarray['nbfield']++; |
|
| 845 | + if (!$i) $totalarray['nbfield']++; |
|
| 846 | 846 | } |
| 847 | - if (! empty($arrayfields['t.remarque']['checked'])) |
|
| 847 | + if (!empty($arrayfields['t.remarque']['checked'])) |
|
| 848 | 848 | { |
| 849 | - print '<td>'.$obj->remarque.'</td>'; |
|
| 849 | + print '<td>' . $obj->remarque . '</td>'; |
|
| 850 | 850 | |
| 851 | - if (! $i) $totalarray['nbfield']++; |
|
| 851 | + if (!$i) $totalarray['nbfield']++; |
|
| 852 | 852 | } |
| 853 | - if (! empty($arrayfields['t.incidents']['checked'])) |
|
| 853 | + if (!empty($arrayfields['t.incidents']['checked'])) |
|
| 854 | 854 | { |
| 855 | - print '<td>'.$obj->incidents.'</td>'; |
|
| 855 | + print '<td>' . $obj->incidents . '</td>'; |
|
| 856 | 856 | |
| 857 | - if (! $i) $totalarray['nbfield']++; |
|
| 857 | + if (!$i) $totalarray['nbfield']++; |
|
| 858 | 858 | } |
| 859 | - if (! empty($arrayfields['t.fk_type']['checked'])) |
|
| 859 | + if (!empty($arrayfields['t.fk_type']['checked'])) |
|
| 860 | 860 | { |
| 861 | - print '<td>'.$obj->flight_type.'</td>'; |
|
| 861 | + print '<td>' . $obj->flight_type . '</td>'; |
|
| 862 | 862 | |
| 863 | - if (! $i) $totalarray['nbfield']++; |
|
| 863 | + if (!$i) $totalarray['nbfield']++; |
|
| 864 | 864 | } |
| 865 | - if (! empty($arrayfields['t.fk_pilot']['checked'])) |
|
| 865 | + if (!empty($arrayfields['t.fk_pilot']['checked'])) |
|
| 866 | 866 | { |
| 867 | - print '<td>'.$obj->pilot.'</td>'; |
|
| 867 | + print '<td>' . $obj->pilot . '</td>'; |
|
| 868 | 868 | |
| 869 | - if (! $i) $totalarray['nbfield']++; |
|
| 869 | + if (!$i) $totalarray['nbfield']++; |
|
| 870 | 870 | } |
| 871 | - if (! empty($arrayfields['t.fk_organisateur']['checked'])) |
|
| 871 | + if (!empty($arrayfields['t.fk_organisateur']['checked'])) |
|
| 872 | 872 | { |
| 873 | - print '<td>'.$obj->organisator.'</td>'; |
|
| 873 | + print '<td>' . $obj->organisator . '</td>'; |
|
| 874 | 874 | |
| 875 | - if (! $i) $totalarray['nbfield']++; |
|
| 875 | + if (!$i) $totalarray['nbfield']++; |
|
| 876 | 876 | } |
| 877 | - if (! empty($arrayfields['t.is_facture']['checked'])) |
|
| 877 | + if (!empty($arrayfields['t.is_facture']['checked'])) |
|
| 878 | 878 | { |
| 879 | 879 | $flight->is_facture = $obj->is_facture; |
| 880 | - print '<td>'.$flight->getLibStatut(3).'</td>'; |
|
| 880 | + print '<td>' . $flight->getLibStatut(3) . '</td>'; |
|
| 881 | 881 | |
| 882 | - if (! $i) $totalarray['nbfield']++; |
|
| 882 | + if (!$i) $totalarray['nbfield']++; |
|
| 883 | 883 | } |
| 884 | - if (! empty($arrayfields['t.kilometers']['checked'])) |
|
| 884 | + if (!empty($arrayfields['t.kilometers']['checked'])) |
|
| 885 | 885 | { |
| 886 | - print '<td>'.$obj->kilometers.'</td>'; |
|
| 886 | + print '<td>' . $obj->kilometers . '</td>'; |
|
| 887 | 887 | |
| 888 | - if (! $i) $totalarray['nbfield']++; |
|
| 888 | + if (!$i) $totalarray['nbfield']++; |
|
| 889 | 889 | } |
| 890 | - if (! empty($arrayfields['t.cost']['checked'])) |
|
| 890 | + if (!empty($arrayfields['t.cost']['checked'])) |
|
| 891 | 891 | { |
| 892 | - print '<td>'.$obj->cost.'</td>'; |
|
| 892 | + print '<td>' . $obj->cost . '</td>'; |
|
| 893 | 893 | |
| 894 | - if (! $i) $totalarray['nbfield']++; |
|
| 894 | + if (!$i) $totalarray['nbfield']++; |
|
| 895 | 895 | } |
| 896 | - if (! empty($arrayfields['t.fk_receiver']['checked'])) |
|
| 896 | + if (!empty($arrayfields['t.fk_receiver']['checked'])) |
|
| 897 | 897 | { |
| 898 | - print '<td>'.$obj->receiver.'</td>'; |
|
| 898 | + print '<td>' . $obj->receiver . '</td>'; |
|
| 899 | 899 | |
| 900 | - if (! $i) $totalarray['nbfield']++; |
|
| 900 | + if (!$i) $totalarray['nbfield']++; |
|
| 901 | 901 | } |
| 902 | - if (! empty($arrayfields['t.justif_kilometers']['checked'])) |
|
| 902 | + if (!empty($arrayfields['t.justif_kilometers']['checked'])) |
|
| 903 | 903 | { |
| 904 | - print '<td>'.$obj->justif_kilometers.'</td>'; |
|
| 904 | + print '<td>' . $obj->justif_kilometers . '</td>'; |
|
| 905 | 905 | |
| 906 | - if (! $i) $totalarray['nbfield']++; |
|
| 906 | + if (!$i) $totalarray['nbfield']++; |
|
| 907 | 907 | } |
| 908 | 908 | |
| 909 | 909 | // Extra fields |
@@ -928,7 +928,7 @@ discard block |
||
| 928 | 928 | // Fields from hook |
| 929 | 929 | $parameters = array('arrayfields' => $arrayfields, 'obj' => $obj); |
| 930 | 930 | $reshook = $hookmanager->executeHooks('printFieldListValue', |
| 931 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 931 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 932 | 932 | print $hookmanager->resPrint; |
| 933 | 933 | // Date creation |
| 934 | 934 | if (!empty($arrayfields['t.datec']['checked'])) { |
@@ -1005,7 +1005,7 @@ discard block |
||
| 1005 | 1005 | |
| 1006 | 1006 | $parameters = array('arrayfields' => $arrayfields, 'sql' => $sql); |
| 1007 | 1007 | $reshook = $hookmanager->executeHooks('printFieldListFooter', |
| 1008 | - $parameters); // Note that $action and $object may have been modified by hook |
|
| 1008 | + $parameters); // Note that $action and $object may have been modified by hook |
|
| 1009 | 1009 | print $hookmanager->resPrint; |
| 1010 | 1010 | |
| 1011 | 1011 | print '</table>' . "\n"; |