1 | <h3>Les downloads</h3> |
---|
2 | <ul> |
---|
3 | <li><a href="<?= $env->url(array("e" => "set_artiste_downloads", "artiste" => $env->out["artiste"]["id"], "action" => "add_download")) ?>">Nouveau download</a></li> |
---|
4 | </ul> |
---|
5 | |
---|
6 | <?php if($env->out["downloads"]) : ?> |
---|
7 | |
---|
8 | <form name="downloads" |
---|
9 | action="<?= $env->url(array("e" => "set_artiste_downloads", "artiste" => $env->out["artiste"]["id"], "action" => "set_downloads")) ?>" |
---|
10 | method="post"> |
---|
11 | <table class="admin"> |
---|
12 | <tr> |
---|
13 | <th>titre</th> |
---|
14 | <th>ordre</th> |
---|
15 | <th>montrer</th> |
---|
16 | <th>compteur</th> |
---|
17 | <th colspan="2">actions</th> |
---|
18 | </tr> |
---|
19 | <?php $compteur = 0; foreach($env->out["downloads"] as $id => $values) : ?> |
---|
20 | <tr class="hl"> |
---|
21 | <td><?= $values["nom"]?></td> |
---|
22 | <td><input type="text" size="4" name="ordre_<?= $id ?>" value="<?= $values["ordre"] ?>" /></td> |
---|
23 | <td><input type="checkbox" name="actif_<?= $id ?>" <?= $values["actif"] ? "checked " : "" ?>/></td> |
---|
24 | <td><?= $values["compteur"] ?></td> |
---|
25 | <td align="center"> |
---|
26 | <a href="<?= $env->url(array("e" => "set_artiste_downloads", "action" => "download", "download" => $id, "artiste" => $env->out["artiste"]["id"])) ?>" |
---|
27 | class="admin_link" |
---|
28 | title="modifier ce download"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a> |
---|
29 | </td> |
---|
30 | <td align="center"> |
---|
31 | <a href="<?= $env->url(array("e" => "set_artiste_downloads", "action" => "del_download", "download" => $id, "artiste" => $env->out["artiste"]["id"])) ?>" |
---|
32 | class="admin_link" |
---|
33 | title="supprimer ce download" |
---|
34 | onclick="return confirm('supprimer ce download ?')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | <?php $compteur += $values["compteur"]; endforeach; ?> |
---|
38 | <tr> |
---|
39 | <th colspan="3" align="right">total</th> |
---|
40 | <td colspan="3"><?= $compteur ?></td> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td colspan="6" align="center"><input type="submit"value="Enregistrer" /></td> |
---|
44 | </tr> |
---|
45 | </table> |
---|
46 | </form> |
---|
47 | |
---|
48 | <?php else : ?> |
---|
49 | |
---|
50 | <p>Aucun download pour le moment.</p> |
---|
51 | |
---|
52 | <?php endif; ?> |
---|
53 | |
---|
54 | <div style="clear: both"> </div> |
---|