return dbResult else: return {'status' : 'success', 'message' : 'query successful', 'result' : 0} form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data,'product_categories','product_categories_admin',0,0) ecommerce.title("Product Categories Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Product Categories Administration') ecommerce.subHeading('Edit Product Categories Values') ecommerce.formSetup("product_categories_admin","product_categories_admin","return submitForm(document.product_categories_admin)",declarations.store_info['db_name']) dbResult = ecommerce.connectDB(form["uHidden"].value, form["pHidden"].value,declarations.store_info['db_name'])
'label' : 'Add Quantity', \ 'type' : 'INT4', \ 'db_size' : '4', \ 'form_size' : '3', \ 'default' : '0', \ 'display' : 'editable', \ 'value' : '', \ 'display_order' : 2, \ 'validation_routine' : 'valid_integer', \ 'validation_arguments' : ['form.add_quantity',"''","'Quantity to Add'","false"], \ 'leaveFocus' : "checkBlankField(this, 'Quantity')", \ 'gainFocus' : "displayHint('Enter the quantity of product to add')", \ 'format' : "####" \ } ecommerce.generate_form_javascript(table_data,'orders','order_admin',0) table_data = declarations.define_tables() ecommerce.title("Order Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Order Administration') ecommerce.subHeading('Edit Order') ecommerce.formSetup("order_admin","order_admin","return submitForm(document.order_admin)",declarations.store_info['db_name'])
'result': 0 } form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data, 'sales_tax_by_state', 'sales_tax_admin', 0, 0) ecommerce.title("Sales Tax Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Sales Tax Administration') ecommerce.subHeading('Edit Sales Tax Data') ecommerce.formSetup("sales_tax_admin", "sales_tax_admin", "return submitForm(document.sales_tax_admin)", declarations.store_info['db_name'])
return dbResult else: return {'status' : 'success', 'message' : 'query successful', 'result' : 0} form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data,'order_status_values','order_status_values_admin',0,0) ecommerce.title("Order Status Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Order Status Administration') ecommerce.subHeading('Edit Order Statuss') ecommerce.formSetup("order_status_values_admin","order_status_values_admin","return submitForm(document.order_status_values_admin)",declarations.store_info['db_name']) dbResult = ecommerce.connectDB(form["uHidden"].value, form["pHidden"].value,declarations.store_info['db_name'])
return dbResult else: return {'status' : 'success', 'message' : 'query successful', 'result' : 0} form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data,'shipping_methods','shipping_methods_admin',0,0) ecommerce.title("Shipping Methods Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Shipping Methods Administration') ecommerce.subHeading('Edit Shipping Methods') ecommerce.formSetup("shipping_methods_admin","shipping_methods_admin","return submitForm(document.shipping_methods_admin)",declarations.store_info['db_name']) dbResult = ecommerce.connectDB(form["uHidden"].value, form["pHidden"].value,declarations.store_info['db_name'])
return dbResult else: return {'status' : 'success', 'message' : 'query successful', 'result' : 0} form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data,'payment_methods','payment_methods_admin',0,0) ecommerce.title("Payment Method Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Payment Method Administration') ecommerce.subHeading('Edit Payment Methods') ecommerce.formSetup("payment_methods_admin","payment_methods_admin","return submitForm(document.payment_methods_admin)",declarations.store_info['db_name']) dbResult = ecommerce.connectDB(form["uHidden"].value, form["pHidden"].value,declarations.store_info['db_name'])
'result': 0 } form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data, 'properties', 'property_admin', 0, 0) ecommerce.title("Property Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Property Administration') ecommerce.subHeading('Edit Property') ecommerce.formSetup("property_admin", "property_admin", "return submitForm(document.property_admin)", declarations.store_info['db_name'])
'result': 0 } form = ecommerce.getFormData() if form.has_key("action"): if form["action"].value == "edit": table_data = declarations.define_tables() print "<HTML>" print "<HEAD>" ecommerce.generate_form_javascript(table_data, 'store_info', 'store_admin', 0, 0) ecommerce.title("Store Info Administration") print "</HEAD>" ecommerce.bodySetup() ecommerce.mainHeading('Store Info Administration') ecommerce.subHeading('Edit Store Infos') ecommerce.formSetup("store_admin", "store_admin", "return submitForm(document.store_admin)", declarations.store_info['db_name'])