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

325 lines
14 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"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
for ($i = 0; $i < 10; $i++) echo("*");
echo (" TECHNOLOGY, COMMUNITY &amp; EDUCATION ");
for ($i = 0; $i < 10; $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">Diagnostic Equipment</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[diagnostics]) {
$implosion = implode(",", $_POST[diagnostics]);
$sql = ("SELECT * FROM ".$prefix."RunshopsDiagnostics WHERE diagnostic_id IN ($implosion) ORDER BY diagnostic_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$diagnostic_list = "";
while ($row = mysql_fetch_array($results)) {
$diagnostic_list = $diagnostic_list."$row[diagnostic_name], ";
}
$diagnostic_list = rtrim($diagnostic_list, ', ');
echo $diagnostic_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">Running Shoes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[shoes]) {
$implosion = implode(",", $_POST[shoes]);
$sql = ("SELECT * FROM ".$prefix."RunshopsShoes WHERE shoe_id IN ($implosion) ORDER BY shoe_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$shoe_list = "";
while ($row = mysql_fetch_array($results)) {
$shoe_list = $shoe_list."$row[shoe_name], ";
}
$shoe_list = rtrim($shoe_list, ', ');
echo $shoe_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Socks</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[socks]) {
$implosion = implode(",", $_POST[socks]);
$sql = ("SELECT * FROM ".$prefix."RunshopsSocks WHERE sock_id IN ($implosion) ORDER BY sock_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$sock_list = "";
while ($row = mysql_fetch_array($results)) {
$sock_list = $sock_list."$row[sock_name], ";
}
$sock_list = rtrim($sock_list, ', ');
echo $sock_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Run Focused Apparel</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[apparel_run]) {
$implosion = implode(",", $_POST[apparel_run]);
$sql = ("SELECT * FROM ".$prefix."RunshopsApparelRun WHERE apparel_run_id IN ($implosion) ORDER BY apparel_run_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$apparel_run_list = "";
while ($row = mysql_fetch_array($results)) {
$apparel_run_list = $apparel_run_list."$row[apparel_run_name], ";
}
$apparel_run_list = rtrim($apparel_run_list, ', ');
echo $apparel_run_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Tri-Focused Apparel</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[apparel_tri]) {
$implosion = implode(",", $_POST[apparel_tri]);
$sql = ("SELECT * FROM ".$prefix."RunshopsApparelTri WHERE apparel_tri_id IN ($implosion) ORDER BY apparel_tri_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$apparel_tri_list = "";
while ($row = mysql_fetch_array($results)) {
$apparel_tri_list = $apparel_tri_list."$row[apparel_tri_name], ";
}
$apparel_tri_list = rtrim($apparel_tri_list, ', ');
echo $apparel_tri_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name">Swim Gear</div>
<div class="dcell divider"></div>
<div class="dcell value">
<?
if ($_POST[swimgear]) {
$implosion = implode(",", $_POST[swimgear]);
$sql = ("SELECT * FROM ".$prefix."ResourceSwimgear WHERE swimgear_id IN ($implosion) ORDER BY swimgear_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$swimgear_list = "";
while ($row = mysql_fetch_array($results)) {
$swimgear_list = $swimgear_list."$row[swimgear_name], ";
}
$swimgear_list = rtrim($swimgear_list, ', ');
echo $swimgear_list;
}
?>
</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 ".$prefix."ResourceWetsuit WHERE wetsuit_id IN ($implosion) ORDER BY wetsuit_name ASC");
$results = mysql_query($sql) or die(mysql_error());
$wetsuit_list = "";
while ($row = mysql_fetch_array($results)) {
$wetsuit_list = $wetsuit_list."$row[wetsuit_name], ";
}
$wetsuit_list = rtrim($wetsuit_list, ', ');
echo $wetsuit_list;
}
?>
</div>
</div>
<div class="drow">
<div class="dcell name"></div>
<div class="dcell divider"></div>
<div class="dcell value">
<? for ($i = 0; $i < 60; $i++) echo("*"); ?>
</div>
</div>
<div class="drow">
<div class="dcell name">Store 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">Runs &amp; Classes</div>
<div class="dcell divider"></div>
<div class="dcell value">
<? echo strip_tags(stripslashes($_POST[classes])) ?>
</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="contact" value="<? echo $_POST[contact]; ?>">
<input type="hidden" name="contact_names" value="<? echo stripslashes(htmlspecialchars($_POST[contact_names])); ?>">
<input type="hidden" name="diagnostics" value="<? echo(implode(',', $_POST[diagnostics])); ?>">
<input type="hidden" name="shoes" value="<? echo(implode(',', $_POST[shoes])); ?>">
<input type="hidden" name="socks" value="<? echo(implode(',', $_POST[socks])); ?>">
<input type="hidden" name="apparel_run" value="<? echo(implode(',', $_POST[apparel_run])); ?>">
<input type="hidden" name="apparel_tri" value="<? echo(implode(',', $_POST[apparel_tri])); ?>">
<input type="hidden" name="swimgear" value="<? echo(implode(',', $_POST[swimgear])); ?>">
<input type="hidden" name="wetsuits" value="<? echo(implode(',', $_POST[wetsuits])); ?>">
<input type="hidden" name="hours" value="<? echo stripslashes(htmlspecialchars($_POST[hours])); ?>">
<input type="hidden" name="classes" value="<? echo stripslashes(htmlspecialchars($_POST[classes])); ?>">
<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($_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="contact" value="<? echo $_POST[contact]; ?>">
<input type="hidden" name="contact_names" value="<? echo stripslashes(htmlspecialchars($_POST[contact_names])); ?>">
<input type="hidden" name="diagnostics" value="<? echo(implode(',', $_POST[diagnostics])); ?>">
<input type="hidden" name="shoes" value="<? echo(implode(',', $_POST[shoes])); ?>">
<input type="hidden" name="socks" value="<? echo(implode(',', $_POST[socks])); ?>">
<input type="hidden" name="apparel_run" value="<? echo(implode(',', $_POST[apparel_run])); ?>">
<input type="hidden" name="apparel_tri" value="<? echo(implode(',', $_POST[apparel_tri])); ?>">
<input type="hidden" name="swimgear" value="<? echo(implode(',', $_POST[swimgear])); ?>">
<input type="hidden" name="wetsuits" value="<? echo(implode(',', $_POST[wetsuits])); ?>">
<input type="hidden" name="hours" value="<? echo stripslashes(htmlspecialchars($_POST[hours])); ?>">
<input type="hidden" name="classes" value="<? echo stripslashes(htmlspecialchars($_POST[classes])); ?>">
<input type="hidden" name="info" value="<? echo stripslashes(htmlspecialchars($_POST[info])); ?>">
<input type="hidden" name="directions" value="<? echo stripslashes(htmlspecialchars($_POST[directions])); ?>">
<input type="submit" name="submit" value="Edit Information" class="btn float-left">
</form>
</div>
</div>
</div>