Add files via upload

This commit is contained in:
Fernando Méndez 2021-06-03 11:58:10 +02:00 committed by GitHub
parent 3dc56e4618
commit 1fac908cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ class FormPurchase extends Form {
<p>Asiento(s):".$seats."</p>
<p>Fecha: ".date_format(date_create($this->session->getDate()), 'd-m-Y')."</p>
<p>Hora: ".$this->session->getStartTime()."</p>
<p>Precio: ".$this->session->getSeatPrice()*count($this->seat)."</p>
<p>Precio Total: ".$this->session->getSeatPrice()*count($this->seat)." (Precio por asiento: ".$this->session->getSeatPrice()." )</p>
</fieldset>
<fieldset id='pagar_entrada'><pre>".$htmlErroresGlobales."</pre>
<legend>Datos Bancarios</legend>

View File

@ -20,8 +20,8 @@
$seatsArray = array_combine(unserialize($purchase->getRow()), unserialize($purchase->getColumn()));
$seats = "";
foreach($seatsArray as $key=>$value){
$seats .= $key."-".$value.", ";
for($i=0; $i < count(unserialize($purchase->getRow())); $i++){
$seats .= unserialize($purchase->getRow())[$i]."-".unserialize($purchase->getColumn())[$i].", ";
}
unset($_SESSION["purchase"]);