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");
$filmList = new Film_DAO('complucine');
if($filmList){
$films = $filmList->allFilmData();
}else {
@ -23,7 +24,7 @@
}
if(isset($_REQUEST['option']) && $_REQUEST['option'] == 'edit') {
echo "<div class = \"column middle\">
echo " <div class = \"column middle\">
<h2>Editar/Eliminar Sesion</h2>
<form method=\"post\" id=\"edit_ses\" action=\"validateSession.php\">
<div class=\"row\">
@ -65,19 +66,19 @@
</form>
<div>
<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){
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{
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>";
}
else{
echo "<div class = \"column middle\">
echo " <div class = \"column middle\">
<h2>Crear Sesion</h2>
<form method=\"post\" id=\"new_ses\" action=\"validateSession.php\">
<div class=\"row\">
@ -123,11 +124,11 @@
</form>
<div>
<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){
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
//General Config File:
require_once('../assets/php/config.php');
include_once('panel_manager.php');
$login = false;
@ -37,7 +38,6 @@
<!-- Panel -->
<div class="row">
<!--Left Sidebar -->
<div class="sidebar left">
<ul>

View File

@ -50,7 +50,8 @@
</div>";
function drawSessions($sessions,$bd){
echo " <!--Session List -->
echo "
<!--Session List -->
<div class=\"column side\">
<table class='alt'>
<thead>
@ -71,16 +72,14 @@
<td> " . $s->getFormat() . "</a></td>
<td> " . $s->getSeatPrice() . "</a></td>
<form method=\"post\" action=\"./?state=edit_session&option=edit\">
<input name=\"id\" type=\"hidden\" value=\"".$s->getId()."\">
<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=\"date\" type=\"hidden\" value=\"".$s->getDate()."\">
<input name=\"start\" type=\"hidden\" value=\"".$s->getStartTime()."\">
<input name=\"price\" type=\"hidden\" value=\"".$s->getSeatPrice()."\">
<input name=\"format\" type=\"hidden\" value=\"".$s->getFormat()."\">
<td> <input type=\"submit\" id=\"submit\" value=\"Editar\" class=\"button\" > </td>
</form>
</tr>";
@ -89,7 +88,7 @@
<tbody>
</table>
<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()){
@ -107,6 +106,6 @@
<div class=\"column side\">
<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\">
</div>";
</div>\n";
}
?>