Vous n'êtes pas identifié.
Bonjour à tous,
Je suis en train de finaliser un site et il me reste3 à 4 points à elucider et dont je ne me sort pas.
quelqu'un peux t il m'aider ?
Hors ligne

Bonjour et bienvenue oliv56640,
Quelle est le problème rencontré ?
Hors ligne
Il faut que je te donne les tables pour pouvoir repondre je pense
comment puis je te les transmettre ?
Hors ligne
En fait voilà.
le site met en relation des employeurs et des employés.
Les employeurs ont une table avec leurs infos et les employés aussi.
Ils ont une table commune regroupant pour les employeurs les compétences recherchées et pour les employés les compétences acquises, via un formulaire dont les compétences sont à selectionner sous forme de liste.
Il en est de meme pour les disponibilités des employés et les emploi du temps vaccant des employeurs.
Le code formulaire est :
<?php
include('global/haut.php');
include('global/entete.php');
include('global/menus.php');
if(isset($_SESSION['idbees']))
{
?>
<!-- Le corps -->
<div id="corps">
<form action="trait-demandebe.php" method="post" enctype="multipart/form-data">
<fieldset>
<?php echo '<strong>Bonjour </strong>' . $_SESSION['idbees']; ?>
<input type="hidden" name="idbees" value="<?php echo $_SESSION['idbees']; ?>" />
<fieldset><label> <legend>Votre Cursus</legend></label>
<label for="diplome">Diplôme:</label><select name="diplome" id="diplome"><option>BNSSA</option><option>BEESAN</option><option>BPJEPS Activités Aquatiques</option></select><br />
<label for="diplome1">Autre:</label><select name="diplome1" id="diplome1"><option>Pas d'autre diplome sportif</option><option>BEESHACUMESE</option><option>BEESMF</option><option>BEPJEPS Me</option></select><br />
</fieldset>
<fieldset><legend>Vous êtes disponible</legend>
<label> De la période du:</label>
<select name="j_d_p" id="j_d_p" > <?php
for ($nombre_de_lignes = 1; $nombre_de_lignes <= 31; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select>
<select name="m_d_p" id="m_d_p" > <?php
for ($nombre_de_lignes = 1; $nombre_de_lignes <= 12; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select>
<select name="a_d_p" id="a_d_p" > <?php
for ($nombre_de_lignes = 2010; $nombre_de_lignes <= 2020; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select>
au <select name="j_f_p" id="j_f_p" > <?php
for ($nombre_de_lignes = 1; $nombre_de_lignes <= 31; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select>
<select name="m_f_p" id="m_f_p" > <?php
for ($nombre_de_lignes = 1; $nombre_de_lignes <= 12; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select>
<select name="a_f_p" id="a_f_p" > <?php
for ($nombre_de_lignes = 2010; $nombre_de_lignes <= 2020; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?></select></p>
<h6>merci de cocher la case des jours correspondants à vos disponibilités</h6>
<p><input type="checkbox" name="lun" id="lun" value="lun"/> <label for="lun">Lundi de</label> <select name="lun_hdeb" id="lun_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h. <select name="lun_mdeb" id="lun_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="lun_hfin" id="lun_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h. <select name="lun_mfin" id="lun_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="mar" id="mar" value="mar"/> <label for="mar">Mardi de</label> <select name="mar_hdeb" id="mar_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="mar_mdeb" id="mar_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="mar_hfin" id="mar_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="mar_mfin" id="mar_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="mer" id="mer" value="mer"/> <label for="mer">Mercredi de</label> <select name="mer_hdeb" id="mer_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="mer_mdeb" id="mer_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="mer_hfin" id="mer_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="mer_mfin" id="mer_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="jeu" id="jeu" value="jeu"/> <label for="jeu">Jeudi de</label> <select name="jeu_hdeb" id="jeu_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="jeu_mdeb" id="jeu_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="jeu_hfin" id="jeu_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="jeu_mfin" id="jeu_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="ven" id="ven" value="ven"/> <label for="jeu">Vendredi de</label> <select name="ven_hdeb" id="ven_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="ven_mdeb" id="ven_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="ven_hfin" id="ven_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="ven_mfin" id="ven_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="sam" id="sam" value="sam"/> <label for="sam">Samedi de</label> <select name="sam_hdeb" id="sam_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="sam_mdeb" id="sam_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="sam_hfin" id="sam_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="sam_mfin" id="sam_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
<p><input type="checkbox" name="dim" id="dim" value="dim"/> <label for="dim">Dimanche de</label> <select name="dim_hdeb" id="dim_hdeb">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select> h <select name="dim_mdeb" id="dim_mdeb">
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min. à<select name="dim_hfin" id="dim_hfin">
<?php
for ($nombre_de_lignes = 6; $nombre_de_lignes <= 23; $nombre_de_lignes++)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>h <select name="dim_mfin" id="dim_mfin" >
<?php
for ($nombre_de_lignes = 0; $nombre_de_lignes <= 55; $nombre_de_lignes+=5)
{
echo sprintf('<option value="'.$nombre_de_lignes.'">%02d</option>', $nombre_de_lignes);
}
?>
</select>min.</p>
</fieldset>
<p
<input type="submit" value="Validez" />
</p>
</form>
<br />
<?php
}
else
echo '<p>Vous n\'êtes pas connecté(e).</p>';
?>
</div>
<?php
include("global/pdp.php"); ?>
</html>
[/c]
son traitement est :
[c]
<?php
include('global/haut.php');
include('global/entete.php');
include('global/menus.php');
?>
<div id="corps">
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=sport', 'root', '');
$bdd -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$idRecuParFormulaire = $_POST['idbees'];
$nbre = $bdd->prepare("SELECT COUNT(*) AS exist FROM demande WHERE idbees=:idbees");
$nbre->bindValue(':idbees', $idRecuParFormulaire, PDO::PARAM_INT);
$nbre->execute();
$donnees = $nbre->fetch();
if(isset($_SESSION['idbees']))
{
if($donnees['exist'] == 0)
{
$req = "INSERT INTO demande(idbees, diplome, diplome1, date_dp, date_fp, heure_lud, heure_luf, heure_mad, heure_maf, heure_med, heure_mef, heure_jed, heure_jef, heure_ved, heure_vef, heure_sad, heure_saf, heure_did, heure_dif)";
$req .= " VALUES ";
$req .= "(:idbees, :diplome, :diplome1, :date_dp, :date_fp, :heure_lud, :heure_luf, :heure_mad, :heure_maf, :heure_med, :heure_mef, :heure_jed, :heure_jef, :heure_ved, :heure_vef, :heure_sad, :heure_saf, :heure_did, :heure_dif)";
$req = $bdd -> prepare($req);
}
else
{
$req = "UPDATE demande SET diplome = :diplome, diplome1 = :diplome1, date_dp = :date_dp, date_fp = :date_fp, heure_lud = :heure_lud, heure_luf = :heure_luf, heure_mad = :heure_mad, heure_maf = :heure_maf, heure_med = :heure_med, heure_mef = :heure_mef, heure_jed = :heure_jed, heure_jef = :heure_jef, heure_ved = :heure_ved, heure_vef = :heure_vef, heure_sad = :heure_sad, heure_saf = :heure_saf, heure_did = :heure_did, heure_dif = :heure_dif WHERE idbees = :idbees";
$req = $bdd -> prepare($req);
}
$req->bindValue(':idbees', $_POST['idbees'], PDO::PARAM_STR);
$diplome =$_POST['diplome'];
$req->bindValue(':diplome', $diplome, PDO::PARAM_STR);
$diplome1 =$_POST['diplome1'];
$req->bindValue(':diplome1', $diplome1, PDO::PARAM_STR);
$date_dp ="";
if(isset($_POST['a_d_p']) and isset($_POST['m_d_p']) and isset($_POST['j_d_p']))
$date_dp = $_POST['a_d_p']. '-' . $_POST['m_d_p']. '-' . $_POST['j_d_p'];
$req->bindValue(':date_dp', $date_dp, PDO::PARAM_STR);
$date_fp ="";
if(isset($_POST['a_f_p']) and isset($_POST['m_f_p']) and isset($_POST['j_f_p']))
$date_fp = $_POST['a_f_p']. '-' . $_POST['m_f_p']. '-' . $_POST['j_f_p'];
$req->bindValue(':date_fp', $date_fp, PDO::PARAM_STR);
$heure_lud ="";
$heure_luf ="";
if(isset($_POST['lun']))
{
$heure_lud= $_POST['lun_hdeb']. ':' . $_POST['lun_mdeb']. ':' . "00";
$heure_luf= $_POST['lun_hfin']. ':' . $_POST['lun_mfin']. ':' . "00";
}
$req->bindValue(':heure_lud', $heure_lud, PDO::PARAM_STR);
$req->bindValue(':heure_luf', $heure_luf, PDO::PARAM_STR);
$heure_mad ="";
$heure_maf ="";
if(isset($_POST['mar']))
{
$heure_mad= $_POST['mar_hdeb']. ':' . $_POST['mar_mdeb']. ':' . "00";
$heure_maf= $_POST['mar_hfin']. ':' . $_POST['mar_mfin']. ':' . "00";
}
$req->bindValue(':heure_mad', $heure_mad, PDO::PARAM_STR);
$req->bindValue(':heure_maf', $heure_maf, PDO::PARAM_STR);
$heure_med ="";
$heure_mef ="";
if(isset($_POST['mer']))
{
$heure_med= $_POST['mer_hdeb']. ':' . $_POST['mer_mdeb']. ':' . "00";
$heure_mef= $_POST['mer_hfin']. ':' . $_POST['mer_mfin']. ':' . "00";
}
$req->bindValue(':heure_med', $heure_med, PDO::PARAM_STR);
$req->bindValue(':heure_mef', $heure_mef, PDO::PARAM_STR);
$heure_jed ="";
$heure_jef ="";
if(isset($_POST['jeu']))
{
$heure_jed= $_POST['jeu_hdeb']. ':' . $_POST['jeu_mdeb']. ':' . "00";
$heure_jef= $_POST['jeu_hfin']. ':' . $_POST['jeu_mfin']. ':' . "00";
}
$req->bindValue(':heure_jed', $heure_jed, PDO::PARAM_STR);
$req->bindValue(':heure_jef', $heure_jef, PDO::PARAM_STR);
$heure_ved ="";
$heure_vef ="";
if(isset($_POST['ven']))
{
$heure_ved= $_POST['ven_hdeb']. ':' . $_POST['ven_mdeb']. ':' . "00";
$heure_vef= $_POST['ven_hfin']. ':' . $_POST['ven_mfin']. ':' . "00";
}
$req->bindValue(':heure_ved', $heure_ved, PDO::PARAM_STR);
$req->bindValue(':heure_vef', $heure_vef, PDO::PARAM_STR);
$heure_sad ="";
$heure_saf ="";
if(isset($_POST['sam']))
{
$heure_sad= $_POST['sam_hdeb']. ':' . $_POST['sam_mdeb']. ':' . "00";
$heure_saf= $_POST['sam_hfin']. ':' . $_POST['sam_mfin']. ':' . "00";
}
$req->bindValue(':heure_sad', $heure_sad, PDO::PARAM_STR);
$req->bindValue(':heure_saf', $heure_saf, PDO::PARAM_STR);
$heure_did ="";
$heure_dif ="";
if(isset($_POST['dim']))
{
$heure_did= $_POST['dim_hdeb']. ':' . $_POST['dim_mdeb']. ':' . "00";
$heure_dif= $_POST['dim_hfin']. ':' . $_POST['dim_mfin']. ':' . "00";
}
$req->bindValue(':heure_did', $heure_did, PDO::PARAM_STR);
$req->bindValue(':heure_dif', $heure_dif, PDO::PARAM_STR);
$req->execute();
echo '<p>La demande est enregistrée</p>';
echo '<p>Si vous voulez changer certaines information avant l\'envoi de votre demande <a href="connexionbe.php">merci de cliquer ici</a> pour vous connecter et pouvoir aller sur votre profil</p>';
}
else
echo '<p>Vous n\'êtes pas connecté(e).</p>';
}
catch (Exception $e)
{
echo 'Erreur : ' . $e->getMessage();
}
?>
</div>
<br />
<?php include("global/pdp.php"); ?>
</html>les bases sont :
pour les employés
Base de données: `sport` -- -- -------------------------------------------------------- -- -- Structure de la table `bees` -- CREATE TABLE IF NOT EXISTS `bees` ( `idbees` varchar(255) NOT NULL, `mdpbees` varchar(255) NOT NULL, `civ` varchar(255) NOT NULL, `nom` varchar(255) NOT NULL, `prenom` varchar(255) NOT NULL, `adresse` varchar(255) NOT NULL, `cplt_adresse` varchar(255) NOT NULL, `code_postal` varchar(255) NOT NULL, `ville` varchar(255) NOT NULL, `fixe` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `gsm` varchar(255) NOT NULL, `cv` char(250) NOT NULL, UNIQUE KEY `idbees` (`idbees`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; --
pour les employeurs :
Base de données: `sport`
-- -- -------------------------------------------------------- -- -- Structure de la table `client` -- CREATE TABLE IF NOT EXISTS `client` ( `ident` varchar(255) NOT NULL, `mdpent` varchar(255) NOT NULL, `ent` varchar(255) NOT NULL, `civ` varchar(255) NOT NULL, `nom` varchar(255) NOT NULL, `prenom` varchar(255) NOT NULL, `fonc` varchar(255) NOT NULL, `adresse` varchar(255) NOT NULL, `cplt_adresse` varchar(255) NOT NULL, `code_postal` varchar(255) NOT NULL, `ville` varchar(255) NOT NULL, `fixe` varchar(255) NOT NULL, `fax` varchar(255) NOT NULL, `gsm` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `sitew` varchar(255) NOT NULL, UNIQUE KEY `ident` (`ident`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; --
la table commune des competences et des emplois du temps :
Base de données: `sport`
-- -- -------------------------------------------------------- -- -- Structure de la table `demande` -- CREATE TABLE IF NOT EXISTS `demande` ( `id` int(11) NOT NULL AUTO_INCREMENT, `diplome` varchar(255) NOT NULL, `be` char(250) NOT NULL, `diplome1` varchar(255) NOT NULL, `be2` char(250) NOT NULL, `date_dp` date NOT NULL, `date_fp` date NOT NULL, `lun` int(11) NOT NULL, `heure_lud` time DEFAULT NULL, `heure_luf` time DEFAULT NULL, `mar` int(11) NOT NULL, `heure_mad` time DEFAULT NULL, `heure_maf` time DEFAULT NULL, `mer` int(11) NOT NULL, `heure_med` time DEFAULT NULL, `heure_mef` time DEFAULT NULL, `jeu` int(11) NOT NULL, `heure_jed` time DEFAULT NULL, `heure_jef` time DEFAULT NULL, `ven` int(11) NOT NULL, `heure_ved` time DEFAULT NULL, `heure_vef` time DEFAULT NULL, `sam` int(11) NOT NULL, `heure_sad` time DEFAULT NULL, `heure_saf` time DEFAULT NULL, `dim` int(11) NOT NULL, `heure_did` time DEFAULT NULL, `heure_dif` time DEFAULT NULL, `ident` varchar(255) NOT NULL, `idbees` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; --
et lorsque le membre voit son profil j'aimerais que s'affiche quelque chose comme :
Aujourd'hui x diplomés(beesan, bnssa ou autre) peuvent accomplir votre emploi du temps vacant.
le code de cette page est :
<?php
include('global/haut.php');
include('global/entete.php');
include('global/menus.php');
if(isset($_SESSION['ident']))
{
?>
<!-- Le corps -->
<div id="corps">
<fieldset>
<?php echo 'Bonjour ' . $_SESSION['ident']; ?> bienvenue sur votre profil actuel
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=sport', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$reponse = $bdd->prepare('SELECT * FROM client WHERE ident = ?');
$reponse->execute(array($_SESSION['ident']));
while ($donnees = $reponse->fetch())
{
?>
<p>
<strong>Votre Reférent est </strong> <br />identifiant<?php echo $donnees['ident']; ?> <br />
Identité : <?php echo $donnees['ent']; ?><?php echo $donnees['civ']; ?> <?php echo $donnees['nom']; ?> <?php echo $donnees['prenom']; ?> <?php echo $donnees['fonc']; ?><br />
Coordonnées :<?php echo $donnees['adresse']; ?> <?php echo $donnees['cplt_adresse']; ?> <?php echo $donnees['code_postal']; ?> <?php echo $donnees['ville']; ?><br />
Votre numero de telephone fixe: <?php echo $donnees['fixe']; ?> de fax <?php echo $donnees['fax']; ?> de mobile <?php echo $donnees['gsm']; ?> votre email : <?php echo $donnees['email']; ?> votre site web : <?php echo $donnees['sitew']; ?>
</p>
<?php
}
$reponse->closeCursor();
?>
Pour modifier votre profil <a href="modifprofilent.php">cliquez ici</a>
</fieldset>
<fieldset>
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=sport', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$reponse = $bdd->prepare("SELECT DATE_FORMAT(date_dp, '%d/%m/%Y') AS date_dp, DATE_FORMAT(date_fp, '%d/%m/%Y') AS date_fp FROM demande WHERE ident = ?");
$reponse->execute(array($_SESSION['ident']));
while ($donnees = $reponse->fetch())
{
?>
<p>
<strong>Pour la période</strong> <br />
du <?php echo $donnees['date_dp']; ?> au <?php echo $donnees['date_fp']; ?><br />
</p>
<?php
}
$reponse->closeCursor();
?>
</fieldset>
<fieldset>
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=sport', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$reponse = $bdd->prepare('SELECT * FROM demande WHERE ident = ?');
$reponse->execute(array($_SESSION['ident']));
while ($donnees = $reponse->fetch())
{
?>
<p>
<strong>Vos dernieres desiterataes sont</strong> <br />
<p>
<strong>Vous recherchez </strong> <br />
Diplomes: <?php echo $donnees['diplome']; ?> et/ou <?php echo $donnees['diplome1']; ?> <br />
</p>
<strong>Pour l'emploi du temps suivant</strong> <br />
Le lundi de <?php echo $donnees['heure_lud']; ?> à <?php echo $donnees['heure_luf']; ?> <br />
Le mardi de <?php echo $donnees['heure_mad']; ?> à <?php echo $donnees['heure_maf']; ?> <br />
Le mercredi de <?php echo $donnees['heure_med']; ?> à <?php echo $donnees['heure_mef']; ?> <br />
Le jeudi de <?php echo $donnees['heure_jed']; ?> à <?php echo $donnees['heure_jef']; ?> <br />
Le vendredi de <?php echo $donnees['heure_ved']; ?> à <?php echo $donnees['heure_vef']; ?> <br />
Le samedi de <?php echo $donnees['heure_sad']; ?> à <?php echo $donnees['heure_saf']; ?> <br />
Le dimanche de <?php echo $donnees['heure_did']; ?> à <?php echo $donnees['heure_dif']; ?> <br />
</p>
<?php
}
$reponse->closeCursor();
?>
Pour mettre à jour votre demande <a href="demandecl.php">cliquez ici</a>
</fieldset>
<fieldset>
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=sport', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$diplome = $_GET['diplome'];
$req = $bdd->prepare("SELECT COUNT(*) AS nombrediplome FROM demande WHERE diplome = :diplome");
$req->execute(array('diplome' => $diplome));
$donnees = $req->fetch();
{
?>
<?php echo "Il y a ".$donnees['nombrediplome']." diplômés correspondants à vos attentes.";?>
<?php
}
$reponse->closeCursor();
?>
</fieldset>
</div>
<br />
<?php
}
else
echo '<p>Vous n\'êtes pas connecté(e).</p>';
?>
<?php include("global/pdp.php"); ?>
</html>Je te remercie de ton aide
Hors ligne
Quelqu'un peut il m'aider sur ce point ?
Merci d'avance
Hors ligne
Propulsé par PunBB
© Copyright 2007
Forum créer un site