<div class="modal fade" id="viewprofile<?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">
					<div class="right col-xs-3 text-center">
                         <img src="images/img.jpg" alt="" class="img-circle img-responsive">
						 </div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div style="margin-left:180px;margin-top:40px"> <?php echo $fname ?>
					&nbsp;&nbsp;&nbsp;<b><?php echo $pne ?></b></div> </h4> 
					 
            </div>
				<div class="modal-body">
				<ul type="none">
				<li> <Strong> First name : </strong> <div style="text-align:center;margin-top:-14px;"> <?php echo $fname ?></div> </li><br/>
				<li> <Strong> Contact : </strong> <div style="text-align:center;margin-top:-14px;">  <?php echo $pne ?> </div> </li><br/>
				<li> <Strong> Group : </strong> <div style="text-align:center;margin-top:-14px;"> <?php echo $gname ?> </div> </li><br/>
				
				</ul>
			  
					
				</div>
            <div class="modal-footer">
			  
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>