function getItemHead($item_id){
     $head = "";
     if (($this->mode == "MoveItem" || $this->mode == "CopyItem") && ($this->isItemAdmin($item_id) || $this->isParentAdmin($item_id))
     && ($this->move_item_id != $item_id) && ($this->tree->tree_data[$this->move_item_id]['parent_id'] != $item_id)
     && !$this->tree->isChildOf($this->move_item_id,$item_id)){
         $head .= "<a href=\"" . URLHelper::getLink($this->getSelf("cmd=Do" . $this->mode . "&item_id=$item_id")) . "\">"
         . Icon::create('arr_2right', 'sort', ['title' => _("An dieser Stelle einfügen")])->asImg(16, ["alt" => _("An dieser Stelle einfügen")])."</a>&nbsp;";
     }
     $head .= parent::getItemHead($item_id);
     if ($item_id != "root"){
         $head .= " (" . $this->tree->getNumEntries($item_id,true) . ") " ;
     }
     if ($item_id != $this->start_item_id && $this->isParentAdmin($item_id) && $item_id != $this->edit_item_id){
         $head .= "</td><td nowrap align=\"right\" valign=\"bottom\" class=\"printhead\">";
         if (!$this->tree->isFirstKid($item_id)){
             $head .= "<a href=\"". URLHelper::getLink($this->getSelf("cmd=OrderItem&direction=up&item_id=$item_id")) .
             "\">" .  Icon::create('arr_2up', 'sort')->asImg(['class' => 'text-top', 'title' => _("Element nach oben")]) .
             "</a>";
         }
         if (!$this->tree->isLastKid($item_id)){
             $head .= "<a href=\"". URLHelper::getLink($this->getSelf("cmd=OrderItem&direction=down&item_id=$item_id")) .
             "\">" . Icon::create('arr_2down', 'sort')->asImg(['class' => 'text-top', 'title' => _("Element nach unten")]) .
             "</a>";
         }
         $head .= "&nbsp;";
     }
     return $head;
 }
 function getItemHead($item_id)
 {
     $head = "";
     $head .= parent::getItemHead($item_id);
     if ($this->tree->tree_data[$item_id]['parent_id'] == $this->start_item_id) {
         $anzahl = " (" . $this->tree->getNumKids($item_id) . ")";
         $head .= $this->open_items[$item_id] ? "<b>" . $anzahl . "</b>" : $anzahl;
     }
     if ($item_id != $this->start_item_id && $item_id != $this->edit_item_id) {
         $head .= "</td><td align=\"right\" valign=\"bottom\" nowrap class=\"printhead\">";
         if (!$this->tree->isFirstKid($item_id)) {
             $head .= " <a href=\"" . URLHelper::getLink($this->getSelf("cmd=OrderItem&direction=up&item_id={$item_id}")) . "\">" . Icon::create('arr_2up', 'sort', ['title' => _("Element nach oben verschieben")])->asImg(16, ["alt" => _("Element nach oben verschieben")]) . "</a>";
         }
         if (!$this->tree->isLastKid($item_id)) {
             $head .= " <a href=\"" . URLHelper::getLink($this->getSelf("cmd=OrderItem&direction=down&item_id={$item_id}")) . "\">" . Icon::create('arr_2down', 'sort', ['title' => _("Element nach unten verschieben")])->asImg(16, ["alt" => _("Element nach unten verschieben")]) . "</a>";
         }
         if ($this->tree->isElement($item_id)) {
             $head .= $this->clip_board->isInClipboard($this->tree->tree_data[$item_id]["catalog_id"]) ? Icon::create('exclaim', 'attention', ['title' => _('Dieser Eintrag ist bereits in Ihrer Merkliste')])->asImg() : "<a href=\"" . URLHelper::getLink($this->getSelf("cmd=InClipboard&item_id={$item_id}")) . "\">" . Icon::create('exclaim', 'clickable', ['title' => _('Eintrag in Merkliste aufnehmen')])->asImg() . "</a>";
         } else {
             $head .= " <a href=\"" . URLHelper::getLink($this->getSelf("cmd=InClipboard&item_id={$item_id}")) . "\">";
             $head .= Icon::create('exclaim', 'clickable', ['title' => _('Komplette Liste in Merkliste aufnehmen')])->asImg();
             $head .= "</a>";
         }
         $head .= "";
     }
     return $head;
 }
示例#3
0
 function getItemHead($item_id)
 {
     $head = "";
     $head .= parent::getItemHead($item_id);
     if ($item_id != "root") {
         $head .= " (" . $this->tree->getNumEntries($item_id, true) . ") ";
     }
     return $head;
 }