Uniformize code
This commit is contained in:
parent
7103d7921e
commit
e8a1f0ba46
@ -615,8 +615,13 @@ if (! empty($id) || ! empty($ref)) {
|
|||||||
<th class="liste_titre" style="text-align: center;"><?php echo $langs->trans('OnBuy') ?></th>
|
<th class="liste_titre" style="text-align: center;"><?php echo $langs->trans('OnBuy') ?></th>
|
||||||
<th class="liste_titre"></th>
|
<th class="liste_titre"></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php foreach ($productCombinations as $currcomb):
|
<?php
|
||||||
$prodstatic->fetch($currcomb->fk_product_child); ?>
|
|
||||||
|
if (count($productCombinations))
|
||||||
|
{
|
||||||
|
foreach ($productCombinations as $currcomb) {
|
||||||
|
$prodstatic->fetch($currcomb->fk_product_child);
|
||||||
|
?>
|
||||||
<tr <?php echo $bc[!$var] ?>>
|
<tr <?php echo $bc[!$var] ?>>
|
||||||
<td><input type="checkbox" name="select[<?php echo $prodstatic->id ?>]"></td>
|
<td><input type="checkbox" name="select[<?php echo $prodstatic->id ?>]"></td>
|
||||||
<td><?php echo $prodstatic->getNomUrl(1) ?></td>
|
<td><?php echo $prodstatic->getNomUrl(1) ?></td>
|
||||||
@ -643,7 +648,15 @@ if (! empty($id) || ! empty($ref)) {
|
|||||||
<a href="<?php echo dol_buildpath('/variants/combinations.php?id='.$id.'&action=delete&valueid='.$currcomb->id, 2) ?>"><?php echo img_delete() ?></a>
|
<a href="<?php echo dol_buildpath('/variants/combinations.php?id='.$id.'&action=delete&valueid='.$currcomb->id, 2) ?>"><?php echo img_delete() ?></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $var = !$var; endforeach ?>
|
<?php
|
||||||
|
$var = !$var;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<tr><td colspan="8"><span class="opacitymedium">'.$langs->trans("None").'</span></td></tr>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php if ($productCombinations): ?>
|
<?php if ($productCombinations): ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user