include("include_breadcrumb.php"); ?>
include("include_region_list.php"); ?>
include ('comments_show.php'); ?>
$selected_item = strtolower($row[runshop_state]); ?>
include("include_sidebar.php"); ?>
Running Stores
if ($user) { ?> } ?> Backinclude("include_region_list.php"); ?>
echo stripslashes(stripslashes($row[runshop_name])) ; echo " "; ?>
if(is_logged_in($user)) { ?>Comment }?>
echo stripslashes(htmlspecialchars($row[runshop_address])); ?>
if ( $row[runshop_address_two] ) { echo stripslashes(htmlspecialchars($row[runshop_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[runshop_city])); ?>, echo stripslashes(htmlspecialchars($row[runshop_state])); ?> echo stripslashes(htmlspecialchars($row[runshop_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[runshop_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[runshop_fax])); ?>
if ( $row[runshop_address_two] ) { echo stripslashes(htmlspecialchars($row[runshop_address_two]) . "
"); } ?> echo stripslashes(htmlspecialchars($row[runshop_city])); ?>, echo stripslashes(htmlspecialchars($row[runshop_state])); ?> echo stripslashes(htmlspecialchars($row[runshop_zip])); ?>
Phone: echo stripslashes(htmlspecialchars($row[runshop_phone])); ?>
Fax: echo stripslashes(htmlspecialchars($row[runshop_fax])); ?>
Email: echo stripslashes(htmlspecialchars($row[runshop_email])); ?>
Website: echo stripslashes(htmlspecialchars($row[runshop_website])); ?>
if($_GET[review_add] == 'ok') { ?>
Website: echo stripslashes(htmlspecialchars($row[runshop_website])); ?>
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."RunshopsEdits WHERE runshop_id_fk = '".intval(mysql_escape_string($_GET[runshop_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"); ?>
Key Tri-Specific Contact(s)
if ($row[runshop_contact] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($row[runshop_contact_names]); } ?>
Diagnostic Equipment
$row[runshop_diagnostics] = ltrim(rtrim($row[runshop_diagnostics], ", "), ", ");
if ($row[runshop_diagnostics]) {
$sql = ("SELECT * FROM ".$prefix."RunshopsDiagnostics WHERE diagnostic_id IN ($row[runshop_diagnostics]) ORDER BY diagnostic_name ASC");
$fetch = mysql_query($sql) or die(mysql_error());
$diagnostic_list = "";
while ($list = mysql_fetch_array($fetch)) {
$diagnostic_list = $diagnostic_list."$list[diagnostic_name], ";
}
$diagnostic_list = rtrim($diagnostic_list, ', ');
}
if ($diagnostic_list) {echo $diagnostic_list;} else {echo "None";}
?>
Brands
Running Shoes:
$row[runshop_shoes] = ltrim(rtrim($row[runshop_shoes], ", "), ", ");
if ($row[runshop_shoes]) {
$sql = ("SELECT * FROM ".$prefix."RunshopsShoes WHERE shoe_id IN ($row[runshop_shoes]) ORDER BY shoe_name ASC");
$fetch = mysql_query($sql) or die(mysql_error());
$shoe_list = "";
while ($list = mysql_fetch_array($fetch)) {
$shoe_list = $shoe_list."$list[shoe_name], ";
}
$shoe_list = rtrim($shoe_list, ', ');
if ($shoe_list) {echo $shoe_list;} else {echo "None";}
?>
Socks: $row[runshop_socks] = ltrim(rtrim($row[runshop_socks], ", "), ", "); $sql = ("SELECT * FROM ".$prefix."RunshopsSocks WHERE sock_id IN ($row[runshop_socks]) ORDER BY sock_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $sock_list = ""; while ($list = mysql_fetch_array($fetch)) { $sock_list = $sock_list."$list[sock_name], "; } $sock_list = rtrim($sock_list, ', '); } if ($sock_list) {echo $sock_list;} else {echo "None";} ?>
Run Focused Apparel: $row[runshop_apparel_run] = ltrim(rtrim($row[runshop_apparel_run], ", "), ", "); if ($row[runshop_apparel_run]) { $sql = ("SELECT * FROM ".$prefix."RunshopsApparelRun WHERE apparel_run_id IN ($row[runshop_apparel_run]) ORDER BY apparel_run_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $apparel_run_list = ""; while ($list = mysql_fetch_array($fetch)) { $apparel_run_list = $apparel_run_list."$list[apparel_run_name], "; } $apparel_run_list = rtrim($apparel_run_list, ', '); } if ($apparel_run_list) {echo $apparel_run_list;} else {echo "None";} ?>
Tri Focused Apparel: $row[runshop_apparel_tri] = ltrim(rtrim($row[runshop_apparel_tri], ", "), ", "); if ($row[runshop_apparel_tri]) { $sql = ("SELECT * FROM ".$prefix."RunshopsApparelTri WHERE apparel_tri_id IN ($row[runshop_apparel_tri]) ORDER BY apparel_tri_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $apparel_tri_list = ""; while ($list = mysql_fetch_array($fetch)) { $apparel_tri_list = $apparel_tri_list."$list[apparel_tri_name], "; } $apparel_tri_list = rtrim($apparel_tri_list, ', '); } if ($apparel_tri_list) {echo $apparel_tri_list;} else {echo "None";} ?>
Swim Gear: $row[runshop_swimgear] = ltrim(rtrim($row[runshop_swimgear], ", "), ", "); if ($row[runshop_swimgear]) { $sql = ("SELECT * FROM ".$prefix."ResourceSwimgear WHERE swimgear_id IN ($row[runshop_swimgear]) ORDER BY swimgear_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $swimgear_list = ""; while ($list = mysql_fetch_array($fetch)) { $swimgear_list = $swimgear_list."$list[swimgear_name], "; } $swimgear_list = rtrim($swimgear_list, ', '); } if ($swimgear_list) {echo $swimgear_list;} else {echo "None";} ?>
Wetsuits: $row[runshop_wetsuits] = ltrim(rtrim($row[runshop_wetsuits], ", "), ", "); if ($row[runshop_wetsuits]) { $sql = ("SELECT * FROM ".$prefix."ResourceWetsuit WHERE wetsuit_id IN ($row[runshop_wetsuits]) ORDER BY wetsuit_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $wetsuit_list = ""; while ($list = mysql_fetch_array($fetch)) { $wetsuit_list = $wetsuit_list."$list[wetsuit_name], "; } $wetsuit_list = rtrim($wetsuit_list, ', '); } if ($wetsuit_list) {echo $wetsuit_list;} else {echo "None";} ?>
Socks: $row[runshop_socks] = ltrim(rtrim($row[runshop_socks], ", "), ", "); $sql = ("SELECT * FROM ".$prefix."RunshopsSocks WHERE sock_id IN ($row[runshop_socks]) ORDER BY sock_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $sock_list = ""; while ($list = mysql_fetch_array($fetch)) { $sock_list = $sock_list."$list[sock_name], "; } $sock_list = rtrim($sock_list, ', '); } if ($sock_list) {echo $sock_list;} else {echo "None";} ?>
Run Focused Apparel: $row[runshop_apparel_run] = ltrim(rtrim($row[runshop_apparel_run], ", "), ", "); if ($row[runshop_apparel_run]) { $sql = ("SELECT * FROM ".$prefix."RunshopsApparelRun WHERE apparel_run_id IN ($row[runshop_apparel_run]) ORDER BY apparel_run_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $apparel_run_list = ""; while ($list = mysql_fetch_array($fetch)) { $apparel_run_list = $apparel_run_list."$list[apparel_run_name], "; } $apparel_run_list = rtrim($apparel_run_list, ', '); } if ($apparel_run_list) {echo $apparel_run_list;} else {echo "None";} ?>
Tri Focused Apparel: $row[runshop_apparel_tri] = ltrim(rtrim($row[runshop_apparel_tri], ", "), ", "); if ($row[runshop_apparel_tri]) { $sql = ("SELECT * FROM ".$prefix."RunshopsApparelTri WHERE apparel_tri_id IN ($row[runshop_apparel_tri]) ORDER BY apparel_tri_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $apparel_tri_list = ""; while ($list = mysql_fetch_array($fetch)) { $apparel_tri_list = $apparel_tri_list."$list[apparel_tri_name], "; } $apparel_tri_list = rtrim($apparel_tri_list, ', '); } if ($apparel_tri_list) {echo $apparel_tri_list;} else {echo "None";} ?>
Swim Gear: $row[runshop_swimgear] = ltrim(rtrim($row[runshop_swimgear], ", "), ", "); if ($row[runshop_swimgear]) { $sql = ("SELECT * FROM ".$prefix."ResourceSwimgear WHERE swimgear_id IN ($row[runshop_swimgear]) ORDER BY swimgear_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $swimgear_list = ""; while ($list = mysql_fetch_array($fetch)) { $swimgear_list = $swimgear_list."$list[swimgear_name], "; } $swimgear_list = rtrim($swimgear_list, ', '); } if ($swimgear_list) {echo $swimgear_list;} else {echo "None";} ?>
Wetsuits: $row[runshop_wetsuits] = ltrim(rtrim($row[runshop_wetsuits], ", "), ", "); if ($row[runshop_wetsuits]) { $sql = ("SELECT * FROM ".$prefix."ResourceWetsuit WHERE wetsuit_id IN ($row[runshop_wetsuits]) ORDER BY wetsuit_name ASC"); $fetch = mysql_query($sql) or die(mysql_error()); $wetsuit_list = ""; while ($list = mysql_fetch_array($fetch)) { $wetsuit_list = $wetsuit_list."$list[wetsuit_name], "; } $wetsuit_list = rtrim($wetsuit_list, ', '); } if ($wetsuit_list) {echo $wetsuit_list;} else {echo "None";} ?>
General Information
Store Hours: echo stripslashes(htmlspecialchars($row[runshop_hours])); ?>
Runs & Classes: echo stripslashes(stripslashes($row[runshop_classes])) ?>
Runs & Classes: echo stripslashes(stripslashes($row[runshop_classes])) ?>
Shop Info echo stripslashes(stripslashes($row[runshop_info])) ?>
Directions: echo stripslashes(stripslashes($row[runshop_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 Shops Here?
$testresults = mysql_query("SELECT runshop_shopper_tags FROM ".$prefix."Runshops WHERE runshop_id=$row[runshop_id]");
$testrow = mysql_fetch_array($testresults);
$tags = explode(",", $testrow[runshop_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++;
}
?>
$testresults = mysql_query("SELECT * FROM ".$prefix."RunshopsEditors WHERE runshop_id_fk=$row[runshop_id] ORDER BY edit_timestamp DESC");
$numcount = mysql_num_rows($testresults);
if($numcount == 0){ $phrase = "No updates have been made this running store yet."; }
else if($numcount == 1){ $phrase = "There has been 1 update to this running store:"; }
else{ $phrase = "There have been $numcount updates to this running store: "; }
?>
$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"; } ?>