%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/droite - Copie.php

<section id="droite">

<?php
$col_edition=$edition->getCurrentEdition("front",$lang->getlangid());
$obj_colonne=new Colonne;

$db = new BaseOps;
$query = "SELECT * FROM `encart` ORDER BY ordre";
if( $db->isres($query) )
{
	$result = $db->q($query);
	$nb = 0;
	while( $data = mysql_fetch_assoc($result)) {
		$query = "SELECT * FROM `encart_lang` WHERE encart = ".$data['id']." AND lang = ".$lang->getlangid();
		$datalang = $db->select_array($query);
		if($data['type']=="texte"){
			
?>
			<article class="bloc_colonne <?=$class?>" style="background-color: #<?=$data['couleur_fond']; ?>">
				<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?php echo $datalang['titre']; ?></h3>
				<div><?=htmldecode($datalang['texte']); ?></div>
			</article>
<?php
		}
		elseif($data['type']=="event"){
			
			$actus=$page->liste_calendar(false, 3,$lang->id(),date("Y-m-d"));
			if($actus==null){
				$actus=$page->liste_calendar(false, 3,$lang->id());
			
			}
			
			?>
			<article class="bloc_colonne droite_news">
				<h3 class="etiquette" style="color: #061e29"><?=$trad->t('Next events','global',$lang->getlang())?></h3>
				<? if($actus==null):?>
					<?=$trad->t('No events soon','global',$lang->getlang())?>
					
				<? else :
					foreach ($actus as $actu):?>
						<p><a href="<?=$lang->getlang();?>/event/<?=$actu['id_page']?>-<?=$actu['permalien']?>.html"><span class="orange"><?=dateFr($actu['date_debut'])?></span> <?=$actu['titre']?></a></p>
					<? endforeach;?>
					<p><strong>&raquo; <a href="<?=$lang->getlang();?>/calendar/"><?=$trad->t('Calendar','global',$lang->getlang())?></a></strong></p>
				<? endif;?>
			</article>
			<?
		}
		elseif($data['type']=="search"){
			
			?>
			<article class="bloc_colonne droite_search">
				<form id="search_form" action="<?php echo $lang->getlang(); ?>/search.html" method="get" class="form">
					<h3 class="etiquette" style="color: #061e29"><?=$trad->t('Search','global',$lang->getlang())?></h3>
					<input type="text" value="<?=(isset($_GET['keyword'])?$_GET['keyword']:"")?>" class="keyword_search" name="keyword" /><input type="submit" value="" class="submit_search" />
				</form>
			</article>
			<?
		}
		elseif($data['type']=="newsletter"){
			
			?>
			<article class="bloc_colonne droite_newsletter">
				<h3 class="etiquette" style="color: #061e29"><?=$trad->t('Newsletter','global',$lang->getlang())?></h3>
				<a href="<?php echo $lang->getlang(); ?>/newsletter.html"><img src="images/mail.png" alt="newsletter" /></a>&nbsp;&nbsp;
				<a href="<?php echo $lang->getlang(); ?>/newsletter.html"><?=$trad->t('Register to newsletter','global',$lang->getlang())?></a>
			</article>
			<?
		}
		
		elseif($data['type']=="traduction"){
			
			?>			
			<article id="google_translate_element" class="bloc_colonne <?=$class?>" style="background-color: #<?=$data['couleur_fond']; ?>">
				<!--<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?=$datalang['titre']; ?></h3>-->
				
			</article>
			<script type="text/javascript">

			function googleTranslateElementInit() {
			  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
			}
			</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
			<?
		}
		elseif($data['type']=="partenaire"){
			
			$bloc1=$obj_colonne->getUneSectionCol($col_edition['id'],1,$lang->getlangid());
			?>	
			<h3 style="font-size:23px;" class=""><?=$admtext->getText("titrecol",$lang->getlangid());?></h3>			
			<article class="bloc_colonne <?=$class?>" style="background-color: #<?=$data['couleur_fond']; ?>">
				<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?php echo $datalang['titre']; ?></h3>
				<div><?=$bloc1?></div>
			</article>
			<?
			
			
		}
		elseif($data['type']=="12_etoiles"){
			$bloc2=$obj_colonne->getUneSectionCol($col_edition['id'],2,$lang->getlangid());
			?>			
			<article class="bloc_colonne <?=$class?>" style="background-color: #<?=$data['couleur_fond']; ?>">
				<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?php echo $datalang['titre']; ?></h3>
				<div><?=$bloc2?></div>
			</article>
			<?
		}
		elseif($data['type']=="associations"){
			$bloc3=$obj_colonne->getUneSectionCol($col_edition['id'],3,$lang->getlangid());
			?>			
			<article class="bloc_colonne <?=$class?>" style="background-color: #<?=$data['couleur_fond']; ?>">
				<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?php echo $datalang['titre']; ?></h3>
				<div><?=$bloc3?></div>
			</article>
			<?
		}
		elseif($data['type']=="archives"){
			$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';
			$db = new BaseOps;
			$old_editions=$db->select_arrays($query);
			if(count($old_editions)>0):?>
				<article class="bloc_colonne old_edition" style="background-color: #<?=$data['couleur_fond']; ?>">
					<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?=$admtext->getText("old_editions",$lang->getlangid());?></h3>
					<ul>
						<? 
						foreach ($old_editions as $old_edition):?>
							<li>
								<?if(!isset($_GET["edition"])):
									$monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>
									<a href="<?=$monUrl?>?edition=<?=$old_edition['edition']?>"><?=$admtext->getText("edition",$lang->getlangid());?> <?=date("Y", strtotime($old_edition['date_debut']))?> : <?=$old_edition['titre']?></a>
								<? else:?>
									<? $monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
									$newurl = preg_replace("/edition=\d+/", "edition=".$old_edition['edition'], $monUrl);?>
									<a href="<?=$newurl?>"><?=$admtext->getText("edition",$lang->getlangid());?> <?=date("Y", strtotime($old_edition['date_debut']))?> : <?=$old_edition['titre']?></a>
								<? endif;?>
							</li>
						<? endforeach;?>
					</ul>
					
				</article>
			<? endif; 
		}
		elseif($data['type']=="archives_news"){
			$query='SELECT * FROM newsletter WHERE envoye=1 AND lang='.$lang->getlangid().' ORDER BY `date` DESC LIMIT 1';
			$db = new BaseOps;
			$newsletters=$db->select_arrays($query);
			if(count($newsletters)>0):?>
				<article class="bloc_colonne" style="background-color: #<?=$data['couleur_fond']; ?>">
					<h3 class="etiquette" style="color: #<?=$data['couleur']; ?>"><?=$admtext->getText("archive_newsletter",$lang->getlangid());?></h3>
					<ul>
						<? 
						foreach ($newsletters as $newsletter):?>
							<li>
								<a href="<?=$url_site.$lang->getlang()?>/archive-newsletter-<?=$newsletter['id_newsletter']?>/"><?=$newsletter['titre']?> <?=date("d/m/Y",strtotime($newsletter['date']))?></a>
							</li>
						<? endforeach;?>
						<li>
							<a href="<?=$url_site.$lang->getlang()?>/archive_newsletters/"><?=$admtext->getText("toutes_les_newsletters",$lang->getlangid());?></a>
						</li>
					</ul>
					
				</article>
			<? endif; 
		}
		else{
			//social?>
			<article class="droite_social">
				<!--<a target="_blank" href="https://www.facebook.com/RomaAllianceCoE"><img src="images/logo_fb.png" alt="facebook" /></a>
				<a target="_blank" href="https://twitter.com/RomaAllianceCoE"><img src="images/logo_twitter.png" alt="twitter" /></a>-->
				<a target="_blank" href="<?=$lang->getlang();?>/rss/all.html"><img src="images/logo_rss.png" alt="rss" /></a>
			</article>
			<?
		}
	}
}
?>



</section>

<section id="gauche">

Zerion Mini Shell 1.0