%PDF- %PDF-
Mini Shell

Mini Shell

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

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

$this_edition=$edition->getCurrentEdition("front",$lang->getlangid());

$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);

$affsec = true;
$pagesec = $lang->getlang()."/".$sec['id']."-".$sec['permalien']."/";
if($_GET['permalien'] != $sec['permalien'])
{
	header("Location:".$url_site.$pagesec);
	exit(0);
}

$facebookapi = true;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$sec['titre']." - ".$info_titresite."</title>\n";
?>
<meta property="og:titre" content="<?php echo $sec['titre']; ?>"/>
<?php if ($sec['photo1'] != null) { ?>
<meta property="og:image" content="<?php echo $url_site."uploads/".$sec['photo1'] ?>"/>
<?php } else { ?>
<meta property="og:image" content="<?php echo $url_site."images/noimg.jpg" ?>"/>
<?php } ?>
<meta property="og:type" content="non_profit"/>
<meta property="fb:app_id" content="307325492664749"/>
<meta property="og:url" content="<?php echo $url_site.$pagesec; ?>"/>
<meta property="og:site_name" content="<?php echo $info_titresite; ?>"/>
</head>
<body style="background: #fff">
<div id="corps" style="margin: 10px;">
<div class="text" id="printbutton" style="margin: 10px;">
<a href="javascript: window.print()" class="bouton"><?php echo lang("print"); ?></a>
<a href="<?php echo $pagesec; ?>" class="bouton"><?php echo lang("back"); ?></a>
</div>

<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="section_lib"><?=$sec['titre'] ?></span></div>
<div class="page_section">
	<div class="gauche">
		<p class="surtitre"><strong>« <?=$sec['titre']?> »</strong> <?=$admtext->getText("mentionactivite",$lang->getlangid());?> « <?=lang("profil_".$sec['profil'])?> »</p>
		<h1><?=$sec['titre'] ?></h1>
		<?if($sec['profil']==2):?>
		<p class="mention12star"><img src="images/flag.png" alt="12 Star city" /> <?=$sec['titre'] ?> <?=$admtext->getText("mention12star",$lang->getlangid());?></p>
		<?endif;?>
		<?if($sec['texte'] != null):?>
		<div class="texte"><?=html_entity_decode($sec['texte'],ENT_QUOTES, 'UTF-8') ?></div>
		<?endif;?>
		
		<?if($sec['profil']==2):?>
		
		<? $query = "SELECT c.*,cl.texte FROM `campagne` c LEFT JOIN `campagne_lang` cl ON c.id=cl.campagne WHERE cl.lang=".$lang->getlangid()." AND section = ".$_GET['id']." AND edition=".$this_edition['id']; 
		$campagne=$db->select_array($query);
		if($campagne['valide'] == '1' && $campagne['texte'] != null) {
		?>
		<h3><?=$admtext->getText("campagne",$lang->getlangid())?></h3>
		<div class="texte"><?=html_entity_decode($campagne['texte'],ENT_QUOTES, 'UTF-8');?></div>
		
		<?
		}
		endif;
		
		$query= "SELECT * FROM `response_champ` r LEFT JOIN `response_champ_lang` rl ON r.id=rl.response WHERE r.section=".$sec['id']." AND rl.lang=".$lang->getlangid()." AND edition=".$this_edition['id']; 
		$response=$db->select_array($query);
		if($response['valide'] == '1' && $response['texte'] != null) {
		?>
		<div class="texte questions"><?=html_entity_decode($response['texte'],ENT_QUOTES, 'UTF-8');?></div>
		
		<?php } ?>

		<?$types_act=$obj_activite->getTypeActivite($sec['profil'],$lang->getlangid());
		foreach($types_act as $type_act){
			$activites=$obj_activite->getListActivite($sec['id'],$type_act['id'],$lang->getlangid(),$this_edition['id'],"front");
			if($activites!=""){
				echo '<h3>'.$type_act['libelle'].'</h3>';
				echo $activites;
			}
			
		}
		?>
	</div>
	<div class="droite">
		<!--galery-->
		<div class="options">
			
		</div>
		<div class="etiquette bg_profil_<?=$sec['profil']?>">
			<?=$profil->getLibelle($sec['profil']) ?>
		</div>
		<div style="clear:both"></div>
		<div class="imagessection bg_profil_<?=$sec['profil']?>">
		<?php
		if ($sec['photo1'] != null)
		{
		?>
		<a href="uploads/<?php echo $sec['photo1']; ?>" class="fgalerie" rel="gal"><img src="<?php echo thumb($sec['photo1'], 394,260, true) ?>" class="photo1" alt="Image du partenaire" /></a>
		<div class="miniatures">
		<?php
		if ($sec['photo2'] != null) echo "<a href=\"uploads/".$sec['photo2']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($sec['photo2'], 129,89, true)."\" class=\"minimargin1\" /></a>";
		if ($sec['photo3'] != null) echo "<a href=\"uploads/".$sec['photo3']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($sec['photo3'], 129,89, true)."\" class=\"minimargin2\" /></a>";
		if ($sec['photo4'] != null) echo "<a href=\"uploads/".$sec['photo4']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($sec['photo4'], 129,89, true)."\" class=\"minimargin3\" /></a>";
		?>
		</div>
		<?php
		}
		else {
		?>
				<div><img src="images/noimg.jpg" class="photo1" alt="SEDL" style="margin-bottom: 3px;" /></div>
		<?php
		}
		?>
		</div>
		
		<?if($sec['profil']!=3 && $sec['population']!=""):?>
		<div class="info_bas">
			<div class="titre bg_profil_<?=$sec['profil']?>"><?=$admtext->getText("population",$lang->getlangid())?></div>
			<div class="value"><?=$sec['population']?> <?=$admtext->getText("citizens",$lang->getlangid())?></div>
		</div>
		<? endif; ?>
		
		<? if($sec['website']!=""): ?>
			<div class="info_bas">
				<div class="titre bg_profil_<?=$sec['profil']?>"><?=$admtext->getText("website",$lang->getlangid())?></div>
				<div class="value"><?=$sec['website']?></div>
			</div>
		<? endif; ?>
	</div>
</div>

</div>

</body>
</html>

Zerion Mini Shell 1.0