Merge pull request #22168 from Hystepik/develop#2
Fix : php 8.1 warnings
This commit is contained in:
commit
7e6d52c137
@ -192,6 +192,9 @@ for ($mois = 1; $mois < 13; $mois++) {
|
||||
print '<tr class="oddeven">';
|
||||
print "<td>".dol_print_date(dol_mktime(1, 1, 1, $mois, 1, 2000), "%B")."</td>";
|
||||
for ($annee = $year_start; $annee <= $year_end; $annee++) {
|
||||
$totsorties[$annee] = 0;
|
||||
$totentrees[$annee] = 0;
|
||||
|
||||
$case = sprintf("%04s-%02s", $annee, $mois);
|
||||
|
||||
print '<td class="right" width="10%"> ';
|
||||
|
||||
@ -1277,7 +1277,7 @@ if ($resql) {
|
||||
}
|
||||
// Extra fields
|
||||
$element = 'banktransaction';
|
||||
if (is_array($extrafields->attributes[$element]['label']) && count($extrafields->attributes[$element]['label'])) {
|
||||
if (!empty($extrafields->attributes[$element]['label']) && is_array($extrafields->attributes[$element]['label']) && count($extrafields->attributes[$element]['label'])) {
|
||||
foreach ($extrafields->attributes[$element]['label'] as $key => $val) {
|
||||
if (!empty($arrayfields["ef.".$key]['checked'])) {
|
||||
if (!empty($arrayfields[$key]['checked'])) {
|
||||
|
||||
@ -293,7 +293,7 @@ if (GETPOST("account") || GETPOST("ref")) {
|
||||
}
|
||||
print "</td>";
|
||||
print "<td>".$ref."</td>";
|
||||
if ($conf->global->MULTICOMPANY_INVOICE_SHARING_ENABLED) {
|
||||
if (getDolGlobalString("MULTICOMPANY_INVOICE_SHARING_ENABLED")) {
|
||||
if ($tmpobj->family == 'invoice') {
|
||||
$mc->getInfo($tmpobj->entity);
|
||||
print "<td>".$mc->label."</td>";
|
||||
|
||||
@ -63,6 +63,8 @@ if (!$sortfield) {
|
||||
|
||||
$year = GETPOST("year");
|
||||
$month = GETPOST("month");
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
$view = GETPOST("view", 'alpha');
|
||||
|
||||
$form = new Form($db);
|
||||
$formother = new FormOther($db);
|
||||
|
||||
@ -61,6 +61,7 @@ $offset = $limit * $page;
|
||||
$hookmanager->initHooks(array('directdebitcreatecard', 'globalcard'));
|
||||
|
||||
// Security check
|
||||
$socid = GETPOST('socid', 'int');
|
||||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
@ -71,7 +72,7 @@ if ($type == 'bank-transfer') {
|
||||
}
|
||||
|
||||
$error = 0;
|
||||
|
||||
$option = "";
|
||||
|
||||
/*
|
||||
* Actions
|
||||
|
||||
@ -52,6 +52,8 @@ if (!$sortfield) {
|
||||
$sortfield = "p.datec";
|
||||
}
|
||||
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
|
||||
// Get supervariables
|
||||
$statut = GETPOST('statut', 'int');
|
||||
$search_ref = GETPOST('search_ref', 'alpha');
|
||||
|
||||
@ -47,7 +47,7 @@ $cancel = GETPOST('cancel', 'aZ09');
|
||||
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'skillcard'; // To manage different context of search
|
||||
$backtopage = GETPOST('backtopage', 'alpha');
|
||||
$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
|
||||
//$lineid = GETPOST('lineid', 'int');
|
||||
$lineid = GETPOST('lineid', 'int');
|
||||
|
||||
// Initialize technical objects
|
||||
$object = new Skill($db);
|
||||
@ -577,7 +577,7 @@ if ($action != "create" && $action != "edit") {
|
||||
$title = $langs->transnoentitiesnoconv("Skilldets");
|
||||
$morejs = array();
|
||||
$morecss = array();
|
||||
|
||||
$nbtotalofrecords = 0;
|
||||
|
||||
// Build and execute select
|
||||
// --------------------------------------------------------------------
|
||||
@ -626,8 +626,10 @@ if ($action != "create" && $action != "edit") {
|
||||
print '<input type="hidden" name="id" value="' . $id . '">';
|
||||
}
|
||||
|
||||
$param_fk = "&fk_skill=" . $id . "&fk_user_creat=" . $user->rowid;
|
||||
$param_fk = "&fk_skill=" . $id . "&fk_user_creat=" . (!empty($user->rowid) ? $user->rowid :0);
|
||||
$backtopage = dol_buildpath('/hrm/skill_card.php', 1) . '?id=' . $id;
|
||||
$param = "";
|
||||
$massactionbutton = "";
|
||||
//$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', dol_buildpath('/hrm/skilldet_card.php', 1) . '?action=create&backtopage=' . urlencode($_SERVER['PHP_SELF']) . $param_fk . '&backtopage=' . $backtopage, '', $permissiontoadd);
|
||||
|
||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'object_' . $object->picto, 0, "", '', '', 0, 0, 1);
|
||||
@ -688,7 +690,7 @@ if ($action != "create" && $action != "edit") {
|
||||
// $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
|
||||
// }
|
||||
if (!empty($arrayfields['t.' . $key]['checked'])) {
|
||||
print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : '')) . "\n";
|
||||
print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, (!empty($cssforfield) ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, (!empty($cssforfield) ? $cssforfield . ' ' : '')) . "\n";
|
||||
}
|
||||
}
|
||||
print '<td></td>';
|
||||
@ -814,8 +816,7 @@ if ($action != "create" && $action != "edit") {
|
||||
print '<tr><td colspan="' . $colspan . '" class="opacitymedium">' . $langs->trans("NoRecordFound") . '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
$db->free($resql);
|
||||
if (!empty($resql)) $db->free($resql);
|
||||
|
||||
$parameters = array('arrayfields' => $arrayfields, 'sql' => $sql);
|
||||
$reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters, $objectline); // Note that $action and $objectline may have been modified by hook
|
||||
|
||||
@ -51,6 +51,10 @@ if (empty($page) || $page == -1) {
|
||||
$offset = $limit * $page;
|
||||
$pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
$param = "";
|
||||
$num = 0;
|
||||
$totalnboflines = 0;
|
||||
|
||||
$result = restrictedArea($user, 'banque');
|
||||
|
||||
@ -95,12 +99,12 @@ if (!$rowid) {
|
||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||
|
||||
$title = $langs->trans("StripePayoutList");
|
||||
$title .= ($stripeaccount ? ' (Stripe connection with Stripe OAuth Connect account '.$stripeacc.')' : ' (Stripe connection with keys from Stripe module setup)');
|
||||
$title .= ($stripeacc ? ' (Stripe connection with Stripe OAuth Connect account '.$stripeacc.')' : ' (Stripe connection with keys from Stripe module setup)');
|
||||
|
||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_accountancy.png', 0, '', '', $limit);
|
||||
|
||||
print '<div class="div-table-responsive">';
|
||||
print '<table class="tagtable liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
print '<table class="tagtable liste'.(!empty($moreforfilter) ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Ref", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
|
||||
|
||||
@ -52,7 +52,9 @@ $offset = $limit * $page;
|
||||
$pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
$optioncss = GETPOST('optioncss', 'alpha');
|
||||
|
||||
$param = "";
|
||||
$num = 0;
|
||||
$totalnboflines = 0;
|
||||
$result = restrictedArea($user, 'banque');
|
||||
|
||||
|
||||
@ -95,12 +97,12 @@ if (!$rowid) {
|
||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||
|
||||
$title = $langs->trans("StripeTransactionList");
|
||||
$title .= ($stripeaccount ? ' (Stripe connection with Stripe OAuth Connect account '.$stripeacc.')' : ' (Stripe connection with keys from Stripe module setup)');
|
||||
$title .= (!empty($stripeacc) ? ' (Stripe connection with Stripe OAuth Connect account '.$stripeacc.')' : ' (Stripe connection with keys from Stripe module setup)');
|
||||
|
||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_accountancy.png', 0, '', '', $limit);
|
||||
|
||||
print '<div class="div-table-responsive">';
|
||||
print '<table class="tagtable liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
print '<table class="tagtable liste'.(!empty($moreforfilter) ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Ref", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
|
||||
@ -113,6 +115,7 @@ if (!$rowid) {
|
||||
print_liste_field_titre("Fee", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", '', '', '', 'right ');
|
||||
print "</tr>\n";
|
||||
$connect = "";
|
||||
|
||||
try {
|
||||
if ($stripeacc) {
|
||||
@ -146,7 +149,7 @@ if (!$rowid) {
|
||||
else
|
||||
{
|
||||
$memberstatic->id = 0;
|
||||
}*/
|
||||
}
|
||||
|
||||
$societestatic->fetch($charge->metadata->idcustomer);
|
||||
$societestatic->id = $charge->metadata->idcustomer;
|
||||
@ -155,7 +158,7 @@ if (!$rowid) {
|
||||
$societestatic->admin = $obj->admin;
|
||||
$societestatic->login = $obj->login;
|
||||
$societestatic->email = $obj->email;
|
||||
$societestatic->societe_id = $obj->fk_soc;
|
||||
$societestatic->societe_id = $obj->fk_soc;*/
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
|
||||
|
||||
@ -646,9 +646,9 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
|
||||
$salary->paye = $objp->paye;
|
||||
$salary->amount = $objp->amount;
|
||||
|
||||
$payment_salary->id = $objp->rowid;
|
||||
$payment_salary->ref = $objp->ref;
|
||||
$payment_salary->datep = $db->jdate($objp->datep);
|
||||
$payment_salary->id = !empty($objp->rowid) ? $objp->rowid : 0;
|
||||
$payment_salary->ref = !empty($objp->ref) ? $objp->ref : "";
|
||||
$payment_salary->datep = $db->jdate(!empty($objp->datep) ? $objp->datep : "");
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td class="nowraponall">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user