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

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

$db = new BaseOps;
verif_get($_GET['id']);

$query = "SELECT * FROM `page` WHERE id_page = ".$_GET['id'];
if(!$db->isres($query))
{
	include('a-404.php');
	exit(0);
}
$page = new Page();




$data = $db->select_array($query);
$query = "SELECT * FROM `page_lang` WHERE id_lang = 1 AND id_page = ".$data['id_page'];
$data_fr = $db->select_array($query);
$query = "SELECT * FROM `page_lang` WHERE id_lang = 2 AND id_page = ".$data['id_page'];
$data_en = $db->select_array($query);


if(!isset($_POST['titre_fr'])) $_POST['titre_fr'] = $data_fr['titre'];
if(!isset($_POST['titre_en'])) $_POST['titre_en'] = $data_en['titre'];
if(!isset($_POST['soustitre_fr'])) $_POST['soustitre_fr'] = $data_fr['soustitre'];
if(!isset($_POST['soustitre_en'])) $_POST['soustitre_en'] = $data_en['soustitre'];
if(!isset($_POST['section'])) $_POST['section'] = $data['section'];

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>Aperçu d'une page - ".$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>Aperçu d'une page</h2>

<ul class="sousmenuadmin">
	<li><a href="admin/liste_pages_perdues.php">Liste des pages</a></li>
	<li><a href="admin/modifier_page.php?id_page=<?php echo $_GET['id']; ?>">Retour à la modification de la page</a></li>
	<li><a href="admin/apercu_page.php?id=<?php echo $_GET['id']; ?>&lang=fr">FR</a></li>
	<li><a href="admin/apercu_page.php?id=<?php echo $_GET['id']; ?>&lang=en">EN</a></li>
</ul>


<?php
$result = $page->liste_blocs($_GET['id']);
if($result != null) {
	foreach ($result as $bloc)
	{
		$page->afficher_bloc($bloc, "page");
	}
}
?>

</div>

<?

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

?>

Zerion Mini Shell 1.0