示例#1
0
 function header()
 {
     echo "<b class='big'>";
     if (!thesaurus::is_thesaurus(session::get("link"))) {
         echo form::link("", "Hierarchie", "index.php?action=show&amp;id=0&amp;linkaction=linkdo");
     } else {
         echo "Hierarchie";
     }
     // title line
     echo "</b>";
     // insert thesaurus
     if (right::link()) {
         // new only if write permission
         echo form::link("add", "add", "index.php?action=add&amp;parent=0", "add-thesaurus");
     }
     // close complete tree
     action::closeall();
     // Show Link activity
     if ($linkID = session::get("link")) {
         echo "<br><i><span class='red'>";
         $linktype = thesaurus::get_type_short(session::get("linktype"));
         if (session::get('linkaction') == "change") {
             $linkArray = thesaurus::get_descriptor($linkID);
             $parentArray = thesaurus::get_descriptor(session::get("linkparent"));
             echo "<b>" . $linktype . " '" . $linkArray[name] . "'</b> von <b>'" . $parentArray[name] . "'</b> ändern";
         } else {
             $linkArray = thesaurus::get_descriptor($linkID);
             echo "Neuen <b>" . $linktype . "</b> f&uuml;r <b>'{$linkArray['name']}'</b> verlinken";
         }
         echo "</span><span class='normal'><br>Aktion beenden ";
         echo form::link("delete", "end", "index.php?linkaction=linkend", "end-linking");
         echo "</i>";
     }
     echo "<hr align='left' width='400px'>";
 }