<div class="modal fade" id="updateprofile<?php echo $id ?>" tabindex="-1" role="form" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> Cancel &times;</button>
                <h4 class="modal-title" id="myModalLabel"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				<?php $Fname = $dat['fname']; $Lname = $dat['lname'];$phne = $dat['phone'];$user = $dat['username'];$mail = $dat['email'];echo $Fname."  ". $Lname ?></h4> 
            </div>
				<div class="modal-body">
			   
					<form name="contacts" data-parsley-validate class="form-horizontal form-label-left" method="post" action="">	
					<table border="0" style="margin-left:80px">
					<div style="margin-top:30px;" >
					<tr> 
					 <td>   Upload photo:   </td> <td> <div style="margin-top:-16px;margin-left:10px;" > &nbsp;&nbsp;   <input type="file" name="file" id="file" /><input type="hidden" name="image"  />  </div> </td>
					 </tr>
					 </div>
					   
					  </table>
					  <br/> <br/>
					  
							<div class="form-group" style="margin-left:80px;">
								<div class="col-md-4col-sm-4 col-xs-5 col-md-offset-3">
									<input type="submit"  class="btn btn-success" name="upload" value="Upload"/>
								</div>
							</div>	
					  	
					</form>
					<?php
					if(isset($_POST['upload'])){
						
						 $file_info = getimagesize($_FILES['file']['tmp_name']); 
						 $target = 'profileimages/';
						 
						 if(empty($file_info)){

	                    }else{
							// move_uploaded_file($_FILES["file"]["tmp_name"], "profileimages/" .$_FILES["file"]["name"]);
								$img = $_FILES["file"]["name"];	
									 $query = mysql_query("update airtime_customer set image='me.png' where customer_id='$session_id' ");
						}
						
						?>
					<script>
					window.location="profile.php";
					</script>
					<?php } ?>
					
				</div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>