IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Modifier la présentation d'un tableau


Sujet :

Langage PHP

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Février 2022
    Messages
    58
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Février 2022
    Messages : 58
    Points : 37
    Points
    37
    Par défaut Modifier la présentation d'un tableau
    Bonjour
    j'ai un petit code que j'ai rien compris et je doit faire quelque modification
    voila le code
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    <!-- product Info Tab start -->
                        <div class="product-info-tab-wrapper" role="tabpanel">
                            <!-- Nav tabs start -->
                            <div>
                                <div class="tab-nav-direction-wrapper"></div>
                                <ul class="nav nav-tabs" role="tablist" id="product_data_tabs">
                                   <li role="presentation" class="nav-item general_options general_tab hide_if_grouped show_if_simple show_if_subscription show_if_variable-subscription show_if_subscription">
                                                <a class="nav-link" style="color:black;" href="#general_product_data" aria-controls="general_product_data" role="tab" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">Produit</span></a>
                                            </li>
                                   <li role="presentation" class="nav-item inventory_options inventory_tab show_if_simple show_if_variable show_if_grouped show_if_external show_if_subscription">
                                                <a class="nav-link" style="color:black;" href="#inventory_product_data" aria-controls="inventory_product_data" role="tab" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">Quantite</span></a>
                                            </li>
     
     
                                   <li role="presentation" class="nav-item advanced_options advanced_tab ">
                                                <a class="nav-link" style="color:black;" href="#advanced_product_data" aria-controls="advanced_product_data" role="tab" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">description</span></a>
                                            </li>
                                    <?php do_action( 'wcmp_product_write_panel_tabs', $post->ID ); ?>
                                </ul>
                            </div>
                            <!-- Nav tabs End -->
     
                            <!-- Tab content start -->
                            <div class="tab-content">
                                <?php
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-general.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-inventory.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                if ( !apply_filters('wcmp_disabled_product_shipping_tab', true) || wcmp_is_allowed_vendor_shipping() ) {
                                    $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-shipping.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                }
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-linked-products.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-attributes.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                do_action( 'wcmp_after_attribute_product_tabs_content', $self, $product_object, $post );
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-advanced.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                ?>
                                <?php do_action( 'wcmp_product_tabs_content', $self, $product_object, $post ); ?>
                            </div>
                            <!-- Tab content End -->
                        </div>        
                        <!-- product Info Tab End -->

    le problème c'est que le code m'affiche un tableaux avec des titres sur les quelles je doit cliquer pour afficher le contenu et moi je veux supprimer le tableaux et faire un affichage simple genre :
    Produit
    en dessous l'affichage correspondant
    Quantite
    l'affichage correspondant

    et pareil pour description que sa soit toujours afficher une page classique en gros sans animation .
    je vous remercie d'avance pour votre aide

  2. #2
    Modératrice
    Avatar de Celira
    Femme Profil pro
    Développeuse PHP/Java
    Inscrit en
    Avril 2007
    Messages
    8 633
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : Développeuse PHP/Java
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2007
    Messages : 8 633
    Points : 16 372
    Points
    16 372
    Par défaut
    Tu as clairement un framework ou un CMS sur ce code, il ya plein de templates pour digérer les différents éléments (les fichiers html-product-xxxxx)

    Il faut que tu trouves où sont les infos (problablement dans $product_object) et que tu construises ton propre affichage avec.

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Février 2022
    Messages
    58
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Février 2022
    Messages : 58
    Points : 37
    Points
    37
    Par défaut
    je vous remercie pour votre repense.
    j'ai essaye de modifier le tableaux a plusieurs reprise et j'ai mémé réussi a faire l'affichage que je veux avec :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-general.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
                                $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-inventory.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) );
    sauf que mon problème c'est que je doit toujours appuyer sur le nom ou le titre pour que sa affiche ce qu'ils ya dessous
    exemple
    Produit
    en dessous l'affichage correspondant
    Quantite
    l'affichage correspondant

    pour que l'affichage correspondant soit afficher je doit cliquer sur produit puis quantité et ...
    et j'arrive pas a les faire apparaître en permanence dé le début

  4. #4
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Février 2022
    Messages
    58
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Février 2022
    Messages : 58
    Points : 37
    Points
    37
    Par défaut
    voila jusqu'à ou j'ai pu modifier le code et sa fonctionne comme je le voulais la seul chose comme je vous lais expliquer c'est que je doit cliquer sur le titre pour qu'il m'affiche ce qu'il Ya dessous

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     <a style="color:black;" href="#general_product_data" aria-controls="general_product_data" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">Produit</span></a>
                                     <?php $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-general.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) ); ?>       
                                      <a style="color:black;" href="#inventory_product_data" aria-controls="inventory_product_data" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">Quantite</span></a>
                                      <?php $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-inventory.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) ); ?>     
                                      <a style="color:black;" href="#advanced_product_data" aria-controls="advanced_product_data" data-toggle="tab"><span style="font-size: 16px !important;color:black !important;">Description</span></a>
                                       <?php $WCMp->template->get_template( 'vendor-dashboard/product-manager/views/html-product-data-advanced.php', array( 'self' => $self, 'product_object' => $product_object, 'post' => $post ) ); ?>

Discussions similaires

  1. Supprimer un tableau
    Par dabertch dans le forum JBuilder
    Réponses: 1
    Dernier message: 23/05/2008, 14h17
  2. supprimer un tableau powerpoint / condition "Existe"
    Par ouioui_cmoi dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 04/04/2008, 17h22
  3. supprimer ligne tableau si A est vide
    Par flyhb dans le forum Macros et VBA Excel
    Réponses: 4
    Dernier message: 17/03/2008, 23h30
  4. Supprimer un tableau Powerpoint (PPT) depuis Excel VBA
    Par pontoise dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 02/03/2008, 19h01
  5. [Tableaux] débutant : supprimer ligne tableau
    Par samplaid dans le forum Langage
    Réponses: 2
    Dernier message: 27/03/2006, 10h39

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo