%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/inc/classes/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/inc/classes/Module.php |
<?php class Module extends Load { var $bd; var $language; var $sect; function Module() { //constructor parent::Load(); $this->bd = new BaseOps; $this->language = new Lang; } //Afficher les actus function afficher_actus(){ include_once("inc/classes/Hotpage.php"); $this->hotpage=new Hotpage; $trad=new Traduction; $lang=$this->language; $page=new Page; $list_top=$this->hotpage->listHotpage("top"); $type="top"; if($list_top!=null){ echo '<div class="actus_home_three flexcontent">'; foreach($list_top as $uneactu){ $actu=$page->aff_actu($uneactu['id_page'],$this->language->id()); include("templates/accueil/actu-home.php"); } echo '</div>'; } $type="bottom"; $list_bottom=$this->hotpage->listHotpage("bottom"); if($list_bottom!=null){ foreach($list_bottom as $uneactu){ $actu=$page->aff_actu($uneactu['id_page'],$this->language->id()); include("templates/accueil/actu.php"); } } if($list_bottom==null && $list_top==null){ include("templates/accueil/no_actu.php"); } } //Afficher les actus function afficher_actus_theme($id_theme){ $trad=new Traduction; $lang=new Lang; $page=new Page; $list_top=$page->list_actu_theme($id_theme); $i=0; $type="top"; if($list_top!=null){ foreach($list_top as $uneactu){ $actu=$page->aff_actu($uneactu['id_page'],$this->language->id()); include("templates/accueil/actu.php"); $i++; if($i>3){ $type="bottom"; } } } } //Afficher les tops function afficher_top(){ include_once("inc/classes/TopAccueil.php"); $this->top_accueil=new TopAccueil; $trad=new Traduction; $lang=new Lang; $page=new Page; $list_top=$this->top_accueil->getTops("top"); include("templates/accueil/top.php"); } } ?>