summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/include/ludo/div_create_or_modif.php
blob: b7f71931940935d34cee1a411b58d2bd5a9d506d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
$isModif=false;
if ( isset ( $_GET['idR']) )
{
	if ( ! isset($_GET['objetR']) || ! isset($_GET['lieuR']) || ! isset($_GET['ordreJourR']) || ! isset($_GET['remarquesR']) )
	{
		$errmsg="Impossible de modifier la r�union : Param�tres incorrects\n";
		return;
	}
	$idR=addslashes($_GET['idR']);
	$objetR=addslashes($_GET['objetR']);
	$lieuR=addslashes($_GET['lieuR']);
	$ordreJourR=addslashes($_GET['ordreJourR']);
	$remarquesR=addslashes($_GET['remarquesR']);
	
	$isModif=true;
}
?>
<form action="" method="post">
	<table class="detail_reunion" summary="D�tail de la r�union que vous avez s�lectionn�e">
		<thead>
			<tr>
				<th colspan="2">
					<?php if ($isModif) { echo 'Modification des d�tails de la r�union'; } else { echo 'Cr�ation d\'une r�union'; } ?>
				</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td><strong>Objet :</strong></td>
				<td>
					<input name="objetR" type="text"<?php if ($isModif) { echo 'value="' . $objetR .'"'; } ?>></input>
				</td>
			</tr>
<!--			<tr>
				<td><strong>Organisateur :</strong></td>
				<td>
					<?php// echo "$prenomP $nomP\n"; ?>
				</td>
			</tr>
-->
			<tr>
				<td><strong>Lieu :</strong></td>
				<td>
					<input name="lieuR" type="text"<?php if ($isModif) { echo 'value="' . $lieuR .'"'; } ?>></input>
				</td>
			</tr>
			<tr>
				<td><strong>Ordre du jour :</strong></td>
				<td>
					<input name="ordreJourR" type="text"<?php if ($isModif) { echo 'value="' . $ordreJourR .'"'; } ?>></input>
				</td>
			</tr>
			<tr>
				<td><strong>Remarques :</strong></td>
				<td>
					<input name="remarquesR" type="text"<?php if ($isModif) { echo 'value="' . $remarquesR .'"'; } ?>></input>
				</td>
			</tr>
			<tr>
				<td><strong>Etat :</strong></td>
				<td>
					<input type="checkbox">Annul�e</input>
					<?php
						// TODO : refl�ter l'�tat de la BD pour l'annulation !
						//~ echo '<a href="#confirmAnnulation" onclick="loadid(\'include/ludo/popConfirmAnnulR.php?idR=';
						//~ echo $idR . "','popfixer',true);popon('popfixer');\">Annuler</a>";
					?>
				</td>
			</tr>
			<tr>
				<!--<td>&nbsp;</td>-->
				<td colspan="2">
					<input name="Valider" type="submit" value="Valider"></input>
					<?php
						// TODO : refl�ter l'�tat de la BD pour l'annulation !
						//~ echo '<a href="#confirmAnnulation" onclick="loadid(\'include/ludo/popConfirmAnnulR.php?idR=';
						//~ echo $idR . "','popfixer',true);popon('popfixer');\">Annuler</a>";
					?>
				</td>
			</tr>
		</tbody>
	</table>
</form>
<?php
// POST vers details_reunion.php?action=create_or_modif_reunion
?>