Evidence-based, Multicultural Activities

 

Purchase Test

<?php
// Begin Class —————————————————————————-
// ———————————————————————————————-
require("class_mindfull.php");
// End Class ——————————————————————————
// ———————————————————————————————-
?>

<form action="<?php bloginfo(‘url’); ?>/purchase/test_send" name="form_purchase" method="post" onKeyPress="if (event.keyCode==13) event.returnValue = false;">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><table cellpadding="0" cellspacing="2" bgcolor="#cccccc" style="border: 1px solid rgb(0, 0, 0);">
<tbody>
<tr>
<td>First Name:</td>
<td><input name="first_name" class="form_1" size="25" type="" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input name="last_name" class="form_1" size="25" type="" /></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td>Address 1:</td>
<td><input name="address1" class="form_1" size="25" type="" /></td>
</tr>
<tr>
<td>Address 2:</td>
<td><input name="address2" class="form_1" size="25" type="" /></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td>City:</td>
<td><input name="city" class="form_1" size="25" type="" /></td>
</tr>
<tr>
<td>State:</td>
<td><select name="state" class="form_1">
<option value="">– Choose State –</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select></td>
</tr>
<tr>
<td>Zip Code:</td>
<td><input name="zip" class="form_1" size="20" type="" /></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><table cellpadding="2" cellspacing="2" border="0" width="100%">
<tr>
<th colspan="2"><strong>Product Selection</strong></th>
<th><strong>Quantity</strong></th>
</tr>
<?php
$purchase_management_ini = new purchase_management;
$product_list = $purchase_management_ini->generate_product_list();
foreach($purchase_management_ini->product_array as $product_key => $product_value)
{
if (!current_user_can(edit_posts) AND $purchase_management_ini->product_array[$product_key]["posonly"] == "y")
{
echo "";
}
else
{
?>
<tr>
<td><input name="<?php echo $purchase_management_ini->product_array[$product_key]["prefix"] ?>add_item" value="y" type="checkbox" /></td>
<td><?php echo $purchase_management_ini->product_array[$product_key]["item_name"] ?> <span style="font-size:xx-small;">($<?php echo $purchase_management_ini->product_array[$product_key]["price"] ?> ea)</span></td>
<td><input name="<?php echo $purchase_management_ini->product_array[$product_key]["prefix"] ?>quantity" class="form_1" value="1" size="10" type="" /></td>
</tr>
<?php
}
}
?>
</table></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<?php
if (current_user_can(edit_posts))
{
?>
<tr>
<td>Check/MoneyOrder:</td>
<td style="" valign="middle"><input name="prepaid" class="form_1" size="15" value="0.00" type="text" /></td>
</tr>
<tr>
<td>Tax Rate:</td>
<td style="" valign="middle"><input name="adjusted_tax_rate" class="form_1" size="20" value="0.0000" type="text" />%</td>
</tr>
<?php
}
?>
<script language="JavaScript">
function check_box()
{
if (document.form_purchase.tax_exempt_number.value=="")
{
document.form_purchase.tax_exempt.checked=false;
}
else
{
document.form_purchase.tax_exempt.checked=true;
}
}
</script>
<tr>
<td>Tax Exempt:</td>
<td style="" valign="middle"><input name="tax_exempt" value="y" type="checkbox" />&nbsp;Yes&nbsp;<span style="font-size: 9px;">(Exemption number below)</span></td>
</tr>
<tr>
<td>Exemption#:</td>
<td style="" valign="middle"><input name="tax_exempt_number" onBlur="check_box();" class="form_1" size="25" type="text" /></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2" align="right" valign="middle"><img src="<?php bloginfo(‘url’); ?>/images/cc.gif" style="border: 1px solid rgb(255, 255, 255);" alt="" align="middle" border="0" />
<input name="sub_purchase" onClick="validate();" value="CONTINUE" style="border: 1px solid rgb(255, 255, 255); background-color: rgb(128, 0, 0); color: rgb(255, 255, 255); margin:2px 0 0 2px;" class="submit" align="middle" type="button" /></td>
</tr>
</tbody>
</table></td>
<td style="padding: 0px 0px 0px 20px;text-align:justify;" valign="top" width="280"><p>Purchasing our products is easy. Simply fill in the fields in the form to the left and press Continue.</p>
<p>You will be taken to an order confirmation page where you can review your order and then use your own Paypal account or VISA, MASTERCARD, AMEX, or DISCOVER credit cards to securely purchase our games.</p>
<p>Residents of Missouri will be charged 6.075% sales tax unless tax exempt.</p></td>
</tr>
</tbody>
</table>
</form>