1 <?php require $this->out_file("views/tinymce.init.js.php"); $data = $this->data(); ?>
3 <h2>Modifier un album</h2>
6 <li><a href="<?php echo $this->url("users/albums") ?>">Retour à la liste des albums</a></li>
9 <?php if($this->out["groupes"]["total"] > 0) : ?>
11 <form name="album_form" action="<?php echo $this->url("users/albums/edit", array("id" => $_GET[$this->param("id")])) ?>" method="post" enctype="multipart/form-data">
13 <input type="hidden" name="date_inscription" value="<?php echo $this->out["album"]["date_inscription"] ?>" />
18 <label for="id_groupe"> </label>
19 <div class="form_input">
20 <ul class="source_groupes">
21 <?php foreach($this->out["album"]["groupes"] as $id_groupe => $groupe) : ?>
22 <li class="source_groupe" id="source_groupe_<?php echo $id_groupe; ?>">
23 <span class="author"><?php echo $groupe["nom"]; ?></span>
24 <span class="access"><?php echo $this->out["sources_access"][$groupe["id_groupe_status"]]["intitule"]; ?></span>
33 <?php if($this->out["album"]["permissions"]["admin"]) : ?>
35 <li><a href="<?php echo $this->url("users/albums/groupes", array("id" => $this->out["album"]["id"])) ?>">Editer les groupes de l'album</a></li>
42 <label for="titre">titre</label>
43 <div class="form_input">
44 <input type="text" class="long_text" name="titre" id="titre" value="<?php echo $this->out["album"]["titre"] ?>" />
49 <label for="image">icone</label>
50 <div class="form_input">
51 <?php if(isset($this->out["album"]["image"])) : ?>
52 <img class="logo" src="<?php echo $this->out["album"]["image_uri"] ?>" /><br /><br />
53 <input type="checkbox" name="del_image" /> effacer l'icone<br /><br />
55 <input type="file" name="image" />
60 <label for="licence">licence</label>
61 <div class="form_input">
62 <select name="licence" id="licence">
63 <option value="0"<?php echo $this->out["album"]["licence"] == 0 ? "selected=\"selected\"" : "" ?>>licences précisées dans le contenu</option>
64 <?php foreach($this->out["licences"]["list"] as $id_licence => $licence) : ?>
65 <option value="<?php echo $id_licence ?>"<?php echo $this->out["album"]["licence"]["id"] == $id_licence ? "selected=\"selected\"" : "" ?>><?php echo $licence["nom"] ?></option>
72 <label for="date_creation">date de création</label>
73 <div class="form_input">
77 ( $this->out["album"]["date_creation"] ?
78 explode("-", $this->out["album"]["date_creation"])
79 : array(0 => date("Y"), 1 => date("m"), 2 => date("d"))
84 <select name="jour_date_creation">
85 <?php for($j = 1; $j <=31; $j++) : ?>
86 <option value="<?php echo $j ?>"<?php echo $date_creation[2] == $j ? " selected=\"selected\"" : ""?>><?php echo $j ?></option>
90 <select name="mois_date_creation">
91 <?php for($m = 1; $m <=12; $m++) : ?>
92 <option value="<?php echo $m ?>"<?php echo $date_creation[1] == $m ? " selected=\"selected\"" : ""?>><?php echo $m ?></option>
96 <input type="text" size="4" name="annee_date_creation" value="<?php echo $date_creation[0] ?>">
101 <h3><label>Fichiers</label> <a href="#" onclick="add_document(); return false;">Ajouter un fichier</a></h3>
107 <?php if($this->out["album"]) : foreach($this->out["album"]["documents"] as $id_document => $document) : ?>
109 <div class="document" id="document_<?php echo $id_document ?>">
110 <div class="delete"><a href="#" onclick="del_document('<?php echo $id_document ?>'); return false;">Enlever ce fichier</a></div>
111 <label for="document_nom_<?php echo $id_document ?>">nom</label>
112 <input type="text" class="long_text" name="document_nom_<?php echo $id_document ?>" id="document_nom_<?php echo $id_document ?>" value="<?php echo $document["nom"] ?>" />
113 <div class="clear"><!-- --></div>
114 <label for="document_url_<?php echo $id_document ?>">url</label>
115 <input type="text" size="48" name="document_url_<?php echo $id_document ?>" id="document_url_<?php echo $id_document ?>" value="<?php echo $document["url"] ?>" />
117 <script type="text/javascript">if(last_document_id <= <?php echo $id_document ?>) last_document_id = <?php echo $id_document ?> + 1; </script>
119 <?php endforeach; endif; ?>
125 <label for="description">description</label>
128 <textarea class="tinymce" cols="70" rows="10" name="description" id="description"><?php echo isset($this->out["album"]["description"]) ? $this->out["album"]["description"] : "" ?></textarea>
135 <div class="form_buttons">
136 <input type="submit" value="Enregistrer" />
145 <p>Vous ne gérez aucun groupe pour le moment.</p>
146 <p>Pour ajouter un album, vous devez d'abord <a href="<?php echo $this->url("users/groupes/add") ?>">créer un groupe</a>.</p>