forked from Wavyzz/dolibarr
clean and update code
This commit is contained in:
@@ -50,7 +50,6 @@ if ($action == 'up') {
|
||||
|
||||
$langs->load('products');
|
||||
|
||||
$var = false;
|
||||
$title = $langs->trans($langs->trans('ProductAttributes'));
|
||||
|
||||
$variants = $object->fetchAll();
|
||||
@@ -122,7 +121,7 @@ $forcereloadpage=empty($conf->global->MAIN_FORCE_RELOAD_PAGE)?0:1;
|
||||
<th class="liste_titre" colspan="2"></th>
|
||||
</tr>
|
||||
<?php foreach ($variants as $key => $attribute): ?>
|
||||
<tr id="row-<?php echo $attribute->id ?>" <?php echo $bcdd[$var] ?>>
|
||||
<tr id="row-<?php echo $attribute->id ?>" class="drag drop oddeven">
|
||||
<td><a href="card.php?id=<?php echo $attribute->id ?>"><?php echo dol_htmlentities($attribute->ref) ?></a></td>
|
||||
<td><a href="card.php?id=<?php echo $attribute->id ?>"><?php echo dol_htmlentities($attribute->label) ?></a></td>
|
||||
<td align="right"><?php echo $attribute->countChildValues() ?></td>
|
||||
@@ -143,7 +142,6 @@ $forcereloadpage=empty($conf->global->MAIN_FORCE_RELOAD_PAGE)?0:1;
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$var = !$var;
|
||||
endforeach
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user