Fixing style errors.

This commit is contained in:
stickler-ci 2021-12-01 09:53:28 +00:00
parent 9190581d0a
commit cc3ef5a3fb

View File

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