<title>Tienda on Line</title> <link href="estilos.css" rel="stylesheet" type="text/css"> </head> <body class="pagproductos"> <div id="contenedor"> <div id="encabezado"> <h1>Productos</h1> </div> <div id="cesta"> <img src="./img/cesta.jpg" alt="cesta" width="50"/> <?php //muestra las unidades de los productos adquiridos echo 'unidades: ' . count($ces->get_productos()) . "<br>"; $ces->muestra(); //en la cesta muestra los botones si existen productos if (!$ces->vacia()) { ?> <form id="form_seleccion" action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> <input type="submit" name="vaciar" value="vaciar"> </form> <form id="form_seleccion" action="cesta.php" method="post"> <input type="submit" name="enviar" value="comprar"> </form> <?php } ?> </div>