<div class="modal fade" id="deletedata<?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 Delete </h4>
            </div>
				<div class="modal-body">
			   
				<form name="contacts" data-parsley-validate class="form-horizontal form-label-left" method="post" action="">
					
                          <input type="text"  style="display:none;" id="em" name="em" value="<?php echo $id ?>" required="required" class="form-control col-md-3 col-xs-3" />
						  <p>
					  Are you sure you want to delete this record ?? </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="delete" value="Delete" />
              
            </div>
			</form>
			<?php
			   if(isset($_POST['delete'])){
				   
				   $rid= $_POST['em'];
				   // hide record rather than deleting
				   
				 //  $s = mysql_query("delete from airtime_sending_records where r_id = '$rid' ");   
			   }
			
			
			?>
        </div>
    </div>
</div>