prepare( $query ); $queryRequest->bindParam( ':num_eta', $_SESSION['cfa_num'], PDO::PARAM_INT ); $queryRequest->bindParam( ':myIdCap', $myIdCap, PDO::PARAM_INT ); $queryRequest->execute(); $data=$queryRequest->fetchAll(); $count = $queryRequest->rowCount(); if($count!=1){ header('location:index-cfa.php'); exit(); } $nom_cap = decrypter($maCleDeCryptage,$data[0]['nom_cap']).' '.decrypter($maCleDeCryptage,$data[0]['prenom_cap']); //Ajout ou Modification if(empty($_POST['idSol'])){ $_SESSION['msg']='Une erreur a été rencontrée pour consulter la sollicitation.'; header('location:agenda-cfa.php#sollicitation'); exit(); }else $idCoLy = $_POST['idSol']; $query="select * from sollicitations where idCoLy=:idCoLy AND (idCapitaine=:idCapitaine || idCapitaine=0) AND chxNumEta=:chxNumEta"; $queryRequest = $db->prepare( $query ); $queryRequest->bindParam( ':idCoLy', $idCoLy, PDO::PARAM_INT ); $queryRequest->bindParam( ':idCapitaine', $myIdCap, PDO::PARAM_INT ); $queryRequest->bindParam( ':chxNumEta', $_SESSION['cfa_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-cfa.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']); if(!empty($dataCoLy[0]['idCapitaine'])) $libTitl = 'Sollitation du capitaine '.$nom_cap; else $libTitl = 'Votre sollicitation'; ?>
| 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 : |