protected function renderSingleNodeItem(&$nodeItem)
    {
        $url = $nodeItem["ATTRIBUTES"]["URL"];
        $caption = $this->translate($nodeItem["ATTRIBUTES"]["CAPTION"]);
        $target = $nodeItem["ATTRIBUTES"]["TARGET"];
        //$img = $nodeItem["ATTRIBUTES"]["IMAGE"];
        if ($nodeItem["NODE"]) {
            $image = "<img src='" . Openbizx::$app->getImageUrl() . "/plus.gif' class='collapsed' onclick='mouseClickHandler(this)'>";
        } else {
            $image = "<img src='" . Openbizx::$app->getImageUrl() . "/topic.gif'>";
        }

        if ($target) {
            if ($url) {
                $sHTML .= "<li class='tree'>$image <a href=\"" . $url . "\" target='$target'>" . $caption . "</a>";
            } else {
                $sHTML .= "<li class='tree'>$image $caption";
            }
        } elseif ($url) {
            $sHTML .= "<li class='tree'>$image <a href=\"" . $url . "\">" . $caption . "</a>";
        } else {
            $sHTML .= "<li class='tree'>$image $caption";
        }
        if ($nodeItem["NODE"])
        {
            $sHTML .= "\n<ul class='collapsed'>\n";
            $sHTML .= $this->renderNodeItems($nodeItem["NODE"]);
            $sHTML .= "</ul>";
        }
        $sHTML .= "</li>\n";
        return $sHTML;
    }
protected function renderSingleNodeItem(&$nodeItem)
    {
        $url = $nodeItem["ATTRIBUTES"]["URL"];
        $caption = $this->translate($nodeItem["ATTRIBUTES"]["CAPTION"]);
        $target = $nodeItem["ATTRIBUTES"]["TARGET"];
        //$img = $nodeItem["ATTRIBUTES"]["IMAGE"];
        if ($nodeItem["NODE"]) {
            $image = "<img src='" . Openbizx::$app->getImageUrl() . "/plus.gif' class='collapsed' onclick='mouseClickHandler(this)'>";
        } else {
            $image = "<img src='" . Openbizx::$app->getImageUrl() . "/topic.gif'>";
        }

        if ($target) {
            if ($url) {
                $sHTML .= "<li class='tree'>$image <a href=\"" . $url . "\" target='$target'>" . $caption . "</a>";
            } else {
                $sHTML .= "<li class='tree'>$image $caption";
            }
        } elseif ($url) {
            $sHTML .= "<li class='tree'>$image <a href=\"" . $url . "\">" . $caption . "</a>";
        } else {
            $sHTML .= "<li class='tree'>$image $caption";
        }
        if ($nodeItem["NODE"])
        {
            $sHTML .= "\n<ul class='collapsed'>\n";
            $sHTML .= $this->renderNodeItems($nodeItem["NODE"]);
            $sHTML .= "</ul>";
        }
        $sHTML .= "</li>\n";
        return $sHTML;
    }
protected function renderSingleNodeItem ( & $ nodeItem ) { $ url = $ nodeItem [ "ATTRIBUTES" ] [ "URL" ] ; $ caption = $ this -> translate ( $ nodeItem [ "ATTRIBUTES" ] [ "CAPTION" ] ) ; $ target = $ nodeItem [ "ATTRIBUTES" ] [ "TARGET" ] ; //$img = $nodeItem["ATTRIBUTES"]["IMAGE"]; if ( $ nodeItem [ "NODE" ] ) { $ image = "<img src='" . Openbizx :: $ app -> getImageUrl ( ) . "/plus.gif' class='collapsed' onclick='mouseClickHandler(this)'>" ; } else { $ image = "<img src='" . Openbizx :: $ app -> getImageUrl ( ) . "/topic.gif'>" ; } if ( $ target ) { if ( $ url ) { $ sHTML .= "<li class='tree'>$image <a href=\"" . $ url . "\" target='$target'>" . $ caption . "</a>" ; } else { $ sHTML .= "<li class='tree'>$image $caption" ; } } elseif ( $ url ) { $ sHTML .= "<li class='tree'>$image <a href=\"" . $ url . "\">" . $ caption . "</a>" ; } else { $ sHTML .= "<li class='tree'>$image $caption" ; } if ( $ nodeItem [ "NODE" ] ) { $ sHTML .= "\n<ul class='collapsed'>\n" ; $ sHTML .= $ this -> renderNodeItems ( $ nodeItem [ "NODE" ] ) ; $ sHTML .= "</ul>" ; } $ sHTML .= "</li>\n" ; return $ sHTML ; }
Render single node item

@param array $nodeItem
@return <type>
Render single node item