Ejemplo n.º 1
0
					  <!-- Indicators -->
					  <ol class="carousel-indicators">
					    <li data-target="#myCarouselMini" data-slide-to="0" class="active"></li>
					    <li data-target="#myCarouselMini" data-slide-to="1"></li>
					    <li data-target="#myCarouselMini" data-slide-to="2"></li>
					    <li data-target="#myCarouselMini" data-slide-to="3"></li>
					    <li data-target="#myCarouselMini" data-slide-to="4"></li>
					  </ol>
					
					  <!-- Wrapper for slides -->
					  <div class="carousel-inner" role="listbox" style="height: 370px;width:295px;">
					  <?php 
for ($i = 0; $i < 5; $i++) {
    $class = "";
    $imgs_tend = images($oeuvretend, $i);
    $p = pubData($oeuvretend, $i);
    $title = body_title($oeuvretend, $i);
    if ($i == 0) {
        $class = "active";
    }
    echo '<div class="item ' . $class . '">';
    echo '<a href="oeuvre.php?artiste=' . $p[0] . '&oeuvre=' . ID($oeuvretend, $i) . '&type=' . Type($oeuvretend, $i) . '"><div class="oeuvre_detail"><strong>&ldquo;' . $p[0] . '&rdquo;</strong><br>' . $title . '</div><br/><img src="' . $imgs_tend[count($imgs_tend) - 1] . '" width="295"/></a>';
    echo '</div>';
}
?>
					  </div>
					
					</div>
                    

                   
Ejemplo n.º 2
0
                  <div>
                    <div class="left">
                      <p> zerhoun moyen atlas passage voute</p>
                    </div>

                   
                  </div>
                  <br>
                </div>


                <?php 
$result = requete('{"query":{"bool":{"must":[{"query_string":{"default_field":"oeuvre.parentUrl","query":"tendance"}}],"must_not":[],"should":[{"query_string":{"default_field":"_all","query":"tendance"}}]}},"from":0,"size":10,"sort":[],"facets":{}}');
for ($i = 0; $i < 3; $i++) {
    $imgs = images($result, $i);
    $p = pubData($result, $i);
    if (preg_match('`Inconnu`i', $p[0])) {
        $a = body_title($result, $i);
    } else {
        $a = $p[0];
    }
    echo '<div class="minioeuvres">';
    echo '<a href="oeuvre.php"><img src=' . $imgs[count($imgs) - 1] . ' class="peloton"></a>';
    echo '<div>';
    echo '<div class="left">';
    echo '<p>' . $a . '</p>';
    echo '</div>';
    echo '</div>';
    echo '<br>';
    echo '</div>';
}