1 <h2>Configuration de SourceML</h2>
3 <form name="config_form" action="<?php echo $this->url("admin/sourceml") ?>" method="post">
7 <label for="start_action">Accueil du site</label>
8 <div class="form_input">
9 <select name="start_action" id="start_action" onchange="select_start_action(this.options[this.selectedIndex].value)">
10 <option value="sources/groupe"<?php echo "sources/groupe" == $this->out["config"]["start_action"] ? " selected" : "" ?>>Liste des groupes</option>
11 <?php if($this->out["groupes"]["list"]) : ?>
12 <option value="sources/groupe/view"<?php echo "sources/groupe/view" == $this->out["config"]["start_action"] ? " selected" : "" ?>>Un groupe</option>
14 <?php if($this->out["albums"]["list"]) : ?>
15 <option value="sources/album/view"<?php echo "sources/album/view" == $this->out["config"]["start_action"] ? " selected" : "" ?>>Un album</option>
17 <option value=""<?php echo substr($this->out["config"]["start_action"], 0, 7) == "sources" ? "" : " selected" ?>>Accueil par défaut du site</option>
20 <?php if($this->out["groupes"]["list"]) : ?>
21 <select name="groupe_param" id="groupe_param"<?php if($this->out["config"]["start_action"] != "sources/groupe/view") : ?> style="display:none;"<?php endif; ?>>
22 <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : ?>
23 <option value="<?php echo $id_groupe ?>"<?php echo $this->out["config"]["start_action_params"]["id"] == $id_groupe ? " selected=\"selected\"" : "" ?>><?php echo $groupe["nom"] ?></option>
28 <?php if($this->out["albums"]["list"]) : ?>
29 <select name="album_param" id="album_param"<?php if($this->out["config"]["start_action"] != "sources/album/view") : ?> style="display:none;"<?php endif; ?>>
30 <?php foreach($this->out["albums"]["list"] as $id_album => $album) : ?>
31 <option value="<?php echo $id_album ?>"<?php echo $this->out["config"]["start_action_params"]["album"] == $id_album ? " selected=\"selected\"" : "" ?>><?php echo $album["titre"] ?></option>
38 <div class="form_single_button">
39 <input type="submit" value="Enregistrer" />