<div class="modal fade" id="deletetopuprecord<?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>
			 <form name="form1" data-parsley-validate class="form-horizontal form-label-left" method="post" action="" onsubmit="return validate()" >
				<div class="modal-body">
				   <input type="hidden" name="rid" id="rid" value="<?php echo $id ?> "/>
				
						<div class="form-group">
							<label> <b>Are you sure you want to delete this record? </b> </label>
						</div>
					   	
				</div>
            <div class="modal-footer">
			     <input type="submit" name="submit" class="btn btn-info"  value="Delete"  />
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
		</form>
        </div>
    </div>
</div>

<?php 
   if(isset($_POST['submit'])){
	   $id = $_POST['rid'];
	   
	   $s = mysql_query("delete from airtime_accounts where id='$id ' ") or die (mysql_error());
     }



?>