Subversion Repositories Applications.referentiel

Rev

Rev 267 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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