%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-eldw.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-eldw.eu/public_html/a-liste_actus.php.old

<?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('News 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=news" class="bouton"><?=$trad->t('Add a news','admin',$lang->getlang())?></a></p>
<?php
} else {
?>
<p><a href="admin/ajouter_page.php?type=news&id_section=<?php echo $_GET['id_section']; ?>" class="bouton"><?=$trad->t('Add a news','admin',$lang->getlang())?></a></p>
<?php
}
?>
<ul class="adminlist">
<?php
if(!isset($_GET['id_section']) && estadmin()) {
	$result = $page->liste_actus(false, 50);
} else {
	$result = $page->liste_actus($_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 dateFr($actu['date_crea']); ?></a> <?=$page->flagLang($actu['id_page'])?></div></li>
<?php
}
}
else {
	echo "<div class=\"erreur\">".$trad->t('No news','admin',$lang->getlang())."</div>\n";
}
?>
</ul>
<?
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");

?>

Zerion Mini Shell 1.0