1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| function AfficherLigneFrais ($label, $montantStp, $montantFr, $rowidFr, $libErrFr)
{
global $langs, $db;
print '<td>'.$label.'</td>';
print '<p> AfficherLigneFrais - label:'.$label;
// Amount
print '<td class="right">';
print price($montantStp , 0, '', 1, -1, -1, '');
print "</td>";
// Ecritude
print '<td class="right">';
if (!empty($rowidFr)) {
if ($montantStp <> $montantFr ) $color="style='color:Red'";
else $color='';
$url = '/bankline.php?rowid='.$rowidFr.'&save_lastsearch_values=1';;
if (!empty($LibErrFr)) $text = "title=Il existe ".$LibErrFr;
else $text = '';
print "<a href='".$url." ".$text."'fas fa-receipt infobox-bank_account' style=''>";
print " <span title='Montant:".price($montantFr , 0, '', 1, -1, -1, '')." ".$color.">".$rowidFr." </span>".img_picto('','account')." ";
print "</a>\n";
}
print "</td>";
// CheckBox pour choix ecriture à créer
print "<td>";
if (empty($rowidFr)) print '<input class="flat checkselection_" title = "'.$titre.'"name="tabcheck['.$mois.']" type="checkbox" '.$checked.' value="'.$mois.'" size="1" >';
print '</td>';
} // Afficher |
Partager