first commit
This commit is contained in:
26
autoload/admin/view/class.Users.php
Normal file
26
autoload/admin/view/class.Users.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace admin\view;
|
||||
|
||||
class Users
|
||||
{
|
||||
public static function login_form()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
return $tpl -> render( 'site/unlogged-layout' );
|
||||
}
|
||||
|
||||
public static function users_list()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
return $tpl -> render( 'users/users-list' );
|
||||
}
|
||||
|
||||
public static function user_edit( $user, $privileges )
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl -> user = $user;
|
||||
$tpl -> privileges = $privileges;
|
||||
return $tpl -> render( 'users/user-edit' );
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user