/**
  * формирует, переводит и выводит на экран web-страницу контроллера
  *
  * @return ничего не возвращает
  */
 public function _display($data = array())
 {
     // Execute all display plugins for search controller
     Plugin_Manager::getInstance()->execute('parent_controller', 'display', $this, $data);
     if (!$this->noframe) {
         $this->content["MENU"] = $this->menu->generate($this->role, $this->menu_item);
     }
     // set inline JS code:
     if (count($this->_javascriptInline) > 0) {
         $jsInlineCode = implode(PHP_EOL, $this->_javascriptInline);
         $this->content['JAVASCRIPT'] .= '<script type="text/javascript">' . PHP_EOL . $jsInlineCode . PHP_EOL . '</script>';
     }
     if ($this->date_picker) {
         $this->load->model('locale_settings', '', TRUE);
         $this->content['JAVASCRIPT'] .= $this->locale_settings->date_picker();
         datepicker_vars($this->content);
     }
     $this->_save_session();
     $this->_save_temporary();
     $this->benchmark->mark('display_start');
     if ($this->role == 'admin') {
         $this->_get_community();
     }
     if ($this->role == 'admin') {
         $this->_get_bytecity_links();
     }
     if ($this->user_id && $this->role != 'guest') {
         $this->content["UPANEL"] = $this->_get_upanel();
         $this->content["USERPANEL"] = array(array());
         $this->content["USERPANEL2"] = array(array());
     } else {
         $this->content["USERPANEL"] = array();
         $this->content["USERPANEL2"] = array();
     }
     $this->benchmark->mark('display_end');
     $this->content["SITEURL"] = $this->site_url;
     $this->content["INDEXPAGE"] = $this->index_page;
     // is_admin
     $this->content["IS_ADMIN"] = 'admin' == $this->role ? array(array()) : array();
     /*Add tag <%CONTROLLER%>*/
     global $RTR;
     $this->content["CONTROLLER"] = $RTR->fetch_class();
     $this->content["ROLE"] = $this->role;
     $this->content["LOCALE"] = $this->locale;
     $this->content["FOOTER"] = $this->load->view('common/parent/footer.html', '', true);
     $this->content["HEADER"] = $this->load->view('common/parent/header.html', '', true);
     $this->content['BODY'] = $this->_translate($this->content['BODY']);
     $page = $this->parser->parse($this->template, $this->content, TRUE);
     $page = $this->_translate($page);
     $this->load->helper("button");
     $page = make_buttons($page);
     header('Content-Type: text/html; charset=utf-8');
     header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
     // always modified
     header("Cache-Control: no-cache, must-revalidate, no-store, max-age=0");
     // HTTP/1.1
     $this->output->set_output($page);
 }