# Copyright (c) 2001-2005 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: place-order.bview,v 2.3 2005/08/10 15:32:53 nagler Exp $ # # Order entry # use Bivio::UI::HTML::WidgetFactory; my($_WF) = 'Bivio::UI::HTML::WidgetFactory'; view_parent('menu'); view_put(header_title => 'Enter Your Information'); view_put(menu_content => Form('OrderForm', Grid([ [ String(<<'EOF', 'warning', {cell_colspan => 2}), This a demonstration site. DO NOT ENTER REAL DATA. EOF ], [ String('Credit Card Information:', 'page_heading') ->put(cell_colspan => 2), ], [ vs_form_field('OrderForm.ECCreditCardPayment.card_number'), ], [ String('Expiration Date: ', 'form_field_label'), Join([ String('Month: ', 'form_field_label'), $_WF->create('OrderForm.card_expire_month', { enum_sort => 'get_short_desc', }), String(' Year: ', 'form_field_label'), $_WF->create('OrderForm.card_expire_year', { enum_sort => 'get_short_desc', }), ]), ], [ String('Billing Address:', 'page_heading')->put(cell_colspan => 2), ], [ String(Join([ 'Please confirm that the following Billing Address ' .'is correct and press the Continue button', ]))->put(cell_colspan => 2), ], [ vs_form_field('OrderForm.Order.bill_to_name'), ], vs_address_fields('OrderForm'), [ vs_form_field('OrderForm.ship_to_billing_address'), ], [ ImageFormButton({ image => 'continue', field => 'ok_button', alt => 'Continue', }), ], ], { string_font => 'page_text', pad => 2, })));