source: trunk/web/app/out/dist/content/set_artiste_albums/e_add_album.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: 3.3 KB
Line 
1<h3>Nouvel album</h3>
2
3<form name="album_form"
4      action="<?= $env->url(array("e" => "set_artiste_albums", "artiste" => $_GET[$env->param("artiste")], "action" => "add_album")) ?>"
5      method="post"
6      enctype="multipart/form-data">
7<table class="admin">
8  <tr>
9    <th>titre</th>
10    <td><input type="text" name="titre" value="<?= $env->out["album"]["titre"] ?>" size="40" /></td>
11  </tr>
12  <tr>
13    <th>image</th>
14    <td><input type="file" name="image" /></td>
15  </tr>
16  <tr>
17    <th style="vertical-align: bottom">date de cr&eacute;ation</th>
18    <td>
19      <br />
20<?php
21
22  $date_creation =
23  ( $env->out["album"]["date_creation"] ?
24      explode("-", $env->out["album"]["date_creation"])
25    : array(0 => date("Y"), 1 => date("m"), 2 => date("d"))
26  );
27
28?>
29      jour
30      <select name="jour_date_creation">
31<?php for($j = 1; $j <=31; $j++) : ?>
32        <option value="<?= $j ?>"<?= $date_creation[2] == $j ? " selected" : ""?>><?= $j ?></option>
33<?php endfor; ?>
34      </select>
35      mois
36      <select name="mois_date_creation">
37<?php for($m = 1; $m <=12; $m++) : ?>
38       <option value="<?= $m ?>"<?= $date_creation[1] == $m ? " selected" : ""?>><?= $m ?></option>
39<?php endfor; ?>
40      </select>
41      ann&eacute;e
42      <input type="text" size="4" name="annee_date_creation" value="<?= $date_creation[0] ?>">
43    </td>
44  </tr>
45  <tr>
46    <th style="vertical-align: middle">archive</th>
47    <td>
48      <br />
49      <p class="info">Vous pouvez pr&eacute;ciser une archive pour t&eacute;l&eacute;charger l'album en entier :</p>
50      url
51      <input type="text" name="url" value="<?= $env->out["album"]["url"] ?>" size="30">
52      format
53      <select name="format">
54<?php foreach($env->out["formats"] as $id => $values) : ?>
55        <option value="<?= $id ?>"<?= $url["id_format"] == $id ? " selected" : ""?>><?= $values["nom"] ?></option>
56<?php endforeach; ?>
57      </select>
58    </td>
59  </tr>
60</table>
61<table>
62  <tr><th style="text-align: left">description</th></tr>
63  <tr>
64    <td>
65      <textarea name="description" id="description" style="width: 490px; height: 400px;"><?= $env->out["album"]["description"] ?></textarea>
66      <script type="text/javascript" src="<?= $env->path("tinymce") ?>jscripts/tiny_mce/tiny_mce.js"></script>
67      <script type="text/javascript">
68      tinyMCE.init
69      ( { mode: "exact",
70          elements : "description",
71          theme : "advanced",
72          plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
73          theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image",
74          theme_advanced_buttons2 : null,
75          theme_advanced_buttons3 : null,
76          theme_advanced_toolbar_location : "top",
77          theme_advanced_toolbar_align : "left",
78          theme_advanced_statusbar_location : "bottom",
79          theme_advanced_resizing : true,
80          content_css : "<?= $env->out_file("css/tiny_mce.css") ?>"
81        }
82      );
83      </script>
84    </td>
85  </tr>
86  <tr>
87    <td align="center"><input type="submit" value="Enregistrer l'album" /></td>
88  </tr>
89</table>
90</form>
Note: See TracBrowser for help on using the repository browser.