{php}> global $xoopsDB,$xoopsModule; $sql="select dirname,name from ".$xoopsDB->prefix("modules")." where isactive='1' and hasmain='1' and weight > 0 order by weight"; $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); while(list($dirname,$name)=$xoopsDB->fetchRow($result)){ echo "\t\t\t