source: trunk/web/app/out/dist/content/set_artiste_downloads/e_download.php @ 6

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

mise a jour du trunk

File size: 6.3 KB
Line 
1    <h3><?= $env->out["download"]["nom"] ?></h3>
2    <br>
3    <a href="<?=
4         $env->url
5         ( array
6           ( "e" => "set_artiste_downloads",
7             "artiste" => $env->out["artiste"]["id"],
8             "action" => "del_download",
9             "download" => $_GET[$env->param("download")]
10           )
11         )
12       ?>"
13       class="admin_link"
14       title="supprimer ce download"
15       onclick="return confirm('supprimer ce download ?\nTous les fichiers associ&eacute;s seront aussi supprim&eacute;s')">
16      <img src="<?= $env->out_file("icons/del.gif") ?>" />
17    </a>
18    <form name="set_download"
19          action="<?=
20           $env->url
21           ( array
22             ( "e" => "set_artiste_downloads",
23               "artiste" => $env->out["artiste"]["id"],
24               "action" => "set_download",
25               "download" => $_GET[$env->param("download")]
26             )
27           )
28          ?>"
29          method="post">
30      <input type="hidden" name="action" value="set_download" />
31      <table class="admin">
32        <tr>
33          <th>nom du download</th>
34          <td><input type="text" name="nom" value="<?= $env->out["download"]["nom"] ?>" size="40"/></td>
35        </tr>
36        <tr>
37          <th>style</th>
38          <td><input type="text" name="style" value="<?= $env->out["download"]["style"] ?>" size="40"/></td>
39        </tr>
40        <tr>
41          <th>licence</th>
42          <td>
43            <select name="licence">
44<?php foreach($env->out["licences"] as $id => $values) : ?>
45              <option value="<?= $id ?>"<?= $env->out["download"]["id_licence"] == $id ? " selected" : ""?>><?= $values["nom"] ?></option>
46<?php endforeach; ?>
47            </select>
48            <p class="info">Si vous utilisez une licence ouverte qui n'est pas dans la liste,
49            <a href="<?= $env->url(array("e" => "contact")) ?>">contactez-nous</a>.</p>
50          </td>
51        </tr>
52        <tr>
53          <th>date de cr&eacute;ation</th>
54          <td>
55<?php $date_creation = explode("-", $env->out["download"]["date_creation"]); ?>
56            jour
57            <select name="jour_date_creation">
58<?php for($j = 1; $j <=31; $j++) : ?>
59              <option value="<?= $j ?>"<?= $date_creation[2] == $j ? " selected" : ""?>><?= $j ?></option>
60<?php endfor; ?>
61            </select>
62            mois
63            <select name="mois_date_creation">
64<?php for($m = 1; $m <=12; $m++) : ?>
65              <option value="<?= $m ?>"<?= $date_creation[1] == $m ? " selected" : ""?>><?= $m ?></option>
66<?php endfor; ?>
67            </select>
68            ann&eacute;e
69            <input type="text" size="4" name="annee_date_creation" value="<?= $date_creation[0] ?>">
70          </td>
71        </tr>
72        <tr>
73          <th>Album</th>
74          <td>
75<?php if($env->out["albums"]) : ?>
76            <select name="album">
77              <option value=""<?= $env->out["download"]["id_album"] ? "" : " selected" ?>>Aucun album</option>
78<?php foreach($env->out["albums"] as $id => $album) : ?>
79              <option value="<?= $id ?>"<?= $env->out["download"]["id_album"] == $id ? " selected" : ""?>><?= $album["titre"] ?></option>
80<?php endforeach; ?>
81            </select>
82<?php else : ?>
83            <p class="info">Vous n'avez inscrit aucun album pour le moment</p>
84<?php endif; ?>
85          </td>
86        </tr>
87        <tr>
88          <td colspan="2" align="right"><input type="submit" value="Enregistrer" /></td>
89        </tr>
90      </table>
91    </form>
92
93    <h3>fichiers</h3>
94    <?php foreach($env->out["download"]["urls"] as $id_url => $url) : ?>
95    <form name="set_fichier_<?= $id_url ?>"
96          action="<?=
97            $env->url
98            ( array
99              ( "e" => "set_artiste_downloads",
100                "artiste" => $env->out["artiste"]["id"],
101                "action" => "set_download_url",
102                "download" => $_GET[$env->param("download")]
103              )
104            )
105          ?>"
106          method="post">
107      <input type="hidden" name="action" value="set_fichier" />
108      <input type="hidden" name="id_url" value="<?= $id_url ?>" />
109      <table class="admin">
110        <tr>
111          <td>
112            url
113            <input type="text" name="url" value="<?= $url["url"] ?>" size="25">
114            format
115            <select name="format">
116<?php foreach($env->out["formats"] as $id => $values) : ?>
117              <option value="<?= $id ?>"<?= $url["id_format"] == $id ? " selected" : ""?>><?= $values["nom"] ?></option>
118<?php endforeach; ?>
119            </select>
120          </td>
121          <td align="right">
122            <input type="submit" value="Enregistrer" />
123            <a href="<?=
124                 $env->url
125                 ( array
126                   ( "e" => "set_artiste_downloads",
127                     "artiste" => $env->out["artiste"]["id"],
128                     "action" => "del_download_url",
129                     "download" => $_GET[$env->param("download")],
130                     "url" => $id_url
131                   )
132                 )
133               ?>"
134               class="admin_link"
135               title="supprimer ce fichier"
136               onclick="return confirm('supprimer ce fichier ?\nSi c\'est le seul fichier pour ce download, le download sera aussi supprim&eacute;')">
137              <img src="<?= $env->out_file("icons/del.gif") ?>" />
138            </a>
139          </td>
140      </table>
141    </form>
142    <?php endforeach; ?>
143
144    <h3>ajouter un fichier</h3>
145    <form name="add_fichier"
146          action="<?=
147            $env->url
148            ( array
149              ( "e" => "set_artiste_downloads",
150                "artiste" => $env->out["artiste"]["id"],
151                "action" => "add_download_url",
152                "download" => $_GET[$env->param("download")]
153              )
154            )
155          ?>"
156          method="post">
157      <input type="hidden" name="action" value="add_fichier" />
158      <table class="admin">
159        <tr>
160          <td>
161            url
162            <input type="text" name="url" value="" size="25">
163            format
164            <select name="format">
165<?php foreach($env->out["formats"] as $id => $values) : ?>
166              <option value="<?= $id ?>"><?= $values["nom"] ?></option>
167<?php endforeach; ?>
168            </select>
169          </td>
170          <td align="right">
171            <input type="submit" value="Ajouter" />
172          </td>
173      </table>
174    </form>
175    <div style="clear: both">&nbsp;</div>
Note: See TracBrowser for help on using the repository browser.