Add files via upload

This commit is contained in:
Markines16 2021-04-15 21:43:06 +02:00 committed by GitHub
parent 653d24a8ca
commit a3bc2311e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 130 additions and 130 deletions

View File

@ -16,6 +16,7 @@
$formHall->processesForm(null, $cinema, null, null, "list"); $formHall->processesForm(null, $cinema, null, null, "list");
$filmList = new Film_DAO('complucine'); $filmList = new Film_DAO('complucine');
if($filmList){ if($filmList){
$films = $filmList->allFilmData(); $films = $filmList->allFilmData();
}else { }else {
@ -65,12 +66,12 @@
</form> </form>
<div> <div>
<div class=\"column side\"> <div class=\"column side\">
<select name=\"film\" form=\"edit_ses\" class=\"button large\">"; <select name=\"film\" form=\"edit_ses\" class=\"button large\">\n";
foreach($films as $f){ foreach($films as $f){
if($f->getId() == $_POST['idfilm']){ if($f->getId() == $_POST['idfilm']){
echo "<option value=\"". $f->getId() ." \"selected> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>"; echo " <option value=\"". $f->getId() ." \"selected> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>\n";
}else{ }else{
echo "<option value=\"". $f->getId() ." \"> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>"; echo " <option value=\"". $f->getId() ." \"> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>\n";
} }
} }
echo " </div>"; echo " </div>";
@ -123,9 +124,9 @@
</form> </form>
<div> <div>
<div class=\"column side\"> <div class=\"column side\">
<select name=\"film\" form=\"new_ses\" class=\"button large\">"; <select name=\"film\" form=\"new_ses\" class=\"button large\">\n";
foreach($films as $f){ foreach($films as $f){
echo "<option value=\"". $f->getId() ." \"> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>"; echo " <option value=\"". $f->getId() ." \"> " . $f->getId() . "|" . $f->getTittle() ." Idioma: " . $f->getLanguage() . "</option>\n";
} }
echo " </div>"; echo " </div>";
} }

View File

@ -2,6 +2,7 @@
<?php <?php
//General Config File: //General Config File:
require_once('../assets/php/config.php'); require_once('../assets/php/config.php');
include_once('panel_manager.php'); include_once('panel_manager.php');
$login = false; $login = false;
@ -37,7 +38,6 @@
<!-- Panel --> <!-- Panel -->
<div class="row"> <div class="row">
<!--Left Sidebar --> <!--Left Sidebar -->
<div class="sidebar left"> <div class="sidebar left">
<ul> <ul>

View File

@ -50,7 +50,8 @@
</div>"; </div>";
function drawSessions($sessions,$bd){ function drawSessions($sessions,$bd){
echo " <!--Session List --> echo "
<!--Session List -->
<div class=\"column side\"> <div class=\"column side\">
<table class='alt'> <table class='alt'>
<thead> <thead>
@ -71,16 +72,14 @@
<td> " . $s->getFormat() . "</a></td> <td> " . $s->getFormat() . "</a></td>
<td> " . $s->getSeatPrice() . "</a></td> <td> " . $s->getSeatPrice() . "</a></td>
<form method=\"post\" action=\"./?state=edit_session&option=edit\"> <form method=\"post\" action=\"./?state=edit_session&option=edit\">
<input name=\"id\" type=\"hidden\" value=\"".$s->getId()."\"> <input name=\"id\" type=\"hidden\" value=\"".$s->getId()."\">
<input name=\"idfilm\" type=\"hidden\" value=\"".$s->getIdfilm()."\"> <input name=\"idfilm\" type=\"hidden\" value=\"".$s->getIdfilm()."\">
<input name=\"idhall\" type=\"hidden\" value=\"".$s->getIdhall()."\"> <input name=\"hall\" type=\"hidden\" value=\"".$s->getIdhall()."\">
<input name=\"idcinema\" type=\"hidden\" value=\"".$s->getIdcinema()."\"> <input name=\"idcinema\" type=\"hidden\" value=\"".$s->getIdcinema()."\">
<input name=\"date\" type=\"hidden\" value=\"".$s->getDate()."\"> <input name=\"date\" type=\"hidden\" value=\"".$s->getDate()."\">
<input name=\"start\" type=\"hidden\" value=\"".$s->getStartTime()."\"> <input name=\"start\" type=\"hidden\" value=\"".$s->getStartTime()."\">
<input name=\"price\" type=\"hidden\" value=\"".$s->getSeatPrice()."\"> <input name=\"price\" type=\"hidden\" value=\"".$s->getSeatPrice()."\">
<input name=\"format\" type=\"hidden\" value=\"".$s->getFormat()."\"> <input name=\"format\" type=\"hidden\" value=\"".$s->getFormat()."\">
<td> <input type=\"submit\" id=\"submit\" value=\"Editar\" class=\"button\" > </td> <td> <input type=\"submit\" id=\"submit\" value=\"Editar\" class=\"button\" > </td>
</form> </form>
</tr>"; </tr>";
@ -89,7 +88,7 @@
<tbody> <tbody>
</table> </table>
<input type=\"submit\" name=\"submit\" form=\"addfilter\" value=\"Añadir\" class=\"button large\" formaction=\"./?state=edit_session&option=new\"> <input type=\"submit\" name=\"submit\" form=\"addfilter\" value=\"Añadir\" class=\"button large\" formaction=\"./?state=edit_session&option=new\">
</div>"; </div>\n";
} }
if($formSession->getReply()){ if($formSession->getReply()){
@ -107,6 +106,6 @@
<div class=\"column side\"> <div class=\"column side\">
<p> No hay ninguna session en la sala ". $placeholder_hall . " el dia ". $placeholder_date . "</p> <p> No hay ninguna session en la sala ". $placeholder_hall . " el dia ". $placeholder_date . "</p>
<input type=\"submit\" name=\"submit\" form=\"addfilter\" value=\"Añadir\" class=\"button large\" formaction=\"./?state=edit_session&option=new\"> <input type=\"submit\" name=\"submit\" form=\"addfilter\" value=\"Añadir\" class=\"button large\" formaction=\"./?state=edit_session&option=new\">
</div>"; </div>\n";
} }
?> ?>