Top Ranked Open Water Events
if($none == TRUE){
echo "No open water events have enough votes yet.";
}
?>
 
$x = 0;
while($row = mysql_fetch_array($results)){
$x++;
if($x % 2 == 0){ $bg = '#dddddd'; }else{ $bg = '#eeeeee'; }
?>
"> echo $x.". ".$row[openwater_name]; ?> (Avg. rating  echo($row[score]); ?> based on  echo(int_to_words($row[respondents])); if($row[respondents] == 1) { echo(" respondent"); } else { echo(" respondents"); } ?>) 
    
  	  $foo = $row[openwater_id];
      
      $ratingData = Rating::OutputParentRating("$foo");
      
      if (Error::HasErrors())
      {
        echo Error::ShowErrorMessages();
        Error::ClearErrors();
      }
      else
      {
        echo $ratingData;
      }
 ?> 
 | 
if (fist_equipped($row[openwater_id]) == "fist_equipped") { echo(" ");}
if (fist_equipped($row[openwater_id]) == "super_fist") { echo(" ");}
?>
 | 
| Address:  echo ("$row[openwater_address]"); if($row[openwater_address_two]) { echo (" $row[openwater_address_two]"); } echo(" $row[openwater_city], $row[openwater_state] $row[openwater_zip]"); ?>  | 
| 
 
echo "Phone: $row[openwater_phone] Fax/Alt Phone: $row[openwater_fax]"; ?>  | 
Email:  echo "$row[openwater_email]"; ?> Website: echo "$row[openwater_website]"; ?> ">More information  | 
");}
if (fist_equipped($row[openwater_id]) == "super_fist") { echo("
");}
?>