garancia-pharmaciens/httpdocs/nouveautes.php
2017-05-30 17:55:38 +02:00

96 lines
3.0 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*-----------------------------------------------------*/
include_once("_inc/config.php");
/*-----------------------------------------------------*/
$_RUBRIQUE = "nouveautes";
/*-----------------------------------------------------*/
include_once("_inc/assets/metas.php");
include_once("_inc/assets/top.php");
/*-----------------------------------------------------*/
?>
<div class="page">
<div id="arianne">
<a href="home.php">Accueil</a> |
<a href="nouveautes.php">Formez-vous</a> |
<span class="current">Nouveautés</span>
</div>
<div class="page_menu">
<a href="nouveautes.php" class="current"><span>Nouveautés</span></a>
<a href="fiches-produits.php"><span>Fiches produits</span></a>
<a href="ecole-des-sorciers.php"><span>L'école des <img src="_img/produits/sorciers.png" alt="sorciers" /></span></a>
</div>
<div class="clear"></div>
<div class="produits_contents">
<?php
$items = getFrontNewProduits();
foreach($items as $item){
?>
<div class="produitItem">
<div class="category"><div><?php echo $item -> category; ?></div></div>
<div class="description" style="background-image:url(files/produits/thumbs/<?php echo $item -> id; ?>.jpg);">
<div class="txt"><?php echo $item -> description; ?></div>
</div>
<div class="btns">
<?php
$pdfPath = "files/produits/pdf/" . $item -> id . ".pdf";
if(file_exists($pdfPath)){
?>
<a href="mailto:?body=<?php echo $GLOBALS['siteRoot'] . $pdfPath; ?>" class="send">envoyer</a>
<a href="#pdf_viewer?file=<?php echo $pdfPath; ?>" rel="popin" class="pdf">voir la fiche</a>
<?php }else{ ?>
<em>fiche bientôt disponible</em>
<?php } ?>
</div>
<div class="clear"></div>
</div>
<?php } ?>
<div class="clear"></div>
<div class="center" style="margin:10px 0 40px 0;">
<a href="?donwloadPack=produits/pdf&packName=fiches_produits&filter=newProducts&type=produit" class="download_all">TÉLÉCHARGEZ LENSEMBLE DES FICHES nouveautés</a>
</div>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript">
$(".produitItem .category").each(function(index, element) {
var d = $(this).children("div");
var mt = Math.round((44 - d.innerHeight()) / 2);
d.css("margin-top",mt + "px");
});
$(".produitItem .btns a").mouseover(function(e) {
TweenLite.to($(this),0.1,{backgroundColor:"#b2d11a"});
});
$(".produitItem .btns a").mouseout(function(e) {
TweenLite.to($(this),0.3,{backgroundColor:"#ebebeb"});
});
</script>
<?php
/*-----------------------------------------------------*/
include_once("_inc/assets/footer.php");
/*-----------------------------------------------------*/
?>