[1] | 1 | |
---|
| 2 | <h2>Rechercher</h2> |
---|
| 3 | <div class="bloc_content"> |
---|
| 4 | <br /> |
---|
| 5 | <form id="search" name="search_form" action="<?= $env->url(array("e" => "rechercher")) ?>" method="post"> |
---|
| 6 | <input type="text" name="match" value="<?= $_POST["match"]?>" /> |
---|
| 7 | <input type="submit" value="Rechercher" /> |
---|
| 8 | </form> |
---|
| 9 | |
---|
| 10 | <?php if($env->out["results"]) : ?> |
---|
| 11 | <div id="search_results"> |
---|
| 12 | <p>Résultats pour <strong><?= $env->out["results"]["match"] ?></strong> :</p> |
---|
| 13 | <?php if($env->out["results"]["has_results"]) : ?> |
---|
| 14 | <?php if($env->out["results"]["artistes"]) : ?> |
---|
| 15 | <h2>artistes</h2> |
---|
| 16 | |
---|
| 17 | <?php foreach($env->out["results"]["artistes"] as $id => $artiste) : ?> |
---|
| 18 | <div class="artiste_list_link"> |
---|
| 19 | <a href="<?= $env->url(array("e" => "artistes", "artiste" => $id)) ?>"> |
---|
| 20 | <img src="<?php echo $artiste["image"]; ?>" style="float: left; width: 60px; margin: 0px 10px 10px 0px; border: none;"> |
---|
| 21 | </a> |
---|
| 22 | <a href="<?= $env->url(array("e" => "artistes", "artiste" => $id)) ?>"><?= $artiste["nom"] ?></a><br> |
---|
| 23 | <?= $artiste["style"] ?> |
---|
| 24 | <div style="clear: both"> </div> |
---|
| 25 | </div> |
---|
| 26 | <?php endforeach; ?> |
---|
| 27 | <div class="clear"><!-- --></div> |
---|
| 28 | <?php endif; ?> |
---|
| 29 | <?php if($env->out["results"]["downloads"]) : ?> |
---|
| 30 | <h2>downloads</h2> |
---|
| 31 | |
---|
| 32 | <?php foreach($env->out["results"]["downloads"] as $id_download => $download) : ?> |
---|
| 33 | |
---|
| 34 | <div class="download"> |
---|
| 35 | |
---|
| 36 | <h3> |
---|
| 37 | <?php echo $download["nom"]; ?> |
---|
| 38 | (<a href="<?= $env->url(array("e" => "artistes", "artiste" => $download["id_artiste"])) ?>"><?= $download["auteur"] ?></a>) |
---|
| 39 | </h3> |
---|
| 40 | <div class="dleft"> |
---|
| 41 | <?php echo $download["style"]; ?><br/> |
---|
| 42 | <table> |
---|
| 43 | <tr> |
---|
| 44 | <td>playlist :</td> |
---|
| 45 | <td> |
---|
| 46 | <?php foreach($download["urls"] as $id_url => $url) : ?> |
---|
| 47 | <a href="<?= $env->url(array("e" => "m3u", "download" => $id_url), "download.php") ?>"><?= $url["format"]; ?></a> |
---|
| 48 | <?php endforeach; ?> |
---|
| 49 | </td> |
---|
| 50 | </tr> |
---|
| 51 | <tr> |
---|
| 52 | <td>download :</td> |
---|
| 53 | <td> |
---|
| 54 | <?php foreach($download["urls"] as $id_url => $url) : ?> |
---|
| 55 | <a href="<?= $env->url(array("e" => "down", "download" => $id_url), "download.php") ?>"><?= $url["format"]; ?></a> |
---|
| 56 | <?php endforeach; ?> |
---|
| 57 | </td> |
---|
| 58 | </tr> |
---|
| 59 | </table> |
---|
| 60 | </div> |
---|
| 61 | <div class="dright"> |
---|
| 62 | <?php echo $download["date_creation"]; ?><br/> |
---|
| 63 | <a href="<?php echo $download["licence_url"]; ?>"><?php echo $download["licence"]; ?></a> |
---|
| 64 | </div> |
---|
| 65 | <div style="clear: both"> </div> |
---|
| 66 | </div> |
---|
| 67 | |
---|
| 68 | <?php endforeach; ?> |
---|
| 69 | <div style="clear: both"> </div> |
---|
| 70 | |
---|
| 71 | <?php endif; ?> |
---|
| 72 | <?php else : ?> |
---|
| 73 | <p>Aucun résultat pour cette recherche</p> |
---|
| 74 | <?php endif; ?> |
---|
| 75 | </div> |
---|
| 76 | <?php endif; ?> |
---|
| 77 | </div> |
---|