public function actionDelete()
 {
     $practic = CTaxonomyManager::getPracticePlace(CRequest::getInt("id"));
     $practic->remove();
     $this->redirect("index.php?action=index");
 }
 public function actionChangePractPlaceProcess()
 {
     $form = new CDiplomChangePractPlaceForm();
     $form->setAttributes(CRequest::getArray(CDiplomChangePractPlaceForm::getClassName()));
     if ($form->validate()) {
         $pract = CTaxonomyManager::getPracticePlace($form->pract_place_id);
         foreach ($form->diploms as $id) {
             $diplom = CStaffManager::getDiplom($id);
             if (!is_null($diplom)) {
                 $diplom->pract_place_id = $pract->getId();
                 $diplom->save();
             }
         }
         $this->redirect("?action=index");
         return false;
     }
     $this->setData("form", $form);
     $this->addActionsMenuItem(array(array("title" => "Назад", "link" => "?action=index", "icon" => "actions/edit-undo.png")));
     $this->renderView("_diploms/changeDateAct.tpl");
 }