--ACCESS=access administration pages
SELECT name, weight FROM {system} WHERE status=1 AND 'theme'=type ORDER BY name