<!DOCTYPE html>
<html lang="en">
	<head>
		<style>
		.container-fluid{
			background-color:#2a8fc7;
			height:47px;
		}
	
		
		</style>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
	</head>
<body>
	<nav class="navbar navbar-default">
		<div class="container-fluid">
		
		</div>
	</nav>
	<div class="col-md-3"></div>
	
				</tr>
				
			</tbody>
		</table>
	</div>
	
<div class="" id="" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<form method="POST" action="save.php" enctype="multipart/form-data">
				<div class="modal-header">
					<h3 class="modal-title">Ajouter l'image de couverture</h3>
				</div>
				<div class="modal-body">
					<div class="col-md-2"></div>
					<div class="col-md-8">
						
						
						
					
							<?php
					require 'conn.php';
					$query = mysqli_query($conn, "SELECT * FROM `actuality` order by act_id desc limit 1") or die(mysqli_error());
					while($fetch = mysqli_fetch_array($query)){
				?>
                             
							<input type="text" class="form-control" name="title" value="<?php echo $fetch['titre']?>" required="required"/>
					
						   <?php } ?>
						
						<div class="form-group">
							<label>Photo</label>
							<input type="file" class="form-control" name="photo" required="required"/>
						</div>
					</div>
				</div>
				<br style="clear:both;"/>
				<div class="modal-footer">
				    	<button class="btn btn-primary" name="save"><span class="glyphicon glyphicon-save"></span>Publier</button>
					<button class="btn btn-danger" type="reset" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span>Annuler</button>
				
				</div>
			</form>
		</div>
	</div>
</div>
	
<script src="js/jquery-3.2.1.min.js"></script>	
<script src="js/bootstrap.js"></script>	
</body>	
</html>