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

125 lines
4.1 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 = "fiches-produits";
/*-----------------------------------------------------*/
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">fiches produits & poster gamme</span>
</div>
<div class="page_menu">
<a href="nouveautes.php"><span>Nouveautés</span></a>
<a href="fiches-produits.php" class="current"><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 = getFrontProduits();
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&type=produit" class="download_all">TÉLÉCHARGEZ LENSEMBLE DES FICHES PRODUITS</a>
</div>
<div class="clear"></div>
<?php
$poster = getFrontPosterGamme();
?>
<div class="produitItem poster">
<div class="category"><div><?php echo $poster -> category; ?></div></div>
<div class="description">
<div class="txt"><?php echo $poster -> description; ?></div>
</div>
<div class="btns">
<a href="mailto:?body=<?php echo $GLOBALS['site_url']; ?>file=files/produits/pdf/poster_gamme.pdf" class="send">envoyer</a>
<a href="#pdf_viewer?file=files/produits/pdf/poster_gamme.pdf" rel="popin" class="pdf">voir le poster</a>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript">
//clear cache image
/*
$(".produitItem .description").each(function(index, element) {
var bg = $(this).css("background-image");
bg = bg.split('url("').join('');
bg = bg.split('")').join('');
bg = bg +"?noCache=" + (new Date()).getTime();
bg = 'url("' + bg + '")';
$(this).css("background-image",bg);
});
*/
$(".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");
/*-----------------------------------------------------*/
?>