first commit
This commit is contained in:
39
autoload/admin/controls/class.Users.php
Normal file
39
autoload/admin/controls/class.Users.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
//po poprawkach
|
||||
namespace admin\controls;
|
||||
|
||||
class Users {
|
||||
|
||||
public function getContentAdmins()
|
||||
{
|
||||
$rw = \System::formGet( 'rw' );
|
||||
|
||||
if ( $rw == 'add' )
|
||||
return \admin\view\Users::editAdmin();
|
||||
|
||||
if ( $rw == 'edit' )
|
||||
return \admin\view\Users::editAdmin( \System::formGetInt( 'id' ) );
|
||||
|
||||
if ( $rw == 'del' )
|
||||
\admin\factory\Users::deleteAdmin( \System::formGetInt( 'id' ) );
|
||||
|
||||
return \admin\view\Users::showAdmins();
|
||||
}
|
||||
|
||||
public function getContentUsers()
|
||||
{
|
||||
$rw = \System::formGet( 'rw' );
|
||||
|
||||
if ( $rw == 'add' )
|
||||
return \admin\view\Users::editUser();
|
||||
|
||||
if ( $rw == 'edit' )
|
||||
return \admin\view\Users::editUser( \System::formGetInt( 'id' ) );
|
||||
|
||||
if ( $rw == 'del' )
|
||||
\admin\factory\Users::deleteUser( \System::formGetInt( 'id' ) );
|
||||
|
||||
return \admin\view\Users::showUsers();
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user