debug
This commit is contained in:
parent
ce47b5b766
commit
2925084c7c
@ -72,7 +72,7 @@ class formAddPromotion extends Form{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count($result) === 0) {
|
if (count($result) === 0) {
|
||||||
$bd = new Pomotion_DAO("complucine");
|
$bd = new Promotion_DAO("complucine");
|
||||||
|
|
||||||
//FALTARIA SUBIR LA IMAGEN
|
//FALTARIA SUBIR LA IMAGEN
|
||||||
$exist = $bd-> GetPromotion($code);
|
$exist = $bd-> GetPromotion($code);
|
||||||
|
@ -55,7 +55,7 @@ class formDeletePromotion extends Form{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count($result) === 0) {
|
if (count($result) === 0) {
|
||||||
$bd = new Pomotion_DAO("complucine");
|
$bd = new Promotion_DAO("complucine");
|
||||||
|
|
||||||
//FALTARIA SUBIR LA IMAGEN
|
//FALTARIA SUBIR LA IMAGEN
|
||||||
$exist = $bd-> promotionData($id);
|
$exist = $bd-> promotionData($id);
|
||||||
|
@ -79,7 +79,7 @@ class formEditPromotion extends Form{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count($result) === 0) {
|
if (count($result) === 0) {
|
||||||
$bd = new Pomotion_DAO("complucine");
|
$bd = new Promotion_DAO("complucine");
|
||||||
|
|
||||||
//FALTARIA SUBIR LA IMAGEN
|
//FALTARIA SUBIR LA IMAGEN
|
||||||
$exist = $bd-> promotionData($id);
|
$exist = $bd-> promotionData($id);
|
||||||
|
@ -39,10 +39,10 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->addFilm();
|
$this->addFilm();
|
||||||
echo( $template->print_fimls());
|
echo( $template->print_fimls());
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'mp': require_once('manage_promotions.php');
|
case 'mp':
|
||||||
if(isset($_POST['edit_promotion'])) {
|
if(isset($_POST['edit_promotion'])) {
|
||||||
$this->editPromotion();
|
$this->editPromotion();
|
||||||
}
|
}
|
||||||
@ -167,13 +167,14 @@
|
|||||||
$usernames = array();
|
$usernames = array();
|
||||||
$email = array();
|
$email = array();
|
||||||
$rol = array();
|
$rol = array();
|
||||||
|
if(is_array($managers)){
|
||||||
foreach($managers as $key => $value){
|
foreach($managers as $key => $value){
|
||||||
$ids[$key] = $value->getId();
|
$ids[$key] = $value->getId();
|
||||||
$idscinemas[$key] = $value->getIdcinema();
|
$idscinemas[$key] = $value->getIdcinema();
|
||||||
$usernames[$key] = $value->getUsername();
|
$usernames[$key] = $value->getUsername();
|
||||||
$email[$key] = $value->getEmail();
|
$email[$key] = $value->getEmail();
|
||||||
$rol[$key] = $value->getRoll();
|
$rol[$key] = $value->getRoll();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo "<div class='row'>
|
echo "<div class='row'>
|
||||||
<div class='column side'></div>
|
<div class='column side'></div>
|
||||||
@ -191,33 +192,35 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
";
|
";
|
||||||
for($i = 0; $i < count($managers); $i++){
|
if(is_array($managers)){
|
||||||
echo '<tr>
|
for($i = 0; $i < count($managers); $i++){
|
||||||
<td>'. $ids[$i] .'</td>
|
echo '<tr>
|
||||||
<td>'. $idscinemas[$i] .'</td>
|
<td>'. $ids[$i] .'</td>
|
||||||
<td>'. $usernames[$i] .'</td>
|
<td>'. $idscinemas[$i] .'</td>
|
||||||
<td>'. $email[$i] .'</td>
|
<td>'. $usernames[$i] .'</td>
|
||||||
<td>'. $rol[$i] .'</td>
|
<td>'. $email[$i] .'</td>
|
||||||
<td>
|
<td>'. $rol[$i] .'</td>
|
||||||
<form method="post" action="index.php?state=mg">
|
<td>
|
||||||
<input name="id" type="hidden" value="'.$ids[$i].'">
|
<form method="post" action="index.php?state=mg">
|
||||||
<input name="idcinema" type="hidden" value="'.$idscinemas[$i].'">
|
<input name="id" type="hidden" value="'.$ids[$i].'">
|
||||||
<input type="submit" id="submit" value="Editar" name="edit_manager" class="primary" />
|
<input name="idcinema" type="hidden" value="'.$idscinemas[$i].'">
|
||||||
</form>
|
<input type="submit" id="submit" value="Editar" name="edit_manager" class="primary" />
|
||||||
</td>
|
</form>
|
||||||
<td>
|
</td>
|
||||||
<form method="post" action="index.php?state=mg">
|
<td>
|
||||||
<input name="id" type="hidden" value="'.$ids[$i].'">
|
<form method="post" action="index.php?state=mg">
|
||||||
<input name="idcinema" type="hidden" value="'.$idscinemas[$i].'">
|
<input name="id" type="hidden" value="'.$ids[$i].'">
|
||||||
<input name="username" type="hidden" value="'.$usernames[$i].'">
|
<input name="idcinema" type="hidden" value="'.$idscinemas[$i].'">
|
||||||
<input name="email" type="hidden" value="'.$email[$i].'">
|
<input name="username" type="hidden" value="'.$usernames[$i].'">
|
||||||
<input name="rol" type="hidden" value="'.$rol[$i].'">
|
<input name="email" type="hidden" value="'.$email[$i].'">
|
||||||
<input type="submit" id="submit" value="Eliminar" name="delete_manager" class="primary" />
|
<input name="rol" type="hidden" value="'.$rol[$i].'">
|
||||||
</form>
|
<input type="submit" id="submit" value="Eliminar" name="delete_manager" class="primary" />
|
||||||
</td>
|
</form>
|
||||||
</tr>
|
</td>
|
||||||
';
|
</tr>
|
||||||
}
|
';
|
||||||
|
}
|
||||||
|
}
|
||||||
echo'</tbody>
|
echo'</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user