Halli hallo,
hat jemand eine Idee wie man die Dropdown Liste, beim erstellen von Seiten/Boxen, nach Namen sortieren kann?
danke !!!
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||



function get_akl ($ak) {
$ar_l = array();
if ( is_writeable ( 'include/contents/selfbp/selfp' ) ) {
$ar_l['pneu.php'] = 'Neue Seite';
$o = opendir ( 'include/contents/selfbp/selfp' );
while ($v = readdir($o) ) {
if (substr($v,-4) != '.php') { continue; }
$ar_l['p'.$v] = $v;
}
closedir($o);
}
if ( is_writeable ( 'include/contents/selfbp/selfb' ) ) {
$ar_l['bneu.php'] = 'Neue Box';
$o = opendir ( 'include/contents/selfbp/selfb' );
while ($v = readdir($o) ) {
if (substr($v,-4) != '.php') { continue; }
$ar_l['b'.$v] = $v;
}
closedir($o);
}
asort( $ar_l );
$l = '';
foreach ($ar_l as $k => $v ) {
if ( $k == $ak ) { $sel = ' selected'; } else { $sel = ''; }
$l .= '<option value="'.$k.'"'.$sel.'>'.$v.'</option>';
}
return ($l);
}

| Geschlossen | ||
![]() |
Zurück zu HTML, PHP, SQL,... | |