echo '<div class="alert alert-danger" role="alert">' . $e . '</div>'; } if (isset($s)) { echo '<div class="alert alert-success" role="alert">' . $s . '</div>'; } ?> <div class="panel panel-default" style= "color: #333;"> <div class="panel-heading"> <strong>User Info</strong> <a href="user.php?logout=t" style="float: right; margin-top: -4px;" class="btn btn-danger btn-sm">Logout</a></div> <div class="panel-body" style=" text-align: left"> <div class "row"> <?php echo ' <div class="col-md-4" style="margin-bottom: 5px"> <strong>Name:</strong> ' . $user['name'] . '<br/> <strong>Phone: </strong>' . $user['phone'] . '<br /> <strong>Email: </strong>' . $user['email'] . '<br /> <strong>Team: </strong>' . $team['name'] . '<br /> <strong>Team Code: </strong>' . $team['id'] * 7 . ' (' . getTeamCount($team['id']) . ' registered)<br /> <strong>Shirt Size: </strong>' . $team['shirt'] . '<br /> <strong>Payment: </strong>' . ($user['paid'] ? "Received" : "Not yet received") . '</div>'; ?> <div class="col-md-8" style=""> <?php if ($user['team_id'] != 1) { ?> <strong>Team Members</strong> <table class="table table-hover table-condensed"> <tr> <th>Name</th> <th>Phone</th> <th>Email</th> <th>Paid?</th> </tr>
<br /> <table class="table table-hover table-condensed"> <tr> <th>Id</th> <th>Name</th> <th>Members</th> <th>Founder</th> <th># Paid</th> </tr> <?php $result = getAllTeams(); while ($row = mysql_fetch_array($result)) { $admin = getUser($row['admin_id']); echo '<tr><td>' . $row['id'] * 7 . '</td>'; echo '<td>' . $row['name'] . '</td>'; echo '<td>' . getTeamCount($row['id']) . '</td>'; echo '<td>' . $admin['name'] . '</td>'; echo '<td>' . getTeamCountPaid($row['id']) . '</td></tr>'; } ?> </table> </div> </div> </div> <h6 style="margin-bottom: 10px;">Philip Bale is the shit. Faz is ugly.</h6> </div> </div> </div> </div> </header>