Esempio n. 1
0
    executeRequete("UPDATE avis SET sujet = '{$_POST['sujet']}', commentaire = '{$commentaire}', note = '{$_POST['note']}', date = '{$_POST['date']}' WHERE id_avis = '{$_POST['id_avis']}' ");
    header('location: gestion_avis.php?action=0');
    exit;
}
// ----------------- Organisation par défaut ------------//
$resultat = executeRequete("SELECT * FROM avis a, membre m, article ar WHERE a.id_membre = m.id_membre AND a.id_article = ar.id_article ORDER BY id_avis ASC");
echo '<section>';
echo $msg;
echo '<div>
	<h1>Gestion des commentaires</h1>';
if (isset($_GET['action']) && $_GET['action'] == '0') {
    echo "<div class='encart_gestion'>";
    echo "<p class='infos_gestionSolo'>Nombre de commentaire(s) : <span class='num_infosGestion'>" . $resultat->num_rows . '</span></p>';
    echo "</div>";
    while ($ligne = $resultat->fetch_assoc()) {
        echo "<div class='comm_div' id=' " . $ligne['id_avis'] . " ' >" . "<div class='infos_membre'>" . "<div class='infosMembre_text'>" . "<p>" . $ligne['prenom'] . ' ' . $ligne['nom'] . ' ( Membre n° ' . $ligne['id_membre'] . ')' . ' - ' . $ligne['titre'] . ' ( Article n° ' . $ligne['id_article'] . ')' . ' - ' . dateLongue($ligne['date'], 'no') . "</p>" . "</div>" . "<div class='infosMembre_btnModif'>" . "<a href='?action=modification&id_avis=" . $ligne['id_avis'] . " '><img src='" . RACINE_SITE . "photo/modif.png' alt='' data-tooltip='Modifier le commentaire'></a>" . "</div>" . "<div class='infosMembre_btnSuppr'>" . "<a href='?action=suppression&id_avis=" . $ligne['id_avis'] . " ' OnClick='return(confirm(\"En êtes vous certain ?\"));'><img src='" . RACINE_SITE . "photo/suppr.png' alt='' data-tooltip='Supprimer ce commentaire'></a>" . "</div>" . "</div>" . "<div class='texts_comm'>" . "<p class='gest_sujet'>" . $ligne['sujet'] . "</p>" . "<p class='gest_comm'>" . $ligne['commentaire'] . "</p>" . "</div>" . "</div>";
    }
}
if (isset($_GET['action']) && $_GET['action'] == 'modification') {
    $recupComm = executeRequete("SELECT id_avis,sujet, commentaire,note,date FROM avis WHERE id_avis = {$_GET['id_avis']} ");
    $afficheComm = $recupComm->fetch_assoc();
    ?>
<div id="modifAvis_div">
		<form method="post" action="gestion_avis.php?action=0" id="modifAvis_form">
		
			<input type="hidden" name="id_avis" value="<?php 
    if (isset($afficheComm['id_avis'])) {
        echo $afficheComm['id_avis'];
    }
    ?>
">
Esempio n. 2
0
        echo "<td style='width: 150px;'>" . virgule($details['prix']) . "</td>";
        $j++;
    }
    echo '</tr>';
}
echo '</table>';
echo "</div>";
$nbcol = $resultat->field_count;
echo "<table style='border-color:red;' border=10> <tr>";
echo '<th>N° de commande</th>';
echo '<th>Montant</th>';
echo '<th>Nom Prénom du membre</th>';
echo '<th>Date</th>';
echo "<th>Supression</th>";
echo "</tr>";
$i = 0;
while ($ligne = $resultat->fetch_assoc()) {
    $membre_id2 = executeRequete("SELECT nom, prenom FROM membre WHERE id_membre = '{$ligne['id_membre']}'");
    $nom_membre2 = $membre_id2->fetch_assoc();
    $css_class = $i % 2 == 0 ? 'clair' : 'sombre';
    echo '<tr class="' . $css_class . '">';
    echo "<td style='width: 150px;'><a href='" . RACINE_SITE . "admin/gestion_commande.php?action=0&id_commande={$ligne['id_commande']}'>" . $ligne['id_commande'] . "</a></td>";
    echo "<td style='width: 150px;'>" . virgule($ligne['montant']) . "</td>";
    echo "<td style='width: 150px;' data-tooltip='Membre n°{$ligne['id_membre']}'>" . $nom_membre2['nom'] . ' ' . $nom_membre2['prenom'] . "</td>";
    echo "<td style='width: 150px;'>" . dateLongue($ligne['date'], 'no') . "</td>";
    $i++;
    echo '<td style="width: 150px;"><a href="?action=suppression&id_commande=' . $ligne['id_commande'] . '" OnClick="return(confirm(\'En êtes vous certain ?\'));"><img src="' . RACINE_SITE . 'photo/suppr.png" alt="" title="Supprimer cette commande"></a></td>';
    echo '</tr>';
}
echo '</table>';
require_once '../inc/footer.inc.php';
Esempio n. 3
0
}
if ($_GET['action'] == 'affichage') {
    echo '<a id="btn_ajoutArticle" href="?action=ajout" class="design6_submitBtn ">Ajouter un article</a><br><br>';
}
if (isset($_GET['action']) && $_GET['action'] == "affichage") {
    echo '<div>';
    $resultat = executeRequete("SELECT * FROM article");
    echo "<div class='encart_gestion'>";
    echo "<p class='infos_gestionSolo'>Nombre d'article(s) : <span class='num_infosGestion'>" . $resultat->num_rows . '</span></p>';
    echo "</div>";
    $nbcol = $resultat->field_count;
    $i = 0;
    while ($ligne = $resultat->fetch_assoc()) {
        $css_class = $i % 2 == 0 ? 'clair' : 'sombre';
        echo '<div class="admin_article">';
        echo "<div class='id_article'><p>{$ligne['id_article']}</p><p class='date_article'>Créé le : " . dateLongue($ligne['date'], 'no') . "</p></div>";
        echo "<div class='article_left'>";
        echo "<div class='ref'><p>{$ligne['reference']}</p></div>";
        echo "<div class='admin_img'><img src='" . $ligne['photo'] . "' width='170' /></div>";
        echo "<div class='action_article'>";
        echo '<a class="btn_modif" href="?action=modification&id_article=' . $ligne['id_article'] . '"><img src="' . RACINE_SITE . 'photo/modif.png" alt="" title="Modifier la fiche de l\'article"></a>';
        echo '<a class="btn_suppr" href="?action=suppression&id_article=' . $ligne['id_article'] . '" OnClick="return(confirm(\'En êtes vous certain ?\'));"><img src="' . RACINE_SITE . 'photo/suppr.png" alt="" title="Supprimer ce commentaire"></a>';
        echo "</div>";
        echo "</div>";
        echo "<div class='separateur1'></div>";
        echo "<div class='content_infos'>";
        echo "<h3>{$ligne['titre']}</h3>";
        echo "<p>by {$ligne['marque']}</p>";
        echo "<p class='description_admin'>{$ligne['description']}</p>";
        echo "<div class='sombre2'><p><span>Catégorie</span>{$ligne['categorie']}</p></div>";
        echo "<div class='clair2'><p><span>Sous-catégorie</span>{$ligne['sous_categorie']}</p></div>";
Esempio n. 4
0
$resultat = executeRequete("SELECT id_commande,date,montant FROM commande WHERE id_membre=" . $_SESSION['utilisateur']['id_membre'] . "");
$nbLineCommande = $resultat->num_rows;
echo "<table style='border-color:red' border=2 id='table_profil'> <tr>";
echo '<th>Numéro de suivie</th>';
echo '<th>Date</th>';
echo '<th>Montant</th>';
echo "</tr>";
if ($nbLineCommande == 0) {
    echo "<tr><td colspan='3' style='height:50px;'>Votre historique de commande est vide</td></tr>";
} else {
    $i = 0;
    while ($ligne = $resultat->fetch_assoc()) {
        $css_class = $i % 2 == 0 ? 'clair' : 'sombre';
        echo '<tr class="' . $css_class . '">';
        echo "<td>" . $ligne['id_commande'] . "</td>";
        echo "<td>" . dateLongue($ligne['date'], 'no') . "</td>";
        echo "<td>" . $ligne['montant'] . " €</td>";
        $i++;
        echo '</tr>';
    }
}
echo '</table>';
echo "</div>";
?>
	<div id="maj_infos">	
			
		<div id="messages"><?php 
echo $msg;
?>
</div>
		
Esempio n. 5
0
                    </tbody>
                    </thead>
                </table>


                <div style="page-break-before: always;"></div>
                <br>
                <table>
                    <caption>TRAVAIL QUOTIDIEN</caption>
                </table>
                <br>
                <?php 
$nombre = 0;
foreach ($row_femme->demande as $key => $value) {
    $nombre++;
    echo '<table>' . '<caption>' . dateLongue($value['visite']) . ' - ' . $value['nom_service'] . '</caption>' . '</table>' . '<div>' . '<table>';
    echo '<thead>' . '<tr class="' . $the_size . '">' . '<th colspan="2" class="twelvth">Accompagnatrice</th>' . '<th colspan="2" class="twelvth">Femme</th>' . '<th colspan="2" class="twelvth">Accueil</th>' . '<th colspan="2" class="twelvth">HBGT</th>' . '<th colspan="2" class="twelvth">Lieu ressource</th>' . '<th colspan="2" class="twelvth">Acc. Spécialisé</th>' . '</tr>' . '</thead>' . '<tbody>' . '<tr class="' . $the_size . '">' . '<td colspan="2">' . $value['accompagnatrice'] . '</td>' . '<td colspan="2">' . $value['name_demande_femme'] . '</td>' . '<td colspan="2">' . $value['name_demande_accueil'] . '</td>' . '<td colspan="2">' . $value['name_demande_hbgt'] . '</td>';
    $signe = '';
    $arrlength = count($value['lieu_ressource']);
    for ($x = 0; $x < $arrlength; $x++) {
        $signe = $signe . $value['lieu_ressource'][$x] . '<br>';
    }
    echo '<td colspan="2">' . $signe . '</td>';
    $signe = '';
    $arrlength = count($value['accompagnement_specialise']);
    for ($x = 0; $x < $arrlength; $x++) {
        $signe = $signe . $value['accompagnement_specialise'][$x] . '<br>';
    }
    echo '<td colspan="2">' . $signe . '</td>' . '</tr>' . '</tbody>' . '<tr class="' . $the_size . '">' . '<th colspan="3">Enfants</th>' . '<th colspan="3">Reçu</th>' . '<th colspan="3">Activités</th>' . '<th colspan="3">Accompagnement</th>' . '</tr>';
    if (array_key_exists('enfants', $value)) {
        $arrlength = count($value['enfants']);
Esempio n. 6
0
} else {
    echo '<div class="all_comments">';
    while ($ligne = $historique_message->fetch_assoc()) {
        $membre = executeRequete("SELECT pseudo FROM membre WHERE id_membre=' " . $ligne['id_membre'] . " ' ");
        $nb_commMembre = executeRequete("SELECT id_membre FROM avis WHERE id_membre=' " . $ligne['id_membre'] . " ' ");
        $pseudo = $membre->fetch_assoc();
        $affichage_commentaire = htmlspecialchars(stripslashes($ligne['commentaire']));
        // Permet de rendre le HTML inoffensif => htmlspecialchars
        $affichage_sujet = htmlspecialchars(stripslashes($ligne['sujet']));
        $affichage_note = htmlspecialchars(stripslashes($ligne['note']));
        // Stripslashes = enlève les slash ou antislash ajouté par le $mysqli->escape_string pour se protéger et empêcher les erreurs dû au ' ou " et rend tout ça lisible correctement.
        echo "<div class='comm'>";
        echo "<div class='infos_comm'>";
        imageNotation($affichage_note);
        echo "<p class='pseudo'>{$pseudo['pseudo']}</p>";
        echo "<p class='date_comm_fp'>" . dateLongue($ligne['date'], 'no') . "</p>";
        echo "</div>";
        echo "<div class='affichage_comm'>";
        echo "<p class='text_sujet'>{$affichage_sujet}</p>";
        echo "<p class='text_comm'>{$affichage_commentaire}</p>";
        echo "</div>";
        echo "</div>";
    }
    echo '</div>';
}
echo "</div>";
echo "</div>";
echo "</div>";
// Div produits similaires:
if ($donnees2->num_rows >= 1) {
    echo "<div id='similar_products'>";
Esempio n. 7
0
echo '</div>';
echo '<a href="' . RACINE_SITE . 'admin/gestion_promos.php?action=affichage" class="dashboard_title">Promotions</a>';
echo '</div>';
echo '<div class="div_dashboard statistiques_info">';
echo '<a href="' . RACINE_SITE . 'admin/statistiques.php" class="dashboard_title">Statistiques</a>';
echo '</div>';
echo '</div>';
echo '<div id="derniers_avis">';
echo "<div id='avisTitle'><h4>Derniers avis</h4></div>";
echo "<div id='contentThreeComments'>";
while ($threeLastComments = $commentaire->fetch_assoc()) {
    echo '<div class="comment">';
    echo "<div class='infos_comment'>";
    echo "<p class='pseudo_comm'>" . $threeLastComments['pseudo'] . "</p>";
    imageNotation($threeLastComments['note']);
    echo "<p class='date_comm'>" . dateLongue($threeLastComments['date'], 'no') . "</p>";
    echo '</div>';
    echo "<div class='affichage_comment'>";
    echo "<p class='subject_comm'>" . $threeLastComments['sujet'] . "</p>";
    echo "<p class='comm_comm'>" . $threeLastComments['commentaire'] . "</p>";
    echo "<a href='" . RACINE_SITE . "admin/gestion_avis.php?action=0#" . $threeLastComments['id_avis'] . "' class='link_comm'> >> Voir</a>";
    echo "</div>";
    echo '</div>';
}
echo '</div>';
echo '</div>';
echo '<div id="infos_droite">';
echo '<div id="chiffre_affaire">';
echo "<table>";
echo "<tr>";
echo '<th>Chiffre d\'affaires</th>';