Debug v23

This commit is contained in:
Laurent Destailleur
2025-11-12 15:03:31 +01:00
parent ad165e3712
commit 9e7fedfec5
10 changed files with 301 additions and 234 deletions

View File

@@ -5421,7 +5421,8 @@ function getPictoForType($key, $morecss = '')
* Example: picto.png if picto.png is stored into htdocs/theme/mytheme/img
* Example: picto.png@mymodule if picto.png is stored into htdocs/mymodule/img
* Example: /mydir/mysubdir/picto.png if picto.png is stored into htdocs/mydir/mysubdir (pictoisfullpath must be set to 1)
* Example: fontawesome_envelope-open-text_fas_red_1em if you want to use fontaweseome icons: fontawesome_<icon-name>_<style>_<color>_<size> (only icon-name is mandatory)
* Example: fa-value if you want to use fontaweseome icons: fa-<icon-name>
* Example: fa-value_fas_color_1em if you want to use fontaweseome icons: fa-<icon-name>_<style>_<color>_<size> (only icon-name is mandatory, color can be 'red' or '#FF0000')
* @param string $moreatt Add more attribute on img tag (For example 'class="pictofixedwidth"')
* @param int<0,1> $pictoisfullpath If true or 1, image path is a full path, 0 if not
* @param int $srconly Return only content of the src attribute of img.
@@ -5568,7 +5569,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
if (in_array($pictowithouttext, array('dollyrevert', 'member', 'members', 'contract', 'group', 'resource', 'shipment', 'reception'))) {
$morecss .= ' em092';
}
if (in_array($pictowithouttext, array('conferenceorbooth', 'collab', 'eventorganization', 'holiday', 'info', 'info_black', 'project', 'workstation'))) {
if (in_array($pictowithouttext, array('conferenceorbooth', 'eventorganization', 'holiday', 'info', 'info_black', 'project', 'workstation'))) {
$morecss .= ' em088';
}
if (in_array($pictowithouttext, array('asset', 'intervention', 'payment', 'loan', 'partnership', 'stock', 'technic'))) {
@@ -5631,10 +5632,9 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
'bookcal' => 'infobox-action',
'margin' => 'infobox-bank_account',
'conferenceorbooth' => 'infobox-project',
'cash-register' => 'infobox-bank_account',
'cash-register' => 'infobox-portal',
'contract' => 'infobox-contrat',
'check' => 'font-status4',
'collab' => 'infobox-action',
'conversation' => 'infobox-contrat',
'donation' => 'infobox-commande',
'dolly' => 'infobox-commande',
@@ -5645,6 +5645,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
'group' => 'infobox-adherent',
'intervention' => 'infobox-contrat',
'incoterm' => 'infobox-supplier_proposal',
'intracommreport' => 'infobox-bank_account',
'currency' => 'infobox-bank_account',
'multicurrency' => 'infobox-bank_account',
'members' => 'infobox-adherent',
@@ -5668,7 +5669,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
'loan' => 'infobox-bank_account',
'payment' => 'infobox-bank_account',
'payment_vat' => 'infobox-bank_account',
'poll' => 'infobox-adherent',
'poll' => 'infobox-portal',
'pos' => 'infobox-bank_account',
'project' => 'infobox-project',
'projecttask' => 'infobox-project',
@@ -5682,6 +5683,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
'salary' => 'infobox-bank_account',
'shapes' => 'infobox-adherent',
'shipment' => 'infobox-commande',
'store' => 'infobox-portal',
'stripe' => 'infobox-bank_account',
'supplier_invoice' => 'infobox-order_supplier',
'supplier_invoicea' => 'infobox-order_supplier',
@@ -5696,6 +5698,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
'trip' => 'infobox-expensereport',
'title_agenda' => 'infobox-action',
'vat' => 'infobox-bank_account',
'webportal' => 'infobox-portal',
//'title_setup'=>'infobox-action', 'tools'=>'infobox-action',
'list-alt' => 'imgforviewmode',
'calendar' => 'imgforviewmode',