This commit is contained in:
marian1010 2021-05-13 12:51:29 +02:00
parent ce47b5b766
commit 2925084c7c
4 changed files with 42 additions and 39 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -42,7 +42,7 @@
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,7 +167,7 @@
$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();
@ -175,6 +175,7 @@
$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>
<div class='column middle'> <div class='column middle'>
@ -191,6 +192,7 @@
</thead> </thead>
<tbody> <tbody>
"; ";
if(is_array($managers)){
for($i = 0; $i < count($managers); $i++){ for($i = 0; $i < count($managers); $i++){
echo '<tr> echo '<tr>
<td>'. $ids[$i] .'</td> <td>'. $ids[$i] .'</td>
@ -218,6 +220,7 @@
</tr> </tr>
'; ';
} }
}
echo'</tbody> echo'</tbody>
</table> </table>
</div> </div>