while (list($name, $dirname, $count) = $db->fetchRow($mrs)) {
    if ($dirname == $current_dirname) {
        $adminmenu[] = array(
            'selected' => true ,
            'title' => $name . " ($count)" ,