gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

index.php (2474B)


      1 <div class="container">
      2     <h1>Admin/index</h1>
      3 
      4     <div class="box">
      5 
      6         <!-- echo out the system feedback (error and success messages) -->
      7         <?php $this->renderFeedbackMessages(); ?>
      8 
      9         <h3>What happens here ?</h3>
     10 
     11         <div>
     12             This controller/action/view shows a list of all users in the system. with the ability to soft delete a user
     13             or suspend a user.
     14         </div>
     15         <div>
     16             <table class="overview-table">
     17                 <thead>
     18                 <tr>
     19                     <td>Id</td>
     20                     <td>Avatar</td>
     21                     <td>Username</td>
     22                     <td>User's email</td>
     23                     <td>Activated ?</td>
     24                     <td>Link to user's profile</td>
     25                     <td>suspension Time in days</td>
     26                     <td>Soft delete</td>
     27                     <td>Submit</td>
     28                 </tr>
     29                 </thead>
     30                 <?php foreach ($this->users as $user) { ?>
     31                     <tr class="<?= ($user->user_active == 0 ? 'inactive' : 'active'); ?>">
     32                         <td><?= $user->user_id; ?></td>
     33                         <td class="avatar">
     34                             <?php if (isset($user->user_avatar_link)) { ?>
     35                                 <img src="<?= $user->user_avatar_link; ?>"/>
     36                             <?php } ?>
     37                         </td>
     38                         <td><?= $user->user_name; ?></td>
     39                         <td><?= $user->user_email; ?></td>
     40                         <td><?= ($user->user_active == 0 ? 'No' : 'Yes'); ?></td>
     41                         <td>
     42                             <a href="<?= Config::get('URL') . '/profile/showProfile/' . $user->user_id; ?>">Profile</a>
     43                         </td>
     44                         <form action="<?= config::get("URL"); ?>/admin/actionAccountSettings" method="post">
     45                             <td><input type="number" name="suspension" /></td>
     46                             <td><input type="checkbox" name="softDelete" <?php if ($user->user_deleted) { ?> checked <?php } ?> /></td>
     47                             <td>
     48                                 <input type="hidden" name="user_id" value="<?= $user->user_id; ?>" />
     49                                 <input type="submit" />
     50                             </td>
     51                         </form>
     52                     </tr>
     53                 <?php } ?>
     54             </table>
     55         </div>
     56     </div>
     57 </div>