2014-01-23 02:46:16 +01:00
|
|
|
<% include header.tt %>
|
2014-01-23 00:25:33 +01:00
|
|
|
<% include sidebar.tt %>
|
2014-01-24 22:37:02 +01:00
|
|
|
<% include error.tt %>
|
2014-01-20 01:08:03 +01:00
|
|
|
|
|
|
|
<div id="page">
|
2014-01-22 17:01:34 +01:00
|
|
|
|
2014-01-23 02:46:16 +01:00
|
|
|
<div id="domaines">
|
2014-01-22 17:01:34 +01:00
|
|
|
|
2014-01-23 02:46:16 +01:00
|
|
|
<h3>Domaines gérés</h3>
|
|
|
|
<table class="table" >
|
2014-01-22 17:01:34 +01:00
|
|
|
<tr>
|
|
|
|
<th>domaine</th>
|
|
|
|
<th>utilisateur</th>
|
|
|
|
<th>supprimer domaine</th>
|
|
|
|
<th>supprimer utilisateur</th>
|
|
|
|
</tr>
|
|
|
|
|
2015-10-15 17:06:35 +02:00
|
|
|
<% FOREACH d IN alldomains %>
|
2014-01-22 17:01:34 +01:00
|
|
|
<tr>
|
2015-12-21 16:14:45 +01:00
|
|
|
<td> <a href="/domain/details/<% d.domain %>"><% d.domain %></a> </td>
|
2015-10-15 17:06:35 +02:00
|
|
|
<td><% d.login %></td>
|
2014-01-22 17:01:34 +01:00
|
|
|
|
|
|
|
<td>
|
2015-10-15 17:06:35 +02:00
|
|
|
<a href="/domain/del/<% d.domain %>"><button type="button" class="btn btn-danger">Supprimer le domaine</button></a>
|
2014-01-22 17:01:34 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2015-10-15 17:06:35 +02:00
|
|
|
<a href="/user/del/<% d.login %>"><button type="button" class="btn btn-danger">Supprimer l'utilisateur</button></a>
|
2014-01-23 21:30:52 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
<% END %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="utilisateurs">
|
|
|
|
|
|
|
|
<h3>Utilisateurs enregistrés</h3>
|
|
|
|
<table class="table" >
|
|
|
|
<tr>
|
|
|
|
<th>utilisateur</th>
|
|
|
|
<th>supprimer</th>
|
|
|
|
<th>administrateur</th>
|
|
|
|
</tr>
|
|
|
|
|
2015-10-15 17:06:35 +02:00
|
|
|
<% FOREACH u IN allusers %>
|
2014-01-23 21:30:52 +01:00
|
|
|
<tr>
|
2015-10-15 17:06:35 +02:00
|
|
|
<td><% u.login %></td>
|
2014-01-23 21:30:52 +01:00
|
|
|
|
|
|
|
<td>
|
2015-10-15 17:06:35 +02:00
|
|
|
<a href="/user/del/<% u.login %>"><button type="button" class="btn btn-danger">Supprimer l'utilisateur</button></a>
|
2014-01-23 21:30:52 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2015-10-15 17:06:35 +02:00
|
|
|
<a href="/user/toggleadmin/<% u.login %>">
|
|
|
|
<% IF u.admin == 1 %>
|
2015-10-13 19:06:37 +02:00
|
|
|
<button type="button" class="btn btn-danger">Passer utilisateur</button>
|
2014-01-23 21:30:52 +01:00
|
|
|
<% ELSE %>
|
2015-10-13 19:06:37 +02:00
|
|
|
<button type="button" class="btn btn-primary">Passer administrateur</button>
|
2014-01-23 21:30:52 +01:00
|
|
|
<% END %>
|
2015-10-13 19:06:37 +02:00
|
|
|
</a>
|
2014-01-22 17:01:34 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
<%END%>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-01-20 01:08:03 +01:00
|
|
|
</div>
|
|
|
|
|
2014-01-23 02:46:16 +01:00
|
|
|
</div> <!-- fin de colonne -->
|
|
|
|
</div> <!-- fin de ligne -->
|