include("include_breadcrumb.php"); ?>
include("../runshops/include_region_list.php"); ?>
include ('comments_show.php'); ?>
$selected_item = strtolower($row[fitter_state]); ?>
include("include_sidebar.php"); ?>
Fitters
if ($user) { ?> } ?> Backinclude("../runshops/include_region_list.php"); ?>
echo stripslashes(stripslashes($row[fitter_name])) ; echo " "; ?>
if(is_logged_in($user)) { ?>Comment }?>
echo stripslashes(htmlspecialchars($row[fitter_address])); ?>
if ( $row[fitter_address_two] ) { echo stripslashes(htmlspecialchars($row[fitter_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[fitter_city])); ?>, echo stripslashes(htmlspecialchars($row[fitter_state])); ?> echo stripslashes(htmlspecialchars($row[fitter_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[fitter_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[fitter_fax])); ?>
if ( $row[fitter_address_two] ) { echo stripslashes(htmlspecialchars($row[fitter_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[fitter_city])); ?>, echo stripslashes(htmlspecialchars($row[fitter_state])); ?> echo stripslashes(htmlspecialchars($row[fitter_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[fitter_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[fitter_fax])); ?>
Email: echo stripslashes(htmlspecialchars($row[fitter_email])); ?>
Website: echo stripslashes(htmlspecialchars($row[fitter_website])); ?>
Portfolio: echo stripslashes(htmlspecialchars($row[fitter_portfolio])); ?>
if($_GET[review_add] == 'ok') { ?>
Website: echo stripslashes(htmlspecialchars($row[fitter_website])); ?>
Portfolio: echo stripslashes(htmlspecialchars($row[fitter_portfolio])); ?>
Commenter: your comments have been submitted and will be validated within 24 hours.
} ?> if($_GET[wiki_change] == 'success') { ?>Editor: your changes have been submitted and will be validated within 24 hours.
} ?> $wikiFetchSQL = "SELECT edit_id FROM ".$prefix."FittersEdits WHERE fitter_id_fk = '".intval(mysql_escape_string($_GET[fitter_id]))."'"; $boolEdits = mysql_num_rows(mysql_query($wikiFetchSQL)); if($boolEdits !== 0 && $_GET[wiki_change] != 'success') { ?>Group Edits: there are group edits waiting to be validated.
} ?>
include("include_buttons.php"); ?>
include('include_share.php'); ?>
Fit Information
Default Tri-Fit Methodology:
$sql = ("SELECT * FROM ".$prefix."FittersMethods WHERE fitter_method_id = ".$row[fitter_method]." LIMIT 1");
//echo $sql;
$fetch = mysql_query($sql) or die(mysql_error());
if (mysql_num_rows($fetch) > 0) {
while ($method_list = mysql_fetch_array($fetch)) {
echo ("$method_list[fitter_method_name]");
}
} else {
echo ("Unanswered");
}
?>
Certifications: $row[fitter_certifications] = ltrim(rtrim($row[fitter_certifications], ", "), ", "); if ($row[fitter_certifications]) { $sql = ("SELECT * FROM gforum_FittersCertifications WHERE fitter_certification_id IN ($row[fitter_certifications]) ORDER BY fitter_certification_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $certification_list = ""; while ($list = mysql_fetch_array($fetch)) { $certification_list = $certification_list."$list[fitter_certification_name], "; } $certification_list = rtrim($certification_list, ', '); } if ($certification_list) {echo $certification_list;} else {echo "None";} ?>
Fit Bikes: $row[fitter_fitbikes] = ltrim(rtrim($row[fitter_fitbikes], ", "), ", "); if ($row[fitter_fitbikes]) { $sql = ("SELECT * FROM gforum_FittersFitbikes WHERE fitter_fitbike_id IN ($row[fitter_fitbikes]) ORDER BY fitter_fitbike_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $fitbike_list = ""; while ($list = mysql_fetch_array($fetch)) { $fitbike_list = $fitbike_list."$list[fitter_fitbike_name], "; } $fitbike_list = rtrim($fitbike_list, ', '); } if ($fitbike_list) {echo $fitbike_list;} else {echo "None";} ?>
Motion-Capture Systems: $row[fitter_motioncapture] = ltrim(rtrim($row[fitter_motioncapture], ", "), ", "); if ($row[fitter_motioncapture]) { $sql = ("SELECT * FROM gforum_FittersMotioncapture WHERE fitter_motioncapture_id IN ($row[fitter_motioncapture]) ORDER BY fitter_motioncapture_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $motioncapture_list = ""; while ($list = mysql_fetch_array($fetch)) { $motioncapture_list = $motioncapture_list."$list[fitter_motioncapture_name], "; } $motioncapture_list = rtrim($motioncapture_list, ', '); } if ($motioncapture_list) {echo $motioncapture_list;} else {echo "None";} ?>
Brand-Friendly: $row[fitter_brandfriendly] = ltrim(rtrim($row[fitter_brandfriendly], ", "), ", "); if ($row[fitter_brandfriendly]) { $sql = ("SELECT * FROM gforum_FittersBrandFriendly WHERE fitter_brand_id IN ($row[fitter_brandfriendly]) ORDER BY fitter_brand_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $brandfriendly_list = ""; while ($list = mysql_fetch_array($fetch)) { $brandfriendly_list = $brandfriendly_list."$list[fitter_brand_name], "; } $brandfriendly_list = rtrim($brandfriendly_list, ', '); } if ($brandfriendly_list) {echo "This fitter has *verified* specific expertise in these brands - " . $brandfriendly_list;} else {echo "None";} ?>
Cost of Fit: echo stripslashes(htmlspecialchars($row[fitter_cost])); ?>
Certifications: $row[fitter_certifications] = ltrim(rtrim($row[fitter_certifications], ", "), ", "); if ($row[fitter_certifications]) { $sql = ("SELECT * FROM gforum_FittersCertifications WHERE fitter_certification_id IN ($row[fitter_certifications]) ORDER BY fitter_certification_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $certification_list = ""; while ($list = mysql_fetch_array($fetch)) { $certification_list = $certification_list."$list[fitter_certification_name], "; } $certification_list = rtrim($certification_list, ', '); } if ($certification_list) {echo $certification_list;} else {echo "None";} ?>
Fit Bikes: $row[fitter_fitbikes] = ltrim(rtrim($row[fitter_fitbikes], ", "), ", "); if ($row[fitter_fitbikes]) { $sql = ("SELECT * FROM gforum_FittersFitbikes WHERE fitter_fitbike_id IN ($row[fitter_fitbikes]) ORDER BY fitter_fitbike_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $fitbike_list = ""; while ($list = mysql_fetch_array($fetch)) { $fitbike_list = $fitbike_list."$list[fitter_fitbike_name], "; } $fitbike_list = rtrim($fitbike_list, ', '); } if ($fitbike_list) {echo $fitbike_list;} else {echo "None";} ?>
Motion-Capture Systems: $row[fitter_motioncapture] = ltrim(rtrim($row[fitter_motioncapture], ", "), ", "); if ($row[fitter_motioncapture]) { $sql = ("SELECT * FROM gforum_FittersMotioncapture WHERE fitter_motioncapture_id IN ($row[fitter_motioncapture]) ORDER BY fitter_motioncapture_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $motioncapture_list = ""; while ($list = mysql_fetch_array($fetch)) { $motioncapture_list = $motioncapture_list."$list[fitter_motioncapture_name], "; } $motioncapture_list = rtrim($motioncapture_list, ', '); } if ($motioncapture_list) {echo $motioncapture_list;} else {echo "None";} ?>
Brand-Friendly: $row[fitter_brandfriendly] = ltrim(rtrim($row[fitter_brandfriendly], ", "), ", "); if ($row[fitter_brandfriendly]) { $sql = ("SELECT * FROM gforum_FittersBrandFriendly WHERE fitter_brand_id IN ($row[fitter_brandfriendly]) ORDER BY fitter_brand_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $brandfriendly_list = ""; while ($list = mysql_fetch_array($fetch)) { $brandfriendly_list = $brandfriendly_list."$list[fitter_brand_name], "; } $brandfriendly_list = rtrim($brandfriendly_list, ', '); } if ($brandfriendly_list) {echo "This fitter has *verified* specific expertise in these brands - " . $brandfriendly_list;} else {echo "None";} ?>
Cost of Fit: echo stripslashes(htmlspecialchars($row[fitter_cost])); ?>
General Information
General Information: echo stripslashes(stripslashes($row[fitter_info])) ?>
Directions: echo stripslashes(stripslashes($row[fitter_directions])) ?>
Directions: echo stripslashes(stripslashes($row[fitter_directions])) ?>
Map location is based off of a geocode of the addressed entered using Google's Google Maps API. If your address does not geocode properly, you can either update the address (we will attempt to re-geocode after any updates to your entry) or you can use Google's geocoding tool found here: http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html to obtain a lat/long for your location and enter that. To use the utility, type in an address that is close to your location and then drag-and-drop the marker to obtain the desired lat/long. If you choose to enter a lat/long, you must check the box on the edit page that says, "override geocode with entered lat/long."
Who was fit?
$testresults = mysql_query("SELECT fitter_user_tags FROM ".$prefix."Fitters WHERE fitter_id=$row[fitter_id]");
$testrow = mysql_fetch_array($testresults);
$tags = explode(",", $testrow[fitter_user_tags]);
$numcount = count($tags) - 1;
if($numcount == 0){ $phrase = "No users have tagged this fitter yet."; }
else if($numcount == 1){ $phrase = "There is 1 user who has tagged this fitter:"; }
else{ $phrase = "There are $numcount users who have tagged this fitter: "; }
?>
echo $phrase; ?>
//List users
$i = 0;
foreach($tags as $value){
if($i > 0){
$tempresults = mysql_query("SELECT user_username FROM ".$prefix."User WHERE user_id='$value'") or die (mysql_error());
$temprow = mysql_fetch_array($tempresults);
if($i > 1){ echo ", "; }
// TODO: SLOWTWITCH EDIT
//echo "$temprow[user_username]";
// replace the link above with the link below for integration into gforum
echo "$temprow[user_username]";
// TODO: SLOWTWITCH EDIT END
}
$i++;
}
?>
$testresults = mysql_query("SELECT * FROM ".$prefix."FittersEditors WHERE fitter_id_fk=$row[fitter_id] ORDER BY edit_timestamp DESC");
$numcount = mysql_num_rows($testresults);
if($numcount == 0){ $phrase = "No updates have been made this fitter yet."; }
else if($numcount == 1){ $phrase = "There has been 1 update to this fitter:"; }
else{ $phrase = "There have been $numcount updates to this fitter: "; }
?>
echo $phrase; ?>
$i = 0;
while($row=mysql_fetch_array($testresults)){
if($i >= 0){
$tempresults = mysql_query("SELECT user_username FROM ".$prefix."User WHERE user_id='$row[user_id_fk]'") or die (mysql_error());
$temprow = mysql_fetch_array($tempresults);
if($i >= 1){ echo "
"; } // TODO: SLOWTWITCH EDIT //echo "$temprow[user_username]"; // replace the link above with the link below for integration into gforum echo "$temprow[user_username] at ".date("F j, Y g:i A", $row[edit_timestamp]); // TODO: SLOWTWITCH EDIT END } $i++; } if($numcount <= 0){ echo "No users"; } ?>
"; } // TODO: SLOWTWITCH EDIT //echo "$temprow[user_username]"; // replace the link above with the link below for integration into gforum echo "$temprow[user_username] at ".date("F j, Y g:i A", $row[edit_timestamp]); // TODO: SLOWTWITCH EDIT END } $i++; } if($numcount <= 0){ echo "No users"; } ?>