include_once("header.php"); if (isset($_REQUEST["dkp_pool"])){ $dkp_pool = $_REQUEST["dkp_pool"]; } else { $dkp_pool = 0; } if (isset($_REQUEST["dkp_class"])){ $dkp_class = $_REQUEST["dkp_class"]; if ($dkp_class != "ALL"){ $filter1 = " AND member_class = '".$_REQUEST["dkp_class"]."'"; } else { $filter1 = ""; } } else { $dkp_class = "ALL"; $filter1 = ""; } $filter2 = "ORDER BY member_name"; if (isset($_REQUEST["sort_by"])){ $sort_by = $_REQUEST["sort_by"]; if ($sort_by == "member"){$filter2="ORDER BY member_name";} if ($sort_by == "memberdesc"){$filter2="ORDER BY member_name DESC";} if ($sort_by == "class"){$filter2="ORDER BY member_class";} if ($sort_by == "classdesc"){$filter2="ORDER BY member_class DESC";} if ($sort_by == "earned"){$filter2="ORDER BY earned";} if ($sort_by == "earneddesc"){$filter2="ORDER BY earned DESC";} if ($sort_by == "spent"){$filter2="ORDER BY spent";} if ($sort_by == "spentdesc"){$filter2="ORDER BY spent DESC";} if ($sort_by == "adj"){$filter2="ORDER BY adjustment";} if ($sort_by == "adjdesc"){$filter2="ORDER BY adjustment DESC";} if ($sort_by == "balance"){$filter2="ORDER BY balance";} if ($sort_by == "balancedesc"){$filter2="ORDER BY balance DESC";} if ($sort_by == "raid"){$filter2="ORDER BY last_raid";} if ($sort_by == "raiddesc"){$filter2="ORDER BY last_raid DESC";} } $query = "SELECT * FROM tbl_pool WHERE id = $dkp_pool"; $result = MYSQL_QUERY($query); if($result) {$number = MYSQL_NUMROWS($result);} else {$number = 0;} if ($number!=0){ $pool_name = mysql_result($result,0,"pool_name")." DKP Standings for"; } else { $pool_name = "Summary for"; } $query = "SELECT * FROM tbl_history WHERE cache_updated = 0"; $result = MYSQL_QUERY($query); if($result) {$number = MYSQL_NUMROWS($result);} else {$number = 0;} if ($number!=0){ $cache_status = "Cache Status: OUT OF DATE"; } else { $cache_status = "Cache Status: OK"; } ?>
include_once("footer.php"); ?>