source: trunk/web/app/out/dist/content/set_links/e_links.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: 2.1 KB
Line 
1<h2>Les liens</h2>
2<div class="bloc_content">
3  <h3>
4<?php require $env->out_file("views/ariane_links.php"); ?>
5  </h3>
6
7  <br />
8  <ul>
9    <li><a href="<?= $env->url(array("e" => "set_links", "action" => "add_links_categorie", "path" => $_GET[$env->param("path")])) ?>">Nouveau lien / cat&eacute;gorie de liens</a></li>
10  </ul>
11<?php if($env->out["links_categories"]["list"]) : ?>
12
13<form name="links_form" action="<?= $env->url(array("e" => "set_links", "path" => $_GET[$env->param("path")])) ?>" method="post">
14<table class="admin">
15  <tr>
16    <th>intitul&eacute;</th>
17    <th>ordre</th>
18    <th colspan="2">actions</th>
19  </tr>
20<?php foreach($env->out["links_categories"]["list"] as $id_links_categorie => $links_categorie) : ?>
21  <tr class="hl">
22    <td><a href="<?= $env->url(array("e" => "set_links", "path" => $_GET[$env->param("path")]."/".$links_categorie["id"])) ?>"><?= $links_categorie["titre"] ?></a></td>
23    <td><input type="text" name="ordre_<?= $id_links_categorie ?>" value="<?= $links_categorie["ordre"] ?>" size="5" /></td>
24    <td align="center">
25    <a href="<?= $env->url(array("e" => "set_links", "action" => "set_links_categorie", "id" => $id_links_categorie, "path" => $_GET[$env->param("path")])) ?>"
26       class="admin_link"
27       title="modifier ce lien / cat&eacute;gorie de lien"><img src="<?= $env->out_file("icons/edit.gif") ?>" /></a>
28    </td>
29    <td align="center">
30    <a href="<?= $env->url(array("e" => "set_links", "action" => "del_links_categorie", "id" => $id_links_categorie, "path" => $_GET[$env->param("path")])) ?>"
31       class="admin_link"
32       title="supprimer ce lien / cat&eacute;gorie de liens"
33       onclick="return confirm('supprimer ce lien ?\ntous ses sous-liens seront aussi supprim&eacute;s')"><img src="<?= $env->out_file("icons/del.gif") ?>" /></a>
34    </td>
35  </tr>
36<?php endforeach; ?>
37  <tr>
38    <td colspan="2">&nbsp;</td>
39    <td><input type="submit" value="appliquer l'ordre" /></td>
40    <td colspan="2">&nbsp;</td>
41  </tr>
42</table>
43</form>
44<?php else : ?>
45  <p>Aucun lien dans cette cat&eacute;gorie.</p>
46<?php endif; ?>
47</div>
Note: See TracBrowser for help on using the repository browser.