summaryrefslogtreecommitdiff
path: root/final/app/include/ludo/div_create_or_modif.php
blob: 34e81caaf22ed02de445b746a835ec73545c72b2 (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
<?php
require_once ('../tools.inc.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&eacute;union : Param&egrave;tres incorrects\n";
		return;
	}
	$idR=htmlentities(stripslashes_if_needed($_GET['idR']), ENT_QUOTES);
	$objetR=htmlentities(stripslashes_if_needed($_GET['objetR']), ENT_QUOTES);
	$lieuR=htmlentities(stripslashes_if_needed($_GET['lieuR']), ENT_QUOTES);
	$ordreJourR=htmlentities(stripslashes_if_needed($_GET['ordreJourR']), ENT_QUOTES);
	$remarquesR=htmlentities(stripslashes_if_needed($_GET['remarquesR']), ENT_QUOTES);
	
	$isModif=true;
}
?>
<form action="" method="post">
	<input name="action" type="hidden" value="modif_detail_reunion" />
<?php
	echo ' <input name="idR" type="hidden" value="' . $idR . '" />'
?>
	<table class="detail_reunion" summary="D&eacute;tail de la r&eacute;union que vous avez s&eacute;lectionn&eacute;e">
		<thead>
			<tr>
				<th colspan="2">
					<?php if ($isModif) { echo 'Modification des d&eacute;tails de la r&eacute;union'; } else { echo 'Cr&eacute;ation d\'une r&eacute;union'; } ?>
				</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td><strong>Objet :</strong></td>
				<td>
					<input name="objetR" type="text" size="40" <?php if ($isModif) { echo 'value="' . $objetR .'"'; } ?>></input>
				</td>
			</tr>
			<tr>
				<td><strong>Lieu :</strong></td>
				<td>
					<input name="lieuR" type="text" size="40" <?php if ($isModif) { echo 'value="' . $lieuR .'"'; } ?>></input>
				</td>
			</tr>
			<tr>
				<td><strong>Ordre du jour :</strong></td>
				<td>
					<textarea name="ordreJourR" cols="40" rows="3"><?php if ($isModif) { echo $ordreJourR; } ?></textarea>
				</td>
			</tr>
			<tr>
				<td><strong>Remarques :</strong></td>
				<td>
					<textarea name="remarquesR" cols="40" rows="3"><?php if ($isModif) { echo $remarquesR; } ?></textarea>
				</td>
			</tr>
			<tr>
				<td><strong>Etat :</strong></td>
				<td>
					<input name="isCancelled" type="checkbox">Annul&eacute;e</input>
					<input name="isHidden" type="checkbox" checked="checked">Disponibilit&eacute;s masqu&eacute;es</input>
				</td>
			</tr>
			<tr>
				<!--<td>&nbsp;</td>-->
				<td colspan="2">
					<input name="Valider" type="submit" value="Valider"></input>
				</td>
			</tr>
		</tbody>
	</table>
</form>