4 <li><a class="add" href="<?php echo $this->url("users/albums/add") ?>">Nouvel album</a></li>
7 <?php if($this->out["groupes"]["total"] > 0) : ?>
13 $url_params = array();
16 <select onchange="document.location=this.options[this.selectedIndex].value;">
17 <option value="<?php echo $this->url("users/albums", $url_params) ?>"<?php echo $_GET[$this->param("groupe")] == "0" ? " selected=\"selected\"" : "" ?>>Tous les groupes</option>
18 <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : $url_params["groupe"] = $id_groupe; ?>
19 <option value="<?php echo $this->url("users/albums", $url_params) ?>"<?php echo $_GET[$this->param("groupe")] == $id_groupe ? " selected=\"selected\"" : "" ?>><?php echo $groupe["nom"] ?></option>
27 <?php if($this->out["albums"]["list"]) : ?>
29 <?php $items = "albums"; $legend = "albums"; require $this->out_file("views/navig.php"); ?>
33 $get_params = array();
34 if(isset($_GET[$this->param("groupe")]) && $_GET[$this->param("groupe")]) $get_params["groupe"] = $_GET[$this->param("groupe")];
37 <form name="sources_form" action="<?php echo $this->url("users/albums", $get_params) ?>" method="post">
43 <th align="center" colspan="2">actions</th>
45 <?php foreach($this->out["albums"]["list"] as $id_album => $album) : ?>
48 <?php if($album["reference"]) : ?>
49 référence » <a href="<?php echo $album["reference"]["from"] ?>"><?php echo $album["reference"]["titre"] ?> (<?php echo $album["reference"]["auteur"] ?>)</a>
51 <?php if($album["permissions"]["editeur"]) : ?>
52 <a href="<?php echo $this->url("users/albums/edit", array("id" => $id_album)) ?>"><?php echo $album["titre"] ?></a>
54 <?php echo $album["titre"] ?>
57 <?php if($album["derivations"]) : ?>
60 dérive de »
61 <?php $n = 0; foreach($album["derivations"] as $derivation) : ?>
62 <?php echo $n ? ", " : "" ?><a href="<?php echo $album["from"] ?>"><?php echo $album["titre"] ?> (<?php echo $album["auteur"] ?>)</a>
63 <?php $n++; endforeach; ?>
67 <td class="action"><input type="text" name="ordre_<?php echo $id_album ?>" value="<?php echo isset($album["ordre"]) ? $album["ordre"] : 0 ?>" size="3" /></td>
69 <?php if($album["permissions"]["editeur"]) : ?>
70 <a href="<?php echo $this->url("users/albums/edit", array("id" => $id_album)) ?>"
72 title="modifier cet album"><img src="<?php echo $this->out_url("icons/edit.gif") ?>" /></a>
78 <?php if($album["permissions"]["admin"]) : ?>
79 <a href="<?php echo $this->url("users/albums/del", array("id" => $id_album)) ?>"
81 title="supprimer cet album"><img src="<?php echo $this->out_url("icons/del.gif") ?>"
82 onclick="return confirm('Supprimer cet album ?')"/></a>
92 <div class="form_buttons">
93 <input type="submit" value="Enregistrer l'ordre" />
100 <?php $items = "album"; $legend = "album"; require $this->out_file("views/navig.php"); ?>
103 <p>Aucun album pour le moment</p>