Init
This commit is contained in:
33
simpla/GroupsAdmin.php
Normal file
33
simpla/GroupsAdmin.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?PHP
|
||||
|
||||
require_once('api/Simpla.php');
|
||||
|
||||
############################################
|
||||
# Class Properties displays a list of product parameters
|
||||
############################################
|
||||
class GroupsAdmin extends Simpla
|
||||
{
|
||||
function fetch()
|
||||
{
|
||||
if($this->request->method('post'))
|
||||
{
|
||||
// Действия с выбранными
|
||||
$ids = $this->request->post('check');
|
||||
if(is_array($ids))
|
||||
switch($this->request->post('action'))
|
||||
{
|
||||
case 'delete':
|
||||
{
|
||||
foreach($ids as $id)
|
||||
$this->users->delete_group($id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$groups = $this->users->get_groups();
|
||||
|
||||
$this->design->assign('groups', $groups);
|
||||
return $this->body = $this->design->fetch('groups.tpl');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user