This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Edition_CV_form.php
237 lines (204 loc) · 10.2 KB
/
Edition_CV_form.php
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php session_start();
include('connexion_BDD.php');
include_once('cookieconnect.php');
include('edition_CV.php');
if(isset($_SESSION['ID_etu']))
{
?>
<html>
<head>
<title>Edition du profil</title>
<meta charset="utf-8">
</head>
<body>
<?php include('header.php');
?>
<br>
<form method="POST" action="" enctype="multipart/form-data">
<div class="container">
<br>
<?php
$requser = $bdd->prepare("SELECT * FROM contact WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$user = $requser->fetch();
?>
<legend>Informations :</legend>
<div class="form-group">
<label for="text">Age : </label>
<input id="newAge" type="text" name="newAge" class="form-control" value="<?php {echo $user['age'];} ?>">
</div>
<div class="form-group">
<label for="text">Adresse : </label>
<input id="newAdresse" type="text" name="newAdresse" class="form-control" value="<?php {echo $user['adresse'];} ?>" />
</div>
<div class="form-group">
<label for="text">Numéro de fixe : </label>
<input id="newFixe" name="newFixe" type="text" class="form-control" value="<?php {echo $user['fixe'];} ?>">
</div>
<div class="form-group">
<label for="text">Numéro de portable : </label>
<input id="newPortable" name="newPortable" type="text" class="form-control" value="<?php echo $user['portable'];} ?>">
</div>
<legend>Compétences :</legend>
<p>Les compétences acquises au seins du master CCI seront misent par défaut dans le CV, veuillez rajoutez les autres langages acquis:</p>
<br>
<?php
$requser = $bdd->prepare("SELECT * FROM competences WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$user = $requser->fetch();
?>
<div class="form-group">
<label for="text">Langue vivante n°1 : </label>
<input id="newLangues1" name="newLangues1" type="text" class="form-control" value="<?php echo $user['langues1']; ?>">
</div>
<div class="form-group">
<label for="text">Langue vivante n°2 : </label>
<input id="newLangues2"name="newLangues2" type="text" class="form-control"value="<?php {echo $user['langues2']; ?>">
</div>
<div class="form-group">
<label for="text">Langue vivante n°3 : </label>
<input id="newLangues3"name="newLangues3" type="text" class="form-control"value="<?php echo $user['langues3']; ?>">
</div>
<?php
$requser = $bdd->prepare("SELECT * FROM formations WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$user = $requser->fetch();
?>
<legend>Formations n°1:</legend>
<div class="form-group">
<label for="text">Année d'optention du diplôme: </label>
<input id="newAnneDiplome1" name="newAnneDiplome1" type="number" class="form-control" min="1900" max=" <?php echo date('Y')?> " value="<?php echo $user['annee_diplome1']; ?>">
</div>
<div class="form-group">
<label for="text">Intitulé de la formation : </label>
<input id="newIntituleFom1" name="newIntituleFom1" type="text" class="form-control" value="<?php echo $user['intitule_formation1']; ?>"></textarea>
</div>
<div class="form-group">
<label for="text">Université :</label>
<input id="newUniversite1" name="newUniversite1" type="text" class="form-control" value="<?php echo $user['universite1']; ?>"></textarea>
</div>
<label for="select">Mention : </label>
<select id="newMention1" name="newMention1" class="form-control"value="<?php echo $user['mention1']; ?>">
<option></option>
<option>Passable</option>
<option>Assez-Bien</option>
<option>Bien</option>
<option>Trés Bien</option>
<option>Excellent</option>
</select>
<br>
<label for="textarea">Description de la formation: </label>
<textarea id="newDescription_form1" name="newDescription_form1" type="textarea" class="form-control" value="<?php echo $user['description_form1'];?>"></textarea>
<br>
<legend>Formations n°2:</legend>
<div class="form-group">
<label for="text">Année d'optention du diplôme: </label>
<input id="newAnneDiplome2" name="newAnneDiplome2" type="number" class="form-control" min="1900" max=" <?php echo date('Y')?>" value="<?php echo $user['annee_diplome2']; ?>">
</div>
<div class="form-group">
<label for="text">Intitulé de la formation : </label>
<input id="newIntituleFom2" name="newIntituleFom2" type="text" class="form-control" value="<?php echo $user['intitule_formation2']; ?>"></textarea>
</div>
<div class="form-group">
<label for="text">Université :</label>
<input id="newUniversite2" name="newUniversite2" type="text" class="form-control" value="<?php echo $user['universite2']; ?>"></textarea>
</div>
<label for="select">Mention : </label>
<select id="newMention2" name="newMention2" class="form-control" value="<?php echo $user['mention2']; ?>">
<option></option>
<option>Passable</option>
<option>Assez-Bien</option>
<option>Bien</option>
<option>Trés Bien</option>
<option>Excellent</option>
</select>
<br>
<label for="textarea">Description de la formation: </label>
<textarea id="newDescription_form2" name="newDescription_form2" type="textarea" class="form-control" ></textarea>
<br>
<legend>Formations n°3:</legend>
<div class="form-group">
<label for="text">Année d'optention du diplôme: </label>
<input id="newAnneDiplome3" name="newAnneDiplome3" type="text" class="form-control" value="<?php echo $user['annee_diplome3']; ?>">
</div>
<div class="form-group">
<label for="text">Intitulé de la formation : </label>
<input id="newIntituleFom3" name="newIntituleFom3" type="text" class="form-control" value="<?php echo $user['intitule_formation3']; ?>"></textarea>
</div>
<div class="form-group">
<label for="text">Université :</label>
<input id="newUniversite3" name="newUniversite3" type="text" class="form-control"value="<?php echo $user['universite3']; ?>"></textarea>
</div>
<label for="select">Mention : </label>
<select id="newMention3" name="newMention3" class="form-control" value="<?php echo $user['mention3'];?>">
<option></option>
<option>Passable</option>
<option>Assez-Bien</option>
<option>Bien</option>
<option>Trés Bien</option>
<option>Excellent</option>
</select>
<br>
<label for="textarea">Description de la formation: </label>
<textarea id="newDescription_form3" name="newDescription_form3" type="textarea" class="form-control" ></textarea>
<br>
<?php
$requser = $bdd->prepare("SELECT * FROM experiences WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$user = $requser->fetch();
?>
<legend>Expérience Professionelles n°1</legend>
<div class="form-group">
<label for="text">Année du stage ou du travail: </label>
<input id="newAnnee_xp1" name="newAnnee_xp1" type="text" class="form-control" value="<?php echo $user['annee_xp1']; ?>">
</div>
<label for="textarea">Description de votre expérience: </label>
<textarea id="newDescrition_xp1" name="newDescrition_xp1" type="textarea" class="form-control" value="<?php echo $user['description_xp1']?>"></textarea>
<legend>Expérience Professionelles n°2</legend>
<div class="form-group">
<label for="text">Année du stage ou du travail: </label>
<input id="newAnnee_xp2" name="newAnnee_xp2" type="text" class="form-control" value="<?php echo $user['annee_xp2']; ?>">
</div>
<label for="textarea">Description de votre expérience: </label>
<textarea id="newDescrition_xp2" name="newDescrition_xp2" type="textarea" class="form-control" ></textarea>
<br>
<legend>Expérience Professionelles n°3</legend>
<div class="form-group">
<label for="text">Année du stage ou du travail: </label>
<input id="newAnnee_xp3" name="newAnnee_xp3" type="text" class="form-control" value="<?php echo $user['annee_xp3']; ?>">
</div>
<label for="textarea">Description de votre expérience: </label>
<textarea id="newDescrition_xp3" name="newDescrition_xp3" type="textarea" class="form-control" ></textarea>
<br>
<?php
$requser = $bdd->prepare("SELECT * FROM associatif WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$user = $requser->fetch();
?>
<legend>Vie associative</legend>
<label for="textarea"></label>
<textarea id="newAssociation" name="newAssociation" type="textarea" class="form-control"value="<?php echo $user['association']?>" ></textarea>
<br>
<legend>Divers</legend>
<label for="textarea"></label>
<textarea id="newDivers" name="newDivers" type="textarea" class="form-control"value="<?php if (isset($divers)) {echo $divers;} ?>"></textarea>
<br>
</div>
</div>
<div class="container">
<div class="form-group col-md-6 col-md-offset-3">
<input class="form-control btn btn-danger" type="submit" name="valider" value="Je modifie mon CV"/>
</div>
</div>
</form>
<div class="centrer">
<?php if(isset($msg)) { echo $msg; }
?>
</div>
</div>
</div>
</div>
</body>
</head>
</html>
<?php } ?>