%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/p-page.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");
$db = new BaseOps;
verif_get($_GET['id']);
$page = new Page;
$this_page = $page->infos_page($_GET['id'],$lang->getlangid());
if($this_page == null) {
	header("Location: 404.html");
	exit(0);
}

$affsec = true;
$sec = $section->getSection($_GET['sect'],$lang->getlangid());
$pagesec = $lang->getlang()."/".$sec['id']."-".$sec['permalien']."/";
$pagepg = $pagesec.$this_page['id']."-".$this_page['permalien'].".html";
if($_GET['permalien'] != $this_page['permalien'])
{
	header("Location:".$url_site.$pagepg);
	exit(0);
}
$query="SELECT c.*,cl.name FROM `country` c LEFT JOIN `country_lang` cl ON c.`id`=cl.`country` WHERE cl.lang=".$lang->getlangid()." AND c.`id`=".$sec['pays'];
$country = $db->select_array($query);
$main2 = true;
$facebookapi = true;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$this_page['titre']." - ".$info_titresite."</title>\n";
?>
<meta property="og:titre" content="<?php echo $this_page['titre']; ?>"/>
<meta property="og:image" content="<?php echo $url_site."images/logo.png" ?>"/>
<meta property="og:type" content="non_profit"/>
<meta property="fb:app_id" content="166400090179579"/>
<meta property="og:url" content="<?php echo $url_site.$pagepg; ?>"/>
<meta property="og:site_name" content="<?php echo $info_titresite; ?>"/>
<?php
//affichage du header
include("theme/header.php");
//colonne de droite


if($sec['elu'] == 1) {
	$queryelu = "SELECT * FROM `user` WHERE section = ".$sec['id']." ORDER BY id ASC LIMIT 1";
	$dataelu = $db->select_array($queryelu);
}


?>
<div class="ariane">
	<a href="<?=$lang->getlang()?>/<?=$country['id'];?>-pays.html"><img src="images/icons/<?=strtolower($country['code_iso']);?>.png" alt="<?=$country['name'];?>"/> <span class="pays_lib"><?=$country['name'] ?></span></a> 
	<span class="sup_section_lib bg_profil_<?=$sec['profil']?>"><a href="<?=$lang->getlang()?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><?=substrwords($sec['titre'],65) ?></a></span>
	<span class="section_lib"><?=substrwords($this_page['titre'],65) ?></span>
</div>



<div class="text">


<p class="surtitre">
<?if ($sec['elu'] == 1) : ?>

<strong><?=ucfirst(strtolower($dataelu['prenom']));?> <?=ucfirst(strtolower($dataelu['nom']));?></strong> <?=$admtext->getText("mentionactivite",$lang->getlangid());?><?=$admtext->getText("mentionelu",$lang->getlangid());?> <strong>« <?=$sec['titre']?> »</strong>

<? else: ?>

<strong>« <?=$sec['titre']?> »</strong> <?=$admtext->getText("mentionactivite",$lang->getlangid());?>

<? endif; ?>
</p>

<h2 class="acttitre bg_profil_<?=$sec['profil']?>"><?php echo $this_page['titre']; ?></h2>
<?php
	if(!($this_page['lieu']=="" && ($this_page['date_debut']=="" || $this_page['date_debut']=="0000-00-00") && ($this_page['date_fin']=="" || $this_page['date_fin']=="0000-00-00") && $this_page['public']=="")){
?>
<div id="pageinfos">
<?php
	$html = "";
	if($this_page['lieu']!=""){
		$html.='<div class="lieu"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>';
	}
	if($this_page['date_fin']!="0000-00-00" && $this_page['date_fin']!=""){
		//$html.='<div class="date"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>';
		$html.='<div class="lieu"><img src="images/clock.png" alt="date"> '.lang("From").' <strong>'.dateLang($this_page['date_debut'],$lang->getlangid()).'</strong> '.lang("to").' <strong>'.dateLang($this_page['date_fin'],$lang->getlangid()).'</strong></div>';
	}
	else{
		if($this_page['date_debut']!="0000-00-00" && $this_page['date_debut']!=""){
			//$html.='<div class="date"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>';
			$html.='<div class="lieu"><img src="images/clock.png" alt="date"> <strong>'.dateLang($this_page['date_debut'],$lang->getlangid()).'</strong></div>';
		}
	}
	if($this_page['public']!=""){
		$html.='<div class="lieu"><img src="images/public.png" alt="public"> '.$this_page['public'].'</div>';
	}
	echo $html;
?>
	<div><?=$admtext->getText("typeacti",$lang->getlangid())?> : <strong><?=$this_page['categorietitre'];?></strong>, <?=$admtext->getText("theme",$lang->getlangid());?> : <strong><?=$this_page['themetitre'];?></strong></div>
</div>
<?php
}
?>
<div class="bloctexte">
<?php
$result = $page->liste_blocs($_GET['id']);
if($result != null) {
	foreach ($result as $bloc)
	{
		if($bloc['valide']!=0){
			$page->afficher_bloc($bloc, "page");
		}
	}
}
?>
</div>

</div>

<div class="partager">
	<div class="icons">
		<div><a href="#partager_mail" class="inline"><img src="images/mail.png" alt="Mail" /> <?php echo lang("mail"); ?></a></div>
		<div><a href="<?php echo $pagesec."print/".$this_page['id']."-".$this_page['permalien'].".html"; ?>"><img src="images/print.png" alt="Print" /> <?php echo lang("print"); ?></a></div>
	</div>
	<div style="display: none;">
		<div id="partager_mail">
			<form action="<?php echo $lang->getlang(); ?>/partager/page.html" method="post" class="form">
				<table>
					<tr>
						<td class="label"><?php echo lang("email"); ?> <span class="etoile">*</span></td>
						<td class="field"><input type="text" name="email" value="<?php echo $_POST['email']; ?>" /></td>
					</tr>
				</table>
				<div class="form_bouton">
					<input type="hidden" name="post" value="1" />
					<input type="hidden" name="id" value="<?php echo $this_page['id']; ?>" />
					<input type="submit" class="bouton" id="maj_bouton" value="<?php echo lang("mail"); ?>" />
				</div>
			</form>
		</div>
	</div>
	<a href="https://twitter.com/share" class="twitter-share-button" >Tweet</a>
		<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
		<!-- Placez cette balise où vous souhaitez faire apparaître le gadget Bouton +1. -->
		<div class="g-plusone" data-size="small"></div>

		<!-- Placez cette ballise après la dernière balise Bouton +1. -->
		<script type="text/javascript">
		  window.___gcfg = {lang: 'fr'};

		  (function() {
			var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
			po.src = 'https://apis.google.com/js/platform.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
		  })();
		</script>
	<div class="fb-like" data-href="<?php echo $url_site.$pagepg; ?>" data-send="false" data-width="400" data-show-faces="false"></div>
</div>
	
<?php
//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0