Add files via upload

This commit is contained in:
Fernando Méndez 2021-06-01 16:18:05 +02:00 committed by GitHub
parent 3b159ee6f4
commit b655543224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
include_once($prefix.'assets/php/includes/seat_dao.php'); include_once('seat_dao.php');
class Seat{ class Seat{

View File

@ -243,9 +243,15 @@
<tr> <tr>
<td>Entrega Final</td> <td>Entrega Final</td>
<td>9 de Junio de 2021</td> <td>9 de Junio de 2021</td>
<td>EN PROCESO</td> <td>ENTREGADO</td>
</tr> </tr>
</tbody> </tbody>
<tfoot>
<tr>
<td colspan="2"></td>
<td>100%</td>
</tr>
</tfoot>
</table> </table>
</section> </section>

View File

@ -90,6 +90,8 @@
//User purchase history. //User purchase history.
static function purchases(){ static function purchases(){
require_once('../assets/php/includes/purchase_dao.php'); require_once('../assets/php/includes/purchase_dao.php');
include_once('../assets/php/includes/cinema_dao.php');
include_once('../assets/php/includes/hall_dao.php');
$purchasesHTML = ''; $purchasesHTML = '';
@ -111,7 +113,13 @@
$columns[$key] = $value->getColumn(); $columns[$key] = $value->getColumn();
$dates[$key] = $value->getTime(); $dates[$key] = $value->getTime();
} }
for($i = 0; $i < count($purchases); $i++){ for($i = 0; $i < count($purchases); $i++){
$cinemaDAO = new Cinema_DAO("complucine");
$cinema = $cinemaDAO->cinemaData($cinemas[$i]);
$hallDAO = new HallDAO("complucine");
$hall = $hallDAO->HallData($halls[$i]);
if($i%2 === 0){ if($i%2 === 0){
if($i != 0) $purchasesHTML .= '</div> if($i != 0) $purchasesHTML .= '</div>
'; ';
@ -124,8 +132,9 @@
'; ';
} }
$purchasesHTML .= '<h1>Compara realizada el: '.$dates[$i].'</h1><hr /> $purchasesHTML .= '<h1>Compara realizada el: '.$dates[$i].'</h1><hr />
<p>Cine: '.$cinemas[$i].'</p> <p>Cine: '.$cinema->getName().'</p>
<p>Sala: '.$halls[$i].'</p> <p>Dirección: '.$cinema->getDirection().'</p>
<p>Sala: '.$hall->getNumber().'</p>
<p>Sesión: '.$sessions[$i].'</p> <p>Sesión: '.$sessions[$i].'</p>
<p>Asiento(Fila): '.$rows[$i].'</p> <p>Asiento(Fila): '.$rows[$i].'</p>
<p>Asiento(Columna): '.$columns[$i].'</p>'; <p>Asiento(Columna): '.$columns[$i].'</p>';