PHP Classes

File: App/View/admin/user/includes/table.php

Recommend this page to a friend!
  Classes of Ahmed Saad   Simple PHP MVC Framework   App/View/admin/user/includes/table.php   Download  
File: App/View/admin/user/includes/table.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP MVC Framework
Developing Web applications using the MVC pattern
Author: By
Last change:
Date: 1 year ago
Size: 1,131 bytes
 

Contents

Class file image Download
<div class="table-responsive">
    <table class="table table-hover table-stripped table-borderedw">
        <thead>
            <tr>
                <th class="col-xs-1">#</th>
                <th>User Name</th>
                <th>User Email</th>
                <th>is Admin</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <? foreach( $this->users as $i=>$user ): ?>
<tr>
                    <td><? echo $i; ?></td>
                    <td><? echo $user->username; ?></td>
                    <td><? echo $user->email; ?></td>
                    <td><? echo $user->admin ? 1 : 0; ?></td>
                    <td class="text-right">
                        <a href="/admin/user/<? echo $user->id; ?>" class="no-decoration " data-toggle="tooltip" title="Show">
                            <span class="glyphicon glyphicon-user"></span>
                        </a>
                        <a href="/admin/user/edit/<? echo $user->id; ?>" class="no-decoration margin-0-10" data-toggle="tooltip" title="Edit">
                            <span class="glyphicon glyphicon-edit"></span>
                        </a>
                        <a href="/admin/user/delete/<? echo $user->id; ?>" class="no-decoration " data-toggle="tooltip" title="Delete">
                            <span class="glyphicon glyphicon-trash text-danger"></span>
                        </a>
                    </td>
                </tr>
            <? endforeach; ?>
</tbody>
    </table>
</div>