예제 #1
0
        <? foreach (Navigation::getItem('/login') as $key => $nav) : ?>
            <? if ($nav->isVisible()) : ?>
                <? list($name, $title) = explode(' - ', $nav->getTitle()) ?>
                <div class="login_link">
                    <? if (is_internal_url($url = $nav->getURL())) : ?>
                        <a href="<?php 
echo URLHelper::getLink($url);
?>
">
                    <? else : ?>
                        <a href="<?php 
echo htmlReady($url);
?>
" target="_blank">
                    <? endif ?>
                    <? SkipLinks::addLink($name, $url) ?>
                        <?php 
echo htmlReady($name);
?>
                            <p>
                                <?php 
echo htmlReady($title ? $title : $nav->getDescription());
?>
                            </p>
                        </a>
                </div>
            <? endif ?>
        <? endforeach ?>


    </nav>
예제 #2
0
 function print_level()
 {
     ob_start();
     SkipLinks::addIndex(_("Gefundene Bereiche"), 'sem_search_level', 110);
     echo "\n<table id=\"sem_search_level\" border=\"0\" align=\"center\" cellspacing=0 cellpadding=0 width = \"99%\">\n";
     if ($this->sem_browse_data['level'] == "f") {
         echo "\n<tr><td align=\"center\" class=\"table_row_odd\" height=\"40\" valign=\"middle\"><div style=\"margin-top:10px;margin-bottom:10px;\"><font size=\"-1\">";
         if ($this->show_result && count($this->sem_browse_data['search_result']) || $this->sem_browse_data['cmd'] == "xts") {
             printf(_("Suche im %sEinrichtungsverzeichnis%s"), "<a href=\"" . URLHelper::getLink('?level=ev&cmd=qs&sset=0') . "\">", "</a>");
             if ($this->show_class()) {
                 printf(_(" / %sVorlesungsverzeichnis%s"), "<a href=\"" . URLHelper::getLink('?level=vv&cmd=qs&sset=0') . "\">", "</a>");
             }
         } else {
             printf("<table align=\"center\" cellspacing=\"10\"><tr><td nowrap align=\"center\"><a href=\"%s\"><b>%s</b><br><br>%s</a></td>", URLHelper::getLink('?level=ev&cmd=qs&sset=0'), _("Suche in Einrichtungen"), Assets::img('institute-search.png', array('size' => '260@100', 'alt' => _("Suche im Einrichtungsverzeichnis"))));
             if ($this->show_class()) {
                 SkipLinks::addLink(_("Suche im Vorlesungsverzeichnis"), URLHelper::getLink('dispatch.php/search/courses', array('level' => 'vv', 'cmd' => 'qs', 'sset' => '0')));
                 printf("<td nowrap align=\"center\"><a href=\"%s\"><b>%s</b><br><br>%s</a></td>", URLHelper::getLink('?level=vv&cmd=qs&sset=0'), _("Suche im Vorlesungsverzeichnis"), Assets::img('directory-search.png', array('size' => '260@100', 'alt' => _("Suche im Vorlesungsverzeichnis"))));
             }
             SkipLinks::addLink(_("Suche im Einrichtungsverzeichnis"), URLHelper::getLink('dispatch.php/search/courses', array('level' => 'ev', 'cmd' => 'qs', 'sset' => '0')));
             printf("</tr></table>");
         }
         echo "</font></div>";
     }
     if ($this->sem_browse_data['level'] == "vv") {
         echo "\n<tr><td align=\"center\">";
         $this->sem_tree->show_entries = $this->sem_browse_data['show_entries'];
         $this->sem_tree->showSemTree();
     }
     if ($this->sem_browse_data['level'] == "ev") {
         echo "\n<tr><td align=\"center\">";
         $this->range_tree->show_entries = $this->sem_browse_data['show_entries'];
         $this->range_tree->showSemRangeTree();
     }
     echo "</td></tr>\n</table>";
     ob_end_flush();
 }