contreparties.html 3,95 Kio
<section>
<h2>Gestion des contreparties</h2>
<form name="f" method="POST" action="{{ 'counterparts' | 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">Id/Nom/Email/Adresse</label>
<input type="text" id="texte" name="texte" size="30" value="{{ @texte }}" />
{{ @pibag }} / {{ @piplome }} / {{ @pishirt }} / {{ @hoodie }} / {{ @status }}
<label for="pibag">Pibag
<input type="checkbox" name="pibag" id="pibag" value="1" <check if="{{ @pibag==1 }}">checked</check> />
</label>
<label for="piplome">Piplôme
<input type="checkbox" name="piplome" id="piplome" value="2" <check if="{{ @piplome==2 }}">checked</check> />
</label>
<label for="pishirt">Pishirt
<input type="checkbox" name="pishirt" id="pishirt" value="4" <check if="{{ @pishirt==4 }}">checked</check> />
</label>
<label for="hoodie">Hoodie
<input type="checkbox" name="hoodie" id="hoodie" value="8" <check if="{{ @hoodie==8 }}">checked</check> />
</label>
<label for="status">Statut</label>
<select name="status" id="status">
<option value="">-- Tous les status --</option>
<repeat group="{{ @CT_STATUTS }}" key="{{ @key }}" value="{{ @value }}">
<option value="{{ @key }}" <check if="{{ @status==@key }}">selected</check> >{{ @value }}</option>
</repeat>
</select>
<label for="limite">Limite</label>
<input type="text" id="limite" name="limite" size="3" value="{{ @limite }}" />
<input type="submit" value="Filtrer" />
<input type="button" value="Export CSV" onclick="export_csv()" />
</form>
<check if="{{ @row_count }}"><b>{{ @row_count }} résultats</b> => </check>{{ @query }}
<br />
<table cellspacing="0" cellpadding="0">
<theader>
<th>Id</th>
<th>Email</th>
<th>Date</th>
<th>Quoi</th>
<th>Taille/Piplome</th>
<th>Adresse</th>
<th>Statut</th>
<th>Commentaire</th>
<th>Actions</th>
</theader>
<tbody>
<repeat group="{{ @data }}" value="{{ @row }}">
<tr>
<td>{{ @row.id }}</td>
<td><a href="{{'user_info', 'id='.@row.user_id | alias }}">{{ @row.email }}</a></td>
<td>{{ @row.datec }}</td>
<td>{{ @row.quoi }}</td>
<td>
<check if="{{ @row.quoi=='piplome' }}">
<true>
<a href="{{ @PIPLOME_URL }}{{ @row.pdf_url }}.pdf">{{ @row.pdf_url }}</a>
({{ @row.pdf_nom }})
</true>
<false>
<check if="{{ @row.quoi=='pibag' }}">
<true>
</true>
<false>
{{ @atailles[@row.taille] }}
</false>
</check>
</false>
</check>
</td>
<td>
{{ @row.pseudo }}<br />
{{ @row.adresse }}<br />
{{ @row.adresse2 }}<br />
{{ @row.codepostal }} {{ @row.ville }}<br />
{{ @row.pays }}
</td>
<td class="inline">{{ @CT_STATUTS[@row.status] }}</td>
<td>{{ @row.commentaire }}</td>
<td>
<a href="{{ 'edit_counterpart', 'id='.@row.id | alias }}">Editer</a>
<check if="{{ @row.status!=1 }}" >
-
<span class="lien" onclick="asked({{ @row.id }})">Demandé</span>
</check>
<check if="{{ @row.status!=2 }}" >
-
<span class="lien" onclick="sent({{ @row.id }})">Envoyé</span>
</check>
<check if="{{ @row.status!=3 }}" >
-
<span class="lien" onclick="npai({{ @row.id }})">NPAI</span>
</check>
<check if="{{ @row.status!=99 }}" >
-
<span class="lien" onclick="canceled({{ @row.id }})">Annulé</span>
</check>
<check if="{{ @row.quoi=='piplome' }}" >
-
<span class="lien" onclick="pdf({{ @row.pdf_id }})">PDF</span>
</check>
</td>
</tr>
</repeat>
</tbody>
</table>
</section>