%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-hotpage.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");
include_once("inc/session.php");
include_once("inc/classes/Hotpage.php");

verif_co_admin();

$hotpage=new Hotpage;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$trad->t('Hotpage','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('Hotpage','admin',$lang->getlang())?></h2>
<?php
if(isset($_GET['msg']) && $_GET['msg']=="yes") {
	echo "<p class=\"infobloc\">Opération effectuée</p>";
}



?>
<h3><?=$trad->t('Top news','admin',$lang->getlang())?></h3>
<?php
$list_top=$hotpage->listHotpage("top");
if ($list_top!=null):?>
	<ul class="adminlist">
	<? foreach($list_top as $unehotpage): 
		$unepage=$page->getPage($unehotpage['id_page']); ?>
		<li><div style="background: #<?=(isset($unepage['info_section']['couleur'])? $unepage['info_section']['couleur'] : "efefef") ?>;"><a href="admin/modifier_page.php?id_page=<?php echo $unepage['id_page']; ?>"><?=$unepage['titre_'.$lang->id()]; ?> - <?=$unepage['date_debut']; ?></a>
		<?php if($unehotpage['ordre'] != 1) { ?> - <a href="admin/monter.php?table=hotpage&id_hotpage=<?=$unehotpage['id_hotpage']; ?>"><?=$trad->t('Bring up','admin',$lang->getlang())?></a><?php } ?>
		- <a href="admin/addhotpage.php?action=remove&id_page=<?=$unepage['id_page']; ?>" class="confirm" /><?=$trad->t('Remove from hotpage','admin',$lang->getlang())?></a>
		- <a href="admin/addhotpage.php?type=bottom&id_page=<?=$unepage['id_page']; ?>" /><?=$trad->t('Move to bottom','admin',$lang->getlang())?></a></div></li>

	<? endforeach; ?>
	</ul>
<? else : 
	echo "<div class=\"erreur\">".$trad->t('No news','admin',$lang->getlang())."</div>\n";
endif; ?>
<br/><br/>
<h3><?=$trad->t('Bottom news','admin',$lang->getlang())?></h3>
<?php
$list_top=$hotpage->listHotpage("bottom");
if ($list_top!=null):?>
	<ul class="adminlist">
	<? foreach($list_top as $unehotpage): 
		$unepage=$page->getPage($unehotpage['id_page']); ?>
		<li><div style="background: #<?=(isset($unepage['info_section']['couleur'])? $unepage['info_section']['couleur'] : "efefef") ?>;"><a href="admin/modifier_page.php?id_page=<?php echo $unepage['id_page']; ?>"><?=$unepage['titre_'.$lang->id()]; ?> - <?=$unepage['date_debut']; ?></a>
		<?php if($unehotpage['ordre'] != 1) { ?> - <a href="admin/monter.php?table=hotpage&id_hotpage=<?=$unehotpage['id_hotpage']; ?>"><?=$trad->t('Bring up','admin',$lang->getlang())?></a><?php } ?>
		- <a href="admin/addhotpage.php?action=remove&id_page=<?=$unepage['id_page']; ?>" class="confirm" /><?=$trad->t('Remove from hotpage','admin',$lang->getlang())?></a>
		- <a href="admin/addhotpage.php?type=top&id_page=<?=$unepage['id_page']; ?>" /><?=$trad->t('Move to top','admin',$lang->getlang())?></a></div></li>

			
	<? endforeach; ?>
	</ul>
<? else : 
	echo "<div class=\"erreur\">".$trad->t('No news','admin',$lang->getlang())."</div>\n";
 endif; ?>



</div>

<?

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

?>

Zerion Mini Shell 1.0