Ejemplo n.º 1
0
<?php

$num_page = $_GET['num_page'];
$limit = $_GET['limit'];
$offset = $limit * $num_page;
include_once 'modele/rechercher_potins.php';
$potins_cherches = rechercher_potins_des_groupes_de_user_offset($id_user, $limit, $offset, $bdd);
$nb_potins = count($potins_cherches);
if ($potins_cherches != 'plus_de_potins' && $potins_cherches != 'pas_de_potins' && $potins_cherches != 'erreur') {
    foreach ($potins_cherches as $i => $potin_courant) {
        $potin_courant = infos_potin($potin_courant, $bdd);
        include 'vue/afficher_potin_anonyme.php';
    }
} else {
    echo 'Il n\'y a plus de potins à afficher';
}
?>

<div id="fin-colonne-d"></div>
Ejemplo n.º 2
0

<div class="wrapper-potins">

  
  <!--<h3>Nouveau potin</h3>-->
  <?php 
include 'vue/rediger_potin/nouveau_potin.php';
?>
     

  <div id="emplacement-nouveau-potin"></div>

  <?php 
include_once 'modele/rechercher_potins.php';
$potins_cherches = rechercher_potins_des_groupes_de_user_offset($id_user, 10, 0, $bdd);
include_once 'vue/potin/affichage_potin.php';
include_once 'vue/potin/potin_v4.php';
if ($potins_cherches != 'plus_de_potins' && $potins_cherches != 'pas_de_potins' && $potins_cherches != 'erreur') {
    foreach ($potins_cherches as $i => $potin_courant) {
        $potin_courant = infos_potin($potin_courant, $bdd);
        //echo vue_affichage_potin($potin_courant, $id_user, $bdd);
        echo vue_potin_v4($potin_courant, $id_user, $bdd);
    }
} else {
    echo 'Il n\'y a pas de potins à afficher';
}
?>

  <div id="fin-colonne"></div>