This commit is contained in:
Alan
2026-02-14 19:34:54 +03:00
commit 5c3329238b
867 changed files with 214778 additions and 0 deletions

35
simpla/BrandsAdmin.php Normal file
View File

@@ -0,0 +1,35 @@
<?PHP
require_once('api/Simpla.php');
class BrandsAdmin 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->brands->delete_brand($id);
break;
}
}
}
$brands = $this->brands->get_brands();
$this->design->assign('brands', $brands);
return $this->body = $this->design->fetch('brands.tpl');
}
}