Subversion Repositories Applications.annuaire

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
296 aurelien 1
<form id="modification_cotisation" method="post" action="<?= $url_modification_cotisation ?>">
2
	<table class="liste">
3
		<tr>
4
			<th>Date</th>
5
			<th>Montant</th>
6
			<th>Mode</th>
7
			<th>Modifier</th>
8
			<th>Supprimer</th>
9
			<th>Voir le re&ccedil;u</th>
10
			<th>Envoyer le re&ccedil;u</th>
11
			<th>Date d'envoi du re&ccedil;u</th>
12
		</tr>
13
 
14
		<?php foreach ($cotisations as $cotisation) : ?>
15
			<?php if($cotisation['id_cotisation'] == $id_cotisation_a_modifer) { ?>
16
				<tr>
17
					<td> <input size="10" type=text class="calendrier" id="date_cotisation" name="date_cotisation" value="<?= $cotisation['date_cotisation'] ?>" /> </td>
18
					<td> <input size="10" type=text id="montant_cotisation" name="montant_cotisation" value="<?= $cotisation['montant_cotisation'] ?>" /> &euro;</td>
19
					<td> <select name="mode_cotisation" id="mode_cotisation">
20
							<?php foreach($modes_cotisation as $id_mode_cotisation => $mode_cotisation) : ?>
21
								<?php $selection = ''; if($cotisation['mode_cotisation'] == $id_mode_cotisation) $selection='selected="selected"';  ?>
22
								<option value="<?= $id_mode_cotisation; ?>" id="mode_cotisation_<?= $id_mode_cotisation; ?>" <?= $selection; ?>> <?= $mode_cotisation; ?> </option>
23
							<?php endforeach; ?>
24
						</select></td>
25
					<td></td>
26
					<td></td>
27
					<td></td>
28
					<td><input type="submit" value="OK" /></td>
29
					<td><a href="<?= $url_liste_cotisations; ?>" > Annuler </a></td>
30
				</tr>
31
			<?php } else { ?>
32
				<tr>
33
					<td> <?= $cotisation['date_cotisation'] ?> </td>
34
					<td> <?= $cotisation['montant_cotisation'] ?> &euro;</td>
35
					<td> <?= $cotisation['mode_cotisation'] ?> </td>
36
					<td><a href="<?= $cotisation['url_formulaire_modification']; ?>">Modifer </a></td>
37
					<td><a href="<?= $cotisation['url_suppression']; ?>"> Supprimer</a></td>
38
					<td><a href="<?= $cotisation['url_voir_recu']; ?>">Voir le re&ccedil;u</a></td>
39
					<td><a href="<?= $cotisation['url_envoyer_recu']; ?>">Envoyer le re&ccedil;u</a></td>
40
					<?php if($cotisation['date_envoi_recu'] != 0) { ?>
41
					<td><?= $cotisation['date_envoi_recu'] ?></td>
42
					<?php } else { ?>
43
						<td class="recu_non_envoye" style="background-color:red;">Recu non envoy&eacute;</td>
44
					<?php } ?>
45
				</tr>
46
			<?php } ?>
47
		<?php endforeach; ?>
48
	</table>
49
 
50
	<input type="hidden" id="url_retour" name="url_retour" value="<?= $url_retour ?>">
51
	<input type="hidden" id="id_cotisation" name="id_cotisation" value="<?= $id_cotisation_a_modifer ?>">
52
	<input type="hidden" id="id_cotisant" name="id_cotisant" value="<?= $id_utilisateur ?>">
53
</form>