|
|
@@ -21,22 +21,26 @@ $pag=0;
|
|
|
if ($count > 4) echo "<div id='flechaatras'><img src='Images/left.png'></div>";
|
|
|
while ( $statement->fetch() ) {
|
|
|
$i++;
|
|
|
- if (($i-1) % 4 == 0 && $i > 1 || $i == 1) {
|
|
|
+ if (($i-1) % 6 == 0 && $i > 1 || $i == 1) {
|
|
|
echo "<div class='pagina' id='pagina-$pag'>\n";
|
|
|
$pag++;
|
|
|
}
|
|
|
- if(($i-1) % 2 == 0){ echo "<div class='listaproductos'>\n"; }
|
|
|
- $html ="<div class='producto'>
|
|
|
+ if(($i-1) % 3 == 0){ echo "<div class='listaproductos'>\n"; }
|
|
|
+ $class="producto";
|
|
|
+ if ($count < 3) #clase producto1 o producto2 para css custom
|
|
|
+ $class="producto producto$count";
|
|
|
+
|
|
|
+ $html ="<div class='$class'>
|
|
|
<div class='imagen'>
|
|
|
<img src='Images/producto.jpg'>
|
|
|
</div>
|
|
|
<div class='texto'>
|
|
|
- <h5>$nombre</h5><br>$desc<br><br><u prodid='$id' style='cursor:pointer;'>Ver más</u>
|
|
|
+ <h5>$nombre</h5><br>$desc<p class='vermas' prodid='$id' style='cursor:pointer;'> [+]</p>
|
|
|
</div>
|
|
|
</div>";
|
|
|
echo $html;
|
|
|
- if($i % 2 == 0) { echo "</div>"; } # listaproductos
|
|
|
- if($i % 4 == 0) { echo "</div><div id='flechafwd'><img src='Images/right.png'></div>"; } #pagina
|
|
|
+ if($i % 3 == 0) { echo "</div>"; } # listaproductos
|
|
|
+ if($i % 6 == 0) { echo "</div><div id='flechafwd'><img src='Images/right.png'></div>"; } #pagina
|
|
|
|
|
|
}
|
|
|
/*if ($count > 4) echo "<div id='flechafwd'><img src='Images/right.png'></div>";*/
|