Change constant

This commit is contained in:
Mélina 2021-12-13 16:28:24 +01:00
commit abf7368886

View File

@ -1190,14 +1190,14 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
<!-- Show categories -->
<?php
if ($conf->global->TAKEPOS_HIDE_CATEGORY == 1) {
print '<div class="div4" style= "display: none;">';
} else {
print '<div class="div4">';
}
if ($conf->global->TAKEPOS_HIDE_CATEGORY == 1) {
print '<div class="div4" style= "display: none;">';
} else {
print '<div class="div4">';
}
$count = 0;
while ($count < $MAXCATEG) {
?>
while ($count < $MAXCATEG) {
?>
<div class="wrapper" <?php if ($count == ($MAXCATEG - 2)) {
echo 'onclick="MoreCategories(\'less\');"';
} elseif ($count == ($MAXCATEG - 1)) {
@ -1225,16 +1225,16 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
<?php } ?>
<div class="catwatermark" id='catwatermark<?php echo $count; ?>'>...</div>
</div>
<?php
$count++;
}
?>
<?php
$count++;
}
?>
</div>
<!-- Show product -->
<div class="div5"<?php if ($conf->global->TAKEPOS_HIDE_CATEGORY == 1) {
print ' style="width:100%;"';
} ?>>
} ?>>
<?php
$count = 0;
while ($count < $MAXPRODUCT) {
@ -1243,14 +1243,14 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
} else {
print '<div class="wrapper2" id="prodiv'.$count.'" ';
}
?>
?>
<?php if ($count == ($MAXPRODUCT - 2)) {
?> onclick="MoreProducts('less');" <?php
} if ($count == ($MAXPRODUCT - 1)) {
?> onclick="MoreProducts('more');" <?php
} else {
echo 'onclick="ClickProduct('.$count.');"';
} ?>>
} if ($count == ($MAXPRODUCT - 1)) {
?> onclick="MoreProducts('more');" <?php
} else {
echo 'onclick="ClickProduct('.$count.');"';
} ?>>
<?php
if ($count == ($MAXPRODUCT - 2)) {
//echo '<img class="imgwrapper" src="img/arrow-prev-top.png" height="100%" id="proimg'.$count.'" />';