Flux d’activité

Flux d’activité

  1. Mag a ajouté un message dans un sujet  Fatal error   

    J'ai trouvé cette fonction qui s'en rapproche


    function construit_arbo_cat(&$sortie, &$preselectionne, $parent=0, $indent="") { /* Parcours récurcivement l'arbre des catégories, commençant d'un parent * il descend dans l'arbre et affiche les options pour une liste de boîtes de sélection * Les élément preselectionnés sont marqué comme tel */ $qid = mysql_query("SELECT id, nom, parent_id FROM peel_categories WHERE parent_id = $parent ORDER BY nom"); if ($qid) { if (mysql_num_rows($qid) > 0) { while ($cat = mysql_fetch_array($qid)) { $selectionne = in_array($cat['id'], $preselectionne) ? "selected" : ""; $sortie .= "<option value=\"" . $cat['id'] . "\" $selectionne>$indent" .stripslashes($cat['nom'])."</option>"; if ($cat['id'] != $parent) { construit_arbo_cat($sortie, $preselectionne, $cat['id'], $indent."&nbsp;&nbsp;"); } } } }
    • 0
  2. Willy a ajouté un message dans un sujet  Fatal error   


    HELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLP ;)

    Car là j'ais du taff.
    • 0
  3. paulanna a ajouté un message dans un sujet  Définition des constantes   

    dans les fichiers de langues lib/lang/
    • 0
  4. Mag a ajouté un message dans un sujet  Fatal error   


    ok, je cherche
    • 0
  5. Willy a ajouté un message dans un sujet  Fatal error   



    Il y a 123 et le message d'erreur quand ca plante (c'est le principal, il faut regarder quand ca plante...)

    Pour trouver la fonction je ne sais pas peut etre dans fonctions.php ou dans modeles/default/template.php.

    Willy
    • 0
  6. Mag a ajouté un message dans un sujet  Fatal error   


    non, pas encore
    • 0
  7. paulanna a ajouté un message dans un sujet  Fatal error   

    le problème est il réglé ?
    • 0
  8. Willy a ajouté un message dans un sujet  Top vente   

    Essayez avec (apres avoir fait une copie de votre haut.php avant) :



    <?php if (!defined('IN_PEEL')) { echo("Tentative de hacking ! <br />Hacking attempt !"); exit(); } if (!defined('IN_STANDBY')) { echo "<div align=\"center\" style=\"font-family:tahoma,verdana;font-size:13px;font-weight:bold;\"><br /><br />Le site $site est actuellement en cours de maintenance pour quelques minutes.<br /><br />Merci de votre compr&eacute;hension.</div>"; exit(); } /* Traitement des stocks périmés */ $sqlStockTemp = "SELECT * FROM peel_stocks_temp"; $resStockTemp = mysql_query($sqlStockTemp); if (mysql_num_rows($resStockTemp) > 0 ) { while ($StockTemp = mysql_fetch_array($resStockTemp)) { $temps = time(); $tempsstock = strtotime($StockTemp['o_timestamp']); $nbmin=($temps - $tempsstock)/60;//Nombre de jours entre les deux if ($nbmin > $timemax) { mysql_query("DELETE FROM peel_stocks_temp WHERE couleur_id = '".$StockTemp['couleur_id']."' AND taille_id = '".$StockTemp['taille_id']."' AND produit_id = '".$StockTemp['produit_id']."'"); } } } ?> <!doctype html public "-//W3C//Dtd HTML 4.01 transitional//EN"> <html dir="Ltr" lang="fr"> <html> <head> <?php $sql_Meta = "SELECT * FROM peel_meta WHERE id = '1'"; // On initialise, recherche des meta par d&eacute;fault if (!empty($_GET['catid']) && empty($_GET['id'])) { // Si on est dans une cat&eacute;gorie $sql_Meta = "SELECT nom_".$_SESSION['langue']." as meta_titre, description_".$_SESSION['langue']." as meta_desc, meta_key FROM peel_categories WHERE id = '".intval($_GET['catid'])."'"; } elseif (!empty($_GET['id'])) { // Si on est dans une fiche produit $sql_Meta = "SELECT nom_".$_SESSION['langue']." as meta_titre, descriptif_".$_SESSION['langue']." as meta_desc, meta_key FROM peel_produits WHERE id = '".intval($_GET['id'])."'"; } $query_Meta = mysql_query($sql_Meta); // Query de la requ&ecirc;te $m = mysql_fetch_array($query_Meta); // R&eacute;sultant dans un tableau if (!empty($m['meta_titre'])) { // Si toutes les balises sont remplies echo "<title>".trim(strip_tags(stripslashes($m['meta_titre'])))."</title>\n"; echo "<meta name=\"Keywords\" content=\"".trim(strip_tags(stripslashes($m['meta_key'])))."\">\n"; echo "<meta name=\"description\" content=\"".trim(strip_tags(stripslashes($m['meta_desc'])))."\">\n"; } else { // Sinon on utilise les meta par d&eacute;fault $sql_Meta = "SELECT * FROM peel_meta WHERE id = '1'"; $query_Meta = mysql_query($sql_Meta); $m = mysql_fetch_array($query_Meta); echo "<title>".trim(strip_tags(stripslashes($m['meta_titre'])))."</title>\n"; echo "<meta name=\"Keywords\" content=\"".trim(strip_tags(stripslashes($m['meta_key'])))."\">\n"; echo "<meta name=\"description\" content=\"".trim(strip_tags(stripslashes($m['meta_desc'])))."\">\n"; } ?> <meta name="robots" content="All"> <meta http-equiv="content-language" content="french"> <meta name="classification" content="script php"> <meta name="author" content="peel.fr"> <meta name="publisher" content="peel.fr"> <meta http-equiv="expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta name="robots" content="index, follow, all"> <meta name ="search engines" content="AltaVista, AOLNet, Infoseek, Excite, Hotbot, Lycos, Magellan, LookSmart, CNET, voila, google, yahoo, alltheweb, msn, netscape, nomade, tiscali"> <meta name="Updated" content="daily"> <meta name="revisit-after" content="10 days"> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <base href="<?echo $wwwroot;?>/"> <link rel="stylesheet" type="text/css" href="<?echo $repertoire_css?>/style.css"> <style type="text/css" media="screen"> <!-- <?php $sqlCss = "SELECT * FROM peel_css WHERE id = '1'"; $resCss = mysql_query($sqlCss); if ($resCss) { $Css = mysql_fetch_object($resCss); echo "body {\n"; if (!empty($Css->background)) {echo "background-color: $Css->background;\n";} if (!empty($Css->backgroundimage)) {echo "background_images: url('".$repertoire_images."/".$Css->backgroundimage."');\n";} if (!empty($Css->textsize)) {echo "font-size: $Css->textsize;\n";} if (!empty($Css->textcolor)) {echo "color: $Css->textcolor;\n";} if (!empty($Css->textfont)) {echo "font-family: $Css->textfont;\n";} echo "}\n"; if (!empty($Css->textsize)) {echo ".normal { font-size: $Css->textsize;}\n";} if (!empty($Css->textcolor)) {echo ".normal { color: $Css->textcolor;}\n";} if (!empty($Css->textfont)) {echo ".normal { font-family: $Css->textfont;}\n";} if (!empty($Css->textsize)) {echo ".label { font-size: $Css->textsize;}\n";} if (!empty($Css->textcolor)) {echo ".label { color: $Css->textcolor;}\n";} if (!empty($Css->textfont)) {echo ".label { font-family: $Css->textfont;}\n";} if (!empty($Css->textsize)) {echo ".texte { font-size: $Css->textsize;}\n";} if (!empty($Css->textcolor)) {echo ".texte { color: $Css->textcolor;}\n";} if (!empty($Css->textfont)) {echo ".texte { font-family: $Css->textfont;}\n";} if (!empty($Css->titresize)) {echo ".titre { font-size: $Css->titresize;}\n";} if (!empty($Css->titrecolor)) {echo ".titre { color: $Css->titrecolor;}\n";} if (!empty($Css->titrefont)) {echo ".titre { font-family: $Css->titrefont;}\n";} if (!empty($Css->tetieresize)) {echo ".tetiere { font-size: $Css->tetieresize;}\n";} if (!empty($Css->tetierecolor)) {echo ".tetiere { color: $Css->tetierecolor;}\n";} if (!empty($Css->tetierefont)) {echo ".tetiere { font-family: $Css->tetierefont;}\n";} if (!empty($Css->tetierebackground)) {echo ".tetiere { background: $Css->tetierebackground;}\n";} if (!empty($Css->tetieresize)) {echo ".entete { font-size: $Css->tetieresize;}\n";} if (!empty($Css->tetierecolor)) {echo ".entete { color: $Css->tetierecolor;}\n";} if (!empty($Css->tetierefont)) {echo ".entete { font-family: $Css->tetierefont;}\n";} if (!empty($Css->tetierebackground)) {echo ".entete { background: $Css->tetierebackground;}\n";} if (!empty($Css->alink)) {echo "a:link { color: $Css->alink;}\n";} if (!empty($Css->vlink)) {echo "a:visited { color: $Css->vlink;}\n";} if (!empty($Css->hlink)) {echo "a:hover { color: $Css->hlink;}\n";} } ?> --> </style> <script language="text/javascript" SRC="<?echo $wwwroot?>/lib/js/filesearchhover.js" type="text/javascript"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/window.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/overlib.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/stock.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/top.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/controle.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/ctrl.js"></script> <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/csspopup.js"></script> <script type="text/javascript" language="javascript"> /** * marks all rows and selects its first checkbox inside the given element * the given element is usaly a table or a div containing the table or tables * * @param container DOM element */ var marked_row = new Array; function markAllRows( container_id ) { var rows = document.getElementById(container_id).getElementsByTagName('tr'); var unique_id; var checkbox; for ( var i = 0; i < rows.length; i++ ) { checkbox = rows[i].getElementsByTagName( 'input' )[0]; if ( checkbox && checkbox.type == 'checkbox' ) { unique_id = checkbox.name + checkbox.value; if ( checkbox.disabled == false ) { checkbox.checked = true; if ( typeof(marked_row[unique_id]) == 'undefined' || !marked_row[unique_id] ) { rows[i].className += ' marked'; marked_row[unique_id] = true; } } } } return true; } /** * marks all rows and selects its first checkbox inside the given element * the given element is usaly a table or a div containing the table or tables * * @param container DOM element */ function unMarkAllRows( container_id ) { var rows = document.getElementById(container_id).getElementsByTagName('tr'); var unique_id; var checkbox; for ( var i = 0; i < rows.length; i++ ) { checkbox = rows[i].getElementsByTagName( 'input' )[0]; if ( checkbox && checkbox.type == 'checkbox' ) { unique_id = checkbox.name + checkbox.value; checkbox.checked = false; rows[i].className = rows[i].className.replace(' marked', ''); marked_row[unique_id] = false; } } return true; } </script> <script type="text/javascript"> function gotobrand(ident){ document.location="<?=$wwwroot?>/achat/brand.php?"+ident; } function gotocategorie(ident){ document.location="<?=$wwwroot?>/achat/index.php?catid="+ident; } </script> <?php $background = "#FFFFFF"; /* Fonction qui va chercher la couleur de la catégorie */ if (!empty($_GET['catid'])) { $sqlBack = "SELECT color FROM peel_categories WHERE id = '".intval($_GET['catid'])."'"; $resBack = mysql_query($sqlBack); if (mysql_num_rows($resBack) > 0) { $Back = mysql_fetch_object($resBack); if (!empty($Back->color)) {$background = $Back->color;} } } ?> </head> <body> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> <div align="center"> <table border="0" width="960" cellspacing="0" cellpadding="0" bgcolor="white"> <tr> <td align="left" valign="top" class="entetetitre"> <div style="padding-top:5px;padding-bottom:5px;"> <?php if (!empty($logo)) { ?> <a href="index.php"><img align="middle" src="<?echo $logo ?>" alt="<?echo $site ?>" border="0"></a> <? } else { echo $site; } ?> </div> </td> </tr> <tr> <td align="center"> <?php $resProdRollover = mysql_query("SELECT id, nom_".$_SESSION['langue']." as nom, image1, prix FROM peel_produits WHERE on_top = 1 AND etat = 1 ORDER BY RAND() LIMIT 30") or DIE('Une erreur de connexion &agrave; la base s est produite ' . __LINE__ . '.<p>' . MYSQL_ERROR()); if (mysql_num_rows($resProdRollover)> 1) { ?> <script type="text/javascript"> var leftrightslide=new Array() var finalslide='' <?php if ($resProdRollover) { if (mysql_num_rows($resProdRollover)> 0) { $i = 0; while ($ProdRollover = mysql_fetch_array($resProdRollover)) { echo "leftrightslide[".$i."]='<a class=\"normal\" href=\"achat/produit_details.php?id=".$ProdRollover['id']."\"><img src=\"$repertoire_upload/".$ProdRollover['image1']."\" alt=\"".$ProdRollover['nom']."\" height=\"120\" /></a>'\n\r"; $i++; } } else { echo "leftrightslide[".$i."]=''\n\r"; } } $sqlProdRollover = ""; ?> /*********************************************** * Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ //Specify the slider's width (in pixels) var sliderwidth="866px" //Specify the slider's height var sliderheight="120px" //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=1 //configure background color: slidebgcolor="#FFFF33" //Specify gap between each image (use HTML): var imagegap=" " //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=5 ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=slidespeed leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>' var iedom=document.all||document.getElementById if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>') var actualwidth='' var cross_slide, ns_slide function fillup(){ if (iedom){ cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2 cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3 cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth cross_slide2.style.left=actualwidth+slideshowgap+"px" } else if (document.layers){ ns_slide=document.ns_slidemenu.document.ns_slidemenu2 ns_slide2=document.ns_slidemenu.document.ns_slidemenu3 ns_slide.document.write(leftrightslide) ns_slide.document.close() actualwidth=ns_slide.document.width ns_slide2.left=actualwidth+slideshowgap ns_slide2.document.write(leftrightslide) ns_slide2.document.close() } lefttime=setInterval("slideleft()",30) } window.onload=fillup function slideleft(){ if (iedom){ if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px" else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px" if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px" else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap } } if (iedom||document.layers){ with (document){ document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') if (iedom){ write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">') write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">') write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>') write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>') write('</div></div>') } else if (document.layers){ write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>') write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('</ilayer>') } document.write('</td></table>') } } </script> <?php } ?> </td> </tr> <tr> <td bgcolor="#666666"> <ul id="menudyn"> <li id="nav-1"><a href="index.php"><?echo HOME ?></a></li> <li id="nav-2"><a href="achat/new.php"><?echo NEWS ?></a></li> <li id="nav-3"><a href="achat/special.php"><?echo SPECIAL ?></a></li> <li id="nav-3"><a href="achat/flash.php"><?echo FLASH ?></a></li> <li id="nav-4"><a href="compte.php"><?echo COMPTE ?></a></li> <li id="nav-5"><a href="utilisateurs/contact.php"><?echo CONTACT ?></a></li> <li id="nav-6"><a href="achat/caddie_affichage.php"><?echo CADDIE ?></a></li> <?php if (est_identifie()) { echo "<li id=\"nav-7\"><a href=>".HELLO."&nbsp;".stripslashes($_SESSION['utilisateur']['prenom']) . " " . stripslashes($_SESSION['utilisateur']['nom_famille'])."</a></li>"; echo "<li id=\"nav-8\"><a class=\"menudyn\" href=\"$wwwroot/sortie.php\">".DECONNECT."</a></li>"; } else { echo "<li id=\"nav-7\"><a class=\"menudyn\" href=\"$wwwroot/membre.php\">".LOGIN."</a></li>"; echo "<li id=\"nav-8\"><a class=\"menudyn\" href=\"$wwwroot/utilisateurs/enregistrement.php\">".REGISTER."</a></li>"; } ?> <li id="nav-9"><a href="sitemap.php" class="normal"><?Echo SITEMAP?></a></li> <li id="nav-10"><a href="search.php" class="normal"><?Echo SEARCH?></li> </ul> </td> </tr> <tr> <td style="padding:5px;"> <form method="GET" action="achat/recherche.php" name="recherche"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="normal"> <?echo SEARCH?> : <input class="formulaire1" type="text" name="motclef" size="15" value="<?echo vb script:gotocategorie(this.options[this.selectedIndex].value)"> <option><?echo SEARCH_CATEGORY ?></option> <? $sql_cat = "SELECT * FROM peel_categories WHERE etat = '1' ORDER BY nom_".$_SESSION['langue'].""; $res_cat = mysql_query($sql_cat); if (mysql_num_rows($res_cat) > 0) { while ($cat = mysql_fetch_array($res_cat)) { echo "<option value=\"".$cat['id']."\">".stripslashes($cat['nom_'.$_SESSION['langue'].''])."</option>"; } } ?> </select> </td> <td align="left" class="normal" > <select name="brand" class="formulaire1" onChange="java script:gotobrand(this.options[this.selectedIndex].value)"> <option value=""><?echo SEARCH_BRAND;?></option> <?php $resBrand = mysql_query("SELECT id, nom_".$_SESSION['langue']." as nom FROM peel_marques WHERE etat = '1' ORDER BY position"); if($resBrand) { if (mysql_num_rows($resBrand)) { while($Brand = mysql_fetch_array($resBrand)) { if (!empty($Brand['nom'])) { echo "<option value=\"brand=".$Brand['id']."\""; echo ">".html_entity_decode($Brand['nom'])."</option>"; } } } } ?> </select> </td> <td> <a href="%3C?echo $_SERVER['PHP_SELF'];?&gt;?langue=fr"?>?langue=fr><img src="<?=$wwwroot?>/lib/flag/fr.gif" border="0" width="18" height="12"></a> &nbsp;<a href="%3C?echo $_SERVER['PHP_SELF'];?&gt;?langue=en"?>?langue=en><img src="<?=$wwwroot?>/lib/flag/gb.gif" border="0" width="18" height="12"></a> </td> </tr> </table> </td> </tr> </table> <!--style="border:1px solid #E9EBEA;"--> <table border="0" width="960" cellspacing="1" cellpadding="0" bgcolor="white"> <tr> <td width="220" valign="top" class="normal"> <!-- CADDIE --> <table border="0" cellspacing="0" cellpadding="0" width="220" style="border-top:1px solid #EEEEEE;border-left:1px solid #EEEEEE;border-right:1px solid #EEEEEE;padding-top:6px;padding-left:6px "> <tr><td class="normal" width="220"> <?php echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".CADDIE."</div>"; if ($_SESSION['caddie']->compte_elements() != 0) { echo "<table width=\"190\" cellpadding=\"0\" cellspacing=\"0\">"; foreach ($_SESSION['caddie']->articles as $i => $produitid) { $resProd = mysql_query("SELECT nom_".$_SESSION['langue']." as nom FROM peel_produits WHERE id = '".$produitid."'"); $Prod = mysql_fetch_object($resProd); $nom = html_entity_decode($Prod->nom); /*$nom = substr($nom, 0, 150); $nom = substr_replace($nom,'...',-3);*/ echo "<tr><td class=\"petit\" colspan=\"2\"><a href=\"achat/produit_details.php?id=".$produitid."\" class=\"petit\">".$nom."</a></td></tr><tr><td class=\"petit\" style=\"border-bottom: 1px solid #6b6b6b;\">Qte : ".$_SESSION['caddie']->quantite[$i]."</td><td class=\"petit\" style=\"border-bottom: 1px solid #6b6b6b;\">".fprix($_SESSION['caddie']->total_prix[$i])." &euro;</td></tr>"; } echo "</tr>"; if ($_SESSION['caddie']->total > 0) { echo (!empty($_SESSION['caddie']->cout_transport)) ? "<tr><td colspan=\"2\" class=\"label\">TRANSPORT : ".fprix($_SESSION['caddie']->cout_transport)." &euro;</td></tr>" : ""; echo "<tr><td colspan=\"2\" class=\"label\">TOTAL : ".fprix($_SESSION['caddie']->total)." &euro;</td></tr>"; } echo "<tr><td colspan=\"2\" align=\"center\"><a class=\"label\" href=\"achat/caddie_affichage.php\">".ORDER."</a></td></tr>"; echo "</table>"; if (vn($_SESSION['utilisateur']['remise_percent']) > 0) { echo REMISE." : ".$_SESSION['utilisateur']['remise_percent']." %"; } } else { echo EMPTY_CADDIE; } ?> <!-- FIN DE CADDIE --> </td></tr></table> <!-- CATALOGUE PRODUIT --> <table border="0" cellspacing="0" cellpadding="0" width="220" style="border-top:1px solid #EEEEEE;border-left:1px solid #EEEEEE;border-right:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;"> <tr><td class="normal" width="220"> <?php echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".CATALOG."</div>"; if (!isset($_GET['catid'])) { $catid = 0; } else {$catid = $_GET['catid']; } $frm['parent'] = array($catid); construit_menu_arborescent_cat($categorie_options, $frm['parent']); echo "<div style=\"padding:3px\">".$categorie_options."</div>"; ?> </td></tr> </table> <!-- FIN PRODUIT --> <!-- GUIDE PRATIQUE --> <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;"> <tr><td class="normal" width="220"> <?php echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".GUIDE."</div>"; if (!isset($_GET['rubid'])) { $rubid = 0; } else {$rubid = intval($_GET['rubid']); } $frm['parent'] = array($rubid); construit_menu_arborescent_rub($rubrique_options, $frm['parent']); echo "<div style=\"padding:3px\">".$rubrique_options; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/cgv.php\" class=\"normal\">Conditions de vente</a>"; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/contacts.php\" class=\"normal\">Contacts</a>"; if ($statusparrain == 1) { echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/parrain.php\" class=\"normal\">Conditions de parrainage</a>"; } if ($statusaffiliate == 1) { echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/affiliation.php\" class=\"normal\">Conditions d'affiliation</a>"; } echo "</div>"; ?> </td></tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;"> <tr><td class="normal" width="220" valign="top"> <?php echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".GIFT_CATALOGUE."</div>"; echo "<br />- <a href=achat/catalogue_cadeaux.php>".LOOK_CATALOGUE."</a>"; if (est_identifie()) { echo "<br /><br />- ".MY_GIFT_POINT." : ".$_SESSION['utilisateur']['points']; } ?> </td></tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;"> <tr><td class="normal" width="220"> <?php echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".ADHESION."</div>"; if ($statusretail == 1) { echo "<br /><li><a href=\"$wwwroot/utilisateurs/retailer.php\" class=\"normal\">".RETAILER."</a></li>"; } if ($statusaffiliate == 1) { echo "<li><a href=\"$wwwroot/utilisateurs/affiliate.php\" class=\"normal\">".AFFILIATE."</a></li><br />"; } if (est_identifie()) { if (a_priv("admin")) { echo "<li><a href=\"administrer/index.php\" class=\"label\">ADMINISTRER LE SITE</a></li>"; } } ?> <p align="center"> <img src="http://www.logos-magia.com/boutique/images/logo-thawte-revendeur.gif"></p> </td></tr> </table> </td> <td width="100%" valign="top" class="normal" bgcolor="<?echo $background;?>">

    Willy
    • 0
  9. Mag a ajouté un message dans un sujet  Fatal error   






    oui, c'est ce que j'ai marqué plus haut.
    En tout cas merci de votre patience
    • 0
  10. paulanna a ajouté un message dans un sujet  Les droit d'accès   

    ecris par exemple :

    if (est_identifie()) { if (a_priv("admin")||a_priv("redac")) { echo "<li><a href=\"administrer/index.php\" class=\"label\">ADMINISTRER LE SITE</a></li>"; } }

    avec cela tu donnes un accès au Back office si la personne à le privilège admin ou bien redac par exemple
    • 0
  11. Aquarelle a ajouté un message dans un sujet  Fatal error   

    Moi je vois 1234
    • 0
  12. Mag a ajouté un message dans un sujet  Fatal error   

    ou est-ce que je peux trouver "construit_menu_arborescent_cat"
    • 0
  13. Kaamo a ajouté un sujet dans Module PEEL Premium pour PEEL SHOPPING   

    Définition des constantes
    Bonjour,

    Je dois vraiment avoir les yeux bouchés de *** pour ne pas voir où sont définies ces constantes...Je suis obligé de venir chercher de l'aide afin de résoudre mon problème.

    Par exemple, dans la page /achat/fin_commande.php, il y a ces constantes : ORDER_RESUME, REFERENCE, PAYPAL, etc...

    J'aimerai savoir où elles sont définies.

    Merci de me proposer votre aide ;)
    • 3 réponses
    • 2 236 vues
  14. Baudouin a ajouté un message dans un sujet  Les droit d'accès   

    Bonjour Cedric & Willy,

    Merci beaucoup pour vos messages. Je ne vous cache cependant que je n'y ai pas compris grand chose.... non pas que ce soit mal expliqué, mais que je manque un peu (beaucoup) de maitrise du sujet.

    Cependant, je ne comprend pas pour quelle raison il n'est pas possible d'accorder plus ou moins de droits à un utilisateur, directement à partir de l'interface d'administration... puisque à priori la gestion des utilisateurs, ainsi que des droits d'accès est prévue.

    Cordialement,

    Baudouin
    • 0
  15. Willy a ajouté un message dans un sujet  Fatal error   

    Oui, mais il faut tester quand il y a l'erreur...

    Il y a 1 2 3, donc l'erreur est entre 3 et 4 , donc a la contruction de l'arborescence.

    Quel est le code de "construit_menu_arborescent_cat" ?

    Willy
    • 0
  16. Mag a ajouté un message dans un sujet  Fatal error   


    Merci pour l'info
    Maintenant j'ai 1234 sous nos produits
    • 0
  17. balam a ajouté un message dans un sujet  Top vente   


    Merci Willy,
    Ca marche pas, ca décale toute la page (si j'abuse, vous pouvez peut être me le mettre dans cette page haut.php??)
    <?php
    if (!defined('IN_PEEL'))
    {
    echo("Tentative de hacking ! <br />Hacking attempt !");
    exit();
    }

    if (!defined('IN_STANDBY'))
    {
    echo "<div align=\"center\" style=\"font-family:tahoma,verdana;font-size:13px;font-weight:bold;\"><br /><br />Le site $site est actuellement en cours de maintenance pour quelques minutes.<br /><br />Merci de votre compr&eacute;hension.</div>";

    exit();
    }


    /* Traitement des stocks périmés */

    $sqlStockTemp = "SELECT * FROM peel_stocks_temp";

    $resStockTemp = mysql_query($sqlStockTemp);

    if (mysql_num_rows($resStockTemp) > 0 ) {

    while ($StockTemp = mysql_fetch_array($resStockTemp)) {

    $temps = time();

    $tempsstock = strtotime($StockTemp['o_timestamp']);

    $nbmin=($temps - $tempsstock)/60;//Nombre de jours entre les deux

    if ($nbmin > $timemax) {

    mysql_query("DELETE FROM peel_stocks_temp WHERE couleur_id = '".$StockTemp['couleur_id']."' AND taille_id = '".$StockTemp['taille_id']."' AND produit_id = '".$StockTemp['produit_id']."'");

    }


    }

    }
    ?>

    <!doctype html public "-//W3C//Dtd HTML 4.01 transitional//EN">
    <html dir="Ltr" lang="fr">
    <html>
    <head>

    <?php

    $sql_Meta = "SELECT * FROM peel_meta WHERE id = '1'"; // On initialise, recherche des meta par d&eacute;fault

    if (!empty($_GET['catid']) && empty($_GET['id'])) { // Si on est dans une cat&eacute;gorie

    $sql_Meta = "SELECT nom_".$_SESSION['langue']." as meta_titre, description_".$_SESSION['langue']." as meta_desc, meta_key FROM peel_categories WHERE id = '".intval($_GET['catid'])."'";

    } elseif (!empty($_GET['id'])) { // Si on est dans une fiche produit

    $sql_Meta = "SELECT nom_".$_SESSION['langue']." as meta_titre, descriptif_".$_SESSION['langue']." as meta_desc, meta_key FROM peel_produits WHERE id = '".intval($_GET['id'])."'";

    }

    $query_Meta = mysql_query($sql_Meta); // Query de la requ&ecirc;te

    $m = mysql_fetch_array($query_Meta); // R&eacute;sultant dans un tableau

    if (!empty($m['meta_titre'])) { // Si toutes les balises sont remplies

    echo "<title>".trim(strip_tags(stripslashes($m['meta_titre'])))."</title>\n";

    echo "<meta name=\"Keywords\" content=\"".trim(strip_tags(stripslashes($m['meta_key'])))."\">\n";

    echo "<meta name=\"description\" content=\"".trim(strip_tags(stripslashes($m['meta_desc'])))."\">\n";

    } else { // Sinon on utilise les meta par d&eacute;fault

    $sql_Meta = "SELECT * FROM peel_meta WHERE id = '1'";

    $query_Meta = mysql_query($sql_Meta);

    $m = mysql_fetch_array($query_Meta);

    echo "<title>".trim(strip_tags(stripslashes($m['meta_titre'])))."</title>\n";

    echo "<meta name=\"Keywords\" content=\"".trim(strip_tags(stripslashes($m['meta_key'])))."\">\n";

    echo "<meta name=\"description\" content=\"".trim(strip_tags(stripslashes($m['meta_desc'])))."\">\n";

    }

    ?>

    <meta name="robots" content="All">
    <meta http-equiv="content-language" content="french">
    <meta name="classification" content="script php">
    <meta name="author" content="peel.fr">
    <meta name="publisher" content="peel.fr">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta name="robots" content="index, follow, all">
    <meta name ="search engines" content="AltaVista, AOLNet, Infoseek, Excite, Hotbot, Lycos, Magellan, LookSmart, CNET, voila, google, yahoo, alltheweb, msn, netscape, nomade, tiscali">
    <meta name="Updated" content="daily">
    <meta name="revisit-after" content="10 days">
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <base href="<?echo $wwwroot;?>/">

    <link rel="stylesheet" type="text/css" href="<?echo $repertoire_css?>/style.css">

    <style type="text/css" media="screen">
    <!--
    <?php

    $sqlCss = "SELECT * FROM peel_css WHERE id = '1'";

    $resCss = mysql_query($sqlCss);

    if ($resCss) {

    $Css = mysql_fetch_object($resCss);

    echo "body {\n";

    if (!empty($Css->background)) {echo "background-color: $Css->background;\n";}
    if (!empty($Css->backgroundimage)) {echo "background_images: url('".$repertoire_images."/".$Css->backgroundimage."');\n";}
    if (!empty($Css->textsize)) {echo "font-size: $Css->textsize;\n";}
    if (!empty($Css->textcolor)) {echo "color: $Css->textcolor;\n";}
    if (!empty($Css->textfont)) {echo "font-family: $Css->textfont;\n";}

    echo "}\n";

    if (!empty($Css->textsize)) {echo ".normal { font-size: $Css->textsize;}\n";}
    if (!empty($Css->textcolor)) {echo ".normal { color: $Css->textcolor;}\n";}
    if (!empty($Css->textfont)) {echo ".normal { font-family: $Css->textfont;}\n";}

    if (!empty($Css->textsize)) {echo ".label { font-size: $Css->textsize;}\n";}
    if (!empty($Css->textcolor)) {echo ".label { color: $Css->textcolor;}\n";}
    if (!empty($Css->textfont)) {echo ".label { font-family: $Css->textfont;}\n";}

    if (!empty($Css->textsize)) {echo ".texte { font-size: $Css->textsize;}\n";}
    if (!empty($Css->textcolor)) {echo ".texte { color: $Css->textcolor;}\n";}
    if (!empty($Css->textfont)) {echo ".texte { font-family: $Css->textfont;}\n";}

    if (!empty($Css->titresize)) {echo ".titre { font-size: $Css->titresize;}\n";}
    if (!empty($Css->titrecolor)) {echo ".titre { color: $Css->titrecolor;}\n";}
    if (!empty($Css->titrefont)) {echo ".titre { font-family: $Css->titrefont;}\n";}

    if (!empty($Css->tetieresize)) {echo ".tetiere { font-size: $Css->tetieresize;}\n";}
    if (!empty($Css->tetierecolor)) {echo ".tetiere { color: $Css->tetierecolor;}\n";}
    if (!empty($Css->tetierefont)) {echo ".tetiere { font-family: $Css->tetierefont;}\n";}
    if (!empty($Css->tetierebackground)) {echo ".tetiere { background: $Css->tetierebackground;}\n";}

    if (!empty($Css->tetieresize)) {echo ".entete { font-size: $Css->tetieresize;}\n";}
    if (!empty($Css->tetierecolor)) {echo ".entete { color: $Css->tetierecolor;}\n";}
    if (!empty($Css->tetierefont)) {echo ".entete { font-family: $Css->tetierefont;}\n";}
    if (!empty($Css->tetierebackground)) {echo ".entete { background: $Css->tetierebackground;}\n";}


    if (!empty($Css->alink)) {echo "a:link { color: $Css->alink;}\n";}
    if (!empty($Css->vlink)) {echo "a:visited { color: $Css->vlink;}\n";}
    if (!empty($Css->hlink)) {echo "a:hover { color: $Css->hlink;}\n";}


    }


    ?>
    -->
    </style>

    <script language="text/javascript" SRC="<?echo $wwwroot?>/lib/js/filesearchhover.js" type="text/javascript"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/window.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/overlib.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/stock.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/top.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/controle.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/ctrl.js"></script>
    <script type="text/javascript" SRC="<?=$wwwroot?>/lib/js/csspopup.js"></script>
    <script type="text/javascript" language="javascript">
    /**
    * marks all rows and selects its first checkbox inside the given element
    * the given element is usaly a table or a div containing the table or tables
    *
    * @param container DOM element
    */
    var marked_row = new Array;

    function markAllRows( container_id ) {
    var rows = document.getElementById(container_id).getElementsByTagName('tr');
    var unique_id;
    var checkbox;

    for ( var i = 0; i < rows.length; i++ ) {

    checkbox = rows.getElementsByTagName( 'input' )[0];

    if ( checkbox && checkbox.type == 'checkbox' ) {
    unique_id = checkbox.name + checkbox.value;
    if ( checkbox.disabled == false ) {
    checkbox.checked = true;
    if ( typeof(marked_row[unique_id]) == 'undefined' || !marked_row[unique_id] ) {
    rows.className += ' marked';
    marked_row[unique_id] = true;
    }
    }
    }
    }

    return true;
    }

    /**
    * marks all rows and selects its first checkbox inside the given element
    * the given element is usaly a table or a div containing the table or tables
    *
    * @param container DOM element
    */
    function unMarkAllRows( container_id ) {
    var rows = document.getElementById(container_id).getElementsByTagName('tr');
    var unique_id;
    var checkbox;

    for ( var i = 0; i < rows.length; i++ ) {

    checkbox = rows.getElementsByTagName( 'input' )[0];

    if ( checkbox && checkbox.type == 'checkbox' ) {
    unique_id = checkbox.name + checkbox.value;
    checkbox.checked = false;
    rows.className = rows.className.replace(' marked', '');
    marked_row[unique_id] = false;
    }
    }

    return true;
    }
    </script>


    <script type="text/javascript">

    function gotobrand(ident){
    document.location="<?=$wwwroot?>/achat/brand.php?"+ident;
    }
    function gotocategorie(ident){
    document.location="<?=$wwwroot?>/achat/index.php?catid="+ident;
    }
    </script>

    <?php

    $background = "#FFFFFF";

    /* Fonction qui va chercher la couleur de la catégorie */
    if (!empty($_GET['catid'])) {

    $sqlBack = "SELECT color FROM peel_categories WHERE id = '".intval($_GET['catid'])."'";

    $resBack = mysql_query($sqlBack);

    if (mysql_num_rows($resBack) > 0) {

    $Back = mysql_fetch_object($resBack);

    if (!empty($Back->color)) {$background = $Back->color;}

    }
    }

    ?>

    </head>


    <body>
    <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
    <div align="center">
    <table border="0" width="960" cellspacing="0" cellpadding="0" bgcolor="white">

    <tr>

    <td align="left" valign="top" class="entetetitre">
    <div style="padding-top:5px;padding-bottom:5px;">
    <?php

    if (!empty($logo)) {

    ?>
    <a href="index.php"><img align="middle" src="<?echo $logo ?>" alt="<?echo $site ?>" border="0"></a>

    <?

    } else {

    echo $site;

    }
    ?>
    </div>

    </td>

    </tr>
    <tr>
    <td bgcolor="#666666">

    <ul id="menudyn">
    <li id="nav-1"><a href="index.php"><?echo HOME ?></a></li>
    <li id="nav-2"><a href="achat/new.php"><?echo NEWS ?></a></li>
    <li id="nav-3"><a href="achat/special.php"><?echo SPECIAL ?></a></li>
    <li id="nav-3"><a href="achat/flash.php"><?echo FLASH ?></a></li>
    <li id="nav-4"><a href="compte.php"><?echo COMPTE ?></a></li>
    <li id="nav-5"><a href="utilisateurs/contact.php"><?echo CONTACT ?></a></li>
    <li id="nav-6"><a href="achat/caddie_affichage.php"><?echo CADDIE ?></a></li>
    <?php

    if (est_identifie()) {

    echo "<li id=\"nav-7\"><a href=>".HELLO."&nbsp;".stripslashes($_SESSION['utilisateur']['prenom']) . " " . stripslashes($_SESSION['utilisateur']['nom_famille'])."</a></li>";

    echo "<li id=\"nav-8\"><a class=\"menudyn\" href=\"$wwwroot/sortie.php\">".DECONNECT."</a></li>";

    } else {

    echo "<li id=\"nav-7\"><a class=\"menudyn\" href=\"$wwwroot/membre.php\">".LOGIN."</a></li>";

    echo "<li id=\"nav-8\"><a class=\"menudyn\" href=\"$wwwroot/utilisateurs/enregistrement.php\">".REGISTER."</a></li>";

    }

    ?>
    <li id="nav-9"><a href="sitemap.php" class="normal"><?Echo SITEMAP?></a></li>
    <li id="nav-10"><a href="search.php" class="normal"><?Echo SEARCH?></li>

    </ul>
    </td>
    </tr>
    <tr>
    <td style="padding:5px;">
    <form method="GET" action="achat/recherche.php" name="recherche">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td class="normal">
    <?echo SEARCH?> : <input class="formulaire1" type="text" name="motclef" size="15" value="<?echo vb script:gotocategorie(this.options[this.selectedIndex].value)">
    <option><?echo SEARCH_CATEGORY ?></option>
    <?
    $sql_cat = "SELECT * FROM peel_categories WHERE etat = '1' ORDER BY nom_".$_SESSION['langue']."";

    $res_cat = mysql_query($sql_cat);

    if (mysql_num_rows($res_cat) > 0) {

    while ($cat = mysql_fetch_array($res_cat)) {

    echo "<option value=\"".$cat['id']."\">".stripslashes($cat['nom_'.$_SESSION['langue'].''])."</option>";

    }

    }
    ?>
    </select>
    </td>
    <td align="left" class="normal" >

    <select name="brand" class="formulaire1" onChange="java script:gotobrand(this.options[this.selectedIndex].value)">
    <option value=""><?echo SEARCH_BRAND;?></option>

    <?php

    $resBrand = mysql_query("SELECT id, nom_".$_SESSION['langue']." as nom FROM peel_marques WHERE etat = '1' ORDER BY position");

    if($resBrand) {

    if (mysql_num_rows($resBrand)) {

    while($Brand = mysql_fetch_array($resBrand)) {

    if (!empty($Brand['nom'])) {

    echo "<option value=\"brand=".$Brand['id']."\"";

    echo ">".html_entity_decode($Brand['nom'])."</option>";

    }


    }

    }

    }

    ?>
    </select>

    </td>
    <td>
    <a href="%3C?echo $_SERVER['PHP_SELF'];?&gt;?langue=fr"?>?langue=fr><img src="<?=$wwwroot?>/lib/flag/fr.gif" border="0" width="18" height="12"></a>
    &nbsp;<a href="%3C?echo $_SERVER['PHP_SELF'];?&gt;?langue=en"?>?langue=en><img src="<?=$wwwroot?>/lib/flag/gb.gif" border="0" width="18" height="12"></a>

    </td>

    </tr>
    </table>


    </td>
    </tr>



    </table>
    <!--style="border:1px solid #E9EBEA;"-->
    <table border="0" width="960" cellspacing="1" cellpadding="0" bgcolor="white">
    <tr>
    <td width="220" valign="top" class="normal">


    <!-- CADDIE -->
    <table border="0" cellspacing="0" cellpadding="0" width="220" style="border-top:1px solid #EEEEEE;border-left:1px solid #EEEEEE;border-right:1px solid #EEEEEE;padding-top:6px;padding-left:6px ">
    <tr><td class="normal" width="220">
    <?php

    echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".CADDIE."</div>";

    if ($_SESSION['caddie']->compte_elements() != 0) {

    echo "<table width=\"190\" cellpadding=\"0\" cellspacing=\"0\">";

    foreach ($_SESSION['caddie']->articles as $i => $produitid) {

    $resProd = mysql_query("SELECT nom_".$_SESSION['langue']." as nom FROM peel_produits WHERE id = '".$produitid."'");

    $Prod = mysql_fetch_object($resProd);

    $nom = html_entity_decode($Prod->nom);
    /*$nom = substr($nom, 0, 150);
    $nom = substr_replace($nom,'...',-3);*/

    echo "<tr><td class=\"petit\" colspan=\"2\"><a href=\"achat/produit_details.php?id=".$produitid."\" class=\"petit\">".$nom."</a></td></tr><tr><td class=\"petit\" style=\"border-bottom: 1px solid #6b6b6b;\">Qte : ".$_SESSION['caddie']->quantite[$i]."</td><td class=\"petit\" style=\"border-bottom: 1px solid #6b6b6b;\">".fprix($_SESSION['caddie']->total_prix[$i])." &euro;</td></tr>";

    }

    echo "</tr>";

    if ($_SESSION['caddie']->total > 0) {

    echo (!empty($_SESSION['caddie']->cout_transport)) ? "<tr><td colspan=\"2\" class=\"label\">TRANSPORT : ".fprix($_SESSION['caddie']->cout_transport)." &euro;</td></tr>" : "";

    echo "<tr><td colspan=\"2\" class=\"label\">TOTAL : ".fprix($_SESSION['caddie']->total)." &euro;</td></tr>";

    }

    echo "<tr><td colspan=\"2\" align=\"center\"><a class=\"label\" href=\"achat/caddie_affichage.php\">".ORDER."</a></td></tr>";

    echo "</table>";

    if (vn($_SESSION['utilisateur']['remise_percent']) > 0) {

    echo REMISE." : ".$_SESSION['utilisateur']['remise_percent']." %";

    }

    } else {

    echo EMPTY_CADDIE;

    }

    ?>
    <!-- FIN DE CADDIE -->
    </td></tr></table>

    <!-- CATALOGUE PRODUIT -->
    <table border="0" cellspacing="0" cellpadding="0" width="220" style="border-top:1px solid #EEEEEE;border-left:1px solid #EEEEEE;border-right:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;">
    <tr><td class="normal" width="220">
    <?php
    echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".CATALOG."</div>";

    if (!isset($_GET['catid'])) { $catid = 0; } else {$catid = $_GET['catid']; }

    $frm['parent'] = array($catid);

    construit_menu_arborescent_cat($categorie_options, $frm['parent']);

    echo "<div style=\"padding:3px\">".$categorie_options."</div>";

    ?>
    </td></tr>
    </table>
    <!-- FIN PRODUIT -->
    <!-- GUIDE PRATIQUE -->
    <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;">
    <tr><td class="normal" width="220">
    <?php

    echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".GUIDE."</div>";

    if (!isset($_GET['rubid'])) { $rubid = 0; } else {$rubid = intval($_GET['rubid']); }

    $frm['parent'] = array($rubid);

    construit_menu_arborescent_rub($rubrique_options, $frm['parent']);

    echo "<div style=\"padding:3px\">".$rubrique_options;

    echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/cgv.php\" class=\"normal\">Conditions de vente</a>";

    echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/contacts.php\" class=\"normal\">Contacts</a>";

    if ($statusparrain == 1) {

    echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/parrain.php\" class=\"normal\">Conditions de parrainage</a>";

    }

    if ($statusaffiliate == 1) {

    echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/affiliation.php\" class=\"normal\">Conditions d'affiliation</a>";

    }

    echo "</div>";



    ?>
    </td></tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;">
    <tr><td class="normal" width="220" valign="top">
    <?php

    echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".GIFT_CATALOGUE."</div>";

    echo "<br />- <a href=achat/catalogue_cadeaux.php>".LOOK_CATALOGUE."</a>";

    if (est_identifie()) {

    echo "<br /><br />- ".MY_GIFT_POINT." : ".$_SESSION['utilisateur']['points'];

    }

    ?>
    </td></tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="220" style="border:1px solid #EEEEEE;padding-top:6px;padding-left:6px;padding-bottom:6px;">
    <tr><td class="normal" width="220">
    <?php

    echo "<div class=\"entete\"><img src=\"$wwwroot/images/fleche.gif\">&nbsp;".ADHESION."</div>";

    if ($statusretail == 1) {

    echo "<br /><li><a href=\"$wwwroot/utilisateurs/retailer.php\" class=\"normal\">".RETAILER."</a></li>";

    }

    if ($statusaffiliate == 1) {

    echo "<li><a href=\"$wwwroot/utilisateurs/affiliate.php\" class=\"normal\">".AFFILIATE."</a></li><br />";

    }

    if (est_identifie()) {

    if (a_priv("admin")) {

    echo "<li><a href=\"administrer/index.php\" class=\"label\">ADMINISTRER LE SITE</a></li>";

    }

    }

    ?>
    <p align="center">
    <img src="http://www.logos-magia.com/boutique/images/logo-thawte-revendeur.gif"></p>
    </td></tr>
    </table>

    </td>

    <td width="100%" valign="top" class="normal" bgcolor="<?echo $background;?>">
    • 0
  18. Willy a ajouté un message dans un sujet  Fatal error   

    Il y a 12 car j'ai ajouté
    echo "1"; et echo "2"; Mettez: <?php echo "1"; if (!isset($catid)) { $catid = 0; } echo "2"; $frm['parent'] = array($catid); echo "3"; construit_menu_arborescent_cat($categorie_options, $frm['parent']); echo "4"; echo $categorie_options; if (!isset($rubid)) { $rubid = 0; } $frm['parent'] = array($rubid); construit_menu_arborescent_rub($rubrique_options, $frm['parent']); echo "<br /><div class=\"tetiere\">$site et vous</div>"; echo $rubrique_options; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/cgv.php\" class=\"normal\">Conditions de vente</a>"; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/contacts.php\" class=\"normal\">Contacts</a>"; ?>

    Les affichages de chiffres sont juste là pour vois où ca plante en fait.

    Willy
    • 0
  19. Mag a ajouté un message dans un sujet  Fatal error   


    Oui, je ne les avais plus parce que j'avais mis en mode 666.
    J'ai changé et je les ai à nouveau.



    comme je l'ai dit plus haut c'est réglé pour les images.
    Mais Willy n'étant plus là, sais tu pourquoi il y a un 12 sous nos produit depuis que j'ai collé le bout de code qu'il m'a mis
    • 0
  20. Aquarelle a ajouté un message dans un sujet  Fatal error   

    t'as plus les images.Chez sur mon site le smod du dossier images est 755
    • 0
  21. Mag a ajouté un message dans un sujet  Fatal error   




    Avant tout j'aimerai savoir si c'est normal que suite à la modif, je n'est plus mon image de fond et mon logo .
    Ensuite sous nos produits y a un 12 qui s'affiche
    En fait c'étais tous mes images qui avais disparu lol, c'est réglé
    • 0
  22. Willy a ajouté un message dans un sujet  Fatal error   

    Mettez:


    <?php if (!isset($catid)) { $catid = 0; } $frm['parent'] = array($catid); construit_menu_arborescent_cat($categorie_options, $frm['parent']); echo $categorie_options; if (!isset($rubid)) { $rubid = 0; } $frm['parent'] = array($rubid); echo "1"; construit_menu_arborescent_rub($rubrique_options, $frm['parent']); echo "2"; echo "<br /><div class=\"tetiere\">$site et vous</div>"; echo $rubrique_options; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/cgv.php\" class=\"normal\">Conditions de vente</a>"; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/contacts.php\" class=\"normal\">Contacts</a>"; ?>

    Pour voir si l'erreur est dans "construit_menu_arborescent_rub" et je pense que oui

    Normalement le 1 s'affichera et pas le 2.

    Willy
    • 0
  23. Mag a ajouté un message dans un sujet  Fatal error   

    <?php if (!isset($catid)) { $catid = 0; } $frm['parent'] = array($catid); construit_menu_arborescent_cat($categorie_options, $frm['parent']); echo $categorie_options; if (!isset($rubid)) { $rubid = 0; } $frm['parent'] = array($rubid); construit_menu_arborescent_rub($rubrique_options, $frm['parent']); echo "<br /><div class=\"tetiere\">$site et vous</div>"; echo $rubrique_options; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/cgv.php\" class=\"normal\">Conditions de vente</a>"; echo "<br /><img src=\"$wwwroot/images/menminus.gif\" alt=\"\" /> <a href=\"$wwwroot/contacts.php\" class=\"normal\">Contacts</a>"; ?>
    • 0
  24. Aquarelle a ajouté un message dans un sujet  Fatal error   

    dans modele/haut.php
    • 0
  25. Willy a ajouté un message dans un sujet  Fatal error   

    J'ai testé et en effet on ne peut ajouter q'une catégorie... Et quand on en ajoute une ca plante au moment de mettre l'image

    De plus apparement le dossier des images n'est pas en chmod 777, c'est adire avec tous les droits d'écriture, lecture, etc... Il faut le mettre absolument !

    Perso, je virerais les modifications effectuées et je repartirais de 0 pour voir si ca fonctionne ou non.

    Il y a quoi après:


    <div class="tetiere"> <a href="http://www.recrealivres.com/achat/index.php"><b>NOS PRODUITS</b></a> </div> <br />

    Willy
    • 0

Twitter Advisto ecommerce

Facebook PEEL Shopping