include("include_breadcrumb.php"); ?>
include("../runshops/include_region_list.php"); ?> include("include_starfunc.php"); ?>
include ('comments_show.php'); ?>
$selected_item = strtolower($row[retailer_state]); ?>
include("include_sidebar.php"); ?>
Retailers
if ($user) { ?> } ?> Backinclude("../runshops/include_region_list.php"); ?> include("include_starfunc.php"); ?>
echo stripslashes(stripslashes($row[retailer_name])) ; echo " "; ?>
if(is_logged_in($user)) { ?>Comment }?>
echo stripslashes(htmlspecialchars($row[retailer_address])); ?>
if ( $row[retailer_address_two] ) { echo stripslashes(htmlspecialchars($row[retailer_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[retailer_city])); ?>, echo stripslashes(htmlspecialchars($row[retailer_state])); ?> echo stripslashes(htmlspecialchars($row[retailer_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[retailer_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[retailer_fax])); ?>
if ( $row[retailer_address_two] ) { echo stripslashes(htmlspecialchars($row[retailer_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[retailer_city])); ?>, echo stripslashes(htmlspecialchars($row[retailer_state])); ?> echo stripslashes(htmlspecialchars($row[retailer_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[retailer_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[retailer_fax])); ?>
Email: echo stripslashes(htmlspecialchars($row[retailer_email])); ?>
Website: echo stripslashes(htmlspecialchars($row[retailer_website])); ?>
Spoke Alliance Member: if ($row[retailer_spoke] == 1) { echo ("Yes"); } else { echo ("No"); } ?>
if($_GET[review_add] == 'ok') { ?>
Website: echo stripslashes(htmlspecialchars($row[retailer_website])); ?>
Spoke Alliance Member: if ($row[retailer_spoke] == 1) { echo ("Yes"); } else { echo ("No"); } ?>
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."RetailersEdits WHERE retailer_id_fk = '".intval(mysql_escape_string($_GET[retailer_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") ?>
Product Delivery Channels
We ship mail-order via:
if ($row[retailer_mailorder_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?>
if ($row[retailer_mailorder_phone] == 0) { echo (""); } elseif ($row[retailer_mailorder_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
We offer local home/work delivery, transacting via: if ($row[retailer_local_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?> if ($row[retailer_local_phone] == 0) { echo (""); } elseif ($row[retailer_local_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
You may order in advance, and pick up, transacting via: if ($row[retailer_pickup_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?> if ($row[retailer_pickup_phone] == 0) { echo (""); } elseif ($row[retailer_pickup_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
We offer local home/work delivery, transacting via: if ($row[retailer_local_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?> if ($row[retailer_local_phone] == 0) { echo (""); } elseif ($row[retailer_local_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
You may order in advance, and pick up, transacting via: if ($row[retailer_pickup_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?> if ($row[retailer_pickup_phone] == 0) { echo (""); } elseif ($row[retailer_pickup_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
Bike Fit
Key Tri-Specific Contact(s):
if ($row[retailer_contact] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_contact_names]); } ?>
F.I.S.T. Tri Fitter(s): if ($row[retailer_fist] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_names]); } ?>
F.I.S.T. Road Fitter(s): if ($row[retailer_fist_road] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_road_names]); } ?>
F.I.S.T. Advanced Fitter(s): if ($row[retailer_fist_advanced] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_advanced_names]); } ?>
BFACT Score: echo stripslashes($row[retailer_bfact]); ?>
BikeFit, BodyGeometry, Retul, Serotta, or Trek Fitter(s): if ($row[retailer_serotta] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_serotta_names]); } ?>
Default Tri-Fit Methodology: $sql = ("SELECT * FROM ".$prefix."RetailersMethods WHERE retailer_method_id = ".$row[retailer_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[retailer_method_name]"); } } else { echo ("Unanswered"); } ?>
Fit Bikes: $row[retailer_fitbikes] = ltrim(rtrim($row[retailer_fitbikes], ", "), ", "); if ($row[retailer_fitbikes]) { $sql = ("SELECT * FROM gforum_RetailersFitbikes WHERE retailers_fitbike_id IN ($row[retailer_fitbikes]) ORDER BY retailers_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[retailers_fitbike_name], "; } $fitbike_list = rtrim($fitbike_list, ', '); } if ($fitbike_list) {echo $fitbike_list;} else {echo "None";} ?>
Motion-Capture Systems: $row[retailer_motioncapture] = ltrim(rtrim($row[retailer_motioncapture], ", "), ", "); if ($row[retailer_motioncapture]) { $sql = ("SELECT * FROM gforum_RetailersMotioncapture WHERE retailers_motioncapture_id IN ($row[retailer_motioncapture]) ORDER BY retailers_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[retailers_motioncapture_name], "; } $motioncapture_list = rtrim($motioncapture_list, ', '); } if ($motioncapture_list) {echo $motioncapture_list;} else {echo "None";} ?>
F.I.S.T. Tri Fitter(s): if ($row[retailer_fist] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_names]); } ?>
F.I.S.T. Road Fitter(s): if ($row[retailer_fist_road] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_road_names]); } ?>
F.I.S.T. Advanced Fitter(s): if ($row[retailer_fist_advanced] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_fist_advanced_names]); } ?>
BFACT Score: echo stripslashes($row[retailer_bfact]); ?>
BikeFit, BodyGeometry, Retul, Serotta, or Trek Fitter(s): if ($row[retailer_serotta] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_serotta_names]); } ?>
Default Tri-Fit Methodology: $sql = ("SELECT * FROM ".$prefix."RetailersMethods WHERE retailer_method_id = ".$row[retailer_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[retailer_method_name]"); } } else { echo ("Unanswered"); } ?>
Fit Bikes: $row[retailer_fitbikes] = ltrim(rtrim($row[retailer_fitbikes], ", "), ", "); if ($row[retailer_fitbikes]) { $sql = ("SELECT * FROM gforum_RetailersFitbikes WHERE retailers_fitbike_id IN ($row[retailer_fitbikes]) ORDER BY retailers_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[retailers_fitbike_name], "; } $fitbike_list = rtrim($fitbike_list, ', '); } if ($fitbike_list) {echo $fitbike_list;} else {echo "None";} ?>
Motion-Capture Systems: $row[retailer_motioncapture] = ltrim(rtrim($row[retailer_motioncapture], ", "), ", "); if ($row[retailer_motioncapture]) { $sql = ("SELECT * FROM gforum_RetailersMotioncapture WHERE retailers_motioncapture_id IN ($row[retailer_motioncapture]) ORDER BY retailers_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[retailers_motioncapture_name], "; } $motioncapture_list = rtrim($motioncapture_list, ', '); } if ($motioncapture_list) {echo $motioncapture_list;} else {echo "None";} ?>
Brands
Wetsuits:
$row[retailer_wetsuits] = ltrim(rtrim($row[retailer_wetsuits], ", "), ", ");
if ($row[retailer_wetsuits]) {
$sql = ("SELECT * FROM gforum_RetailersWetsuits WHERE retailers_wetsuit_id IN ($row[retailer_wetsuits]) ORDER BY retailers_wetsuit_name ASC");
//echo $sql;
$fetch = mysql_query($sql) or die(mysql_error());
$wetsuit_list = "";
while ($list = mysql_fetch_array($fetch)) {
$wetsuit_list = $wetsuit_list."$list[retailers_wetsuit_name], ";
}
$wetsuit_list = rtrim($wetsuit_list, ', ');
}
if ($wetsuit_list) {echo $wetsuit_list;} else {echo "None";}
?>
Bikes: $row[retailer_bikes] = ltrim(rtrim($row[retailer_bikes], ", "), ", "); if ($row[retailer_bikes]) { $sql = ("SELECT * FROM gforum_RetailersBikes WHERE retailers_bike_id IN ($row[retailer_bikes]) ORDER BY retailers_bike_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $bike_list = ""; while ($list = mysql_fetch_array($fetch)) { $bike_list = $bike_list."$list[retailers_bike_name], "; } $bike_list = rtrim($bike_list, ', '); } if ($bike_list) {echo $bike_list;} else {echo "None";} ?>
Custom Frames: $row[retailer_customs] = ltrim(rtrim($row[retailer_customs], ", "), ", "); if ($row[retailer_customs]) { $sql = ("SELECT * FROM gforum_RetailersCustoms WHERE retailers_custom_id IN ($row[retailer_customs]) ORDER BY retailers_custom_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $custom_list = ""; while ($list = mysql_fetch_array($fetch)) { $custom_list = $custom_list."$list[retailers_custom_name], "; } $custom_list = rtrim($custom_list, ', '); } if ($custom_list) {echo $custom_list;} else {echo "None";} ?>
Bikes: $row[retailer_bikes] = ltrim(rtrim($row[retailer_bikes], ", "), ", "); if ($row[retailer_bikes]) { $sql = ("SELECT * FROM gforum_RetailersBikes WHERE retailers_bike_id IN ($row[retailer_bikes]) ORDER BY retailers_bike_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $bike_list = ""; while ($list = mysql_fetch_array($fetch)) { $bike_list = $bike_list."$list[retailers_bike_name], "; } $bike_list = rtrim($bike_list, ', '); } if ($bike_list) {echo $bike_list;} else {echo "None";} ?>
Custom Frames: $row[retailer_customs] = ltrim(rtrim($row[retailer_customs], ", "), ", "); if ($row[retailer_customs]) { $sql = ("SELECT * FROM gforum_RetailersCustoms WHERE retailers_custom_id IN ($row[retailer_customs]) ORDER BY retailers_custom_name ASC"); //echo $sql; $fetch = mysql_query($sql) or die(mysql_error()); $custom_list = ""; while ($list = mysql_fetch_array($fetch)) { $custom_list = $custom_list."$list[retailers_custom_name], "; } $custom_list = rtrim($custom_list, ', '); } if ($custom_list) {echo $custom_list;} else {echo "None";} ?>
General Information
Shop Hours: echo stripslashes(htmlspecialchars($row[retailer_hours])); ?>
Barnett-Trained Mechanic(s): if ($row[retailer_barnett] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_barnett_names]); } ?>
United Bicycle Institute-Trained Mechanic(s): if ($row[retailer_ubi] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_ubi_names]); } ?>
Shop Info: echo stripslashes(stripslashes($row[retailer_info])) ?>
Directions: echo stripslashes(stripslashes($row[retailer_directions])) ?>
Barnett-Trained Mechanic(s): if ($row[retailer_barnett] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_barnett_names]); } ?>
United Bicycle Institute-Trained Mechanic(s): if ($row[retailer_ubi] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[retailer_ubi_names]); } ?>
Shop Info: echo stripslashes(stripslashes($row[retailer_info])) ?>
Directions: echo stripslashes(stripslashes($row[retailer_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."
$testresults = mysql_query("SELECT retailer_shopper_tags FROM ".$prefix."Retailers WHERE retailer_id=$row[retailer_id]");
$testrow = mysql_fetch_array($testresults);
$tags = explode(",", $testrow[retailer_shopper_tags]);
$numcount = count($tags) - 1;
if($numcount == 0){ $phrase = "No users have tagged this shop yet."; }
else if($numcount == 1){ $phrase = "There is 1 user who has tagged this shop:"; }
else { $phrase = "There are $numcount users who have tagged this shop: "; }
?>
echo $phrase; ?>
$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 ", "; }
echo "$temprow[user_username]";
}
$i++;
}
if (count($tags) <= 1) { echo "No users"; }
?>
$testresults = mysql_query("SELECT * FROM ".$prefix."RetailersEditors WHERE retailer_id_fk=$row[retailer_id] ORDER BY edit_timestamp DESC");
$numcount = mysql_num_rows($testresults);
if($numcount == 0){ $phrase = "No updates have been made this bike shop yet."; }
else if($numcount == 1){ $phrase = "There has been 1 update to this bike shop:"; }
else{ $phrase = "There have been $numcount updates to this bike shop: "; }
?>
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 "
"; } echo "$temprow[user_username] at ".date("F j, Y g:i A", $row[edit_timestamp]); } $i++; } if ($numcount <= 0) { echo "No users"; } ?>
"; } echo "$temprow[user_username] at ".date("F j, Y g:i A", $row[edit_timestamp]); } $i++; } if ($numcount <= 0) { echo "No users"; } ?>