Subversion Repositories Applications.referentiel

Rev

Rev 38 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 39
Line 36... Line 36...
36
<?php foreach ($messages as $message) : ?>
36
<?php foreach ($messages as $message) : ?>
37
<p class="information"><?=$message;?></p>
37
<p class="information"><?=$message;?></p>
38
<?php endforeach; ?>
38
<?php endforeach; ?>
39
<?php endif; ?>
39
<?php endif; ?>
Line 40... Line -...
40
 
-
 
41
<h2>Traitements en attente <?=strftime('à %H:%M:%S le %d %B %Y')?></h2>
40
 
42
<?php if (isset($traitements_en_attente)) : ?>
41
<h2>Tests</h2>
43
<table>
42
<table>
44
	<caption>Traitements en attente</caption>
-
 
45
	<thead>
-
 
46
		<tr>
-
 
47
			<th>Nom (#)</th>
-
 
48
			<th>Date de la demande</th>
-
 
49
		</tr>
-
 
50
	</thead>
-
 
51
	<tbody>
-
 
52
	<?php foreach ($traitements_en_attente as $traitement) : ?>
-
 
53
		<tr>
-
 
54
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></td>
-
 
55
			<td><?=$traitement['meta_date_creation']?></td>
-
 
56
		</tr>
-
 
57
	<?php endforeach; ?>
-
 
58
	</tbody>
-
 
59
</table>
-
 
60
<?php else : ?>
-
 
61
<p class="information">Aucun traitement en attente.</p>
-
 
62
<?php endif; ?>
-
 
63
 
-
 
64
<h2>Traitements en cours</h2>
-
 
65
<?php if (isset($traitements_en_cours)) : ?>
-
 
66
<table>
-
 
67
	<caption>Traitements en cours</caption>
43
	<caption>Traitements <?=strftime('à %H:%M:%S le %d %B %Y')?></caption>
68
	<thead>
44
	<thead>
69
		<tr>
45
		<tr>
-
 
46
			<th>Nom (#)</th>
70
			<th>Nom (#)</th>
47
			<th>État</th>
-
 
48
			<th>Date début</th>
-
 
49
			<th>Date fin</th>
71
			<th>Date début</th>
50
			<th>Durée</th>
72
		</tr>
51
		</tr>
73
	</thead>
52
	</thead>
-
 
53
	<tbody>
74
	<tbody>
54
	<?php if (isset($traitements_en_attente)) : ?>
75
	<?php foreach ($traitements_en_cours as $traitement) : ?>
55
		<?php foreach ($traitements_en_attente as $traitement) : ?>
76
		<tr>
56
		<tr>
77
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></td>
57
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
78
			<td><?=$traitement['date_debut']?></td>
58
			<td class="traitement-attente">En attente...</td>
79
		</tr>
59
			<td>&nbsp;</td>
80
	<?php endforeach; ?>
60
			<td>&nbsp;</td>
81
	</tbody>
61
			<td>&nbsp;</td>
82
</table>
62
		</tr>
83
<?php else : ?>
-
 
84
<p class="information">Aucun traitement en cours.</p>
63
		<?php endforeach; ?>
85
<?php endif; ?>
-
 
86
 
-
 
87
<h2>Traitements terminés</h2>
64
	<?php endif; ?>
88
<?php if (isset($traitements_termines)) : ?>
-
 
89
<table>
65
	<?php if (isset($traitements_en_cours)) : ?>
90
	<caption>Traitements terminées</caption>
-
 
91
	<thead>
66
		<?php foreach ($traitements_en_cours as $traitement) : ?>
-
 
67
		<tr>
92
		<tr>
68
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
93
			<th>Nom (#)</th>
69
			<td class="traitement-cours">En cours...</td>
94
			<th>Date début</th>
70
			<td><?=$traitement['date_debut']?></td>
95
			<th>Date fin</th>
71
			<td>&nbsp;</td>
96
			<th>Durée</th>
72
			<td>&nbsp;</td>
97
		</tr>
73
		</tr>
98
	</thead>
74
		<?php endforeach; ?>
-
 
75
	<?php endif; ?>
99
	<tbody>
76
	<?php if (isset($traitements_termines)) : ?>
100
	<?php foreach ($traitements_termines as $traitement) : ?>
77
		<?php foreach ($traitements_termines as $traitement) : ?>
101
		<tr>
78
		<tr>
-
 
79
			<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
102
			<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
80
			<td class="traitement-termine">Terminé</td>
103
			<td><?=$traitement['date_debut']?></td>
81
			<td><?=$traitement['date_debut']?></td>
104
			<td><?=$traitement['date_fin']?></td>
82
			<td><?=$traitement['date_fin']?></td>
105
			<td><?=$traitement['duree']?></td>
83
			<td><?=$traitement['duree']?></td>
106
		</tr>
84
		</tr>
-
 
85
		<?php endforeach; ?>
107
	<?php endforeach; ?>
86
	<?php endif; ?>
108
	</tbody>
87
	</tbody>
109
</table>
-
 
110
<?php else : ?>
-
 
111
<p class="information">Aucun traitement terminé.</p>
-
 
112
<?php endif; ?>
88
</table>
113
<!-- REF - FIN TEST -->
89
<!-- REF - FIN TEST -->