public function actionGenerate()
 {
     $generate = new CExamGenerate();
     $generate->number = 20;
     $generate->protocol_id = CProtocolManager::getAllDepProtocols()->getLastItem()->getId();
     $this->setData("cources", array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5));
     $this->addActionsMenuItem(array(array("title" => "Назад", "link" => "?action=index", "icon" => "actions/edit-undo.png")));
     $this->setData("generate", $generate);
     $this->addJSInclude("_modules/_examination/script.js");
     $this->renderView("_examination/generate.tpl");
 }