%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/templates/newsletter/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/templates/newsletter/section_mail.php

<? include_once ("inc/init.php"); ?>
<tr><td class="ariane" style="clear:both"><a href="<?=$url_site.$lang?>/<?=$sec['pays'];?>-pays.html"><img src="<?=$url_site?>images/icons/<?=strtolower($sec['code_iso']);?>.png" alt="<?=$sec['name'];?>"/> <span class="pays_lib"><?=$sec['name'] ?></span></a> <span class="sup_section_lib bg_profil_<?=$sec['profil']?>"><a href="<?=$url_site.$lang?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><?=substrwords($sec['titre'],65) ?></a></span></td></tr>
<tr><td class="page_section" style="clear:both">
	<?if ($sec['photo1'] != null):?>
	<a href="<?=$url_site.$lang?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><img src="<?php echo $url_site.thumb($sec['photo1'], 180,119, true) ?>" class="photo1 border_profil_<?=$sec['profil']?>" alt="Image du partenaire" /></a>
	<?endif;?>
	<div class="gauche">
		<h1><a href="<?=$url_site.$lang?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><?=$sec['titre'] ?></a></h1>
		
		<p class="profil"><?if($sec['profil']==2):?><img src="<?=$url_site?>/images/miniflag.png" alt="12 Star city" /> <?endif;?><?=$sec['titre']?> <?=$lg['is_a'][$lang]?> <?=$lg['profil_'.$sec['profil']][$lang]?></p>
		
		<!--<?if($sec['texte'] != null):?>
		<div class="texte"><?=html_entity_decode($sec['texte'],ENT_QUOTES, 'UTF-8') ?></div>
		<?endif;?>-->
		<?
		$db = new BaseOps;
		$objprofil = new Profil;
		$edition = new Edition;
		$activite = new Activite;
		$this_edition=$edition->getCurrentEdition("front",$id_lang);
		$html="";
		$query="SELECT s.*,sl.titre,sl.permalien FROM `section` s LEFT JOIN `section_lang` sl ON sl.section=s.id WHERE sl.lang=".$id_lang." AND s.id=".$sec['id'];
		if($db->isres($query)) {
		$sec = $db->select_array($query);
		
			
		if($db->count($query)>0){
			$html.='<ul class="acts">';
			$types_act=$activite->getTypeActivite($sec['profil'],$id_lang);
			$total=0;
			foreach($types_act as $type_act){
				$activites=$activite->getListActivite($sec['id'],$type_act['id'],$id_lang,$this_edition['id'],"newsletter","all",1,$url_site);
				if($activites!=""){
					$html.=$activites;
					$total++;
				}
			}
			if($total>0){
				$html.='<li class="ligne_activite"><a href="'.$url_site.$lang.'/'.$sec['id'].'-'.$sec['permalien'].'/">'.lang("all_activities").'</a></li>';
			}
			$html.='</ul>';
		}
		
		echo $html; } ?>
	</div>
</td></tr>

Zerion Mini Shell 1.0