-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
42 lines (38 loc) · 1.44 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
//General Config File:
require_once(__DIR__.'/assets/php/config.php');
//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();
}
//Page-specific content:
$section = '<!-- Undercard -->
<section id="cartelera">
<div class="row">
<div class="code">
'.$template->print_fimls().'
</div>
</div>
</section>
<section id="promociones" class="row">
<div class="code">
<h2>Promociones</h2>
<section class="promotions">
<button id="retroceder">⏪</button>
<a href="promotions/" class="imagen"></a>
<button id="avanzar">⏩</button>
</section>
<section class="controls">
<button id="play">▶</button>
<button id="stop" disabled>⏸</button>
</section>
</div>
</section>
';
$section.="<input type='hidden' id='promotions' value='".json_encode($promotions_img)."' />";
//General page content:
require RAIZ_APP.'/HTMLtemplate.php';
?>