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 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
|
<?php
require_once('../includes/params.php');
require_once('../includes/functions.php');
// Variable de la page
$page = first_replace("/".DIR,"",$_SERVER['PHP_SELF']);
$infos = pageInfos($page,$connect);
$top_level = substr($infos['menu_lev'],0,2);
//menu de la page
$menu = leftMenu($top_level,2,$infos['menu_side'],$infos['menu_type'],$connect);
$top_level = "";
// Contenu de la page
$content = "<table width='586' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td> </td></tr>
<tr>
<td align='center'>
<table width='100%' border='1' bordercolor='#000000' bgcolor='#999999'>
<tr>
<td><div align='center'><strong><font size='4' face='Arial, Helvetica, sans-serif'>Enquête
de satisfaction clients SVP</font></strong></div></td>
</tr>
</table></td></tr>";
$content .= "<tr><td><table width='100%' cellspacing='3' cellpadding='0' border='0' align='center'>";
if (!isset($_REQUEST['treatments'])) {
$content .="<br>
<tr>
<td colspan='2' align='justify' >
<strong>BLA BLA INTRO
<br><br>
</td>
</tr>
<form method='post' action='".$_SERVER['PHP_SELF']."' name='svp'>
<tr align='left'>
<td colspan='2'>
<p align='justify'>Votre formulaire ne pourra nous parvenir que si les champs accompagnés d'un Astérisque (*) et l'ensemble des questions sont remplis !</p>
<div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div>
</td>
</tr>
<tr align='left'>
<td> <input type='hidden' name='treatments' value='1'></td>
</tr>
<tr>
<td align='center'>
<table width='100%' border='1' bordercolor='#000000' bgcolor='#CCCCCC'>
<tr>
<td><div align='center'><font size='4' face='Arial, Helvetica, sans-serif'>
A propos de l'Assistance Technique</font></div></td>
</tr>
</table>
</td>
</tr>
<tr align='left'>
<td> </td>
</tr>
<tr>
<td align='center'>
<table width='100%' border='1' bordercolor='#000000' bgcolor='#FFFFFF'>
<tr>
<td><div align='center'><font size='4' face='Arial, Helvetica, sans-serif'>La
Réactivité </font></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<br><strong>1) Votre dernière demande dintervention était-elle urgente ?</strong>
<br><input type='radio' name='demande_intervention' value='oui' class='square' >Oui
<input type='radio' name='demande_intervention' value='non' class='square'>Non
</td>
</tr>
<tr>
<td><br><strong>2) Combien de temps sest-il écoulé entre votre demande dintervention et la confirmation de la date de prestation ?</strong><br>
<input type='radio' name='temps_ecoule_confirmation' value='Moins de 2 jours' class='square' >Moins de 2 jours<br>
<input type='radio' name='temps_ecoule_confirmation' value='1 à 2 semaines' class='square'>1 à 2 semaines<br>
<input type='radio' name='temps_ecoule_confirmation' value='3 à 4 semaines' class='square' >3 à 4 semaines<br>
<input type='radio' name='temps_ecoule_confirmation' value='Plus d1 mois' class='square'>Plus d1 mois<br>
<input type='radio' name='temps_ecoule_confirmation' value='Ne sait pas' class='square'>Ne sait pas<br><br>
</td>
</tr>
<tr>
<td>
<table width='100%' border='1'>
<tr>
<td width='40%'> </td>
<td width='18%'><div align='center'>Très satisfaisant</div></td>
<td width='18%'><div align='center'>Satisfaisant </div></td>
<td width='18%'><div align='center'>Insatisfaisant</div></td>
<td width='18%'><div align='center'>Très insatisfaisant</div></td>
</tr>
<tr>
<td><strong>3) Ce délai vous
a semblé : </strong></td>
<td><div align='center'>
<input type='radio' name='delai_confirmation' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_confirmation' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_confirmation' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_confirmation' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><br><strong>4) Combien de temps sest-il écoulé entre votre demande dintervention et la fin d'intervention sur le site ?</strong><br>
<input type='radio' name='temps_ecoule_intervention' value='Moins de 2 jours' class='square' >Moins de 2 jours<br>
<input type='radio' name='temps_ecoule_intervention' value='1 à 2 semaines' class='square'>1 à 2 semaines<br>
<input type='radio' name='temps_ecoule_intervention' value='3 à 4 semaines' class='square' >3 à 4 semaines<br>
<input type='radio' name='temps_ecoule_intervention' value='Plus d1 mois' class='square'>Plus d1 mois<br>
<input type='radio' name='temps_ecoule_intervention' value='Ne sait pas' class='square'>Ne sait pas<br><br>
</td>
</tr>
<tr>
<td>
<table width='100%' border='1'>
<tr>
<td width='40%'> </td>
<td width='18%'><div align='center'>Très satisfaisant</div></td>
<td width='18%'><div align='center'>Satisfaisant </div></td>
<td width='18%'><div align='center'>Insatisfaisant</div></td>
<td width='18%'><div align='center'>Très insatisfaisant</div></td>
</tr>
<tr>
<td><strong>5) Ce délai vous
a semblé : </strong></td>
<td><div align='center'>
<input type='radio' name='delai_intervention' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_intervention' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_intervention' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='delai_intervention' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
</table>
</td>
</tr>
<tr align='left'>
<td colspan='2'><div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div></td>
</tr>
<tr align='left'>
<td> </td>
</tr>
<tr align='left'>
<td align='center'><input type='submit' class='bouton' value='Suivant'> <input type='reset' value='Effacer' class='bouton'></td>
</tr>
<tr><td align='center'></td></tr>
</div>
</form>
</table>";
} else { // Sinon on traite les variables du formulaires pour mise en BD et envoi de mails
//echo "On traite";
$email = 'exd@ds-fr.com';
if (isValidEmail($email)) {
// Variables du Formulaire
$demande_intervention = $_POST['demande_intervention'];
$temps_ecoule_confirmation = $_POST['temps_ecoule_confirmation'];
$delai_confirmation = $_POST['delai_confirmation'];
$temps_ecoule_intervention = $_POST['temps_ecoule_intervention'];
$delai_intervention = $_POST['delai_intervention'];
/***
* Mise en BD des infos
***/
// Construction de la requéte
$query_row = "SELECT form_id FROM form_svp ORDER BY form_id DESC";
$result_row = mysql_query($query_row, $connect);
$a=0;
while($tab=mysql_fetch_array($result_row))
{
$form_id[$a]=$tab["form_id"];
$a++;
}
$form_id[0]=$form_id[0]+1;
$query = "INSERT INTO form_svp VALUES ('','$demande_intervention','$temps_ecoule_confirmation','$delai_confirmation','$temps_ecoule_intervention','$delai_intervention','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');";
// Connexion et mise à jour de la base de donnée
$test_maj_bd = "ok";
$connect = mysql_connect(HOSTNAME,USERNAME,PASSWORD) or $test_maj_bd = "Problème de connexion à la base de données";
$select = mysql_select_db(DATABASE) or $test_maj_bd = "Problème de sélection de la base de données";
$result = mysql_query($query, $connect) or $test_maj_bd = "Problème d'exécution de la requéte SQL";
if ($test_maj_bd == "ok")
{
if (!isset($_REQUEST['treatments2'])) {
$content .="<TABLE cellSpacing=0 cellPadding=1 width=600 align=center border=0>
<TBODY>
<tr align='left'>
<td colspan='2'><div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div></td>
</tr>
<tr align='left'>
<td> <input type='hidden' name='treatments2' value='1'></td>
</tr>
<tr>
<td align='center'>
<table width='100%' border='1' bordercolor='#000000' bgcolor='#FFFFFF'>
<tr>
<td><div align='center'><font size='4' face='Arial, Helvetica, sans-serif'>
L'intervenant Dassault Systèmes </font></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><br><strong>6) Concernant votre dernière demande de prestations sur site, vous avez jugé :</strong><br>
</td>
</tr>
<table width='100%' border='1'>
<tr>
<td> </td>
<td>Très satisfaisant</td>
<td>Satisfaisant </td>
<td>Insatisfaisant</td>
<td>Très insatisfaisant</td>
</tr>
<tr>
<td>le contact avec lintervenant</td>
<td><div align='center'>
<input type='radio' name='contact_intervenant' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='contact_intervenant' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='contact_intervenant' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='contact_intervenant' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
<tr>
<td>Le niveau de compétence de l'intervenant</td>
<td><div align='center'>
<input type='radio' name='niv_competence' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='niv_competence' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='niv_competence' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='niv_competence' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
<tr>
<td>La pédagogie de l'intervenant</td>
<td><div align='center'>
<input type='radio' name='pedagogie_intervenant' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='pedagogie_intervenant' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='pedagogie_intervenant' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='pedagogie_intervenant' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
<tr>
<td>La qualité de prestation</td>
<td><div align='center'>
<input type='radio' name='qualite_prestation' value='Très satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='qualite_prestation' value='Satisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='qualite_prestation' value='Insatisfaisant' class='square' >
</div></td>
<td><div align='center'>
<input type='radio' name='qualite_prestation' value='Très insatisfaisant' class='square' >
</div></td>
</tr>
</table>
<tr align='left'>
<td><strong>7) Commentaires, suggestions damélioration des prestations<br></strong>
<textarea name='amelioration_prestation' cols='80' rows='3'></textarea></td>
</tr>
<TD> </TD>
<tr align='left'>
<td colspan='2'><div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div></td>
</tr>
<tr align='left'>
<td> </td>
</tr>
<tr align='left'>
<td align='center'><input type='submit' class='bouton' value='Suivant'> <input type='reset' value='Effacer' class='bouton'></td>
</tr>
";
} else { // Sinon on traite les variables du formulaires pour mise en BD et envoi de mails
//echo "On traite";
$email = 'exd@ds-fr.com';
if (isValidEmail($email)) {
// Variables du Formulaire
$contact_intervenant = $_POST['contact_intervenant'];
$niv_competence = $_POST['niv_competence'];
$pedagogie_intervenant = $_POST['pedagogie_intervenant'];
$qualite_prestation = $_POST['qualite_prestation'];
$amelioration_prestation = $_POST['amelioration_prestation'];
/***
* Mise en BD des infos
***/
// Construction de la requéte
$query_row = "SELECT form_id FROM form_svp ORDER BY form_id DESC";
$result_row = mysql_query($query_row, $connect);
$a=0;
while($tab=mysql_fetch_array($result_row))
{
$form_id[$a]=$tab["form_id"];
$a++;
}
$form_id[0]=$form_id[0]+1;
$query = "UPDATE form_svp SET (contact_intervenant='$contact_intervenant', niv_competence ='$niv_competence', pedagogie_intervenant ='$pedagogie_intervenant',qualite_prestation='$qualite_prestation',amelioration_prestation='$amelioration_prestation') WHERE form_id = '$form_id[0]';";
echo $query;
// UPDATE stations SET modele = 'SPARCstation 5' -> WHERE nom = 'europa';
// Connexion et mise à jour de la base de donnée
$test_maj_bd = "ok";
$connect = mysql_connect(HOSTNAME,USERNAME,PASSWORD) or $test_maj_bd = "Problème de connexion à la base de données";
$select = mysql_select_db(DATABASE) or $test_maj_bd = "Problème de sélection de la base de données";
$result = mysql_query($query, $connect) or $test_maj_bd = "Problème d'exécution de la requéte SQL";
if ($test_maj_bd == "ok")
{
$content .="<TABLE cellSpacing=0 cellPadding=1 width=600 align=center border=0>
<TBODY>
<tr align='left'>
<td colspan='2'><div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div></td>
</tr>
<TD> </TD>
<TD><FONT face='Verdana, Arial, Helvetica, sans-serif' size=2><br><b>Merci d'avoir consacré quelques minutes à ce questionnaire. </b>
<br><br>
Toute l'équipe de <b>DASSAULT SYSTEMES</b> se tient à votre disposition. <br><br>
Vous pourrez retrouver tous nos <a href='http://www.dsdsf.com/evenements/evenements.php' class='bluelink'>événements</a>
ou nous contacter via <a href='http://www.dsdsf.com/informations/contacts.php' class='bluelink'>notre formulaire</a>.
<br><br><br>
Cordialement, <br><br>
<b>Le Service Marketing de DASSAULT SYSTEMES.</b>
<br><br>
</td>
<tr align='left'>
<td colspan='2'><div align='center'><img src='".DIR_IMAGES."spacer/barre.gif'></div></td>
</tr>
</tbody></table>
<p> </p>
<a href='".$_SERVER['PHP_SELF']."' class='bluelink'>Retour vers le formulaire de satisfaction</a>
";
}
else
{
$content .="
<tr>
<td align='center'>
<p> </p>
<p> </p>
<p> </p>
<center>Vos réponses n'ont pas été enregistrées .
<p> </p><a href='".$_SERVER['PHP_SELF']."' class='bluelink'>Retour vers le formulaire de satisfaction</a>
</center>
<p> </p>
<p> </p>
</td></tr></table>";
}
}
}
}
else
{
$content .="
<tr>
<td align='center'>
<p> </p>
<p> </p>
<p> </p>
<center>Vos réponses n'ont pas été enregistrées .
<p> </p><a href='".$_SERVER['PHP_SELF']."' class='bluelink'>Retour vers le formulaire de satisfaction</a>
</center>
<p> </p>
<p> </p>
</td></tr></table>";
}
}
}
$content .= "<tr><td height='20'> </td></tr></table>";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Typ!" content="text/html; charset=iso-8859-1">
<meta http-equiv="description" content="<? echo $infos['description']; ?>">
<meta http-equiv="keywords" content="<? echo $infos['keywords']; ?>">
<!-- Appel de la feuille de style global.css -->
<link rel="stylesheet" type="text/css" href="../css/global.css">
<!-- Appel des fonctions javascript contenu dans global.js -->
<script language="javascript" src="../js/global.js"></script>
<title>Dassault Systèmes - <? echo $infos['title']; ?></title>
</head>
<body>
<? include("../includes/topnav_front.php"); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bckgddeg">
<tr><td>
<table width="780" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="162" valign="top" class="bordergrey_lrb deg2" rowspan="3"><? echo $menu; ?></td>
<td width="618" height="74" valign="top" class="bordergrey_r"><? include("../includes/headers.php"); ?></td>
</tr>
<tr>
<td width="618" valign="top" class="bordergrey_r deg2"><? echo $content; ?></td>
</tr><tr>
<td colspan="2" height="55" class="bordergrey_rb" valign="bottom"><? include("../includes/footer.php"); ?></td>
</tr>
</table>
</td></tr>
</tr><td height="400"> </td></tr>
</table>
</body>
</html> |
Partager