index.php (1825B)
1 <div class="container"> 2 <h1>ProfileController/index</h1> 3 <div class="box"> 4 5 <!-- echo out the system feedback (error and success messages) --> 6 <?php $this->renderFeedbackMessages(); ?> 7 8 <h3>What happens here ?</h3> 9 <div> 10 This controller/action/view shows a list of all users in the system. You could use the underlying code to 11 build things that use profile information of one or multiple/all users. 12 </div> 13 <div> 14 <table class="overview-table"> 15 <thead> 16 <tr> 17 <td>Id</td> 18 <td>Avatar</td> 19 <td>Username</td> 20 <td>User's email</td> 21 <td>Activated ?</td> 22 <td>Link to user's profile</td> 23 </tr> 24 </thead> 25 <?php foreach ($this->users as $user) { ?> 26 <tr class="<?= ($user->user_active == 0 ? 'inactive' : 'active'); ?>"> 27 <td><?= $user->user_id; ?></td> 28 <td class="avatar"> 29 <?php if (isset($user->user_avatar_link)) { ?> 30 <img src="<?= $user->user_avatar_link; ?>" /> 31 <?php } ?> 32 </td> 33 <td><?= $user->user_name; ?></td> 34 <td><?= $user->user_email; ?></td> 35 <td><?= ($user->user_active == 0 ? 'No' : 'Yes'); ?></td> 36 <td> 37 <a href="<?= Config::get('URL') . '/profile/showProfile/' . $user->user_id; ?>">Profile</a> 38 </td> 39 </tr> 40 <?php } ?> 41 </table> 42 </div> 43 </div> 44 </div>