
 <div class="modal fade" id="view<?php echo $idss ?>" 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">  Group: <?php echo $names ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No. of Contacts: <?php echo $nums  ?> </h4>
            </div>
				<div class="modal-body">
			   
					 
						
					<table id="datatable-buttons" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>Full Name</th>
                          <th>Contact</th>
                        </tr>
                      </thead>
                      <tbody>
					  
					  	<?php
						$sql = "select * from airtime_contacts where group_id='$idss' limit 100 ";
						$rst = mysql_query($sql);
						while($rw=mysql_fetch_array($rst)){
							$phn = $rw['contact'];
							$name= $rw['fname']." ".$rw['lname'];
					    ?>
					 <tr> <td> <?php echo $name ?> </td>
					  <td> <?php echo $phn ?> </td> </tr>
						<?php
						}
						?>
					  </tbody>
                      </table>
			
					  
							
				</div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
  

	

