%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/p-editions.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");
if(!isset($_SESSION['edition_front'])){
	$uneedition=$edition->getCurrentEdition("front",$lang->getlangid(),false);
	$_SESSION['edition_front']=$uneedition['id'];

	
}

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$admtext->getText("old_editions",$lang->getlangid())." - ".$info_titresite."</title>\n";
//affichage du header
include("theme/header.php");
//colonne de droite
include("theme/droite.php");

$query='SELECT * FROM edition LEFT JOIN edition_lang ON edition.id=edition_lang.edition WHERE date_debut<"'.$realedition['date_debut'].'" AND lang='.$lang->getlangid().' ORDER BY date_debut DESC';

$old_editions=$db->select_arrays($query);
if(count($old_editions)>0):?>
<div class="bleu padding2 mt10">
	<h1><?=$admtext->getText("old_editions",$lang->getlangid());?></h1>
</div>
<div class="liste_editions flexcontent">
<?
foreach ($old_editions as $old_edition):?>
	<?if(!isset($_GET["edition"])):
		$monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>
		<a href="<?=$monUrl?>&edition=<?=$old_edition['edition']?>" class="edition">
		<div class="padding2">
			<h3><?=$admtext->getText("edition",$lang->getlangid());?> <?=date("Y", strtotime($old_edition['date_debut']))?></h3>
			<div><?=$old_edition['titre']?></div>
		</div>
		</a>
	<? else:?>
		<? $monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
		$newurl = preg_replace("/\&edition=\d+/", "", $monUrl);?>
		<a href="<?=$newurl?>&edition=<?=$old_edition['edition']?>" class="edition">
		<div class="padding2">
			<h3><?=$admtext->getText("edition",$lang->getlangid());?> <?=date("Y", strtotime($old_edition['date_debut']))?></h3>
			<div><?=$old_edition['titre']?></div>
		</div>
		</a>
	<? endif;?>
<?endforeach;?>
</div>
<? endif;?>

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

?>

Zerion Mini Shell 1.0