Exemple #1
0
          <ul class="nav nav-sidebar">
            <li><a href="/Views/Business/manager.php">Buisness</a></li>
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div class="row">
              <div class="col-md-8"> <h1>My Friends</h1></div>
              <!-- <div class="col-md-4"><a class="btn btn-info btn-raised" style="float: right;" data-toggle="modal" data-dismiss="modal" data-target="#CreateG">Create Group</a></div> -->
            </div>


          <div class="row placeholders panel panel-primary" style="padding:20px;">
              <!-- <div class="panel-heading" style="margin-bottom:20px; text-align: left; font-size: 20px;">Your Groups</div> -->

              <?php 
$myFriends = $friends->getUserFriends();
$hasFs = false;
echo "<script>console.log('results_row userFriends: " . json_encode($myFriends) . "');</script>";
//echo("<script>console.log('results_row userFriends: ".json_encode($myFriends->fetch_object)."');</script>");
if ($myFriends->num_rows >= 1) {
    $hasFs = true;
}
if ($hasFs) {
    while ($row = $myFriends->fetch_object()) {
        echo "<script>console.log('results_row userFriends: " . json_encode($row) . "');</script>";
        echo '<div class="col-xs-6 col-sm-3 placeholder" style="margin-bottom:0px;">';
        echo '<button onclick="location.href = ' . "'" . "/Views/Friends/open.php?friend=" . $row->id . "'" . ';" class="btn btn-flat btn-primary" style="padding: 3px;border-radius: 50%;" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Profile">';
        //photo of Friend here
        echo '<img src="' . $row->user_image . '" alt="" style="width:100px; height:auto;">';
        // echo   '<img src="/images/stock/members.png" width="100" height="100" class="img-responsive" alt="Generic placeholder thumbnail">';
        echo '</button>';