<{if $auto_mainmenu}> <{php}> global $xoopsDB; //製作主選單 $sql = "select name,dirname from ".$xoopsDB->prefix("modules")." where isactive='1' and hasmain='1' and weight!=0 order by weight"; $result = $xoopsDB->query($sql); $option=""; while(list($name,$dirname)=$xoopsDB->fetchRow($result)){ $option.= "\t\t\t
  • {$name}
  • \n"; } $itemurl=empty($itemurl)?"#":$itemurl; echo "
  • ".THEME_MODULE0."
  • "; <{/php}> <{/if}>