<!DOCTYPE html>
<?php
		
		include'dbcon.php';
		
		?>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Tous les étudiants</title>

    <!-- Bootstrap -->
    <link href="cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Datatables -->
    
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
	

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
           

            <!-- sidebar menu -->
              <?php include('navigation.php');?>
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            

            <div class="clearfix"></div>


					
              <div class="col-md-12 col-sm-12 ">
		
                <div class="x_panel">
				
                  <div class="x_title">
				
								
								 <?php
								
									 $sel = "SELECT * FROM upload where numeroInscription='$_GET[numeroInscription]'
									 ";
									$rs = $conn->query($sel);
									while($row = $rs->fetch_assoc()){
				    ?>
                 Télécharger les documents de <?php echo $row['nometud']?> <?php echo $row['prenometud']?>
				  
				  
				   <?php
										 }
										?>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                            <a class="dropdown-item" href="#">Settings 1</a>
                            <a class="dropdown-item" href="#">Settings 2</a>
                          </div>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                      <div class="row">
                          <div class="col-sm-12">
                            <div class="card-box table-responsive">
                   
                    <table id="datatable-buttons" class="table table-striped table-bordered" style="width:100%">
                      <?php
								
									 $sel = "SELECT * FROM upload where numeroInscription='$_GET[numeroInscription]'
									 ";
									$rs = $conn->query($sel);
									while($row = $rs->fetch_assoc()){
										$name=$row['diplome'];
										$name1=$row['identiteComplete'];
										$name2=$row['casierJudiciaire'];
										$name3=$row['extraitActeNaissance'];
										$name4=$row['bonneConduite'];
										$name5=$row['photopassport'];
										$name6=$row['recupaiement'];
										$name7=$row['cv'];
							
										
						               ?>
					  
					  
					  
	<ol> <li><a href="download.php?filename=<?php echo $name;?>" title="click to download"><?php echo $row['diplome'] ?> </a> </li> <hr/>
	<li><a href="download.php?filename=<?php echo $name1;?>" title="click to download"><?php echo $row['identiteComplete'] ?> </a></li> <hr/>
	<li><a href="download.php?filename=<?php echo $name2;?>" title="click to download"><?php echo $row['casierJudiciaire'] ?> </a> </li> <hr/>
	<li><a href="download.php?filename=<?php echo $name3;?>" title="click to download"><?php echo $row['extraitActeNaissance'] ?> </a></li> <hr/>
	<li><a href="download.php?filename=<?php echo $name4;?>" title="click to download"><?php echo $row['bonneConduite'] ?> </a> </li> <hr/>
	<li><a href="download.php?filename=<?php echo $name5;?>" title="click to download"><?php echo $row['photopassport'] ?> </a></li> <hr/>
	<li><a href="download.php?filename=<?php echo $name6;?>" title="click to download"><?php echo $row['recupaiement'] ?> </a> </li> <hr/>
	<li><a href="download.php?filename=<?php echo $name7;?>" title="click to download"><?php echo $row['cv'] ?> </a></li>  </ol><hr/>
					  
					  
					  
					  
					  
									  <?php
										 }
										?>
                    </table>
                  </div>
                </div>
              </div>
            </div>
                </div>
              </div>
			  
			  
			

             
					
                  </div>
                </div>
              </div>
            </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
           <?php include('footer.php');?>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
   <script src="../vendors/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <!-- FastClick -->
    <script src="../vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="../vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="../vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="../vendors/jszip/dist/jszip.min.js"></script>
    <script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="../vendors/pdfmake/build/vfs_fonts.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>

  </body>
</html>