Merge pull request #2152 from defrance69/patch-32
Update fichinter.class.php
This commit is contained in:
commit
7fc2975928
@ -79,6 +79,9 @@ class Fichinter extends CommonObject
|
|||||||
$this->statuts_short[0]='Draft';
|
$this->statuts_short[0]='Draft';
|
||||||
$this->statuts_short[1]='Validated';
|
$this->statuts_short[1]='Validated';
|
||||||
$this->statuts_short[2]='StatusInterInvoiced';
|
$this->statuts_short[2]='StatusInterInvoiced';
|
||||||
|
$this->statuts_logo[0]='statut0';
|
||||||
|
$this->statuts_logo[1]='statut4';
|
||||||
|
$this->statuts_logo[2]='statut6';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -508,37 +511,23 @@ class Fichinter extends CommonObject
|
|||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
if ($mode == 0)
|
if ($mode == 0)
|
||||||
{
|
|
||||||
return $langs->trans($this->statuts[$statut]);
|
return $langs->trans($this->statuts[$statut]);
|
||||||
}
|
|
||||||
if ($mode == 1)
|
if ($mode == 1)
|
||||||
{
|
|
||||||
return $langs->trans($this->statuts_short[$statut]);
|
return $langs->trans($this->statuts_short[$statut]);
|
||||||
}
|
|
||||||
if ($mode == 2)
|
if ($mode == 2)
|
||||||
{
|
return img_picto($langs->trans($this->statuts_short[$statut]), $this->statuts_logo[$statut]).' '.$langs->trans($this->statuts_short[$statut]);
|
||||||
if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0').' '.$langs->trans($this->statuts_short[$statut]);
|
|
||||||
if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4').' '.$langs->trans($this->statuts_short[$statut]);
|
|
||||||
if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6').' '.$langs->trans($this->statuts_short[$statut]);
|
|
||||||
}
|
|
||||||
if ($mode == 3)
|
if ($mode == 3)
|
||||||
{
|
return img_picto($langs->trans($this->statuts_short[$statut]), $this->statuts_logo[$statut]);
|
||||||
if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0');
|
|
||||||
if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4');
|
|
||||||
if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6');
|
|
||||||
}
|
|
||||||
if ($mode == 4)
|
if ($mode == 4)
|
||||||
{
|
return img_picto($langs->trans($this->statuts_short[$statut]),$this->statuts_logo[$statut]).' '.$langs->trans($this->statuts[$statut]);
|
||||||
if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0').' '.$langs->trans($this->statuts[$statut]);
|
|
||||||
if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4').' '.$langs->trans($this->statuts[$statut]);
|
|
||||||
if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6').' '.$langs->trans($this->statuts[$statut]);
|
|
||||||
}
|
|
||||||
if ($mode == 5)
|
if ($mode == 5)
|
||||||
{
|
return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),$this->statuts_logo[$statut]);
|
||||||
if ($statut==0) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut0');
|
|
||||||
if ($statut==1) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut4');
|
|
||||||
if ($statut==2) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut6');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user