prepare( $query ); $queryRequest->bindParam( ':id_cap', $_SESSION['cap_num'], PDO::PARAM_INT ); $queryRequest->execute(); $data=$queryRequest->fetchAll(); $capitaine=decrypter($maCleDeCryptage,$data[0]['prenom_cap'])." ".decrypter($maCleDeCryptage,$data[0]['nom_cap']); //Ajout ou Modification if(empty($_GET['idSol'])){ $_SESSION['msg']='Une erreur a été rencontrée pour consulter la sollicitation.'; header('location:agenda-cap.php#sollicitation'); exit(); }else $idCoLy = $_GET['idSol']; $query="select * from sollicitations where idCoLy=:idCoLy AND idCapitaine=:idCapitaine"; $queryRequest = $db->prepare( $query ); $queryRequest->bindParam( ':idCoLy', $idCoLy, PDO::PARAM_INT ); $queryRequest->bindParam( ':idCapitaine', $_SESSION['cap_num'], PDO::PARAM_INT ); $queryRequest->execute(); $countCoLy = $queryRequest->rowCount(); if($countCoLy!=1){ $_SESSION['msg']='Une erreur a été rencontrée pour consulter la sollicitation.'; header('location:agenda-cap.php#sollicitation'); exit(); } $dataCoLy=$queryRequest->fetchAll(); $etaCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['etaCoLy']); $nomCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['nomCoLy']); $prenomCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['prenomCoLy']); $fonctionCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['fonctionCoLy']); $telCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['telCoLy']); $emlCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['emlCoLy']); $adresse1CoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['adresse1CoLy']); $adresse2CoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['adresse2CoLy']); $cpCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['cpCoLy']); $villeCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['villeCoLy']); $nbClasses = $dataCoLy[0]['nbClasses']; $nbEleves = $dataCoLy[0]['nbEleves']; $commentCoLy = decrypter($maCleDeCryptage,$dataCoLy[0]['commentCoLy']); $jour = MysqlToDateFr($dataCoLy[0]['chxJour']); $creneau = getCreneauSol($dataCoLy[0]['chxCreneau']); ?>
| Etablissement : | |
|---|---|
| Nom : | |
| Prénom : | |
| Fonction : | |
| Ligne Directe : | |
| E-mail : | |
| Adresse 1 : | |
| Adresse 2 : | |
| Code Postal : | |
| Ville : | |
| Nombre de classes : | |
| Nombre total d'élèves concernés : | |
| Commentaires : |