%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/a-liste_events.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.php"); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$trad->t('News list','admin',$lang->getlang())." - ".$info_titresite."</title>\n"; //affichage du header if(estadmin()) include("theme/header_admin.php"); else include("theme/header_redacteur.php"); ?> <div class="text_admin"> <h2><?=$trad->t('Events list','admin',$lang->getlang())?></h2> <?php if(isset($_GET['msg']) && $_GET['msg']=="yes") { echo "<p class=\"infobloc\">Opération effectuée</p>"; } if(!isset($_GET['id_section']) && estadmin()) { ?> <p><a href="admin/ajouter_page.php?type=event" class="bouton"><?=$trad->t('Add an event','admin',$lang->getlang())?></a></p> <?php } else { ?> <p><a href="admin/ajouter_page.php?type=event&id_section=<?php echo $_GET['id_section']; ?>" class="bouton"><?=$trad->t('Add an event','admin',$lang->getlang())?></a></p> <?php } ?> <ul class="adminlist"> <?php if(!isset($_GET['id_section']) && estadmin()) { $result = $page->liste_events(false, 50); } else { $result = $page->liste_events($_GET['id_section']); } if($result != null) { foreach ($result as $actu) { ?> <li><div style="background: #<?=(isset($actu['info_section']['couleur'])? $actu['info_section']['couleur'] : "28586f") ?>;"><a href="admin/modifier_page.php?id_page=<?php echo $actu['id_page']; ?>"> <?php echo $actu['titre_'.$lang->id()]; ?> - <?php echo $actu['date_debut']; ?></a> <?=$page->flagLang($actu['id_page'])?></div></li> <?php } } else { echo "<div class=\"erreur\">".$trad->t('No event','admin',$lang->getlang())."</div>\n"; } ?> </ul> </div> <? //affichage du footer include("theme/footer.php"); ?>