%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/p-news.php |
<?php ini_set('display_errors','on'); error_reporting(E_ALL); include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/classes/Module.php"); $module = new Module; $acc=false; $facebookapi = true; //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); if($_GET['type']=="news"){ $titre=$trad->t('News','admin',$lang->getlang()); } else{ $titre=$trad->t('Events','admin',$lang->getlang()); } echo "\n<title>".$titre." - ".$info_titresite."</title>\n"; ?> <?php //affichage du header include("theme/header.php"); //colonne de droite include("theme/droite.php"); ?> <div class="text"> <div class="bleu padding2 mt10"> <h1><?=$titre?></h1> </div> <? if(isset($_GET['p'])){ $numpage=$_GET['p']; } else{ $numpage=1; } $page->list_actu($_GET['type'],$numpage); $db = new BaseOps; //pagination $query="SELECT * FROM `page` p WHERE p.`type`='".$_GET['type']."' ORDER BY p.date_crea DESC"; $nb_actus=$db->count($query); if($nb_actus>30){ echo '<div class="pagination">'; $nb_pages=ceil($nb_actus/30); for($i=1;$i<=$nb_pages;$i++){ if(!isset($_GET['p'])) { if($i == 1) $active = " active"; else $active = ""; } else { if($_GET['p'] == $i) $active = " active"; else $active = ""; } echo '<a href="'.$lang->getlang().'/'.$_GET['type'].'.html?p='.$i.'" class="bouton nmw'.$active.'">'.$i.'</a>'; } echo '</div>'; } ?> </div> <?php //affichage du footer include("theme/footer.php"); ?>