function showOrderEntryForm($data, $badFields = array()) { formHeader("", "", "orderEntry", "void"); customerFields($data, $badFields); orderFields($data, $badFields); if (inWordPress()) { echo getWordpressHiddenFormField(); } tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Order!"), "right"))); formFooter("orderEntryForm"); }
function showShippingForm($data, $action, $badFields = array()) { prepDatePicker(); formHeader($action, "<h1>Shipping Info Form</h1>", "shippingForm", "void"); shippingFields($data, $badFields); tableRow(array(tableData(""), tableData(""), tableData(""), tableData(""), tableData(""), tableData(submit("Enter Shipping Details!"), "right"))); if (inWordPress()) { echo getWordpressHiddenFormField(); } formFooter("shippingForm"); }
function orderConfirmation($OID) { if (inWordPress()) { echo "<script> window.location.href = \"?page_id=130&oid={$OID}\"; </script>"; } else { echo "<P align=\"center\">\n"; echo '<table border="1" width=50%><tr><td align="center">'; echo '<b>Your order has been submitted!</b><br>'; echo "<input type=\"button\" value=\"Back\" onclick=\"window.top.location.href='http://www.thechapr.com';\"><P>"; echo '<em>Be careful if you use the back button in your browser, your form will re-appear and you may enter the order twice!</em>'; echo "</tr></td></table>\n"; } }