Flux d’activité

Flux d’activité de Messages

  1. paulanna


    essai ça

    function affiche_rubrique_accueil() {
    
    
    global $wwwroot, $repertoire_modele, $repertoire_upload;
    
    
    $qid = mysql_query("SELECT id, nom, description, image FROM peel_rubriques WHERE etat = '1' AND on_special = '1'") or DIE('Une erreur de connexion à la base s est produite ' . __LINE__ . '.<p>' . MYSQL_ERROR());
    
    if (mysql_num_rows($qid) > 0) { 
    
    
    
    echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
    
    
    $j = 0;
    
    
    while ($cat = mysql_fetch_array($qid)) 
    
    {
    
    
    
    
    echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
    
    
    echo "<tr><td align=\"center\"><a class=\"label\" href=\"achat/index.php?catid=".$cat['id']."\">".stripslashes($cat['nom''])."</a></td></tr>";
    
    
    echo "<tr><td align=\"center\" valign=\"middle\">";
    
    
    if (!empty($cat['image'])) {
    
    
    echo "<div align=\"center\"><img src=\"$repertoire_upload/".$cat['image']."\" title=\"".stripslashes($cat['nom'])."\" /></div>";
    
    
    } else {
    
    
    echo "<div align=center><img src=\"$wwwroot/images/photo-non-disponible.gif\"></div>";
    
    
    }
    
    
    echo "</td></tr>";
    
    
    echo "<tr><td>".stripslashes($cat['description'])."</td></tr>";
    
    
    
    echo "</td></tr></table>";
    
    
    
    } 
    
    
    
    
    
    } 
    
    
    echo "</table>";
    
    
    
    }

  2. kefren


    j'ai tester :

    			?>
    
    				<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN="CENTER">
    
    				<TR><TD>
    
    				<FORM ACTION="<? $action ?> ">
    
    				<INPUT TYPE="SUBMIT" VALUE="<? $cat['nom_'.$_SESSION['langue'].''] ?>"></TD>
    
    				</FORM></TR>
    
    				</TABLE>
    
    			<?
    et :
    			?>
    
    				<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN="CENTER">
    
    				<TR><TD>
    
    				<FORM ACTION="<? $action ?> ">
    
    				<INPUT TYPE="SUBMIT" VALUE="<? html_entity_decode($cat['nom_'.$_SESSION['langue'].'']) ?>"></TD>
    
    				</FORM></TR>
    
    				</TABLE>
    
    			<?
    mais rien a faire ... et pour le lien pour la page de la catégorie ?? c'est ca ?? :
    $wwwroot/achat/index.php?catid=" . $cat['id'] ."

  3. paulanna


    alors dans lib/fonctions.php tu mets

    function affiche_rubrique_accueil() {
    
    
    global $wwwroot, $repertoire_modele;
    
    
    $qid = mysql_query("SELECT id, nom, description, image FROM peel_rubriques WHERE etat = '1' AND on_special = '1'") or DIE('Une erreur de connexion à la base s est produite ' . __LINE__ . '.<p>' . MYSQL_ERROR());
    
    if (mysql_num_rows($qid) > 0) { 
    
    
    
    echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
    
    
    $j = 0;
    
    
    while ($cat = mysql_fetch_array($qid)) 
    
    {
    
    
    
    
    echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
    
    
    echo "<tr><td align=\"center\"><a class=\"label\" href=\"achat/index.php?catid=".$cat['id']."\">".stripslashes($cat['nom''])."</a></td></tr>";
    
    
    echo "<tr><td align=\"center\" valign=\"middle\">";
    
    
    if (!empty($cat['image'])) {
    
    
    echo "<div align=\"center\"><img src=\"administrer/upload/".$cat['image']."\" title=\"".stripslashes($cat['nom'])."\" /></div>";
    
    
    } else {
    
    
    echo "<div align=center><img src=\"$wwwroot/images/photo-non-disponible.gif\"></div>";
    
    
    }
    
    
    echo "</td></tr>";
    
    
    echo "<tr><td>".stripslashes($cat['description'])."</td></tr>";
    
    
    
    echo "</td></tr></table>";
    
    
    
    } 
    
    
    
    
    
    } 
    
    
    echo "</table>";
    
    
    
    }

    et tu appelles la fonction en faisant : <? affiche_rubrique_accueil() ?> sur la page de ton choix ici c'est index.php

  4. balam


    alors alors

    modeles/default/templates.php => fonction : template_index_produit et chercher => $descriptif = html_entity_decode($prod['descriptif_'.$_SESSION['langue'].'']);

    mettre les 2 autres lignes en commentaire

    avec plaisir

    mettre les 2 autres lignes en commentaire c'est avec \\ de chaque coté ?

Twitter Advisto ecommerce

Facebook PEEL Shopping