[1] | 1 | <h3>Modifier un album</h3> |
---|
| 2 | |
---|
| 3 | <form name="album_form" |
---|
| 4 | action="<?= $env->url(array("e" => "set_artiste_albums", "artiste" => $_GET[$env->param("artiste")], "action" => "set_album", "album" => $_GET[$env->param("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> |
---|
| 15 | <?php if($env->out["album"]["image"]) : ?> |
---|
| 16 | <img src="<?= $env->out["album"]["image"] ?>" width="200" /> |
---|
| 17 | <br /> |
---|
| 18 | <input type="checkbox" name="del_image" /> effacer l'image |
---|
| 19 | <br /> |
---|
| 20 | <?php endif; ?> |
---|
| 21 | <input type="file" name="image" /> |
---|
| 22 | </td> |
---|
| 23 | </tr> |
---|
| 24 | <tr> |
---|
| 25 | <th style="vertical-align: bottom">date de création</th> |
---|
| 26 | <td> |
---|
| 27 | <br /> |
---|
| 28 | <?php |
---|
| 29 | |
---|
| 30 | $date_creation = |
---|
| 31 | ( $env->out["album"]["date_creation"] ? |
---|
| 32 | explode("-", $env->out["album"]["date_creation"]) |
---|
| 33 | : array(0 => date("Y"), 1 => date("m"), 2 => date("d")) |
---|
| 34 | ); |
---|
| 35 | |
---|
| 36 | ?> |
---|
| 37 | jour |
---|
| 38 | <select name="jour_date_creation"> |
---|
| 39 | <?php for($j = 1; $j <=31; $j++) : ?> |
---|
| 40 | <option value="<?= $j ?>"<?= $date_creation[2] == $j ? " selected" : ""?>><?= $j ?></option> |
---|
| 41 | <?php endfor; ?> |
---|
| 42 | </select> |
---|
| 43 | mois |
---|
| 44 | <select name="mois_date_creation"> |
---|
| 45 | <?php for($m = 1; $m <=12; $m++) : ?> |
---|
| 46 | <option value="<?= $m ?>"<?= $date_creation[1] == $m ? " selected" : ""?>><?= $m ?></option> |
---|
| 47 | <?php endfor; ?> |
---|
| 48 | </select> |
---|
| 49 | année |
---|
| 50 | <input type="text" size="4" name="annee_date_creation" value="<?= $date_creation[0] ?>"> |
---|
| 51 | </td> |
---|
| 52 | </tr> |
---|
| 53 | <tr> |
---|
| 54 | <th style="vertical-align: middle">archive</th> |
---|
| 55 | <td> |
---|
| 56 | <br /> |
---|
| 57 | <p class="info">Vous pouvez préciser une archive pour télécharger l'album en entier :</p> |
---|
| 58 | url |
---|
| 59 | <input type="text" name="url" value="<?= $env->out["album"]["url"] ?>" size="30"> |
---|
| 60 | format |
---|
| 61 | <select name="format"> |
---|
| 62 | <?php foreach($env->out["formats"] as $id => $values) : ?> |
---|
| 63 | <option value="<?= $id ?>"<?= $env->out["album"]["format"] == $id ? " selected" : ""?>><?= $values["nom"] ?></option> |
---|
| 64 | <?php endforeach; ?> |
---|
| 65 | </select> |
---|
| 66 | </td> |
---|
| 67 | </tr> |
---|
| 68 | </table> |
---|
| 69 | <table> |
---|
| 70 | <tr><th style="text-align: left">description</th></tr> |
---|
| 71 | <tr> |
---|
| 72 | <td> |
---|
| 73 | <textarea name="description" id="description" style="width: 490px; height: 400px;"><?= $env->out["album"]["description"] ?></textarea> |
---|
| 74 | <script type="text/javascript" src="<?= $env->path("tinymce") ?>jscripts/tiny_mce/tiny_mce.js"></script> |
---|
| 75 | <script type="text/javascript"> |
---|
| 76 | tinyMCE.init |
---|
| 77 | ( { mode: "exact", |
---|
| 78 | elements : "description", |
---|
| 79 | theme : "advanced", |
---|
| 80 | 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", |
---|
| 81 | theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image", |
---|
| 82 | theme_advanced_buttons2 : null, |
---|
| 83 | theme_advanced_buttons3 : null, |
---|
| 84 | theme_advanced_toolbar_location : "top", |
---|
| 85 | theme_advanced_toolbar_align : "left", |
---|
| 86 | theme_advanced_statusbar_location : "bottom", |
---|
| 87 | theme_advanced_resizing : true, |
---|
| 88 | content_css : "<?= $env->out_file("css/tiny_mce.css") ?>" |
---|
| 89 | } |
---|
| 90 | ); |
---|
| 91 | </script> |
---|
| 92 | </td> |
---|
| 93 | </tr> |
---|
| 94 | <tr> |
---|
| 95 | <td align="center"><input type="submit" value="Enregistrer l'album" /></td> |
---|
| 96 | </tr> |
---|
| 97 | </table> |
---|
| 98 | </form> |
---|