Subversion Repositories Applications.bazar

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
468 mathias 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') :
20
		$couleur = CFC;
21
	elseif ($diff['type'] == 'M') :
22
		$couleur = FFC;
23
	elseif ($diff['type'] == 'S') :
24
		$couleur = F99;
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>