Example #1
0
             $info .= lng('CAT_DELETED');
         } else {
             $info .= lng('CAT_NOT_EXIST');
         }
         $id = false;
     }
     $cat_list = CategoryManager::GetList($id);
     include View::Get('category_header.html', $st_subdir . 'category/');
     if ($id) {
         $cat_item = new Category($id);
         if ($cat_item->Exist()) {
             $cat_name = $cat_item->GetName();
             $cat_desc = $cat_item->GetDescription();
             $cat_priority = $cat_item->GetPriority();
             include View::Get('category_edit.html', $st_subdir . 'category/');
             if (!$cat_item->IsSystem()) {
                 include View::Get('category_delete.html', $st_subdir . 'category/');
             }
         }
         unset($cat_item);
     } else {
         include View::Get('category_add.html', $st_subdir . 'category/');
     }
     break;
 case 'group':
     // Пустое название группы
     $name = Filter::input('name');
     $deleteTrg = Filter::input('delete', 'post', 'bool');
     $editTrg = Filter::input('edit', 'post', 'bool');
     if (!$id and $name) {
         $new_group = new Group();