users.html 1.93 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<section>
<h2>Gestion des utilisateurs</h2>
<form name="f" method="POST" action="{{ 'users' | alias }}">
    <input type="hidden" id="action" name="action" value="" />
    <input type="hidden" id="id" name="id" value="" />
    <input type="hidden" id="csrf" name="csrf" value="{{ @CSRF }}" />

    <label for="texte">Pseudo/Email</label>
    <input type="text" id="texte" name="texte" size="30" value="{{ @texte }}" />

    <label for="status">Statut</label>
    <select name="status" id="status">
        <option value="">-- Tous les status --</option>
        <repeat group="{{ @CB_STATUTS }}" key="{{ @key }}" value="{{ @value }}">
        <option value="{{ @key }}" <check if="{{ @status==@key }}">selected</check> >{{ @value }}</option>
        </repeat>
    </select>

Okhin's avatar
Okhin committed
19 20 21
    <label for="page">Page</label>
    <input type="text" id="page" name="page" size="3" value="{{ @page }}" />

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    <label for="limite">Limite</label>
    <input type="text" id="limite" name="limite" size="3" value="{{ @limite }}" />

    <input type="submit" value="Filtrer" />
</form>
<check if="{{ @row_count }}"><b>{{ @row_count }} résultats</b></check>
<br />
<table cellspacing="0" cellpadding="0">
<theader>
    <th>Id</th>
    <th>Email</th>
    <th>Pseudo</th>
    <th>Total</th>
    <th>Cumul</th>
    <th>Date d'expiration</th>
    <th>Statut</th>
    <th>Commentaire</th>
</theader>
<tbody>
    <repeat group="{{ @data }}" value="{{ @row }}">
    <tr>
	    <td><a href="{{ 'user_info', 'id='.@row.id | alias }}">{{ @row.id }}</a></td>
        <td>{{ @row.email }}</td>
        <td>{{ @row.pseudo }}</td>
        <td>{{ @row.total }}</td>
        <td>{{ @row.cumul }}</td>
        <td>{{ @row.expiration }}</td>
	<td><check if="{{ array_key_exists(@status, @CB_STATUTS) }}">
			<true>
				{{ @CB_STATUTS[@row.status] }}
			</true>
			<false>
				{{ @row.status }}
			</false>
		</check>
	</td>
        <td>{{ @row.commentaire }}</td>
    </tr>
    </repeat>
</tbody>
</table>
</section>