function exhibition_list($id)
 {
     $exhibition_sql = "SELECT rooms.*, indices.Raum_id,indices.Exhibition_id,indices.index\r\n\t\t\tFROM `RheinaufCMS>Exhibition>Rooms` `rooms`\r\n\t\t\tLEFT JOIN `RheinaufCMS>Exhibition>ExhibitionIndices` `indices`\r\n\t\t\t     ON rooms.RoomId = indices.Raum_id\r\n\t\t\t     WHERE indices.Exhibition_id = '" . $id . "'\r\n\t\t\t     ORDER BY indices.index\r\n\t\t\t     ";
     $this->rooms_list = $this->connection->db_assoc($exhibition_sql);
     $list1 = new HtmlList('ul', array('id' => 'drop'));
     $list2 = new HtmlList();
     if ($this->room_name) {
         $name = $this->room_name;
     }
     foreach ($this->rooms_list as $room) {
         $list2->add_li(Html::a(SELF . '?room=' . $room['RoomId'], $room['Roomname']));
     }
     $list1->add_li($name . $list2->flush_list());
     return $list1->flush_list();
 }
 function ls($path = '')
 {
     $return = '';
     $list_dirs = RheinaufFile::dir_array($this->start_folder . $path, true);
     $ul = new HtmlList();
     natcasesort($list_dirs);
     foreach ($list_dirs as $dir) {
         $url = $path . '/' . $dir;
         $ul->add_li($this->dir_link($url, $dir) . $this->ls($url));
     }
     if (!$this->show_only_folders) {
         $list_files = RheinaufFile::dir_array($this->start_folder . $path, false);
         natcasesort($list_files);
         foreach ($list_files as $file) {
             $url = $path . '/' . $file;
             $ul->add_li($this->file_link($url, $file));
         }
     }
     return $ul->flush_list();
 }
 function view_menu()
 {
     $list = new HtmlList();
     $list->add_li(Html::a('javascript:void(0);', '• Panels', array('onclick' => "xinha_editors.editor.plugins.CustomUtils.instance.togglePanels(this)")));
     $list->add_li(Html::a('javascript:;', '  Elementumrahmung', array('onclick' => "xinha_editors.editor.plugins.CustomUtils.instance.toggleOutlineElements(this)")));
     return $list->flush_list();
 }
    function make_tree($id)
    {
        $script = '
		function fill(string)
		{
			document.getElementById("' . $id . '").value=string;
		}';
        $script = Html::script($script);
        $ul_rubriken = new HtmlList();
        for ($i = 0; $i < count($this->navi); $i++) {
            $rubrik = $this->I18n_get_real($this->navi[$i]['Rubrik']);
            if ($rubrik != 'Admin') {
                $rubrik_link = Html::a("javascript:;", $rubrik, array('onclick' => "fill('/{$rubrik}')"));
                if (count($this->navi[$i]['Subnavi']) > 1) {
                    $ul_subnavi = new HtmlList();
                    for ($j = 0; $j < count($this->navi[$i]['Subnavi']); $j++) {
                        if ($this->navi[$i]['Subnavi'][$j]['Seite'] != 'index') {
                            $seite = $this->I18n_get_real($this->navi[$i]['Subnavi'][$j]['Seite']);
                            $ul_subnavi->add_li(Html::a("javascript:;", $seite, array('onclick' => "fill('/{$rubrik}/{$seite}')")));
                        }
                    }
                    $sub = $ul_subnavi->flush_list();
                } else {
                    $sub = '';
                }
                $ul_rubriken->add_li($rubrik_link . $sub);
            }
        }
        return $script . $ul_rubriken->flush_list();
    }
 function view_menu()
 {
     $list = new HtmlList();
     $list->add_li(Html::a('javascript:;', 'Panels', array('onclick' => "xinha_editors.editor.plugins.SwitchPanels.instance.buttonPress()")));
     $list->add_li(Html::a('javascript:;', 'Elementumrahmung', array('onclick' => "xinha_editors.editor.plugins.OutlineElements.instance.toggleAll()")));
     //$list->add_li(Html::a('javascript:;','Absätze zusammenfassen',array('onclick'=>"xinha_editors.editor.plugins.OutlineElements.instance.uniteParagraphs()")));
     return $list->flush_list();
 }
 function content_static($title, $page_restricted = false)
 {
     $page = new Seite($this->path_information);
     $vars['title'] = $title;
     $vars['navi'] = $this->navi_menu();
     if ($this->uri_components[2] == 'Arbeitsversion') {
         $working_version = $this->check_right('SeiteEdit') ? '/Arbeitsversion' : '';
     }
     $content_file = DOCUMENT_ROOT . INSTALL_PATH . '/Content/' . $this->path_encode($this->rubrik) . '/' . $this->path_encode($this->seite) . $working_version . '/content.html';
     if (isset($_GET['httperror']) || !is_file($content_file)) {
         $search1 = General::error_regex($this->uri_components[0]);
         $this->uri_components[1] != 'index' ? $search2 = General::error_regex($this->uri_components[1]) : '';
         $search = "SELECT * FROM `{$this->navi_table}` WHERE `Rubrik` REGEXP '{$search1}'  OR `Seite` REGEXP '{$search1}'";
         if (isset($search2)) {
             $search .= " OR `Rubrik` REGEXP '{$search2}' OR `Seite` REGEXP '{$search2}'";
         }
         $result = $this->connection->db_assoc($search);
         $list = new HtmlList('ul');
         foreach ($result as $ergebnis) {
             if ($ergebnis['Seite'] != 'index') {
                 $list->add_li(Html::a($ergebnis['Rubrik'] . '/' . $ergebnis['Seite'], $ergebnis['Rubrik'] . '/' . $ergebnis['Seite']));
             }
         }
         $vars['errorsearch'] = $list->flush_list();
         $template = new Template(DOCUMENT_ROOT . INSTALL_PATH . '/Templates/HTTPErrors.template.html');
         $content = $template->parse_template($_GET['httperror'] ? $_GET['httperror'] : '404', $vars);
     } else {
         $template = new Template($content_file);
         $content = $template->parse_template('', $vars);
         $vars['scripts'] .= $template->scripts;
         $vars['other_css'] .= $template->other_css;
         if ($template->noframe || isset($_GET['noframe'])) {
             return $content;
         }
     }
     $header = $page->header($vars);
     $footer = $page->footer($vars);
     return $header . $content . $footer;
 }