PHP Classes
elePHPant
Icontem

File: application/views/user.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  Attendance Login System  >  application/views/user.php  >  Download  
File: application/views/user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Attendance Login System
Manage and authenticate company employees users
Author: By
Last change: improve and adding feature

adding settings for turn off/on recaptcha, employess can see the history absent
Date: 1 year ago
Size: 1,977 bytes
 

 

Contents

Class file image Download
<div class="container">
        <h2>Users</h2>
        <div class="table-responsive">
            <table class="table table-hover table-bordered table-striped">
              <tr>
                  <th>
                      Name
                  </th>
                  <th>
                      User Name
                  </th>
                  <th>
                      Last Login
                  </th>
                  <th>
                      Level Name
                  </th>
                  <th>
                      Status
                  </th>
                  <th colspan="2">
                      Edit
                  </th>
              </tr>
                    <?php
                       
foreach($groups as $row)
                        {
                        if(
$row->role == 1){
                           
$rolename = "Admin";
                        }elseif(
$row->role == 2){
                           
$rolename = "Author";
                        }elseif(
$row->role == 3){
                           
$rolename = "Employee";
                        }elseif(
$row->role == 4){
                           
$rolename = "Subscriber";
                        }

                        echo
'<tr>';
                        echo
'<td>'.$row->first_name.'</td>';
                        echo
'<td>'.$row->email.'</td>';
                        echo
'<td>'.$row->last_login.'</td>';
                        echo
'<td>'.$rolename.'</td>';
                        echo
'<td>'.$row->status.'</td>';
                        echo
'<td><a href="'.site_url().'main/changelevel"><button type="button" class="btn btn-primary">Role</button></a></td>';
                        echo
'<td><a href="'.site_url().'main/deleteuser/'.$row->id.'"><button type="button" class="btn btn-danger">Delete</button></a></td>';
                        echo
'</tr>';
                        }
                   
?>
</table>
        </div>
    </div>