Fifth pass at adding key files
This commit is contained in:
306
site/fitters/include_edit_confirm.php
Normal file
306
site/fitters/include_edit_confirm.php
Normal file
@ -0,0 +1,306 @@
|
||||
<p>Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.</p>
|
||||
|
||||
<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[fitter_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[fitter_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[fitter_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[fitter_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[fitter_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[fitter_zip])); ?></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Lat/Lng</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
if ($geocode_error == false) {
|
||||
$latlng_string = "".$_POST[fitter_lat].", ".$_POST[fitter_lng]."";
|
||||
echo (stripslashes(htmlspecialchars($latlng_string)));
|
||||
} else {
|
||||
echo ($geocode_message);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Phone</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><? echo stripslashes(htmlspecialchars($_POST[fitter_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[fitter_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[fitter_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[fitter_website]; ?>" target="_blank"><? echo $_POST[fitter_website]; ?></a></div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Portfolio</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value"><a href="<? echo $_POST[fitter_portfolio]; ?>" target="_blank"><? echo $_POST[fitter_portfolio]; ?></a></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 (" FIT INFO ");
|
||||
for ($i = 0; $i < 25; $i++) echo("*");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Default Tri-Fit Methodology</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
$sql = ("SELECT * FROM ".$prefix."FittersMethods WHERE fitter_method_id = ".$_POST[fitter_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[fitter_method_name]");
|
||||
}
|
||||
} else {
|
||||
echo ("Unanswered");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Certifications</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
if ($_POST[fitter_certifications]) {
|
||||
$explosion = implode(",", $_POST[fitter_certifications]);
|
||||
$sql = ("SELECT * FROM ".$prefix."FittersCertifications WHERE fitter_certification_id IN ($explosion) ORDER BY fitter_certification_name ASC");
|
||||
|
||||
//echo $sql;
|
||||
|
||||
$fetch = mysql_query($sql) or die(mysql_error());
|
||||
|
||||
$certification_list = "";
|
||||
while ($list = mysql_fetch_array($fetch)) {
|
||||
$certification_list = $certification_list."$list[fitter_certification_name], ";
|
||||
}
|
||||
$certification_list = rtrim($certification_list, ', ');
|
||||
echo $certification_list;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Fit Bikes</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
if ($_POST[fitter_fitbikes]) {
|
||||
$explosion = implode(",", $_POST[fitter_fitbikes]);
|
||||
$sql = ("SELECT * FROM ".$prefix."FittersFitbikes WHERE fitter_fitbike_id IN ($explosion) ORDER BY fitter_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[fitter_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[fitter_motioncapture]) {
|
||||
$explosion = implode(",", $_POST[fitter_motioncapture]);
|
||||
|
||||
$sql = ("SELECT * FROM ".$prefix."FittersMotioncapture WHERE fitter_motioncapture_id IN ($explosion) ORDER BY fitter_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[fitter_motioncapture_name], ";
|
||||
}
|
||||
$motioncapture_list = rtrim($motioncapture_list, ', ');
|
||||
|
||||
echo $motioncapture_list;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Brand Friendly</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<?
|
||||
if ($_POST[fitter_brandfriendly]) {
|
||||
$explosion = implode(",", $_POST[fitter_brandfriendly]);
|
||||
|
||||
$sql = ("SELECT * FROM ".$prefix."FittersBrandFriendly WHERE fitter_brand_id IN ($explosion) ORDER BY fitter_brand_name ASC");
|
||||
|
||||
//echo $sql;
|
||||
|
||||
$fetch = mysql_query($sql) or die(mysql_error());
|
||||
|
||||
$brandfriendly_list = "";
|
||||
while ($list = mysql_fetch_array($fetch)) {
|
||||
$brandfriendly_list = $brandfriendly_list."$list[fitter_brand_name], ";
|
||||
}
|
||||
$brandfriendly_list = rtrim($brandfriendly_list, ', ');
|
||||
|
||||
echo $brandfriendly_list;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">Cost of Fit</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo stripslashes(htmlspecialchars($_POST[fitter_cost])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow">
|
||||
<div class="dcell name">General Info</div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<? echo strip_tags(stripslashes($_POST[fitter_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[fitter_directions])); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="drow actions">
|
||||
<div class="dcell name"></div>
|
||||
<div class="dcell divider"></div>
|
||||
<div class="dcell value">
|
||||
<form action="wiki_edit.php" method="post">
|
||||
<input type="hidden" name="fitter_name" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_name])); ?>">
|
||||
<input type="hidden" name="fitter_address" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_address])); ?>">
|
||||
<input type="hidden" name="fitter_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_address_two])); ?>">
|
||||
<input type="hidden" name="fitter_city" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_city])); ?>">
|
||||
<input type="hidden" name="fitter_state" value="<? echo $_POST[fitter_state]; ?>">
|
||||
<input type="hidden" name="fitter_zip" value="<? echo $_POST[fitter_zip]; ?>">
|
||||
<input type="hidden" name="latlng_override" value="<? echo $_POST[latlng_override]; ?>">
|
||||
<input type="hidden" name="fitter_lat" value="<? echo $_POST[fitter_lat]; ?>">
|
||||
<input type="hidden" name="fitter_lng" value="<? echo $_POST[fitter_lng]; ?>">
|
||||
<input type="hidden" name="fitter_phone" value="<? echo $_POST[fitter_phone]; ?>">
|
||||
<input type="hidden" name="fitter_fax" value="<? echo $_POST[fitter_fax]; ?>">
|
||||
<input type="hidden" name="fitter_email" value="<? echo $_POST[fitter_email]; ?>">
|
||||
<input type="hidden" name="fitter_website" value="<? echo $_POST[fitter_website]; ?>">
|
||||
<input type="hidden" name="fitter_portfolio" value="<? echo $_POST[fitter_portfolio]; ?>">
|
||||
<input type="hidden" name="fitter_method" value="<? echo $_POST[fitter_method]; ?>">
|
||||
<input type="hidden" name="fitter_certifications" value="<? echo(implode(',', $_POST[fitter_certifications])); ?>">
|
||||
<input type="hidden" name="fitter_fitbikes" value="<? echo(implode(',', $_POST[fitter_fitbikes])); ?>">
|
||||
<input type="hidden" name="fitter_motioncapture" value="<? echo(implode(',', $_POST[fitter_motioncapture])); ?>">
|
||||
<input type="hidden" name="fitter_brandfriendly" value="<? echo(implode(',', $_POST[fitter_brandfriendly])); ?>">
|
||||
<input type="hidden" name="fitter_cost" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_cost])); ?>">
|
||||
<input type="hidden" name="fitter_info" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_info])); ?>">
|
||||
<input type="hidden" name="fitter_directions" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_directions])); ?>">
|
||||
<? // need to temporary set the field as being valid ?>
|
||||
<input type="hidden" name="fitter_valid" value="1">
|
||||
<input type="hidden" name="edit_fitter" value="true">
|
||||
<input type="hidden" name="insert_fitter" value="true">
|
||||
<input type="hidden" name="fitter_submitted_by" value="<? echo $useruid; ?>" >
|
||||
|
||||
|
||||
<? if(isset($_POST[new_fitter])){ ?>
|
||||
This data will be saved as a NEW FITTER.
|
||||
<input type="hidden" name="new_fitter" value="1" />
|
||||
<input type="hidden" name="fitter_submitted_by" value="<? echo($_POST[edited_by]); ?>" />
|
||||
<? } else { ?>
|
||||
This data will be saved as a modification to the EXISTING FITTER.
|
||||
<input type="hidden" name="save_changes" value="1" />
|
||||
<input type="hidden" name="edited_by" value="<? echo($_POST[edited_by]); ?>">
|
||||
<input type="hidden" name="fitter_submitted_by" value="<? echo($_POST[fitter_submitted_by]); ?>" />
|
||||
<input type="hidden" name="fitter_id" value="<? echo($_POST[fitter_id]); ?>" />
|
||||
<? } ?>
|
||||
|
||||
<input type="submit" name="fitter_submit" value="Submit Info" class="btn float-left" style="margin-right: 5px" />
|
||||
</form>
|
||||
<form action="wiki_edit.php" method="post">
|
||||
<input type="hidden" name="fitter_name" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_name])); ?>">
|
||||
<input type="hidden" name="fitter_address" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_address])); ?>">
|
||||
<input type="hidden" name="fitter_address_two" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_address_two])); ?>">
|
||||
<input type="hidden" name="fitter_city" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_city])); ?>">
|
||||
<input type="hidden" name="fitter_state" value="<? echo $_POST[fitter_state]; ?>">
|
||||
<input type="hidden" name="fitter_zip" value="<? echo $_POST[fitter_zip]; ?>">
|
||||
<input type="hidden" name="latlng_override" value="<? echo $_POST[latlng_override]; ?>">
|
||||
<input type="hidden" name="fitter_lat" value="<? echo $_POST[fitter_lat]; ?>">
|
||||
<input type="hidden" name="fitter_lng" value="<? echo $_POST[fitter_lng]; ?>">
|
||||
<input type="hidden" name="fitter_phone" value="<? echo $_POST[fitter_phone]; ?>">
|
||||
<input type="hidden" name="fitter_fax" value="<? echo $_POST[fitter_fax]; ?>">
|
||||
<input type="hidden" name="fitter_email" value="<? echo $_POST[fitter_email]; ?>">
|
||||
<input type="hidden" name="fitter_website" value="<? echo $_POST[fitter_website]; ?>">
|
||||
<input type="hidden" name="fitter_portfolio" value="<? echo $_POST[fitter_portfolio]; ?>">
|
||||
<input type="hidden" name="fitter_method" value="<? echo $_POST[fitter_method]; ?>">
|
||||
<input type="hidden" name="fitter_certifications" value="<? echo(implode(',', $_POST[fitter_certifications])); ?>">
|
||||
<input type="hidden" name="fitter_fitbikes" value="<? echo(implode(',', $_POST[fitter_fitbikes])); ?>">
|
||||
<input type="hidden" name="fitter_motioncapture" value="<? echo(implode(',', $_POST[fitter_motioncapture])); ?>">
|
||||
<input type="hidden" name="fitter_brandfriendly" value="<? echo(implode(',', $_POST[fitter_brandfriendly])); ?>">
|
||||
<input type="hidden" name="fitter_cost" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_cost])); ?>">
|
||||
<input type="hidden" name="fitter_info" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_info])); ?>">
|
||||
<input type="hidden" name="fitter_directions" value="<? echo stripslashes(htmlspecialchars($_POST[fitter_directions])); ?>">
|
||||
<input type="hidden" name="confirm_fitter" value="0">
|
||||
<input type="hidden" name="edit_return" value="true">
|
||||
<? // need to temporary set the field as being valid ?>
|
||||
<input type="hidden" name="fitter_valid" value="1">
|
||||
<input type="hidden" name="fitter_id" value="<? echo($_POST[fitter_id]); ?>" />
|
||||
<input type="hidden" name="fitter_submitted_by" value="<? echo $submitted_by; ?>">
|
||||
<input type="submit" name="submit" value="Edit Information" class="btn" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user