<?php
session_start();

?>

<?php 
include'dbcon.php';
	$query=mysqli_query($conn,"select * from tbl_excel where numinscription ='$_SESSION[password]'")or die(mysqli_error($conn));
	 while($row=mysqli_fetch_array($query)){
						
						
						
							?>
<html>
<title>Inscription- Université du burundi</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
<link href="logoubvilus.JPG" rel="shortcut icon">
<?php
date_default_timezone_set("Asia/Calcutta");
//echo date_default_timezone_get();
?>


<?php
include'dbcon.php';
if(isset($_POST['submit'])!=""){
  $name=$_FILES['diploma']['name'];
  $size=$_FILES['diploma']['size'];
  $type=$_FILES['diploma']['type'];
  $temp=$_FILES['diploma']['tmp_name'];
  
  
  $name1=$_FILES['identite']['name'];
  $size=$_FILES['identite']['size'];
  $type=$_FILES['identite']['type'];
  $temp1=$_FILES['identite']['tmp_name'];
  
   $name2=$_FILES['casierJud']['name'];
  $size=$_FILES['casierJud']['size'];
  $type=$_FILES['casierJud']['type'];
  $temp2=$_FILES['casierJud']['tmp_name'];
  
  $name3=$_FILES['extraitNaic']['name'];
  $size=$_FILES['extraitNaic']['size'];
  $type=$_FILES['extraitNaic']['type'];
  $temp3=$_FILES['extraitNaic']['tmp_name'];
  
   $name4=$_FILES['bonneCond']['name'];
  $size=$_FILES['bonneCond']['size'];
  $type=$_FILES['bonneCond']['type'];
  $temp4=$_FILES['bonneCond']['tmp_name'];
  
  $name5=$_FILES['photopass']['name'];
  $size=$_FILES['photopass']['size'];
  $type=$_FILES['photopass']['type'];
  $temp5=$_FILES['photopass']['tmp_name'];
  
  $name6=$_FILES['recupaie']['name'];
  $size=$_FILES['recupaie']['size'];
  $type=$_FILES['recupaie']['type'];
  $temp6=$_FILES['recupaie']['tmp_name'];
  
  $name7=$_FILES['cvs']['name'];
  $size=$_FILES['cvs']['size'];
  $type=$_FILES['cvs']['type'];
  $temp7=$_FILES['cvs']['tmp_name'];
  
   
  
  $date = date('Y-m-d H:i:s');
  $no=$_POST['nometud'];
  $pre=$_POST['prenometud'];
    $num=$_POST['numeroInscription'];
  
  
  move_uploaded_file($temp,"files/".$name);
  move_uploaded_file($temp1,"files/".$name1);
   move_uploaded_file($temp2,"files/".$name2);
  move_uploaded_file($temp3,"files/".$name3);
   move_uploaded_file($temp4,"files/".$name4);
  move_uploaded_file($temp5,"files/".$name5);
   move_uploaded_file($temp6,"files/".$name6);
    move_uploaded_file($temp7,"files/".$name7);

 $query=mysqli_query($conn,"UPDATE upload SET diplome='$name',identiteComplete='$name1',casierJudiciaire='$name2',extraitActeNaissance='$name3',bonneConduite='$name4',photopassport='$name5',recupaiement='$name6',cv='$name7' where numeroInscription ='$_SESSION[password]'")or die(mysqli_error($conn));
  $count=mysqli_num_rows($query);
    
echo "<script type='text/javascript'>alert('Modification avec succes');</script>";
echo "<script>document.location='documents.php'</script>"; 	
   
   
   }

 
?>

















<html>
<body>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css"/>
</head>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>

<script type="text/javascript" charset="utf-8" language="javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" language="javascript" src="js/DT_bootstrap.js"></script>
<?php include('dbcon.php'); ?>
<style>
.table tr th{
	
	border:#eee 1px solid;
	
	position:relative;
	#font-family:"Times New Roman", Times, serif;
	font-size:12px;

	}
	table tr td{
	
	border:#eee 1px solid;

	position:relative;
	#font-family:"Times New Roman", Times, serif;
	font-size:12px;
	
	
	}
	
#wb_Form1
{

   border: 0px #000 solid;
  
}
#photo
{
   border: 1px #A9A9A9 solid;
  

   font-family:Arial;
   font-size: 20px;
}

.alert {
 
   background-color: GREEN;
  
}
.col-xs-12{
 
  margin-left:40px;
  
}

.btn btn-danger{
 
  margin-left:40px;
  
}

.al{
 
background-color:#e8f9f9;
  
}

.dec{
 
float:right;
  
}

	</style>
	
	<div class="alert alert-info">
                              
                               
								&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  <I><FONT SIZE=4><strong><font color='white'>UNIVERSITE DU BURUNDI 'RUMURI'</font></strong></FONT></I>
                           
						      <p class='dec'> 

                             
                       <a  href="../logout.php" title="Déconnexion">
                         
                            <font color='white'>    <strong> <?php echo $row['nom']; ?> <?php echo $row['prenom']; ?>,    Déconnexion       </strong></font></a>
                   
                 
                         


							  </p>

						   </div>
						   
						   
							
							 <div class="container-fluid" style="margin-top:3vh !important;min-height:75vh">
                <div class="container" style="max-width:80%">
</div>                <div class="alert al alert-info">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button><strong><font color='blue'><center><?php echo $row['nom']; ?> <?php echo $row['prenom']; ?>,&nbsp;&nbsp;Vous pouvez modifier vos documents</center></font></strong> 
     
</div>
							     <div class="panel-body pb-2">
								 
						<form enctype="multipart/form-data"  action="" id="wb_Form1" name="form" method="post">
						
					<input type="hidden" name="prenometud" id="photo"  value="<?php echo $row['prenom']; ?>" required="required"> 
					<input type="hidden" name="nometud" id="photo"  value="<?php echo $row['nom']; ?>" required="required">
					<input type="hidden" name="numeroInscription" id="photo"  value="<?php echo $row['numinscription']; ?>" required="required">
					     <?php  } ?>
				<div class="row">
					
					    <?php 
			include'dbcon.php';
				$query=mysqli_query($conn,"select * from upload where numeroInscription ='$_SESSION[password]'")or die(mysqli_error($conn));
				 while($row=mysqli_fetch_array($query)){
									
						
						
							?>
					 
					
					
					<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
                    <div class="form-group">
                        <label class="control-label">Modifier le diplome d'Etat ou l'attestation d'équivalence 	</label>
                        		 <p>	<font color='blue'><?php echo $row['diplome']; ?> </p>		</font>
					<input type="file" name="diploma" id="photo" value='1' required="required">




       
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
				    </br>
                    <div class="form-group">
                        <label class="control-label">Modifier l'identité Complète	</label>
                             <p><font color='blue'><?php echo $row['identiteComplete']; ?>  </p>	 </font>		
				<input type="file" name="identite" id="photo"  value='<?php echo $row['identiteComplete']; ?>' required="required">
                    </div>
                </div>
					
					
					<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
					 </br>
                    <div class="form-group">
                        <label class="control-label">Modifier le Casier Judiciaire	 </label>
                        	   <p><font color='blue'><?php echo $row['casierJudiciaire']; ?>  </p>  </font>	
					<input type="file" name="casierJud" id="photo"  required="required">
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
				  </br>  </br>
                    <div class="form-group">
                        <label class="control-label">Modifier l'extrait d'acte de naissance</label>
                            <p><font color='blue'><?php echo $row['extraitActeNaissance']; ?>  </p>  </font>			
				<input type="file" name="extraitNaic" id="photo"  required="required">
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
					 </br>
                    <div class="form-group">
                        <label class="control-label">Modifier l'attestation de bonne conduite vie Moeurs </label>
                             <p><font color='blue'><?php echo $row['bonneConduite']; ?>  </p>  </font>			
					<input type="file" name="bonneCond" id="photo"  required="required">
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
				  </br>  </br>
                    <div class="form-group">
                        <label class="control-label">Modifier le photo passport recupaie</label>
                        	  <p><font color='blue'><?php echo $row['photopassport']; ?></p>  </font>	
				<input type="file" name="photopass" id="photo"  required="required">
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
                    <div class="form-group">Modifier le Reçu de paiement</label>
						  <p><font color='blue'><?php echo $row['recupaiement']; ?></p>  </font>	
                        		
				<input type="file" name="recupaie" id="photo"  required="required">
                    </div>
                </div>
				
				<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 column">
                    <div class="form-group">
					
					
                        <label class="control-label">Modifier le Curriculum vitae </label>
                        	  <p><font color='blue'><?php echo $row['cv']; ?></p>  </font>		
				<input type="file" name="cvs" id="photo"  required="required">
                    </div>
                </div>
					
				    </div>	
					&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <input type="submit" class="btn btn-danger" value="Modifier" name="submit">
			</form> 
			      </center>
				     <?php  } ?>
							 <div class="col-md-18">
	<div class="container-fluid" style="margin-top:0px;">
  


	
	
	
	
	
	
	  
	 </br>  </br>	 </br>	 </br>	 </br> </br>	 </br>
   <div class = "row">
		<div class="panel panel-default">
			<div class="panel-body">
			<div class="table-responsive">
       <table cellpadding="0" cellspacing="0" border="0" class="table table-condensed" id="example">
                            
                           

                         
						 
                          
                        </table>
						
                              
                               
								
                            </div>
          
</form>

        </div>
        </div>
        </div>
		  </div>
    </div>

      

</body>
</html>


