Black Eagle Team Minishell
Path:
/
home
/
ccpsafy
/
www
/
private
/
adherent
/
[
Home
]
File: annuaire_membres.php
<?php include("../../inc/enligne_param.inc.php"); include("../../inc/gere_session.inc.php"); include("../../inc/salutations.inc.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CCPSA Espace adherent - annuaire des membres</title> <!--STYLE SWITCHER--> <!--<style type="text/css" media="screen"> @import url("./skins/rt/css.base.css");</style>--> <script type="text/javascript" src="../../js/styleswitcher.js"></script> <link rel="stylesheet" media="screen" type="text/css" href="../../css/common.css" title="common" /> <link rel="stylesheet" media="screen" type="text/css" href="../../css/black.css" title="black" /> <link rel="alternate stylesheet" media="screen" type="text/css" href="../../css/common.css" /> <!--FIN STYLE SWITCHER--> <!--GOOGLE FONTS--> <link href="../css/common.css" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'> <!--FIN GOOGLE FONTS--> </head> <body> <div id="page"> <div id="container"> <h2>ANNUAIRE DES ADHÉRENTS</h2> <h5>Interface Administrateur. Session ouverte pour : <?php echo ucfirst($LePrenom).' '.strtoupper($LeNom); ?>.</h5> <div id="col_nav"> <?php include("../../inc/menu.inc.php");?> <!-- Code ajouté : DEBUT --> <?php if(isset($_POST['sorting'])) { $sorting = $_POST['sorting']; } else{ //Valeur par défaut $sorting = "ByName"; } ?> <form action="#" method="post"> <p> </p><p>Classer les membres par :</p> <p><center><select name="sorting" id="sorting" onchange="submit()"> <option value="ByName" <?php if ($sorting == "ByName") { echo "selected";}?> >Nom</option> <option value="BySeniority" <?php if ($sorting == "BySeniority") { echo "selected";}?> >Ancienneté</option> <option value="BySeniorityReverse" <?php if ($sorting == "BySeniorityReverse") { echo "selected";}?> >Nouveauté</option> <option value="ByMail" <?php if ($sorting == "ByMail") { echo "selected";}?> >Mail</option> <option value="ByPostalCode" <?php if ($sorting == "ByPostalCode") { echo "selected";}?> >Code Postal</option> <option value="ByFpf" <?php if ($sorting == "BFpf") { echo "selected";}?> >N° FPF</option> </select></center></p> </form> <!-- Code ajouté : FIN --> </div> <div id="col_ABC"> <?php // Code modifié : DEBUT // Création et envoi de la requetei if ($sorting == "ByName") { $query = "SELECT * FROM adherent ORDER BY nom, prenom"; } elseif ($sorting == "BySeniority") { $query = "SELECT * FROM adherent ORDER BY arrive, idccpsa ASC"; } elseif ($sorting == "BySeniorityReverse") { $query = "SELECT * FROM adherent ORDER BY arrive, idccpsa DESC"; } elseif ($sorting == "ByMail") { $query = "SELECT * FROM adherent ORDER BY mail"; } elseif ($sorting == "ByPostalCode") { $query = "SELECT * FROM adherent ORDER BY cp, nom"; } else { $query = "SELECT * FROM adherent ORDER BY idfpf, nom ASC"; } // Code modifié : FIN $result = mysql_query($query) or die("Erreur dans l'extraction des informations<br>"); $nbP = mysql_num_rows($result); // Récuperation des résultats if ($nbP==0) { echo "Hum ! c'est ennuyeux, il semble que nous n'ayons pas de donnees a afficher. Ou qu'il y ait une erreur dans leur extraction.";} else { while ($row = mysql_fetch_array($result)){ $Fpf = $row['idfpf']; $Ccpsa = $row['idccpsa']; $Arrive = $row['arrive']; $Civ = ucfirst($row['civ']); $Nom = strtoupper($row['nom']); $Prenom = ucwords($row['prenom']); $Adresse = $row["num"].', '.ucwords($row["voie"]).'<br/>'.$row["cp"].' - '.ucfirst($row["commune"]); $Tel = $row['tel1']; $Mobile = $row['tel2']; $Lien = $row["mail"]; $Mail = $Lien; $Photo = $row["photo"]; //$Apn = $row["apn"]; //$Style = $row["style"]; //Affichage echo "<div id='vignetteH'> <p class='pplus'>$Prenom $Nom</p> <img src='../trombin/".$Photo."' height='150px'/> <p>N° Ccpsa : <strong>".$Ccpsa."</strong> / FPF : <strong>".$Fpf."</strong> <br/>Membre depuis ".$Arrive." <br/>".$Adresse." <br/>Tél : ".$Tel." / ".$Mobile." <br/><a class='xlink' href=\"mailto:$Lien\">".$Mail."</a>\n</p> </div>"; } } ?> </div> <!--fin col ABC--> <hr /> <!--MENU BAS--> <p> |<a href="../../index.php" class="zlink"> accueil </a> |<a href="../../pages/activites.php" class="zlink"> activités </a> |<a href="../../pages/galeries.php" class="zlink"> galeries </a> |<a href="../../pages/liens_utiles" class="zlink"> liens utiles </a> |<a href="../../pages/legal.php" class="zlink"> bureau et légalité </a> |<a href="../admin/index.php" class="zlink"> espace adhérents </a>| </p> <!--FIN MENU BAS--> </div> <!--fin container--> </div> <!--fin page--> </body> </html>
©
2020 Black Eagle Team