// // ------------------------------------------------------------------------- // // Original Author: James Knickelbein // Author Website : http://www.journeymilwaukee.com // Licence Type : GPL // ------------------------------------------------------------------------- // include_once("header.php"); include_once(XOOPS_ROOT_PATH."/header.php"); $mytree = new XoopsTree($db->prefix("adresses_cat"), "cid", "pid"); //generates top 10 charts by rating and hits for each main category OpenTable(); echo ""._MI_MYADRESSES_NAME.""; if ($rate) { $sort = _RATING; $sortDB = "rating"; } else { $sort = _HITS; $sortDB = "hits"; } $arr = array(); $result = $db->query("SELECT cid, title FROM ".$db->prefix("adresses_cat")." WHERE pid=0"); while (list($cid, $ctitle) = $db->fetchRow($result)) { $boxtitle = ""; $boxtitle .= sprintf(_TOP10, $ctitle); $boxtitle .= " (".$sort.")"; $thing = "
| "._RANK." | "._TITLE." | "._CATEGORY." | "._HITS." | "._RATING." | "._VOTE." |
| $rank | "; $thing .= "$dtitle | "; $thing .= "$catpath | "; $thing .= "$hits | "; $thing .= "$rating | $votes |