source: branches/rsr.v5.1/web/app/out/dist/content/set_artistes/e_user_artistes.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.6 KB
RevLine 
[1]1<h2>Les artistes g&eacute;r&eacute;s par <?= $env->out["user"]["username"] ?></h2>
2<div class="bloc_content">
3<ul>
4  <li><a href="<?=
5    $env->url
6    ( array
7      ( "e" => "set_artistes",
8        "action" => "add_user_artiste",
9        "user" => $_GET[$env->param("user")]
10      )
11    )
12    ?>">Cr&eacute;er un nouvel artiste pour cet utilisateur</a></li>
13</ul>
14
15<?php if($env->out["artistes"]) : ?>
16
17<table class="admin">
18  <tr>
19    <th>nom</th>
20    <th style="text-align: center" colspan="2">actions</th>
21  </tr>
22<?php foreach($env->out["artistes"] as $id_artiste => $artiste) : ?>
23  <tr class="hl">
24    <td><?= $artiste["nom"] ?></td>
25    <td align="center">
26    <a href="<?=
27      $env->url
28      ( array
29        ( "e" => "set_artistes",
30          "action" => "set_user_artiste",
31          "user" => $_GET[$env->param("user")],
32          "artiste" => $id_artiste
33        )
34      ) ?>"
35       class="admin_link"
36       title="modifier le compte artiste"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a>
37    </td>
38    <td align="center">
39    <a href="<?=
40      $env->url
41      ( array
42        ( "e" => "set_artistes",
43          "action" => "del_user_artiste",
44          "user" => $_GET[$env->param("user")],
45          "artiste" => $id_artiste
46        )
47      ) ?>"
48       class="admin_link"
49       title="supprimer cet artiste"
50       onclick="return confirm('supprimer cet artiste ?\nsa pr&eacute;sentation, ses downloads, etc, seront aussi supprim&eacute;s')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a>
51    </td>
52  </tr>
53<?php endforeach; ?>
54</table>
55<?php else : ?>
56  <p>Aucun artiste pour le moment...</p>
57<?php endif; ?>
58</div>
Note: See TracBrowser for help on using the repository browser.