Add files via upload
This commit is contained in:
parent
653d24a8ca
commit
a3bc2311e5
@ -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 {
|
||||||
@ -23,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_REQUEST['option']) && $_REQUEST['option'] == 'edit') {
|
if(isset($_REQUEST['option']) && $_REQUEST['option'] == 'edit') {
|
||||||
echo "<div class = \"column middle\">
|
echo " <div class = \"column middle\">
|
||||||
<h2>Editar/Eliminar Sesion</h2>
|
<h2>Editar/Eliminar Sesion</h2>
|
||||||
<form method=\"post\" id=\"edit_ses\" action=\"validateSession.php\">
|
<form method=\"post\" id=\"edit_ses\" action=\"validateSession.php\">
|
||||||
<div class=\"row\">
|
<div class=\"row\">
|
||||||
@ -65,19 +66,19 @@
|
|||||||
</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>";
|
||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
echo "<div class = \"column middle\">
|
echo " <div class = \"column middle\">
|
||||||
<h2>Crear Sesion</h2>
|
<h2>Crear Sesion</h2>
|
||||||
<form method=\"post\" id=\"new_ses\" action=\"validateSession.php\">
|
<form method=\"post\" id=\"new_ses\" action=\"validateSession.php\">
|
||||||
<div class=\"row\">
|
<div class=\"row\">
|
||||||
@ -123,11 +124,11 @@
|
|||||||
</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>";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -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>
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user