%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

<?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
}
?>

<form action="admin/liste_actus.php" method="get" class="form">
	<table>
		
		<tr>
			<td class="label">Date début</td>
			
			<td class="field">
				<input type="text" class="datepick" name="date_debut" value="<?=(isset($_GET['date_debut']) ? dateFr($_GET['date_debut']) :"") ?>" />
			</td>
		</tr>
		<tr>
			<td class="label">Date fin</td>
			
			<td class="field">
				<input type="text" class="datepick" name="date_fin" value="<?=(isset($_GET['date_fin']) ? dateFr($_GET['date_fin']) :"") ?>" />
			</td>
		</tr>
	</table>

	<div class="form_bouton">
		<input type="submit" class="bouton" id="maj_bouton" value="Filtrer les partenaires" />
	</div>
</form>
<ul class="adminlist">
<?php
if(!isset($_GET['id_section']) && estadmin()) {
	$result = $page->liste_actus(false, false,0,(isset($_GET['date_debut']) ? dateUs($_GET['date_debut']) : null),(isset($_GET['date_fin']) ? dateUs($_GET['date_fin']) : null));
} 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>


</div>

<?

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0