Ejemplo n.º 1
0
}
?>
        </tr>
        <table/>

        <!-- bar de séparattion  evenements populaire-->
        <table class="matable">
            <caption><a class="mon_lien" href="#">Evénements populaires </a></caption>
            <tr>

                <?php 
$i = 0;
foreach ($resul_pop as $n) {
    echo '
                <td>
                    <span class="thumb_info">  &nbsp;' . show_nbr_inscrit_tous($n['id'])[0] . ' inscrit(s) &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;' . show_rating_all($n['id'])[0] . ' ☆</span>
                    <a href="index.php?page=evenement2&id=' . $n['id'] . '"><img src="assets/images/' . $n['photo_principale'] . '"/></a>
                    <div class="matable">
                        <h3>' . substr($n['Nom'], 0, 23) . '</h3>
                        <h4>' . date("D d F", strtotime($n['Dates'])) . ' à ' . date("H:i", strtotime($n['Heures'])) . '</h4>
                        <h6>' . $n['ville'] . '</h6>
                </td>';
    $i++;
    if ($i == 3) {
        echo '</tr><tr>';
        $i = 0;
    }
}
?>
            <tr/>
Ejemplo n.º 2
0
}
?>
        </tr>
        <table/>

        <!-- bar de séparattion -->
        <table class="matable">
            <caption><a class="mon_lien" href="#">Evénements populaires </a></caption>
            <tr>

                <?php 
$i = 0;
foreach ($donnees as $n) {
    echo '
                <td>
                    <span class="thumb_info"> ' . show_rating_all($n['id'])[0] . ' votes</span>
                    <img src="assets/images/' . $n['photo_principale'] . '"/>
                    <div class="matable">
                        <h3>' . $n['Nom'] . '</h3>
                        <h4>' . $n['Dates'] . '</h4>
                        <h6>' . $n['Ville'] . '</h6>
                </td>';
    $i++;
    if ($i == 3) {
        echo '</tr><tr>';
        $i = 0;
    }
}
?>
            <tr/>