case 9: compraCarrito(); header("Location: ../"); break; case 10: $categorias = cargarCategorias($cat); $resp = ""; if (is_array($categorias)) { foreach ($categorias as $c) { $resp .= "<div align='center' style='width: 100px; height: 120px; float: left;'>\n <img src='../91f5167c34c400758115c2a6826ec2e3/recursos/" . $c['categoria'] . "/" . $c['id'] . "/" . $c['imagen'] . "' onclick=\"Productos('" . $c['categoria'] . "', '" . $c['id'] . "');\" style='float: left; cursor: pointer;' width='100' height='100'/>\n <label>" . $c['nombre'] . "</label>\n </div>"; } } echo $resp; break; case 11: if (isset($cat) && ($cat == "categoria" || $cat == "uso") && isset($id)) { $smarty->assign("carrito", consultarCarrito()); $smarty->assign("productos", productos($cat, $id)); $smarty->assign("categorias", consultarCategorias()); $smarty->assign("rangosPrecios", rangosPreciosProductos()); $smarty->assign("marcas", marcasProductos()); $smarty->assign("calificaciones", calificacionesProductos()); $smarty->display("productosListado.html"); } else { header("Location: ../"); } break; default: header("Location: ../"); break; }
</thead> <tbody> <?php catalogo($pid, $saldo); ?> </tbody> </table> </div> </div><!--/span--> <div class="box span6"> <?php if ($_GET['subcat']) { productos($prid, $_GET['subcat'], $_GET['pid']); } else { movimientos($prid); } ?> </div><!--/span--> </div><!--/row-->
<img src="img/partada3.jpg" > <div class="contenedor"> <div id="respuesta"></div> <div id="precarga"></div> <h2></h2> </div> </section> <?php include "php/mensajes.php"; ?> <?php productos(); ?> </section> <script src="js/despachador.js"></script> </main> <footer> <div class="contenedor"> <p class="copy">SUR GRAFICAS © 2015</p> <div class="sociales"> <a class="icon-facebook"href="#"></a> <a class="icon-twitter"href="#"></a> <a class="icon-instagram"href="#"></a> <a class="icon-googleplus"href="#"></a>
</tbody> </table> </div> </div><!--/span--> <div class="box span8"> <?php if ($_GET['subcat']) { productos($_GET['subcat'], $tid); } if ($_GET['cat']) { subcategorias($_GET['cat']); } ?> </div><!--/span--> </div><!--/row-->