Subversion Repositories Applications.referentiel

Rev

Rev 45 | Rev 181 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
15
<h1>Tests du référentiel «&nbsp;<?=$ref;?>&nbsp;»</h1>
23 jpm 16
 
45 jpm 17
<h2>Demande de tests</h2>
33 jpm 18
<?php if (isset($ref)) : ?>
19
<div id="zone-form">
20
	<form id="ref-demande-traitement" name="ref-demande-traitement" action="<?=$url_form;?>" method="get">
21
		<input name="module" type="hidden" value="<?=$url_module;?>" />
22
		<input name="action" type="hidden" value="<?=$url_action_demande;?>" />
23
		<input name="ref" type="hidden" value="<?=$ref;?>" />
45 jpm 24
		<input id="ref-dem-ok" type="submit" value="1. Lancer les tests" />
33 jpm 25
	</form>
26
	<form id="ref-rafraichir" name="ref-rafraichir" action="<?=$url_form;?>" method="get">
27
		<input name="module" type="hidden" value="<?=$url_module;?>" />
28
		<input name="action" type="hidden" value="<?=$url_action_rafraichir;?>" />
29
		<input name="ref" type="hidden" value="<?=$ref;?>" />
45 jpm 30
		<input id="ref-raf-ok" type="submit" value="2. Rafraichir" />
33 jpm 31
	</form>
32
</div>
33
<?php endif; ?>
34
 
23 jpm 35
<?php if (isset($messages)) : ?>
36
<h2>Messages</h2>
37
<?php foreach ($messages as $message) : ?>
38
<p class="information"><?=$message;?></p>
39
<?php endforeach; ?>
40
<?php endif; ?>
41
 
39 jpm 42
<h2>Tests</h2>
58 jpm 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>&nbsp;</td>
61
			<td>&nbsp;</td>
62
			<td>&nbsp;</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>&nbsp;</td>
73
			<td>&nbsp;</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>
90
<!-- REF - FIN TEST -->