-
Notifications
You must be signed in to change notification settings - Fork 0
/
recap.php
226 lines (173 loc) · 5.62 KB
/
recap.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
<?php
include_once('functions.php');
require_once('tcpdf/tcpdf.php');
session_start();
if($_SERVER['REQUEST_METHOD']=="POST"){
if(isset($_POST['Envoyer'])){
$nom =$_POST['nom'];
$prenom =$_POST['prenom'];
$age =$_POST['age'];
$tel =$_POST['tele'];
$email =$_POST['email'];
$filiere =$_POST['filiere'];
$annee =$_POST['annee'];
$module=$_POST['mod'];
$projet =$_POST['project'];
$description =$_POST['desc'];
$club=$_POST['club'];
$remarque=$_POST['remarque'];
$file = $_FILES["photo"];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recapulatif</title>
</head>
<style>
.valid,.edit{
float:left;
margin-right:15px;
}
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
#infos{
border: none;
margin: 20px auto;
width:70%;
padding: 0;
}
legend {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
}
label {
display: inline-block;
margin-right: 10px;
width: 350px;
}
img {
display: block;
margin: 20px auto;
max-width: 300px;
}
</style>
<body>
<form action="create_resume.php" method="post">
<fieldset id="infos">
<legend>Fiche Recapulatif</legend>
<br>
<fieldset>
<legend>Informations personnelles</legend>
<label>Nom:</label>
<input name="nom" value="<?php display_data($nom);?>" readonly>
<br>
<label>Prenom:</label>
<input name="prenom" value=" <?php
display_data($prenom);
?>"readonly>
<br>
<label>Age:</label>
<input name="age" value="<?php
display_data($age);
?>" readonly>
<br>
<label>Numero de telephone:</label>
<input name="tele" value="<?php
display_data($tel);
?>" readonly>
<br>
<label>Email:</label>
<input name="email" value="<?php
display_data($email);
?>" readonly>
<br>
</fieldset>
<fieldset>
<legend> Renseignements Academiques</legend>
<label>Filière:</label>
<input name="filiere" value="<?php
display_data($filiere);
?>" readonly>
<br>
<label>Année:</label>
<input name="annee" value="<?php
display_data($annee);
?>" readonly>
<br>
<label>Modules :</label>
<input name="mod" value="<?php
echo display_module($module);
?>" readonly>
<br>
<label>Nombre de projets réalisés: </label>
<input name="project" value=" <?php
display_data($projet);
?>" readonly>
<br>
<label>Description des projets: </label>
<input name="desc" value="<?php
display_data($description);
?>" readonly>
<br>
<label >Clubs & Associations</label>
<input name="club" value="<?php
display_data($club);
?>" readonly>
<br>
<hr>
<?php
if(isset($_POST['Envoyer'])){
if (isset($file)) {
// Uploading in "uplaods" folder
move_uploaded_file($file["tmp_name"], "uploads/" . $file["name"]);
$image_path="uploads/".$file["name"];
}
}
$_SESSION['photo']=$image_path;
?>
<br>
<img src="<?php echo $image_path?>" alt="Resume Image" width="200px">
<br>
</fieldset>
<br>
<br>
</fieldset>
<h1 id="done" hidden style="display: none">Les informations sont validées et enregistrées dans le fichier cv_file.txt !</h1>
<br>
<div class="buttons">
<div class="valid">
<input type="button" id="validate" name="validate" onclick="Output()" value="Valider">
</div>
<div class="edit">
<form action="Formulaire.html" method="GET" id="somo">
<input type="button" name="edit" onclick="history.go(-1);" value="Modifier">
</form>
</div>
<div class="pdf">
<button type="submit" name="download">Download</button>
</div>
</form>
</div>
<br>
<script>
function Output() {
document.getElementById("infos").style.display = "none";
document.getElementById("done").style.display = "block";
}
<?php
store_txt();
?>
</script>
</body>
</html>