Thank you
echo "Thank you. Your shop should be added within 24 hours. You will now be redirected back to the add page.
"; echo ""; } else if($confirm == 1){ ?>Edit a Shop: Step 2 of 2
}else if( ($confirm !=1) && ($_POST[confirm_entry] != 1)){ ?>Edit a Shop: Step 1 of 2
}else if( ($_POST[edit_shop] == 1) && (!$errmsg) && ($_POST[confirm_entry] == 1)){ ?>Thank you
} if(($confirm != 1) && ($_POST[confirm_entry] != 1) && $_GET[confirmed] != "yes"){ ?>To edit a retailer, simply change the data you wish. If you make a mistake, just hit the reset button. To save the changes as a NEW retailer (for instance, if you have multiple locations), hit the "SAVE AS A NEW RETAILER" button. To save changes to the existing retailer entry, hit the "SAVE CHANGES TO YOUR SHOP" button. You will have a chance to review the data before confirming.
} ?> if( $_GET[confirmed] != "yes" && (($_POST[edit_shop] != 1) || ($errmsg) || (($confirm != 1) && ($_POST[confirm_entry] != 1))) ){ ?> } else { // this is the confirmation message. This is as an alternative to the one above. /**if(($row[edit_shop] == 1) && (!$errmsg) && ($row[confirm_entry] == 1)){ echo "Thank you. Your shop should be edited within 24 hours. You will now be redirected back to the home page.
"; echo ""; }**/ if($confirm == 1){ $confirm = 0; ?>
Please confirm your shop information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your shop information before submitting.
echo stripslashes($_POST[retailer_name]); ?>
Shop Name: | echo stripslashes($_POST[retailer_name]); ?> |
Street address: | echo stripslashes(htmlspecialchars($_POST[retailer_address])); ?> |
Street address two: | echo stripslashes(htmlspecialchars($_POST[retailer_address_two])); ?> |
City: | echo stripslashes(htmlspecialchars($_POST[retailer_city])); ?> |
State: | echo stripslashes(htmlspecialchars($_POST[retailer_state])); ?> |
Zip/Postal Code: | echo stripslashes(htmlspecialchars($_POST[retailer_zip])); ?> |
Phone: | echo stripslashes(htmlspecialchars($_POST[retailer_phone])); ?> |
Fax / Alternate Phone: | echo stripslashes(htmlspecialchars($_POST[retailer_fax])); ?> |
E-mail: | echo stripslashes(htmlspecialchars($_POST[retailer_email])); ?> |
Website: | echo $_POST[retailer_website]; ?> |
Cart: | if ($_POST[retailer_cart] == 0) { echo ("No"); } else { echo ("Yes"); } ?> |
for ($i = 0; $i < 35; $i++) echo("*");
echo (" BIKE FIT ");
for ($i = 0; $i < 35; $i++) echo("*");
?>
|
|
Key Tri-Specific Contact(s): | if ($_POST[retailer_contact] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[retailer_contact_names]); } ?> |
F.I.S.T. Fitter(s): | if ($_POST[retailer_fist] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[retailer_fist_names]); } ?> |
Serotta Fitter(s): | if ($_POST[retailer_serotta] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[retailer_serotta_names]); } ?> |
Fit Bikes: | $implosion = implode(",", $_POST[retailer_fitbikes]); $sql = ("SELECT * FROM gforum_RetailersFitbikes WHERE retailers_fitbike_id IN ($implosion) 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, ', '); echo $fitbike_list; ?> |
Motion-Capture Systems: | $implosion = implode(",", $_POST[retailer_motioncapture]); $sql = ("SELECT * FROM gforum_RetailersMotioncapture WHERE retailers_motioncapture_id IN ($implosion) 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, ', '); echo $motioncapture_list; ?> |
for ($i = 0; $i < 36; $i++) echo("*");
echo (" BRANDS ");
for ($i = 0; $i < 36; $i++) echo("*");
?>
|
|
Wetsuits: | $implosion = implode(",", $_POST[retailer_wetsuits]); $sql = ("SELECT * FROM gforum_RetailersWetsuits WHERE retailers_wetsuit_id IN ($implosion) 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, ', '); echo $wetsuit_list; ?> |
Bikes: | $implosion = implode(",", $_POST[retailer_bikes]); $sql = ("SELECT * FROM gforum_RetailersBikes WHERE retailers_bike_id IN ($implosion) 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, ', '); echo $bike_list; ?> |
Custom Frames: | $implosion = implode(",", $_POST[retailer_customs]); $sql = ("SELECT * FROM gforum_RetailersCustoms WHERE retailers_custom_id IN ($implosion) 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, ', '); echo $custom_list; ?> |
for ($i = 0; $i < 80; $i++) echo("*");
?>
|
|
Shop Hours: | echo stripslashes(htmlspecialchars($_POST[retailer_hours])); ?> |
Barnett-Trained Mechanic(s): | if ($_POST[retailer_barnett] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[retailer_barnett_names]); } ?> |
United Bicycle Institute-Trained Mechanic(s): | if ($_POST[retailer_ubi] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[retailer_ubi_names]); } ?> |
Shop Info: | echo strip_tags(stripslashes($_POST[retailer_info])) ?> |
Directions: | echo strip_tags(stripslashes($_POST[retailer_directions])); ?> |