Esempio n. 1
0
        <div id="artist_left">
                             
            <div id="search_per">
            <div id="search_titre" style="background-color:#299D8B;">Personnalisez votre recherche</div>
             

            <div id="search_form">
          <form>
            <label> Evénement :</label><br>
             <select id="search_event1" class="select3"><option></option>
                                            <?php 
$x = requete_event('{"query":{"bool":{"must":[],"must_not":[],"should":[
                      {"range":{"event.pubDate":{"from":"' . date("d/m/y") . '"}}}]}},
                      "from":0,"size":10,"sort":[],"facets":{}}');
$results = array();
for ($j = 0; $j < totale_event($x); $j++) {
    $results[$j] = titre_event($x, $j);
}
$i = 0;
$row_tab[] = array();
foreach ($results as $value) {
    echo "<option>" . $value . "</option>";
}
echo "</select>";
// echo json_encode($row_tab);
?>
<br>
            <label> Type d’événement :</label><br>
            <select id="typeEvent" class="select3">
            <option></option>
              <option>Vernisage</option>
Esempio n. 2
0
                  
               
                    

                </div>
                <br>


                <div class="minievenmentss">
                  

              <?php 
$events = requete_event('{"query":{"bool":{"must":[],"must_not":[],"should":[
                                          {"range":{"event.pubDate":{"from":"' . date("d/m/y") . '"}}}]}},
                                          "from":0,"size":4,"sort":[],"facets":{}}');
for ($i = 0; $i < totale_event($events, $i); $i++) {
    $imag_event = images_event($events, $i);
    $p = pubDate_event_s($events, $i);
    echo '<div class="minievenments">';
    echo '<a href="evenment.php?event=' . titre_event($events, $i) . '&du=' . $p[0] . '&au=' . $p[1] . '"><img src="' . $imag_event[count($imag_event) - 1] . '" class="peloton"></a>';
    echo '<div style="margin: -15px 10px;">';
    echo '<h1>' . titre_event($events, $i) . '</h1>';
    echo '<p align="center">' . place_event($events, $i) . '<br></p>';
    echo '</div>';
    echo '<br>';
    echo '</div>';
}
?>
                <div id="fb-root"></div>
					<script>(function(d, s, id) {
					  var js, fjs = d.getElementsByTagName(s)[0];