
 <div class="modal fade" id="viewgroupcontacts<?php echo $gid ?>" 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"> User: <?php echo $Fname." ".$Lname ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group: <?php echo $name  ?> </h4>
				
            </div>
				<div class="modal-body">
			   
					   <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>Name</th>
                          <th>Contact</th>
                        </tr>
                      </thead>
                      <tbody>
					  
					  	<?php
						$sql = "select * from airtime_contacts where group_id='$gid'";
						$rst = mysql_query($sql);
						while($rw=mysql_fetch_array($rst)){
							$Fname = $rw['fname'];
							$Lname = $rw['lname'];
							$pne = $rw['contact'];
							
					    ?>
						<tr> 
							<td> <?php echo $Fname." ".$Lname ?> </td>
							<td> <?php echo $pne ?> </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>

