Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 38 → Rev 39

/trunk/interfaces/squelettes/form_traitement.tpl.html
38,76 → 38,52
<?php endforeach; ?>
<?php endif; ?>
 
<h2>Traitements en attente <?=strftime('à %H:%M:%S le %d %B %Y')?></h2>
<?php if (isset($traitements_en_attente)) : ?>
<h2>Tests</h2>
<table>
<caption>Traitements en attente</caption>
<caption>Traitements <?=strftime('à %H:%M:%S le %d %B %Y')?></caption>
<thead>
<tr>
<th>Nom (#)</th>
<th>Date de la demande</th>
<th>État</th>
<th>Date début</th>
<th>Date fin</th>
<th>Durée</th>
</tr>
</thead>
<tbody>
<?php foreach ($traitements_en_attente as $traitement) : ?>
<?php if (isset($traitements_en_attente)) : ?>
<?php foreach ($traitements_en_attente as $traitement) : ?>
<tr>
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></td>
<td><?=$traitement['meta_date_creation']?></td>
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
<td class="traitement-attente">En attente...</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else : ?>
<p class="information">Aucun traitement en attente.</p>
<?php endif; ?>
 
<h2>Traitements en cours</h2>
<?php if (isset($traitements_en_cours)) : ?>
<table>
<caption>Traitements en cours</caption>
<thead>
<?php endforeach; ?>
<?php endif; ?>
<?php if (isset($traitements_en_cours)) : ?>
<?php foreach ($traitements_en_cours as $traitement) : ?>
<tr>
<th>Nom (#)</th>
<th>Date début</th>
</tr>
</thead>
<tbody>
<?php foreach ($traitements_en_cours as $traitement) : ?>
<tr>
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></td>
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
<td class="traitement-cours">En cours...</td>
<td><?=$traitement['date_debut']?></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else : ?>
<p class="information">Aucun traitement en cours.</p>
<?php endif; ?>
 
<h2>Traitements terminés</h2>
<?php if (isset($traitements_termines)) : ?>
<table>
<caption>Traitements terminées</caption>
<thead>
<?php endforeach; ?>
<?php endif; ?>
<?php if (isset($traitements_termines)) : ?>
<?php foreach ($traitements_termines as $traitement) : ?>
<tr>
<th>Nom (#)</th>
<th>Date début</th>
<th>Date fin</th>
<th>Durée</th>
</tr>
</thead>
<tbody>
<?php foreach ($traitements_termines as $traitement) : ?>
<tr>
<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
<td class="traitement-termine">Terminé</td>
<td><?=$traitement['date_debut']?></td>
<td><?=$traitement['date_fin']?></td>
<td><?=$traitement['duree']?></td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
<?php else : ?>
<p class="information">Aucun traitement terminé.</p>
<?php endif; ?>
<!-- REF - FIN TEST -->