<div class="modal fade" id="deletecontact<?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">  Confirm Detete: &nbsp;&nbsp;&nbsp;
				Name: <?php echo $Fname." ". $Lname ?> &nbsp;&nbsp; Group: &nbsp;<?php echo $gname; ?> </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:40px">
					<tr style="display:none;"> 
					 <div class="form-group" >
                       <td> <label > Contact ID <span class="required"> </span>
                        </label> </td>
                        <td> <div class="col-md-4 col-sm-4 col-xs-5">
                          <input type="text" id="idr" name="idr" value="<?php echo $id ?>" required="required" class="form-control col-md-3 col-xs-3">
                        </div> </td>
                      </div> 
					</tr>
					</table>
					 <p> Are you sure you want to <b>DELETE  <?php echo $Fname;  ?></b> from your contacts List ?? </p>
				
							
				</div>
            <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
			<input type="submit" class="btn btn-danger" name="deletecn" value="Delete" />
                
            </div>
			</form>
			
			<?php
			if(isset($_POST['deletecn'])){
				$idt = $_POST['idr'];
				
				?>
				    <script>
					    window.location="delete.php?did=<?php echo $idt; ?>";
					</script>
				<?php
				
			}
			?>
        </div>
    </div>
</div>
