<div class="page-title">
              <div class="title_left">
                <h3>Your Contacts</h3>
              </div>

              <div class="title_right">
                <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                  <div class="input-group">
                    <input type="text" class="form-control" placeholder="Search for...">
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="button">Go!</button>
                    </span>
                  </div>
                </div>
              </div>
            </div>

            <div class="clearfix"></div>
			
			<div class="row">
              <div class="col-md-12">
                <div class="x_panel">
                  <div class="x_content">
                    <div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12 text-center">
                        <ul class="pagination pagination-split">
                          <li><a href="#">A</a></li>
                          <li><a href="#">B</a></li>
                          <li><a href="#">C</a></li>
                          <li><a href="#">D</a></li>
                          <li><a href="#">E</a></li>
                          <li>...</li>
                          <li><a href="#">W</a></li>
                          <li><a href="#">X</a></li>
                          <li><a href="#">Y</a></li>
                          <li><a href="#">Z</a></li>
                        </ul>
                      </div>
					  
					  <?php
					  
					  $sql = mysql_query("select * from contacts where customer_id='$session_id' ");
					  echo"<table border='0' align='left'><tr>";
					  $n=1;
					  while($arr=mysql_fetch_array($sql)){
					     $id=$arr['contact_id'];
					    if($n%4==0) {
					      echo "<tr>";
					      }
						  echo "
						  <td height='180' width='400' align='left'>
                             <h4 class='brief'><b>".$arr['group'] . "<b></h4>
                            <div class='left col-xs-7'>
                              <h2>". $arr['fname']."&nbsp;".$arr['lname']."</h2>
                              <p><strong>Phone: +254".$arr['contact']. "</p>
							   <p><strong>Email: </strong> ".$arr['email']." </p>
                              <ul class='list-unstyled'>
                                <li><a href='edit.php?id=".$arr['contact_id']."'><i class='fa fa-edit'></i> Update </a> </li>
                                <li><a href='delete.php?id=".$arr['contact_id']."'> <i class='fa fa-trash'></i> Delete Contact </a> </li>
                              </ul>
                            </div>
                            <div class='center col-xs-3 text-center'>
                              <img src='images/this.png' alt='' class='img-circle img-responsive'>
                            </div>
						  ";
					echo "
					</td>";
					$n++;

					}
					echo "</tr></table>";
					  
					  
					  ?>
					  
					  
					  
					</div>
				</div>
			</div>
		</div>
	</div>
					  