function admin_allg_smodul($ak) { $ordner = array(); $handle = opendir('include/contents'); while ($ver = readdir($handle)) { if ($ver == '.' or $ver == '..' or is_dir('include/contents/' . $ver)) { continue; } $lver = explode('.', $ver); $ordner[] = $lver[0]; } $smodul = ''; $ordner = get_links_array(); foreach ($ordner as $a => $x) { if ($a == $ak) { $sel = ' selected'; } else { $sel = ''; } $smodul .= '<option' . $sel . ' value="' . $a . '">' . ucfirst($a) . '</option>'; } return $smodul; }
function show_links($link_cat, $format = '', $before = '', $after = '') { $linklist = get_links_array($link_cat); if ($format == '') { $format = "<li>%s</li>"; } if ($format == 'nolist') { $format = '%s'; } foreach ($linklist as $slug => $title) { echo sprintf($format, $before . makeLink(slugUrl($slug), $title) . $after); } }
function show_links($link_cat, $format = '', $before = '', $after = '') { $linklist = get_links_array($link_cat); runTweak('show-links', array($link_cat, &$linklist)); if ($format == '') { $format = "<li>%s</li>"; } if ($format == 'nolist') { $format = '%s'; } $links_html = ''; foreach ((array) $linklist as $slug => $title) { $links_html .= sprintf($format, makeLink(slugUrl($slug), $title)); } echo $links_html = $before . $links_html . $after; }
$pos = $menu->get(3); $row = db_fetch_assoc(db_query("SELECT * FROM prefix_menu WHERE wo = " . $wo . " AND pos = " . $pos)); $ar = array('allboxes' => $row['path'], 'getfuerB' => $row['recht'], 'bname' => $row['name'], 'link2' => $row['path'], 'posi' => $row['pos'], 'cwmenu' => $row['wo'], 'cwebene' => $row['ebene'], 'awo' => $row['wo'], 'was' => $row['was'], 'apos' => $row['pos'], 'alllinkss' => $row['path'], 'menutyp' => 1); if ($ar['was'] == 3) { $ar['menutyp'] = 2; $ar['was'] = 2; } elseif ($ar['was'] == 4) { $ar['menutyp'] = 3; $ar['was'] = 2; } } else { $ar = array('allboxes' => '', 'was' => '', 'getfuerB' => '', 'cwebene' => '', 'cwmenu' => $wo, 'allmenus' => '', 'bname' => '', 'posi' => '', 'apos' => '', 'awo' => '', 'link2' => '', 'alllinkss' => '', 'menutyp' => ''); } $tpl = new tpl('menu', 1); $boxenArNav = get_boxes_array(); $menuArNav = get_links_array(); $ar_cwmenu = array(); for ($i = 1; $i <= 5; $i++) { $ar_cwmenu[$i] = 'Menü 0' . $i; } $ar_cwebene = array(); for ($i = 0; $i <= 4; $i++) { $ar_cwebene[$i] = 'Ebene 0' . ($i + 1); } $ar_cwwas = array(1 => 'Box', 2 => 'Menü', 7 => 'Menüpunkt wahl', 8 => 'Menüpunkt extern', 9 => 'Menüpunkt intern'); $ar_menutyp = array(2 => 'Vertikal', 1 => 'Horizontal'); $ar['allboxes'] = arliste($ar['allboxes'], $boxenArNav, $tpl, 'allboxes'); $ar['alllinkss'] = arliste($ar['alllinkss'], $menuArNav, $tpl, 'alllinkss'); $ar['getfuerB'] = dbliste($ar['getfuerB'], $tpl, 'getfuerB', "SELECT id,name FROM prefix_grundrechte ORDER BY id DESC"); $ar['cwmenu'] = arliste($ar['cwmenu'], $ar_cwmenu, $tpl, 'cwmenu'); $ar['cwebene'] = arliste($ar['cwebene'], $ar_cwebene, $tpl, 'cwebene');