Subversion Repositories eFlore/Applications.coel

Rev

Rev 1499 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1499 jpm 1
<table style="border:1px solid black;border-collapse:collapse;" summary="Différences entre les données du <?=$date_ancienne?> et du <?=$date_nouvelle?>.">
2
	<caption style="text-align:left;font-weight:bold;">Différences</caption>
3
	<thead style="border:1px solid black;">
4
		<tr>
5
			<th rowspan="2" style="border:1px dotted;">Champ</th>
6
			<th rowspan="2" style="border:1px dotted;">Type</th>
7
			<th <?=(($etat == 'M') ? 'colspan="2"' : '');?> style="border:1px dotted;">Valeur</th>
8
		</tr>
9
		<tr>
10
			<?php if ($etat == 'M') : ?>
11
			<th style="border:1px dotted;">Ancienne (<?=$date_ancienne?>)</th>
12
			<?php endif; ?>
13
			<th style="border:1px dotted;">Nouvelle (<?=$date_nouvelle?>)</th>
14
 
15
		</tr>
16
	</thead>
17
	<tbody>
18
<?php foreach ($differences as $champ => $diff) : ?>
19
	<?php if ($diff['type'] == 'A') :
1746 mathias 20
		$couleur = 'CFC';
1499 jpm 21
	elseif ($diff['type'] == 'M') :
1746 mathias 22
		$couleur = 'FFC';
1499 jpm 23
	elseif ($diff['type'] == 'S') :
1746 mathias 24
		$couleur = 'F99';
1499 jpm 25
	endif; ?>
26
		<tr style="background-color:#<?=$couleur?>;">
27
			<td style="border:1px dotted;"><?=$champ?></td>
28
			<td style="text-align:center;border:1px dotted;"><?=$diff['type_txt']?></td>
29
			<?php if ($etat == 'M') : ?>
30
			<td style="border:1px dotted;"><?=$diff['ancien']?></td>
31
			<?php endif; ?>
32
			<td style="border:1px dotted;"><?=$diff['nouveau']?></td>
33
		</tr>
34
<?php endforeach; ?>
35
	</tbody>
36
</table>