if ($aclf->checkAccessToFunction("NEW_OBJECT")) { $form->buttonbar->add("action", $lang->get("new_content", "New Content"), "submit", "document.form1.processing.value = '';"); $form->buttonbar->add("separator", "", "", "", ""); } include $c["path"] . "modules/common/buttonbar_folder.inc.php"; // Build breadcrumb if ($pnode == "") $pnode = "0"; $str = pathToRootFolder($pnode); $form->add(new Spacer(3)); $form->add(new AlignedLabel('lnl', getBoxedText($str, 'headergrey', '100%'), 'left', '', 3)); $form->add(new Spacer(3)); // add contents if ($filter != "0") { pushVar("filter", $filter); } else { $filter = getVar("filter"); } if ($linkset != "0") { pushVar("linkset", $linkset); } else { $linkset = getVar("linkset"); if ($linkset == "") {
if ($pnode == "") $pnode = "0"; $basehref = '<a href="' . $c["docroot"] . 'modules/cluster/clusterbrowser.php?sid=' . $sid . '&pnode='; $str_base = $basehref . '0">Content ></a> '; $str = ""; $tmp = $pnode; while ($tmp != "0") { $str = $basehref . "$tmp\">" . getDBCell("categories", "CATEGORY_NAME", "CATEGORY_ID = $tmp"). " ></a> " . $str; $tmp = getDBCell("categories", "PARENT_CATEGORY_ID", "CATEGORY_ID = $tmp"); } $str = $str_base . $str; $form->add(new Spacer(2)); $form->add(new Label("lbl", getBoxedText($str, 'headergrey', '100%'), "", 2)); $form->add(new Spacer(2)); // add contents if ($filter != "0") { pushVar("filter", $filter); } else { $filter = getVar("filter"); } if ($linkset != "0") { pushVar("linkset", $linkset); } else { $linkset = getVar("linkset"); if ($linkset == "") { $linkset = "LIB"; }
/** * Writes the HTML-Code for any Top-Text you added with the addToTopText-function. */ function draw_toptext() { global $formErrors; if ($formErrors != "") $this->toptext = $formErrors; if ($this->toptext != "") { echo '<tr><td colspan="2" align="center">'; echo getBoxedText($this->toptext, $this->topstyle); br(); echo "</td></tr>"; } }