discourse-legacysite-perl/site/retailers/include_add_confirm.php
2024-06-17 22:42:14 +10:00

443 lines
20 KiB
PHP

<p>
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.
</p>
<? $nametagmod = trim(strtolower(str_replace(" ","",$_POST[name]))); ?>
<div class="dtable form">
<div class="drow">
<div class="dcell name">Store Name</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes($_POST[name]); ?></div>
</div>
<div class="drow">
<div class="dcell name">Address </div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[address])); ?></div>
</div>
<div class="drow">
<div class="dcell name">Address 2</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[address_two])); ?></div>
</div>
<div class="drow">
<div class="dcell name">City</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[city])); ?></div>
</div>
<div class="drow">
<div class="dcell name">State</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[state])); ?></div>
</div>
<div class="drow">
<div class="dcell name">Zip</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[zip])); ?></div>
</div>
<div class="drow">
<div class="dcell name">Phone</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[phone])); ?></div>
</div>
<div class="drow">
<div class="dcell name">Fax</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[fax])); ?></div>
</div>
<div class="drow">
<div class="dcell name">E-mail</div>
<div class="dcell divider"></div>
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[email])); ?></div>
</div>
<div class="drow">
<div class="dcell name">Website</div>
<div class="dcell divider"></div>
<div class="dcell value"><a href="<? echo $_POST[website]; ?>" target="_blank"><? echo $_POST[website]; ?></a></div>
</div>
<div class="drow">
<div class="dcell name">Cart</div>
<div class="dcell divider"></div>
<div class="dcell value"><? if ($_POST[cart] == 0) { echo ("No"); } else { echo ("Yes"); } ?></div>
</div>
<div class="drow">
<div class="dcell name">Spoke Alliance</div>
<div class="dcell divider"></div>
<div class="dcell value"><? if ($_POST[spoke] == 0) { echo ("No"); } else { echo ("Yes"); } ?></div>
</div>
<div class="drow">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
for ($i = 0; $i < 15; $i++) echo("*");
echo (" PRODUCT DELIVERY CHANNELS ");
for ($i = 0; $i < 15; $i++) echo("*");
?>
</div>
</div>
<div class="drow">
<div class="dcell name">We ship mail-order via</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[mailorder_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?>
<? if ($_POST[mailorder_phone] == 0) { echo (""); } elseif ($_POST[mailorder_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">We offer local home/work delivery, transacting via</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[local_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?>
<? if ($_POST[local_phone] == 0) { echo (""); } elseif ($_POST[local_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">You may order in advance, and pick up, transacting via</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[pickup_ecommerce] == 0) { echo (""); } else { echo ("e-commerce site"); } ?>
<? if ($_POST[pickup_phone] == 0) { echo (""); } elseif ($_POST[pickup_ecommerce] == 1) { echo (", phone"); } else { echo ("phone"); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
for ($i = 0; $i < 25; $i++) echo("*");
echo (" BIKE FIT ");
for ($i = 0; $i < 25; $i++) echo("*");
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Key Tri-Specific Contact(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[contact] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[contact_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">F.I.S.T. Tri Fitter(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[fist] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[fist_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">F.I.S.T. Road Fitter(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[fist_road] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[fist_road_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">F.I.S.T. Advanced Fitter(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[fist_advanced] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[fist_advanced_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">BFACT Score</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo stripslashes(htmlspecialchars($_POST[bfact])); ?>
</div>
</div>
<div class="drow">
<div class="dcell name">BikeFit, BodyGeometry, Retul, Serotta, or Trek Fitter(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[serotta] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[serotta_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Default Tri-Fit Methodology</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[methods]) {
$sql = ("SELECT * FROM ".$prefix."RetailersMethods WHERE retailer_method_id = ".$_POST[methods]." LIMIT 1");
$results = mysql_query($sql) or die(mysql_error());
if (mysql_num_rows($results) > 0) {
while ($row = mysql_fetch_array($results)) {
echo ("$row[retailer_method_name]");
}
} else {
echo ("Unanswered");
}
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Fit Bikes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[fitbikes]) {
$implosion = implode(",", $_POST[fitbikes]);
$sql = ("SELECT * FROM gforum_RetailersFitbikes WHERE retailers_fitbike_id IN ($implosion) ORDER BY retailers_fitbike_name ASC");
//echo $sql;
$results = mysql_query($sql) or die(mysql_error());
$fitbike_list = "";
while ($row = mysql_fetch_array($results)) {
$fitbike_list = $fitbike_list."$row[retailers_fitbike_name], ";
}
$fitbike_list = rtrim($fitbike_list, ', ');
echo $fitbike_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Motion-Capture Systems</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[motioncapture]) {
$implosion = implode(",", $_POST[motioncapture]);
$sql = ("SELECT * FROM gforum_RetailersMotioncapture WHERE retailers_motioncapture_id IN ($implosion) ORDER BY retailers_motioncapture_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$motioncapture_list = "";
while ($row = mysql_fetch_array($results)) {
$motioncapture_list = $motioncapture_list."$row[retailers_motioncapture_name], ";
}
$motioncapture_list = rtrim($motioncapture_list, ', ');
echo $motioncapture_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
for ($i = 0; $i < 25; $i++) echo("*");
echo (" BRANDS ");
for ($i = 0; $i < 25; $i++) echo("*");
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Wetsuits</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[wetsuits]) {
$implosion = implode(",", $_POST[wetsuits]);
$sql = ("SELECT * FROM gforum_RetailersWetsuits WHERE retailers_wetsuit_id IN ($implosion) ORDER BY retailers_wetsuit_name ASC");
//echo $sql;
$results = mysql_query($sql) or die(mysql_error());
$wetsuit_list = "";
while ($row = mysql_fetch_array($results)) {
$wetsuit_list = $wetsuit_list."$row[retailers_wetsuit_name], ";
}
$wetsuit_list = rtrim($wetsuit_list, ', ');
echo $wetsuit_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Bikes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[bikes]) {
$implosion = implode(",", $_POST[bikes]);
$sql = ("SELECT * FROM gforum_RetailersBikes WHERE retailers_bike_id IN ($implosion) ORDER BY retailers_bike_name ASC");
//echo $sql;
$results = mysql_query($sql) or die(mysql_error());
$bike_list = "";
while ($row = mysql_fetch_array($results)) {
$bike_list = $bike_list."$row[retailers_bike_name], ";
}
$bike_list = rtrim($bike_list, ', ');
echo $bike_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Custom Frames</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[customs]) {
$implosion = implode(",", $_POST[customs]);
$sql = ("SELECT * FROM gforum_RetailersCustoms WHERE retailers_custom_id IN ($implosion) ORDER BY retailers_custom_name ASC");
//echo $sql;
$results = mysql_query($sql) or die(mysql_error());
$custom_list = "";
while ($row = mysql_fetch_array($results)) {
$custom_list = $custom_list."$row[retailers_custom_name], ";
}
$custom_list = rtrim($custom_list, ', ');
echo $custom_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Shop Hours</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo stripslashes(htmlspecialchars($_POST[hours])); ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Barnett-Trained Mechanic(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[barnett] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[barnett_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">United Bicycle Institute-Trained Mechanic(s)</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? if ($_POST[ubi] == 0) { echo "None"; } else { echo "Yes, Their Names - "; echo stripslashes($_POST[ubi_names]); } ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Shop Info</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo strip_tags(stripslashes($_POST[info])) ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Directions</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo strip_tags(stripslashes($_POST[directions])); ?>
</div>
</div>
<div class="drow actions">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<form action="add.php" method="post">
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($_POST[name])); ?>">
<input type="hidden" name="address" value="<? echo stripslashes(htmlspecialchars($_POST[address])); ?>">
<input type="hidden" name="address_two" value="<? echo stripslashes(htmlspecialchars($_POST[address_two])); ?>">
<input type="hidden" name="city" value="<? echo stripslashes(htmlspecialchars($_POST[city])); ?>">
<input type="hidden" name="state" value="<? echo $_POST[state]; ?>">
<input type="hidden" name="zip" value="<? echo $_POST[zip]; ?>">
<input type="hidden" name="phone" value="<? echo $_POST[phone]; ?>">
<input type="hidden" name="fax" value="<? echo $_POST[fax]; ?>">
<input type="hidden" name="email" value="<? echo $_POST[email]; ?>">
<input type="hidden" name="website" value="<? echo $_POST[website]; ?>">
<input type="hidden" name="cart" value="<? echo $_POST[cart]; ?>">
<input type="hidden" name="spoke" value="<? echo $_POST[spoke]; ?>">
<input type="hidden" name="mailorder_ecommerce" value="<? echo $_POST[mailorder_ecommerce]; ?>">
<input type="hidden" name="mailorder_phone" value="<? echo $_POST[mailorder_phone]; ?>">
<input type="hidden" name="local_ecommerce" value="<? echo $_POST[local_ecommerce]; ?>">
<input type="hidden" name="local_phone" value="<? echo $_POST[local_phone]; ?>">
<input type="hidden" name="pickup_ecommerce" value="<? echo $_POST[pickup_ecommerce]; ?>">
<input type="hidden" name="pickup_phone" value="<? echo $_POST[pickup_phone]; ?>">
<input type="hidden" name="contact" value="<? echo $_POST[contact]; ?>">
<input type="hidden" name="contact_names" value="<? echo stripslashes(htmlspecialchars($_POST[contact_names])); ?>">
<input type="hidden" name="fist" value="<? echo $_POST[fist]; ?>">
<input type="hidden" name="fist_names" value="<? echo stripslashes(htmlspecialchars($_POST[fist_names])); ?>">
<input type="hidden" name="fist_road" value="<? echo $_POST[fist_road]; ?>">
<input type="hidden" name="fist_road_names" value="<? echo stripslashes(htmlspecialchars($_POST[fist_road_names])); ?>">
<input type="hidden" name="fist_advanced" value="<? echo $_POST[fist_advanced]; ?>">
<input type="hidden" name="fist_advanced_names" value="<? echo stripslashes(htmlspecialchars($_POST[fist_advanced_names])); ?>">
<input type="hidden" name="bfact" value="<? echo $_POST[bfact]; ?>">
<input type="hidden" name="serotta" value="<? echo $_POST[serotta]; ?>">
<input type="hidden" name="serotta_names" value="<? echo stripslashes(htmlspecialchars($_POST[serotta_names])); ?>">
<input type="hidden" name="methods" value="<? echo $_POST[methods]; ?>">
<input type="hidden" name="fitbikes" value="<? echo(implode(',', $_POST[fitbikes])); ?>">
<input type="hidden" name="motioncapture" value="<? echo(implode(',', $_POST[motioncapture])); ?>">
<input type="hidden" name="wetsuits" value="<? echo(implode(',', $_POST[wetsuits])); ?>">
<input type="hidden" name="bikes" value="<? echo(implode(',', $_POST[bikes])); ?>">
<input type="hidden" name="customs" value="<? echo(implode(',', $_POST[customs])); ?>">
<input type="hidden" name="hours" value="<? echo stripslashes(htmlspecialchars($_POST[hours])); ?>">
<input type="hidden" name="barnett" value="<? echo $_POST[barnett]; ?>">
<input type="hidden" name="barnett_names" value="<? echo stripslashes(htmlspecialchars($_POST[barnett_names])); ?>">
<input type="hidden" name="ubi" value="<? echo $_POST[ubi]; ?>">
<input type="hidden" name="ubi_names" value="<? echo stripslashes(htmlspecialchars($_POST[ubi_names])); ?>">
<input type="hidden" name="info" value="<? echo stripslashes(htmlspecialchars($_POST[info])); ?>">
<input type="hidden" name="directions" value="<? echo stripslashes(htmlspecialchars($_POST[directions])); ?>">
<input type="hidden" name="addshop" value="1">
<input type="hidden" name="confirm1" value="1">
<input type="hidden" name="submitted_by" value="<? echo $useruid; ?>" >
<input type="submit" name="submit" value="Submit Info" class="btn float-left" style="margin-right: 5px;" />
</form>
<form action="add.php" method="post">
<input type="hidden" name="name" value="<? echo stripslashes(htmlspecialchars($name)); ?>">
<input type="hidden" name="address" value="<? echo stripslashes(htmlspecialchars($address)); ?>">
<input type="hidden" name="address_two" value="<? echo stripslashes(htmlspecialchars($address_two)); ?>">
<input type="hidden" name="city" value="<? echo stripslashes(htmlspecialchars($city)); ?>">
<input type="hidden" name="state" value="<? echo $state; ?>">
<input type="hidden" name="zip" value="<? echo $zip; ?>">
<input type="hidden" name="phone" value="<? echo $phone; ?>">
<input type="hidden" name="fax" value="<? echo $fax; ?>">
<input type="hidden" name="email" value="<? echo $email; ?>">
<input type="hidden" name="website" value="<? echo $website; ?>">
<input type="hidden" name="cart" value="<? echo $cart; ?>">
<input type="hidden" name="spoke" value="<? echo $spoke; ?>">
<input type="hidden" name="mailorder_ecommerce" value="<? echo $mailorder_ecommerce; ?>">
<input type="hidden" name="mailorder_phone" value="<? echo $mailorder_phone; ?>">
<input type="hidden" name="local_ecommerce" value="<? echo $local_ecommerce; ?>">
<input type="hidden" name="local_phone" value="<? echo $local_phone; ?>">
<input type="hidden" name="pickup_ecommerce" value="<? echo $pickup_ecommerce; ?>">
<input type="hidden" name="pickup_phone" value="<? echo $pickup_phone; ?>">
<input type="hidden" name="contact" value="<? echo $contact; ?>">
<input type="hidden" name="contact_names" value="<? echo stripslashes(htmlspecialchars($contact_names)); ?>">
<input type="hidden" name="fist" value="<? echo $fist; ?>">
<input type="hidden" name="fist_names" value="<? echo stripslashes(htmlspecialchars($fist_names)); ?>">
<input type="hidden" name="fist_road" value="<? echo $fist_road; ?>">
<input type="hidden" name="fist_road_names" value="<? echo stripslashes(htmlspecialchars($fist_road_names)); ?>">
<input type="hidden" name="fist_advanced" value="<? echo $fist_advanced; ?>">
<input type="hidden" name="fist_advanced_names" value="<? echo stripslashes(htmlspecialchars($fist_advanced_names)); ?>">
<input type="hidden" name="bfact" value="<? echo $bfact; ?>">
<input type="hidden" name="serotta" value="<? echo $serotta; ?>">
<input type="hidden" name="serotta_names" value="<? echo stripslashes(htmlspecialchars($serotta_names)); ?>">
<input type="hidden" name="methods" value="<? echo $methods; ?>">
<input type="hidden" name="fitbikes" value="<? echo(implode(',', $fitbikes)); ?>">
<input type="hidden" name="motioncapture" value="<? echo(implode(',', $motioncapture)); ?>">
<input type="hidden" name="wetsuits" value="<? echo(implode(',', $wetsuits)); ?>">
<input type="hidden" name="bikes" value="<? echo(implode(',', $bikes)); ?>">
<input type="hidden" name="customs" value="<? echo(implode(',', $customs)); ?>">
<input type="hidden" name="hours" value="<? echo stripslashes(htmlspecialchars($hours)); ?>">
<input type="hidden" name="barnett" value="<? echo $barnett; ?>">
<input type="hidden" name="barnett_names" value="<? echo stripslashes(htmlspecialchars($barnett_names)); ?>">
<input type="hidden" name="ubi" value="<? echo $ubi; ?>">
<input type="hidden" name="ubi_names" value="<? echo stripslashes(htmlspecialchars($ubi_names)); ?>">
<input type="hidden" name="info" value="<? echo stripslashes(htmlspecialchars($info)); ?>">
<input type="hidden" name="directions" value="<? echo stripslashes(htmlspecialchars($directions)); ?>">
<input type="submit" name="submit" value="Edit Information" class="btn float-left" />
</form>
</div>
</div>
</div>