update code toward php8 compliance
This commit is contained in:
parent
1485e3bd79
commit
a2b8dd446b
@ -186,7 +186,7 @@ if (isModEnabled('adherent') && !empty($user->rights->adherent->lire)) {
|
|||||||
if (isModEnabled('recruitment') && !empty($user->rights->recruitment->recruitmentjobposition->read)) {
|
if (isModEnabled('recruitment') && !empty($user->rights->recruitment->recruitmentjobposition->read)) {
|
||||||
$elementList['recruitmentcandidature_send'] = img_picto('', 'recruitmentcandidature', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('RecruitmentCandidatures'));
|
$elementList['recruitmentcandidature_send'] = img_picto('', 'recruitmentcandidature', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('RecruitmentCandidatures'));
|
||||||
}
|
}
|
||||||
if (isModEnabled("societe") && !empty($user->rights->societe->lire)) {
|
if (isModEnabled("societe") && $user->hasRight('societe', 'lire')) {
|
||||||
$elementList['thirdparty'] = img_picto('', 'company', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToThirdparty'));
|
$elementList['thirdparty'] = img_picto('', 'company', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToThirdparty'));
|
||||||
}
|
}
|
||||||
if (isModEnabled('project')) {
|
if (isModEnabled('project')) {
|
||||||
|
|||||||
@ -397,7 +397,7 @@ if (!empty($user->rights->produit->lire) || !empty($user->rights->service->lire)
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($user->rights->societe->lire)) {
|
if ($user->hasRight('societe', 'lire')) {
|
||||||
print '<input id="fillfromthirdparty" type="radio" '.((GETPOST("selectorforbarcode") == 'fillfromthirdparty') ? 'checked ' : '').'name="selectorforbarcode" value="fillfromthirdparty" class="radiobarcodeselect"><label for="fillfromthirdparty"> '.$langs->trans("FillBarCodeTypeAndValueFromThirdParty").'</label>';
|
print '<input id="fillfromthirdparty" type="radio" '.((GETPOST("selectorforbarcode") == 'fillfromthirdparty') ? 'checked ' : '').'name="selectorforbarcode" value="fillfromthirdparty" class="radiobarcodeselect"><label for="fillfromthirdparty"> '.$langs->trans("FillBarCodeTypeAndValueFromThirdParty").'</label>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print '<div class="showforthirdpartyselector">';
|
print '<div class="showforthirdpartyselector">';
|
||||||
|
|||||||
@ -104,7 +104,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isModEnabled('societe') && !empty($user->rights->societe->lire)) {
|
if (isModEnabled('societe') && $user->hasRight('societe', 'lire')) {
|
||||||
print '<div class="divsearchfield">';
|
print '<div class="divsearchfield">';
|
||||||
print img_picto($langs->trans("ThirdParty"), 'company', 'class="pictofixedwidth inline-block"');
|
print img_picto($langs->trans("ThirdParty"), 'company', 'class="pictofixedwidth inline-block"');
|
||||||
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0, 'minwidth100 maxwidth500');
|
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0, 'minwidth100 maxwidth500');
|
||||||
|
|||||||
@ -242,7 +242,7 @@ function societe_prepare_head(Societe $object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isModEnabled('website') && (!empty($conf->global->WEBSITE_USE_WEBSITE_ACCOUNTS)) && (!empty($user->rights->societe->lire))) {
|
if (isModEnabled('website') && (!empty($conf->global->WEBSITE_USE_WEBSITE_ACCOUNTS)) && ($user->hasRight('societe', 'lire'))) {
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/societe/website.php?id='.urlencode($object->id);
|
$head[$h][0] = DOL_URL_ROOT.'/societe/website.php?id='.urlencode($object->id);
|
||||||
$head[$h][1] = $langs->trans("WebSiteAccounts");
|
$head[$h][1] = $langs->trans("WebSiteAccounts");
|
||||||
$nbNote = 0;
|
$nbNote = 0;
|
||||||
|
|||||||
@ -250,7 +250,7 @@ print dol_get_fiche_end();
|
|||||||
|
|
||||||
$newcardbutton = '';
|
$newcardbutton = '';
|
||||||
if (isModEnabled('website')) {
|
if (isModEnabled('website')) {
|
||||||
if (!empty($user->rights->societe->lire)) {
|
if ($user->hasRight('societe', 'lire')) {
|
||||||
$newcardbutton .= dolGetButtonTitle($langs->trans("AddWebsiteAccount"), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id));
|
$newcardbutton .= dolGetButtonTitle($langs->trans("AddWebsiteAccount"), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id));
|
||||||
} else {
|
} else {
|
||||||
$newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id), '', 0);
|
$newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/website/websiteaccount_card.php?action=create&fk_soc='.$object->id.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id), '', 0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user