Login   Register  
PHP Classes
elePHPant
Icontem

File: demo/app/view/users/index.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Italo Lelis de Vietro  >  Easy Framework  >  demo/app/view/users/index.tpl  >  Download  
File: demo/app/view/users/index.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Easy Framework
Full stack Web application framework with MVC
Author: By
Last change:
Date: 2 years ago
Size: 834 bytes
 

Contents

Class file image Download
{extends file=$layout}

{block name=content}

<table border='1px'>
    <thead>
        <tr>
            <td>Id</td>
            <td>Username</td>
            <td>Admin</td>
            <td>Actions</td>
        </tr>
    </thead>  
    <tbody>
        {foreach $users as $user}
            <tr>
                <td>{$user->id}</td>
                <td>{$user->username}</td>
                <td>{$user->admin}</td>
                <td><a href='{$url.viewUser}/{$user->id}'>View </a>| <a href='{$url.editUser}/{$user->id}'>Edit</a> | <a href='{$url.deleteUser}/{$user->id}'>Delete</a></td>
            </tr>
        {/foreach}
    </tbody>  
</table>

<hr/>
<button onclick="location.href='{$url.base}'">Back to main menu</button>
<button onclick="location.href='{$url.addUser}'">Add User</button>

{/block}