Merge pull request #7056 from defrance/patch-17

Refactoring tpl Folder
This commit is contained in:
Laurent Destailleur 2017-08-17 22:34:47 +02:00 committed by GitHub
commit dcc6822c3c

View File

@ -1,5 +1,6 @@
<?php <?php
/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com> /* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com>
/* Copyright (C) 2017 Charlie Benke <charlie@patas-monkey.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -18,16 +19,20 @@
?> ?>
<!-- BEGIN PHP TEMPLATE originproductline.tpl.php --> <!-- BEGIN PHP TEMPLATE originproductline.tpl.php -->
<tr <?php echo $bc[$var]; ?>> <?php
<td><?php echo $this->tpl['label']; ?></td> print '<tr'.$bc[$var].'>';
<td><?php echo $this->tpl['description']; ?></td> print '<td>'.$this->tpl['label'].'</td>';
<td align="right"><?php echo $this->tpl['vat_rate']; ?></td> print '<td>'.$this->tpl['description'].'</td>';
<td align="right"><?php echo $this->tpl['price']; ?></td> print '<td align="right">'.$this->tpl['vat_rate'].'</td>';
<?php if (!empty($conf->multicurrency->enabled)) { ?><td align="right"><?php echo $this->tpl['multicurrency_price']; ?></td><?php } ?> print '<td align="right">'.$this->tpl['price'].'</td>';
<td align="right"><?php echo $this->tpl['qty']; ?></td> if (!empty($conf->multicurrency->enabled))
<?php print '<td align="right">'.$this->tpl['multicurrency_price'].'</td>';
if($conf->global->PRODUCT_USE_UNITS) echo '<td align="left">'.$langs->trans($this->tpl['unit']).'</td>';
?> print '<td align="right">'.$this->tpl['qty'].'</td>';
<td align="right"><?php echo $this->tpl['remise_percent']; ?></td> if($conf->global->PRODUCT_USE_UNITS)
</tr> print '<td align="left">'.$langs->trans($this->tpl['unit']).'</td>';
print '<td align="right">'.$this->tpl['remise_percent'].'</td>';
print '</tr>'."\n";
?>
<!-- END PHP TEMPLATE originproductline.tpl.php --> <!-- END PHP TEMPLATE originproductline.tpl.php -->