2021-05-17 15:29:29 +02:00
|
|
|
<?php
|
|
|
|
//General Config File:
|
|
|
|
require_once(__DIR__.'/assets/php/config.php');
|
|
|
|
|
2021-05-29 17:06:35 +02:00
|
|
|
//Promotions:
|
|
|
|
include_once(__DIR__.'/assets/php/includes/promotion_dao.php');
|
|
|
|
|
|
|
|
$promotionsDAO = new Promotion_DAO("complucine");
|
|
|
|
$promotions = $promotionsDAO->allPromotionData();
|
|
|
|
foreach($promotions as $key=>$value){
|
|
|
|
$promotions_img[$key] = $value->getImg();
|
|
|
|
}
|
2021-05-25 12:21:50 +02:00
|
|
|
|
2021-05-17 15:29:29 +02:00
|
|
|
//Page-specific content:
|
|
|
|
$section = '<!-- Undercard -->
|
|
|
|
<section id="cartelera">
|
|
|
|
<div class="row">
|
|
|
|
<div class="code">
|
|
|
|
'.$template->print_fimls().'
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-05-18 21:37:02 +02:00
|
|
|
<section id="promociones" class="row">
|
|
|
|
<div class="code">
|
2021-05-25 12:21:50 +02:00
|
|
|
<h2>Promociones</h2>
|
2021-05-18 21:37:02 +02:00
|
|
|
<section class="promotions">
|
2021-06-05 15:15:45 +02:00
|
|
|
<button id="retroceder">⏪</button>
|
2021-05-19 11:23:56 +02:00
|
|
|
<a href="promotions/" class="imagen"></a>
|
2021-06-05 15:15:45 +02:00
|
|
|
<button id="avanzar">⏩</button>
|
2021-05-18 21:37:02 +02:00
|
|
|
</section>
|
|
|
|
<section class="controls">
|
2021-05-20 15:29:49 +02:00
|
|
|
<button id="play">▶</button>
|
2021-06-05 15:15:45 +02:00
|
|
|
<button id="stop" disabled>⏸</button>
|
2021-05-18 21:37:02 +02:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-05-29 17:06:35 +02:00
|
|
|
';
|
|
|
|
$section.="<input type='hidden' id='promotions' value='".json_encode($promotions_img)."' />";
|
2021-05-17 15:29:29 +02:00
|
|
|
|
|
|
|
//General page content:
|
|
|
|
require RAIZ_APP.'/HTMLtemplate.php';
|
|
|
|
?>
|