update with html5 compliant code

This commit is contained in:
Philippe GRAND 2019-03-17 10:27:06 +01:00
parent 7b1fd917eb
commit 13c49d2946

View File

@ -51,7 +51,7 @@ $object->fetch($facid);
</font> </font>
</center> </center>
<br> <br>
<p align="left"> <p class="left">
<?php <?php
$substitutionarray=getCommonSubstitutionArray($langs); $substitutionarray=getCommonSubstitutionArray($langs);
if (! empty($conf->global->TAKEPOS_HEADER)) if (! empty($conf->global->TAKEPOS_HEADER))
@ -61,7 +61,7 @@ if (! empty($conf->global->TAKEPOS_HEADER))
} }
?> ?>
</p> </p>
<p align="right"> <p class="right">
<?php <?php
print $langs->trans('Date')." ".dol_print_date($object->date, 'day').'<br>'; print $langs->trans('Date')." ".dol_print_date($object->date, 'day').'<br>';
if ($mysoc->country_code == 'ES') print "Factura simplificada "; if ($mysoc->country_code == 'ES') print "Factura simplificada ";
@ -73,10 +73,10 @@ print $object->ref;
<table width="100%" style="border-top-style: double;"> <table width="100%" style="border-top-style: double;">
<thead> <thead>
<tr> <tr>
<th align="center"><?php print $langs->trans("Label"); ?></th> <th class="center"><?php print $langs->trans("Label"); ?></th>
<th align="right"><?php print $langs->trans("Qty"); ?></th> <th class="right"><?php print $langs->trans("Qty"); ?></th>
<th align="right"><?php print $langs->trans("Price"); ?></th> <th class="right"><?php print $langs->trans("Price"); ?></th>
<th align="right"><?php print $langs->trans("TotalTTC"); ?></th> <th class="right"><?php print $langs->trans("TotalTTC"); ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -88,9 +88,9 @@ print $object->ref;
<td><?php if (!empty($line->product_label)) echo $line->product_label; <td><?php if (!empty($line->product_label)) echo $line->product_label;
else echo $line->description;?> else echo $line->description;?>
</td> </td>
<td align="right"><?php echo $line->qty;?></td> <td class="right"><?php echo $line->qty;?></td>
<td align="right"><?php echo $line->total_ttc/$line->qty;?></td> <td class="right"><?php echo $line->total_ttc/$line->qty;?></td>
<td align="right"><?php echo price($line->total_ttc);?></td> <td class="right"><?php echo price($line->total_ttc);?></td>
</tr> </tr>
<?php <?php
} }
@ -98,16 +98,16 @@ print $object->ref;
</tbody> </tbody>
</table> </table>
<br> <br>
<table align="right"> <table class="right">
<tr> <tr>
<th align="right"><?php echo $langs->trans("TotalHT");?></th> <th class="right"><?php echo $langs->trans("TotalHT");?></th>
<td align="right"><?php echo price($object->total_ht, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td> <td class="right"><?php echo price($object->total_ht, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
</tr> </tr>
<tr> <tr>
<th align="right"><?php echo $langs->trans("TotalVAT").'</th><td align="right">'.price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td> <th class="right"><?php echo $langs->trans("TotalVAT").'</th><td class="right">'.price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
</tr> </tr>
<tr> <tr>
<th align="right"><?php echo ''.$langs->trans("TotalTTC").'</th><td align="right">'.price($object->total_ttc, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td> <th class="right"><?php echo ''.$langs->trans("TotalTTC").'</th><td class="right">'.price($object->total_ttc, 1, '', 1, - 1, - 1, $conf->currency)."\n";?></td>
</tr> </tr>
</table> </table>
<div style="border-top-style: double;"> <div style="border-top-style: double;">