33 |
jpm |
1 |
<!-- REF - DEBUT TEST -->
|
|
|
2 |
<script type="text/javascript">
|
|
|
3 |
$(document).ready(function() {
|
|
|
4 |
$('#ref-dem-ok').click(function(e) {
|
|
|
5 |
var ok = false;
|
45 |
jpm |
6 |
if (confirm('Êtes vous sûr de vouloir lancer de nouveaux tests ?')) {
|
33 |
jpm |
7 |
ok = true;
|
|
|
8 |
}
|
|
|
9 |
return ok;
|
|
|
10 |
});
|
58 |
jpm |
11 |
// Rend les tables portant la classe "defilante" srollable
|
|
|
12 |
$('.defilante').chromatable();
|
33 |
jpm |
13 |
});
|
|
|
14 |
</script>
|
181 |
jpm |
15 |
<h1>Tests du référentiel « <?=$nom_referentiel;?> » (<?=$ref?>)</h1>
|
23 |
jpm |
16 |
|
267 |
delphine |
17 |
<?php if (isset($messages)) : ?>
|
|
|
18 |
<h2>Messages</h2>
|
|
|
19 |
<?php foreach ($messages as $message) : ?>
|
|
|
20 |
<p class="information"><?=$message;?></p>
|
|
|
21 |
<?php endforeach; ?>
|
|
|
22 |
<?php endif; ?>
|
|
|
23 |
|
45 |
jpm |
24 |
<h2>Demande de tests</h2>
|
33 |
jpm |
25 |
<?php if (isset($ref)) : ?>
|
|
|
26 |
<div id="zone-form">
|
|
|
27 |
<form id="ref-demande-traitement" name="ref-demande-traitement" action="<?=$url_form;?>" method="get">
|
|
|
28 |
<input name="module" type="hidden" value="<?=$url_module;?>" />
|
|
|
29 |
<input name="action" type="hidden" value="<?=$url_action_demande;?>" />
|
|
|
30 |
<input name="ref" type="hidden" value="<?=$ref;?>" />
|
45 |
jpm |
31 |
<input id="ref-dem-ok" type="submit" value="1. Lancer les tests" />
|
33 |
jpm |
32 |
</form>
|
|
|
33 |
<form id="ref-rafraichir" name="ref-rafraichir" action="<?=$url_form;?>" method="get">
|
|
|
34 |
<input name="module" type="hidden" value="<?=$url_module;?>" />
|
|
|
35 |
<input name="action" type="hidden" value="<?=$url_action_rafraichir;?>" />
|
|
|
36 |
<input name="ref" type="hidden" value="<?=$ref;?>" />
|
45 |
jpm |
37 |
<input id="ref-raf-ok" type="submit" value="2. Rafraichir" />
|
33 |
jpm |
38 |
</form>
|
|
|
39 |
</div>
|
|
|
40 |
<?php endif; ?>
|
|
|
41 |
|
39 |
jpm |
42 |
<h2>Tests</h2>
|
269 |
delphine |
43 |
<table class="defilante">
|
39 |
jpm |
44 |
<caption>Traitements <?=strftime('à %H:%M:%S le %d %B %Y')?></caption>
|
38 |
jpm |
45 |
<thead>
|
|
|
46 |
<tr>
|
|
|
47 |
<th>Nom (#)</th>
|
39 |
jpm |
48 |
<th>État</th>
|
|
|
49 |
<th>Date début</th>
|
|
|
50 |
<th>Date fin</th>
|
|
|
51 |
<th>Durée</th>
|
38 |
jpm |
52 |
</tr>
|
|
|
53 |
</thead>
|
|
|
54 |
<tbody>
|
39 |
jpm |
55 |
<?php if (isset($traitements_en_attente)) : ?>
|
|
|
56 |
<?php foreach ($traitements_en_attente as $traitement) : ?>
|
38 |
jpm |
57 |
<tr>
|
39 |
jpm |
58 |
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
|
45 |
jpm |
59 |
<td class="traitement-attente">En attente de traitement...</td>
|
39 |
jpm |
60 |
<td> </td>
|
|
|
61 |
<td> </td>
|
|
|
62 |
<td> </td>
|
38 |
jpm |
63 |
</tr>
|
39 |
jpm |
64 |
<?php endforeach; ?>
|
|
|
65 |
<?php endif; ?>
|
|
|
66 |
<?php if (isset($traitements_en_cours)) : ?>
|
|
|
67 |
<?php foreach ($traitements_en_cours as $traitement) : ?>
|
33 |
jpm |
68 |
<tr>
|
39 |
jpm |
69 |
<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
|
45 |
jpm |
70 |
<td class="traitement-cours">En cours de traitement...</td>
|
33 |
jpm |
71 |
<td><?=$traitement['date_debut']?></td>
|
39 |
jpm |
72 |
<td> </td>
|
|
|
73 |
<td> </td>
|
33 |
jpm |
74 |
</tr>
|
39 |
jpm |
75 |
<?php endforeach; ?>
|
|
|
76 |
<?php endif; ?>
|
|
|
77 |
<?php if (isset($traitements_termines)) : ?>
|
|
|
78 |
<?php foreach ($traitements_termines as $traitement) : ?>
|
33 |
jpm |
79 |
<tr>
|
|
|
80 |
<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
|
39 |
jpm |
81 |
<td class="traitement-termine">Terminé</td>
|
33 |
jpm |
82 |
<td><?=$traitement['date_debut']?></td>
|
|
|
83 |
<td><?=$traitement['date_fin']?></td>
|
|
|
84 |
<td><?=$traitement['duree']?></td>
|
|
|
85 |
</tr>
|
39 |
jpm |
86 |
<?php endforeach; ?>
|
|
|
87 |
<?php endif; ?>
|
33 |
jpm |
88 |
</tbody>
|
|
|
89 |
</table>
|
267 |
delphine |
90 |
|
269 |
delphine |
91 |
<h2>Importation d'une version taxref</h2>
|
267 |
delphine |
92 |
<?php if (isset($ref)) : ?>
|
|
|
93 |
<div id="zone-form">
|
|
|
94 |
<form id="ref-importation" name="ref-importation" action="<?=$url_importation;?>" method="post" enctype="multipart/form-data">
|
|
|
95 |
<input type="file" name="nom_fichier" />
|
|
|
96 |
<input id="ref-imp-ok" type="submit" value="Lancer l'importation" />
|
|
|
97 |
</form>
|
|
|
98 |
</div>
|
|
|
99 |
<?php endif; ?>
|
33 |
jpm |
100 |
<!-- REF - FIN TEST -->
|