echo "<tr valign=\"top\">\n"; echo "<td align=\"center\">\n"; if ($popup == 'yes') { echo "<a href=\"images/" . $data[1] . ".{$large_ext}\" id=\"popup1\" title=\"" . $data[2] . "\"><img class=\"imgproduct\" src=\"th_images/th_" . $data[1] . ".{$th_ext}\" border=\"0\" width=\"{$nwidth}\" height=\"{$nheight}\" align=\"top\" OnError=\"this.src='img/noimage.jpg';\"></a>"; echo "<br>"; echo '<a href="images/' . $data[1] . '.' . $large_ext . '" id="popup1" title="' . $data[2] . '"><img src="Icons/zoom_in.png" title="' . $lang['click_to_elarge'] . '" alt="' . $data[2] . '" border="0" align="absmiddle"></a> <a href="images/' . $data[1] . '.' . $large_ext . '" id="popup1" title="' . $data[2] . '" class="zoom">' . $lang['button_zoom'] . '</a>'; } else { echo "<a href=\"{$link}\"><img class=\"imgproduct\" src=\"th_images/th_" . $data[1] . ".{$th_ext}\" width=\"{$nwidth}\" height=\"{$nheight}\" border=\"0\" align=\"top\" OnError=\"this.src='img/noimage.jpg';\"></a>"; } echo "</td>\n"; echo "<td width=\"90%\">\n"; echo "<center><span class=\"priceproduct\">" . $data[2] . "</span></center>"; if ($catalog == 'no' || isset($_SESSION["reseller_login"])) { echo @debutchaine(trim($data[20]), $nb_words); } else { echo "<div id=\"catalog_mode\">" . @debutchaine(trim($data[20]), $nb_words) . "</div>\n"; } if ($catalog == 'no' || isset($_SESSION["reseller_login"])) { if ($data[18] == 'yes') { echo '<div id="download">'; echo $lang['product_download']; echo '</div>'; } } else { echo "<div id=\"catalog\"><input type=\"button\" value=\"" . $lang['display_product_item'] . "\" onClick=\"location.href='{$link}'\" class=\"displayproduct\"></div>\n"; } echo "</td>\n"; echo "<td width=\"10%\">\n"; if ($catalog == 'no' || isset($_SESSION["reseller_login"])) { echo "<table border=\"0\" width=\"100%\">\n"; echo "<tr valign=\"top\">\n";
if (in_array($res03['autorisation'], $membre_groupes)) { $visible = '1'; } } echo $res03['autorisation']; //AFFICHAGE if ($visible == '1') { $idn1 = $donnees['id']; $auteur1 = $donnees['auteur']; $texte1 = $donnees['texte']; $titre1 = $donnees['titre']; $date1 = stripslashes($donnees['date']); $date2 = explode("-", $date1); $visible = '0'; $nb_mots = '10'; $texte1 = debutchaine($texte1, $nb_mots, $idn1); ?> <div class="media"> <a class="pull-left" href="javascript:;"> <img class=" " src="02-IMAGES/blog-thumb-1.jpg" alt=""> </a> <div class="media-body"> <h3><p class="media-heading text-primary"><?php echo $titre1; echo $res03['autorisation']; ?> </p></h3> <?php echo $texte1; ?> </div>
} @($cat = $_GET['cat']); @($subcat = $_GET['prod']); @($item = $_GET['item']); if (isset($_GET['item']) && file_exists("categories/" . $subcat . "/" . $item . ".dat")) { $data = @file_get_contents("categories/" . $subcat . "/" . $item . ".dat"); @($navbar = 'cat=' . $cat . '&prod=' . $subcat . '&item=' . $item); $data = explode('||', $data); @($category = $data[8] == 'none' ? $data[7] : $data[8]); $encode_url = $data[0] . '|' . $data[1] . '|' . $category . '|' . $subcat . '|' . $data[2] . '|' . $data[16] . '|' . $data[17] . '|spare|' . $currency . '|' . $data[6]; $encode = base64_encode($encode_url); if ($data[14] != 'null') { $meta_keywords = $data[14]; } if ($data[15] == 'null') { $meta_description = debutchaine($data[20], 20); } else { $meta_description = $data[15]; } $meta_title = $data[2]; } else { $msg = $lang["no_records"]; $meta_title = $title; } function thumbsize($dir, $thumbsize) { if (file_exists($dir)) { $ImgSize = getimagesize($dir); $width_orig = $ImgSize[0]; $height_orig = $ImgSize[1]; if ($width_orig <= $height_orig) {