| @@ 247-263 (lines=17) @@ | ||
| 244 | * @param int $id of item |
|
| 245 | * @return void |
|
| 246 | */ |
|
| 247 | public function renderAnnotation($id) |
|
| 248 | { |
|
| 249 | $template = $this->getTemplate(); |
|
| 250 | ||
| 251 | $template->page_title = 'Registrace programů pro lektory'; |
|
| 252 | $template->page = $this->getRequest()->getQuery('page'); |
|
| 253 | $template->error_name = ""; |
|
| 254 | $template->error_description = ""; |
|
| 255 | $template->error_tutor = ""; |
|
| 256 | $template->error_email = ""; |
|
| 257 | $template->error_material = ""; |
|
| 258 | ||
| 259 | $block = $this->getModel()->findBy('guid', $id); |
|
| 260 | $this->blockId = $block->id; |
|
| 261 | $template->block = $block; |
|
| 262 | $template->id = $id; |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * @return void |
|
| @@ 277-293 (lines=17) @@ | ||
| 274 | * @param integer $id |
|
| 275 | * @return void |
|
| 276 | */ |
|
| 277 | public function renderAnnotation($id) |
|
| 278 | { |
|
| 279 | $template = $this->getTemplate(); |
|
| 280 | ||
| 281 | $template->page_title = 'Registrace programů pro lektory'; |
|
| 282 | $template->page = $this->getRequest()->getQuery('page'); |
|
| 283 | $template->error_name = ""; |
|
| 284 | $template->error_description = ""; |
|
| 285 | $template->error_tutor = ""; |
|
| 286 | $template->error_email = ""; |
|
| 287 | $template->error_material = ""; |
|
| 288 | ||
| 289 | $program = $this->getModel()->findBy('guid', $id); |
|
| 290 | $this->programId = $program->id; |
|
| 291 | $template->program = $program; |
|
| 292 | $template->id = $id; |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * @return Emailer |
|