ENCADREMENT
|
N5
|
E1
|
E2
|
E3
|
E4
|
E5
|
Per
|
nom prenom
|
|
Init
|
N4+
|
MF1
|
MF2
|
|
Bat
|
Matelot
|
-
|
-
|
-
|
-
|
-
-
|
-
|
-
|
x | - | - | - | - | - | - | - | ";
}
?>
PLONGEURS
|
Bapt
|
N0
|
N1
|
N2
|
N3
|
N4
|
Per
|
nom prenom
|
Bapt
|
Deb
|
BE
|
1ech
|
P A
|
2ech
|
Bat
|
PK [Z}9 * formulaire_inscription_nouvel_adherent.phpnu W+A
Fiche d'Inscription d'un Nouvel adherent
PK [ZZ Z connexion_espace_adherent.phpnu W+A Vous devez entrer un numero de licence ET un mot de passe Vous allez etre redirig vers la page de connexion";
header("Refresh: 5; URL=./index.php" );
exit;
}
include('classes.php');
$mon_adherent = new adherent();
// Connexion au serveur
include('connexion_bdd.php');
// Creation et envoi de la requete
$query = "SELECT nom_adherent,prenom_adherent,niveau_de_plongee FROM `adherent` WHERE numero_de_licence LIKE '".$numero_de_licence."' AND mot_de_passe LIKE '".md5($passwd)."'";
$result = mysql_query($query,$connexion);
echo mysql_error();
$nombre = mysql_num_rows($result);
if($nombre==0) // ben c est qu il y a personne
{
include('demande_confirmation_nouvelle_inscription.php');
}
else
{
$row = mysql_fetch_row($result) ;
$mon_adherent->nom_adherent = $row[0];
$mon_adherent->prenom_adherent=$row[1];
$mon_adherent->niveau_de_plongee=$row[2];
$query = "SELECT adhesion_validee FROM `adherent` WHERE numero_de_licence LIKE '".$numero_de_licence."' AND mot_de_passe LIKE '".md5($passwd)."'";
$result = mysql_query($query,$connexion);
$row = mysql_fetch_row($result) ;
if ($row[0]==0) // si y a pas de personne identifiable
{
echo "".$mon_adherent->nom_adherent." ".$mon_adherent->prenom_adherent." votre demande n'a pas encore t valide par l'administrateur du site. Voulez vous envoyer un mail de relance ?";
?>
|
|
niveau_de_plongee;
header("Refresh: 1; URL=./menu_espace_adherent.php");
header("Refresh: 1; URL=./menu_espace_adherent.php");
exit;
}
}
mysql_close();
// Deconnexion de la base de donnees
?>
PK [Z/# # tableau_prevision_plongee.phpnu W+A
Activites Subaquatiques Marignane Programme du
|
|
date de la plongee | theme | niveau minimum | nom du DP | | ";
while ($row = mysql_fetch_array($result, MYSQL_NUM))
{
//echo $niveau_de_plongee_de_l_adherent." ";
//echo "level=".$level[0]." ";
//echo "row[2]=".$row[2]." ";
$niveau_requis=explode("N",$row[2]);
if($level[1]>=$niveau_requis[1])
{
echo "".$row[0]." | ".$row[1]." | ".$row[2]." | ".$row[3]." | | | ";
$nombre_de_plongees_trouvees=$nombre_de_plongees_trouvees+1;
}
else
{
$nombre_de_plongees_trouvees=0;
}
}
//$row = mysql_fetch_row($result);
if($nombre_de_plongees_trouvees==0)
{
echo " Il n y a pas de plongee correspondante votre niveau
";
}
if($nombre_de_plongees_trouvees>0)
{
echo " |