<?php
session_start();
include('../connexion.php');
if (!isset($_SESSION['celest']))
{
	header ('Location: index.php');
}
if (isset($_GET['W9mvyDvFWE5']))
{
	$chaiz=addslashes($_GET['W9mvyDvFWE5']);
	$_SESSION['langue'] = $chaiz;
	header('Location: administration.php');
}
$active='administration';
?>
	<?php include('tete.php'); ?>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="css/local.css" />
    <link rel="stylesheet" type="text/css" href="style/style_admin.css" />

    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>

</head>
<body>
    <div id="wrapper">
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-3 col-md-3"></div>
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" id="administration">
                	<?php
                    $sql='SELECT * FROM langue';
					$reponse=$bdd-> query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
					while($data=$reponse->fetch())
					{
						?>
						<div class="col-lg-6" align="center">
                        	<a href="?W9mvyDvFWE5=<?php echo $data[0] ?>">
                                <img src="../upload/<?php echo $data['img_langue'] ?>" class="img-responsive" width="100">
                                <h4><?php echo $data['lib_langue'] ?></h4>
                            </a>
                        </div>
						<?php
					}
					?>
                </div>
            </div>
        </div>
    </div>
</body>
</html>,