function _admin_titleListItem($item, $ipad = false) { global $_lang; $type_array = _admin_getTypeArray(); if ($ipad == true) { $ipad = " class='intersecpad'"; } else { $ipad = ""; } return "<tr><td" . $ipad . "><input class='inputmedium' type='text' maxlength='96' name='" . $item['id'] . "' value='" . $item['title'] . "' /></td><td class='lpad'>" . $_lang['admin.content.' . $type_array[$item['type']]] . "</td></tr>\n"; }
ob_start(); @(include _indexroot . "admin/modules/wysiwyg.php"); $content = ob_get_contents(); ob_end_clean(); return $content; } } /** * [ADMIN] Ziskat pole s druhy stranek * @return array */ function _admin_getTypeArray() { return array(1 => "section", 2 => "category", 3 => "book", 4 => "separator", 5 => "gallery", 6 => "link", 7 => "intersection", 8 => "forum", 9 => "pluginpage"); } $type_array = _admin_getTypeArray(); /** * [ADMIN] Ziskat pole s daty plugin stranek * @return array */ function _admin_getPluginPageInfos() { static $cache; if (null === $cache) { $cache = array(); _extend('call', 'ppage.reg', array('infos' => &$cache)); } return $cache; } /** * [ADMIN] Sestavit kod poznamky
function _admin_rootItemOutput($item, $itr) { global $_lang, $counter, $highlight, $ppages; $type_array = _admin_getTypeArray(); // pristup k polozce if (!constant('_loginright_admin' . $type_array[$item['type']])) { $denied = true; } else { $denied = false; } // trida pro neviditelnost anebo neverejnost $sclass = ""; if ($item['visible'] == 0 xor $item['public'] == 0) { if ($item['visible'] == 0) { $sclass = " class='invisible'"; } if ($item['public'] == 0) { $sclass = " class='notpublic'"; } } else { if ($item['visible'] == 0 and $item['public'] == 0) { $sclass = " class='invisible-notpublic'"; } else { $sclass = " class='normal'"; } } // pozadi oddelovace if ($item['type'] == 4) { $sepbg_start = "<div class='sep'" . ($counter == 0 ? " style='padding-top:0;'" : '') . "><div class='sepbg'>"; $sepbg_end = "</div></div>"; $highlight = false; } else { $sepbg_start = ""; $sepbg_end = ""; $sepbg_start_sub = ""; $sepbg_end_sub = ""; } // kod radku $dclass = ""; if ($itr == true) { if ($highlight) { $dclass = " class='intersecpad-hl'"; } else { $dclass = " class='intersecpad'"; } } else { if ($highlight) { $dclass = " class='hl'"; } } $extra_actions = ''; if (!$denied) { if ($item['type'] == 5) { $extra_actions = " <a href='index.php?p=content-manageimgs&g=" . $item['id'] . "'><img src='images/icons/list.png' alt='images' class='contenttable-icon' />" . $_lang['admin.content.form.showpics'] . "</a>"; } _extend('call', 'admin.root.actions', array('item' => $item, 'extra_actions' => &$extra_actions)); } $extendOutput = _extend('buffer', 'admin.root.item', array('item' => $item, 'denied' => $denied, 'extra_actions' => $extra_actions, 'class' => $dclass)); if ('' !== $extendOutput) { if (false === $extendOutput) { return ''; } return $extendOutput; } return "\n <tr" . $dclass . ">\n <td class='name'>" . $sepbg_start . "<input type='text' name='" . $item['id'] . "' value='" . $item['ord'] . "' />" . ($item['id'] == _index_page_id ? "<img src='images/icons/tag.png' alt='index' class='contenttable-icon' />" : '') . "<a" . ($item['type'] != 4 ? " href='" . _indexroot . _linkRoot($item['id'], $item['title_seo']) . "' target='_blank'" . $sclass : '') . ">" . $item['title'] . "</a>" . $sepbg_end . "</td>\n <td class='type'" . ($denied ? " colspan='2'" : '') . ">" . $sepbg_start . "<div class='tpad'>" . ($item['type'] != 9 ? $_lang['admin.content.' . $type_array[$item['type']]] : (isset($ppages[$item['type_idt']]) ? $ppages[$item['type_idt']] : _htmlStr($item['type_idt']))) . " <small>(" . $item['id'] . ")</small></div>" . $sepbg_end . "</td>\n " . (!$denied ? "<td class='actions'>" . $sepbg_start . "<div class='tpad'><a href='index.php?p=content-edit" . $type_array[$item['type']] . "&id=" . $item['id'] . "'><img src='images/icons/edit.png' alt='edit' class='contenttable-icon' />" . $_lang['global.edit'] . "</a> <a href='index.php?p=content-delete&id=" . $item['id'] . "'><img src='images/icons/delete.png' alt='del' class='contenttable-icon' />" . $_lang['global.delete'] . "</a>" . $extra_actions . "</div>" . $sepbg_end . "</td>" : '') . "\n </tr>\n\n "; }