$i++;
}
// Address Override
$customer = $log_in_manager->get_user();
$address = $customer->get_address();
$paypal_form->add_hidden_input('address_override', '1');
$paypal_form->add_hidden_input('first_name', $customer->get_first_name());
$paypal_form->add_hidden_input('last_name', $customer->get_last_name());
$paypal_form->add_hidden_input('address1', $address->get_street_address());
$paypal_form->add_hidden_input('city', $address->get_locality());
$paypal_form->add_hidden_input('zip', $address->get_postal_code());
$paypal_form->add_hidden_input('country', $address->get_country_name());
$paypal_submit_input = new HTMLTags_Input();
$paypal_submit_input->set_attribute_str('type', 'submit');
$paypal_submit_input->set_attribute_str('value', 'Go to PayPal');
$paypal_form->append_tag_to_content($paypal_submit_input);
foreach ($paypal_form->get_hidden_inputs() as $hidden_input) {
    $paypal_form->append_tag_to_content($hidden_input);
}
$paypal_form_div->append_tag_to_content($paypal_form);
/*
 * Example of address override
 */
//            <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
//                    <input type="hidden" name="cmd" value="_xclick">
//                    <input type="hidden" name="business" value="*****@*****.**">
//                    <input type="hidden" name="item_name" value="Memorex 256MB Memory Stick">
//                    <input type="hidden" name="item_number" value="MEM32507725">
//                    <input type="hidden" name="amount" value="3">
//                    <input type="hidden" name="tax" value="1">
//                    <input type="hidden" name="quantity" value="1">
    $li_force_email = new HTMLTags_LI();
    //<label for="force_email">Force email:</label>
    $label_force_email = new HTMLTags_Label('Force email: ');
    $label_force_email->set_attribute_str('for', 'force_email');
    $li_force_email->append_tag_to_content($label_force_email);
    //<input
    //    id="force_email"
    //    name="force_email"
    //    type="checkbox"
    ///>
    $input_force_email = new HTMLTags_Input();
    $input_force_email->set_attribute_str('id', 'force_email');
    $input_force_email->set_attribute_str('name', 'force_email');
    $input_force_email->set_attribute_str('type', 'checkbox');
    $li_force_email->append_tag_to_content($input_force_email);
    //<br>
    $ul_inputs->append_tag_to_content($li_force_email);
}
$form_email_adding->append_tag_to_content($ul_inputs);
$li_submit = new HTMLTags_LI();
#    <input class="submit" type="submit" name="Submit" value="Submit">
$input_submit = new HTMLTags_Input();
$input_submit->set_attribute_str('id', 'submit');
$input_submit->set_attribute_str('name', 'submit');
$input_submit->set_attribute_str('class', 'submit');
$input_submit->set_attribute_str('type', 'submit');
$input_submit->set_attribute_str('value', 'Submit');
$li_submit->append_tag_to_content($input_submit);
$ul_inputs->append_tag_to_content($li_submit);
//</form>
echo $form_email_adding->get_as_string();
                    if ($field_renderer_class_file->equals($current_field_renderer_class_file)) {
                        $option->set_attribute_str('selected');
                    }
                    $field_renderer_select->add_option($option);
                }
                $field_renderer_li->append_tag_to_content($field_renderer_select);
                $table_fields_list->add_li($field_renderer_li);
            }
            $table_li->append_tag_to_content($table_fields_list);
            $field_renderers_list->append_tag_to_content($table_li);
        }
        $d_c_n_c_field_set->append_tag_to_content($field_renderers_list);
    }
    /*
     * -------------------------------------------------------------------------
     */
    $d_c_n_c_form->append_tag_to_content($d_c_n_c_field_set);
    $commit_button = new HTMLTags_Input();
    $commit_button->set_attribute_str('type', 'submit');
    $commit_button->set_attribute_str('value', 'Commit');
    $commit_button->set_attribute_str('class', 'submit');
    $d_c_n_c_form->append_tag_to_content($commit_button);
    $cancel_button = new HTMLTags_Input();
    $cancel_button->set_attribute_str('type', 'button');
    $cancel_button->set_attribute_str('onclick', "document.location.href=('/admin/database/home.html')");
    $cancel_button->set_attribute_str('value', 'Cancel');
    $cancel_button->set_attribute_str('class', 'submit');
    $d_c_n_c_form->append_tag_to_content($cancel_button);
    $content_div->append_tag_to_content($d_c_n_c_form);
}
echo $content_div;
$protx_form = new HTMLTags_Form();
$protx_form_action = new HTMLTags_URL();
//$protx_form_action->set_file('https://ukvps.protx.com/vspgateway/service/vspform-register.vsp'); # The real thing
//$protx_form_action->set_file('https://ukvpstest.protx.com/vspgateway/service/vspform-register.vsp'); # The sandbox
$protx_form_action->set_file($strPurchaseURL);
# The URL set above
$protx_form->set_action($protx_form_action);
$protx_form->set_attribute_str('method', 'POST');
$protx_form->add_hidden_input('VPSProtocol', '2.22');
$protx_form->add_hidden_input('TxType', $strTransactionType);
$protx_form->add_hidden_input('Vendor', $strVSPVendorName);
$protx_form->add_hidden_input('Crypt', $strCrypt);
$protx_submit_input = new HTMLTags_Input();
$protx_submit_input->set_attribute_str('type', 'submit');
$protx_submit_input->set_attribute_str('value', 'Go to Secure Server');
$protx_form->append_tag_to_content($protx_submit_input);
foreach ($protx_form->get_hidden_inputs() as $hidden_input) {
    $protx_form->append_tag_to_content($hidden_input);
}
$protx_form_div->append_tag_to_content($protx_form);
/*
 * Example of ProTx Form
 */
//<form
//        action="https://ukvpstest.protx.com/vspgateway/service/vspform-register.vsp"
//        method="POST" id="VSPForm" name="VSPForm"
//        >
//        <input type="hidden" name="VPSProtocol" value="2.22">
//        <input type="hidden" name="TxType" value="PAYMENT">
//        <input type="hidden" name="Vendor" value="mash ">
//        <input type="hidden" name="Crypt" value="">
 public function get_embed_form()
 {
     $embed_form = new HTMLTags_Form();
     $embed_form->set_attribute_str('name', 'embedForm');
     $embed_form->set_attribute_str('id', 'embedForm');
     $embed_label = new HTMLTags_Label('Embed Code:');
     $embed_label->set_attribute_str('for', 'embed_code');
     $embed_form->append_tag_to_content($embed_label);
     $embed_input = new HTMLTags_Input();
     $embed_input->set_attribute_str('name', 'embed_code');
     $embed_input->set_attribute_str('class', 'embedField');
     $embed_input->set_attribute_str('value', $this->get_embed_code());
     $embed_input->set_attribute_str('onclick', 'javascript:document.embedForm.embed_code.focus();document.embedForm.embed_code.select();');
     $embed_input->set_attribute_str('readonly', 'true');
     $embed_input->set_attribute_str('type', 'text');
     $embed_form->append_tag_to_content($embed_input);
     return $embed_form;
 }
         }
     }
     $status_select->add_option($possible_status_option);
 }
 $status_li->append_tag_to_content($status_select);
 $inputs_ol->add_li($status_li);
 /*
  * The hidden inputs.
  */
 $order_status_selecting_action_get_vars = $order_status_selecting_action->get_get_variables();
 foreach (array_keys($order_status_selecting_action_get_vars) as $key) {
     $form_hidden_input = new HTMLTags_Input();
     $form_hidden_input->set_attribute_str('type', 'hidden');
     $form_hidden_input->set_attribute_str('name', $key);
     $form_hidden_input->set_attribute_str('value', $order_status_selecting_action_get_vars[$key]);
     $order_status_selecting_form->append_tag_to_content($form_hidden_input);
 }
 /*
  * The submit button.
  */
 $go_button_li = new HTMLTags_LI();
 $go_button = new HTMLTags_Input();
 $go_button->set_attribute_str('type', 'submit');
 $go_button->set_attribute_str('value', 'Go');
 $go_button->set_attribute_str('class', 'submit');
 $go_button_li->append_tag_to_content($go_button);
 $inputs_ol->add_li($go_button_li);
 $order_status_selecting_form->append_tag_to_content($inputs_ol);
 $content_div->append_tag_to_content($order_status_selecting_form);
 ####################################################################
 #
 * The form to take the query.
 */
$query_form = new HTMLTags_Form();
$query_form->set_attribute_str('id', 'query_form');
$query_form->set_attribute_str('method', 'GET');
$action_url = Admin_AdminIncluderURLFactory::get_url('haddock', 'database', 'select-viewer', 'html');
$slash_url = new HTMLTags_URL();
$slash_url->set_file('/');
$query_form->set_action($slash_url);
$get_vars = $action_url->get_get_variables();
foreach (array_keys($get_vars) as $key) {
    $hidden_input = new HTMLTags_Input();
    $hidden_input->set_attribute_str('type', 'hidden');
    $hidden_input->set_attribute_str('name', $key);
    $hidden_input->set_attribute_str('value', $get_vars[$key]);
    $query_form->append_tag_to_content($hidden_input);
}
/*
 * A list to store the inputs.
 */
$form_ul = new HTMLTags_UL();
/*
 * The query input.
 */
$query_li = new HTMLTags_LI();
$query_label = new HTMLTags_Label('Query');
$query_label->set_attribute_str('for', 'query');
$query_li->append_tag_to_content($query_label);
$query_input = new HTMLTags_TextArea();
$query_input->set_attribute_str('id', 'query');
$query_input->set_attribute_str('name', 'query');
 public function get_checkout_shipping_location_choice_for_current_session_div(HTMLTags_URL $action)
 {
     //                $locations = $this->get_shipping_locations();
     //                $shipping_location_div = new HTMLTags_Div();
     //                $location_form = new HTMLTags_Form();
     //                $location_form->set_attribute_str('name', 'shipping_location');
     //                $location_form->set_action($action);
     //                $location_form->set_attribute_str('method', 'POST');
     //                $select = new HTMLTags_Select();
     //                $select->set_attribute_str('name', 'shipping_location');
     //                foreach ($locations as $location) {
     //                        $option = new HTMLTags_Option($location['text']);
     //                        $option->set_attribute_str('value', $location['title']);
     //                        $select->add_option($option);
     //                }
     //                 Set Default Select
     //                if ($shipping_location == '')
     //                {
     //                        $select->set_value('uk');
     //                }
     //                else
     //                {
     //                        $select->set_value($shipping_location);
     //                }
     //                $location_form->append_tag_to_content($select);
     //                $submit = new HTMLTags_Input();
     //                $submit->set_attribute_str('type', 'submit');
     //                $submit->set_attribute_str('value', 'Go');
     //                $location_form->append_tag_to_content($submit);
     //                $shipping_location_div->append_tag_to_content($location_form);
     //                return $shipping_location_div;
     $shopping_baskets_table = $this->get_element();
     $database = $shopping_baskets_table->get_database();
     $customer_regions_table = $database->get_table('hpi_shop_customer_regions');
     $customer_regions = $customer_regions_table->get_all_rows('sort_order', 'ASC');
     $customer_regions_div = new HTMLTags_Div();
     $location_form = new HTMLTags_Form();
     $location_form->set_attribute_str('name', 'shipping_location');
     $location_form->set_action($action);
     $location_form->set_attribute_str('method', 'POST');
     $select = new HTMLTags_Select();
     $select->set_attribute_str('name', 'customer_region');
     foreach ($customer_regions as $customer_region) {
         $option = new HTMLTags_Option($customer_region->get_name());
         $option->set_attribute_str('value', $customer_region->get_id());
         $select->add_option($option);
     }
     if (isset($_SESSION['customer_region_id'])) {
         $select->set_value($_SESSION['customer_region_id']);
     }
     $location_form->append_tag_to_content($select);
     $submit = new HTMLTags_Input();
     $submit->set_attribute_str('type', 'submit');
     $submit->set_attribute_str('value', 'Change');
     $location_form->append_tag_to_content($submit);
     $customer_regions_div->append_tag_to_content($location_form);
     if (isset($_SESSION['customer_region_id'])) {
         $selected_customer_region = $customer_regions_table->get_row_by_id($_SESSION['customer_region_id']);
         $customer_region_description_div = new HTMLTags_P($selected_customer_region->get_description());
         $customer_regions_div->append_tag_to_content($customer_region_description_div);
     }
     return $customer_regions_div;
 }
 public static function render_body_form_add_email()
 {
     $form_email_adding = new HTMLTags_Form();
     /*
      * Form altered by RFI 2007-07-13
      */
     #$form_action = new HTMLTags_URL();
     #
     #$form_action->set_file('/');
     #
     #$form_action->set_get_variable('section', 'plug-ins');
     #$form_action->set_get_variable('module', 'mailing-list');
     #$form_action->set_get_variable('page', 'sign-up');
     #$form_action->set_get_variable('type', 'redirect-script');
     #$form_action->set_get_variable('add_person');
     #$form_action->set_get_variable('return_to', urlencode('/?section=project-specific&page=sign-up'));
     $form_action = MailingList_SignUpURLFactory::get_email_adding_redirect_script();
     #echo 'action="' . $form_action->get_as_string() . "\"\n";
     $form_email_adding->set_action($form_action);
     $form_email_adding->set_attribute_str('method', 'POST');
     //    method="POST"
     //>
     $ul_inputs = new HTMLTags_UL();
     $li_name = new HTMLTags_LI();
     //        <label for="name">Name:</label>
     $label_name = new HTMLTags_Label('Name: ');
     $label_name->set_attribute_str('for', 'name');
     $li_name->append_tag_to_content($label_name);
     //	<input class="name" name="name" type="text" id="name" value="
     $input_name = new HTMLTags_Input();
     $input_name->set_attribute_str('id', 'name');
     $input_name->set_attribute_str('name', 'name');
     $input_name->set_attribute_str('type', 'text');
     //    if ($_SESSION['name']) {
     //        echo $_SESSION['name'];
     //    }
     $input_name->set_attribute_str('value', isset($_SESSION['name']) ? $_SESSION['name'] : '');
     //" size="17" />
     #$input_name->set_attribute_str('size', 17);
     //        <br />
     $li_name->append_tag_to_content($input_name);
     $ul_inputs->add_li($li_name);
     //
     $li_email = new HTMLTags_LI();
     //	<label for="name">Email:</label>
     $label_email = new HTMLTags_Label('Email: ');
     $label_email->set_attribute_str('for', 'email');
     $li_email->append_tag_to_content($label_email);
     //	<input class="email" name="email" type="text" id="name" value="
     $input_email = new HTMLTags_Input();
     $input_email->set_attribute_str('id', 'email');
     $input_email->set_attribute_str('name', 'email');
     $input_email->set_attribute_str('type', 'text');
     //    if ($_SESSION['email']) {
     //        echo $_SESSION['email'];
     //    }
     $input_email->set_attribute_str('value', isset($_SESSION['email']) ? $_SESSION['email'] : '');
     //" size="17" />
     #$input_email->set_attribute_str('size', 17);
     //        <br>
     $li_email->append_tag_to_content($input_email);
     $ul_inputs->append_tag_to_content($li_email);
     if (isset($_GET['email_incorrect'])) {
         $li_force_email = new HTMLTags_LI();
         //<label for="force_email">Force email:</label>
         $label_force_email = new HTMLTags_Label('Force email: ');
         $label_force_email->set_attribute_str('for', 'force_email');
         $li_force_email->append_tag_to_content($label_force_email);
         //<input
         //    id="force_email"
         //    name="force_email"
         //    type="checkbox"
         ///>
         $input_force_email = new HTMLTags_Input();
         $input_force_email->set_attribute_str('id', 'force_email');
         $input_force_email->set_attribute_str('name', 'force_email');
         $input_force_email->set_attribute_str('type', 'checkbox');
         $li_force_email->append_tag_to_content($input_force_email);
         //<br>
         $ul_inputs->append_tag_to_content($li_force_email);
     }
     $form_email_adding->append_tag_to_content($ul_inputs);
     $li_submit = new HTMLTags_LI();
     #    <input class="submit" type="submit" name="Submit" value="Submit">
     $input_submit = new HTMLTags_Input();
     $input_submit->set_attribute_str('id', 'submit');
     $input_submit->set_attribute_str('name', 'submit');
     $input_submit->set_attribute_str('class', 'submit');
     $input_submit->set_attribute_str('type', 'submit');
     $input_submit->set_attribute_str('value', 'Submit');
     $li_submit->append_tag_to_content($input_submit);
     $ul_inputs->append_tag_to_content($li_submit);
     //</form>
     echo $form_email_adding->get_as_string();
 }
 private function get_enter_plu_code_form()
 {
     $enter_plu_code_form = new HTMLTags_Form();
     $enter_plu_code_form->set_attribute_str('name', 'enter_plu_code');
     $enter_plu_code_form->set_attribute_str('method', 'GET');
     $enter_plu_code_form->set_attribute_str('class', 'table-select-form');
     $enter_plu_code_form->set_action(new HTMLTags_URL('/'));
     $inputs_ol = new HTMLTags_OL();
     /*
      * Select whether you want all products or just those with status==display
      */
     $li = new HTMLTags_LI();
     $label = new HTMLTags_Label('PLU Code');
     $label->set_attribute_str('for', 'plu_code');
     $li->append_tag_to_content($label);
     $input = new HTMLTags_Input();
     $input->set_attribute_str('name', 'plu_code');
     $li->append($input);
     $inputs_ol->append($li);
     /*
      * The submit button.
      */
     $go_button_li = new HTMLTags_LI();
     $go_button = new HTMLTags_Input();
     $go_button->set_attribute_str('type', 'submit');
     $go_button->set_attribute_str('value', 'Go');
     $go_button->set_attribute_str('class', 'submit');
     $go_button_li->append_tag_to_content($go_button);
     $inputs_ol->add_li($go_button_li);
     $enter_plu_code_form->append($inputs_ol);
     /*
      * The hidden inputs.
      */
     $current_page_url = $this->get_current_page_url();
     $enter_plu_code_action = clone $current_page_url;
     $enter_plu_code_action_get_vars = $enter_plu_code_action->get_get_variables();
     foreach (array_keys($enter_plu_code_action_get_vars) as $key) {
         $form_hidden_input = new HTMLTags_Input();
         $form_hidden_input->set_attribute_str('type', 'hidden');
         $form_hidden_input->set_attribute_str('name', $key);
         $form_hidden_input->set_attribute_str('value', $enter_plu_code_action_get_vars[$key]);
         $enter_plu_code_form->append_tag_to_content($form_hidden_input);
     }
     return $enter_plu_code_form;
 }
 if ($_GET['product_category_id'] == 'all' || !isset($_GET['product_category_id'])) {
     $all_product_categories_option->set_attribute_str('selected');
 }
 $product_category_form_select->add_option($all_product_categories_option);
 $product_category_li->append_tag_to_content($product_category_form_select);
 $inputs_ol->add_li($product_category_li);
 /*
  * The hidden inputs.
  */
 $product_category_selecting_action_get_vars = $product_category_selecting_action->get_get_variables();
 foreach (array_keys($product_category_selecting_action_get_vars) as $key) {
     $form_hidden_input = new HTMLTags_Input();
     $form_hidden_input->set_attribute_str('type', 'hidden');
     $form_hidden_input->set_attribute_str('name', $key);
     $form_hidden_input->set_attribute_str('value', $product_category_selecting_action_get_vars[$key]);
     $product_category_selecting_form->append_tag_to_content($form_hidden_input);
 }
 /*
  * The submit button.
  */
 $go_button_li = new HTMLTags_LI();
 $go_button = new HTMLTags_Input();
 $go_button->set_attribute_str('type', 'submit');
 $go_button->set_attribute_str('value', 'Go');
 $go_button->set_attribute_str('class', 'submit');
 $go_button_li->append_tag_to_content($go_button);
 $inputs_ol->add_li($go_button_li);
 $product_category_selecting_form->append_tag_to_content($inputs_ol);
 $content_div->append_tag_to_content($product_category_selecting_form);
 ####################################################################
 #
 public function get_simplified_customer_and_address_adding_form(HTMLTags_URL $redirect_script_url, HTMLTags_URL $cancel_url)
 {
     /* form should just have name, email one address box and postcode, country name already filled in */
     $customers_table = $this->get_element();
     $database = $customers_table->get_database();
     //$email_addresses_table = $database->get_table('hpi_shop_email_addresses');
     $telephone_numbers_table = $database->get_table('hpi_shop_telephone_numbers');
     $addresses_table = $database->get_table('hpi_shop_addresses');
     $customer_adding_form = new HTMLTags_Form('customer_adding');
     $customer_adding_form->set_attribute_str('class', 'cmxform');
     $customer_adding_form->set_attribute_str('id', 'customer-details-form');
     $customer_adding_form->set_action($redirect_script_url);
     #$customer_adding_form = new HTMLTags_TagContent();
     #
     # The Log In Details field set.
     #
     $log_in_details_field_set = new HTMLTags_FieldSet();
     $log_in_details_field_set->append_tag_to_content(new HTMLTags_Legend('Log In Details'));
     $log_in_details_field_set_inputs_list = new HTMLTags_OL();
     /*
      * The email_address
      */
     $email_address_field = $customers_table->get_field('email_address');
     $email_address_field_renderer = $email_address_field->get_renderer();
     $input_tag = $email_address_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'email_address');
     $email_address_li = $this->get_form_li('email_address', $input_tag);
     $log_in_details_field_set_inputs_list->append_tag_to_content($email_address_li);
     /*
      * The password
      */
     $password_field = $customers_table->get_field('password');
     $password_field_renderer = $password_field->get_renderer();
     $input_tag = $password_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'password');
     $password_li = $this->get_form_li('password', $input_tag);
     $log_in_details_field_set_inputs_list->append_tag_to_content($password_li);
     $log_in_details_field_set->append_tag_to_content($log_in_details_field_set_inputs_list);
     $customer_adding_form->append_tag_to_content($log_in_details_field_set);
     #
     # The Customer field set.
     #
     $customer_details_field_set = new HTMLTags_FieldSet();
     $customer_details_field_set->append_tag_to_content(new HTMLTags_Legend('Shipping Details'));
     $customer_details_field_set_inputs_list = new HTMLTags_OL();
     /*
      * The first_name
      */
     $first_name_field = $customers_table->get_field('first_name');
     $first_name_field_renderer = $first_name_field->get_renderer();
     $input_tag = $first_name_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'first_name');
     $first_name_li = $this->get_form_li('first_name', $input_tag);
     $customer_details_field_set_inputs_list->append_tag_to_content($first_name_li);
     /*
      * The last_name
      */
     $last_name_field = $customers_table->get_field('last_name');
     $last_name_field_renderer = $last_name_field->get_renderer();
     $input_tag = $last_name_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'last_name');
     $last_name_li = $this->get_form_li('last_name', $input_tag);
     $customer_details_field_set_inputs_list->append_tag_to_content($last_name_li);
     /*
      * The telephone_number
      */
     $telephone_number_field = $telephone_numbers_table->get_field('telephone_number');
     $telephone_number_field_renderer = $telephone_number_field->get_renderer();
     $input_tag = $telephone_number_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'telephone_number');
     $telephone_number_li = $this->get_form_li('telephone_number', $input_tag);
     $customer_details_field_set_inputs_list->append_tag_to_content($telephone_number_li);
     /*
      * The full_address
      * which will be put straight into street_address		 *
      * in add_simplified_customer()
      */
     $address_li = $this->get_address_form_input_li();
     $customer_details_field_set_inputs_list->append_tag_to_content($address_li);
     /*
      * The address_postal_code
      */
     $address_field = $addresses_table->get_field('postal_code');
     $address_field_renderer = $address_field->get_renderer();
     $input_tag = $address_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'postal_code');
     $address_postal_code_li = $this->get_form_li('postal_code', $input_tag);
     $customer_details_field_set_inputs_list->append_tag_to_content($address_postal_code_li);
     /*
      * The address_country_name
      */
     $address_field = $addresses_table->get_field('country_name');
     $address_field_renderer = $address_field->get_renderer();
     $input_tag = $address_field_renderer->get_form_input();
     $input_tag->set_attribute_str('id', 'country_name');
     if (isset($_SESSION['customer_region_id'])) {
         $customer_regions_table = $database->get_table('hpi_shop_customer_regions');
         $customer_region = $customer_regions_table->get_row_by_id($_SESSION['customer_region_id']);
         $input_tag->set_attribute_str('value', $customer_region->get_name());
     }
     $address_country_name_li = $this->get_form_li('country_name', $input_tag);
     $customer_details_field_set_inputs_list->append_tag_to_content($address_country_name_li);
     $customer_details_field_set->append_tag_to_content($customer_details_field_set_inputs_list);
     $customer_adding_form->append_tag_to_content($customer_details_field_set);
     #
     # SUBMIT BUTTON
     #
     $submit_button = new HTMLTags_Input();
     $submit_button->set_attribute_str('type', 'submit');
     $submit_button->set_attribute_str('value', 'Add');
     $submit_button->set_attribute_str('class', 'submit');
     $submit_buttons_div = new HTMLTags_Div();
     $submit_buttons_div->set_attribute_str('class', 'submit_buttons_div');
     $submit_buttons_div->append_tag_to_content($submit_button);
     $cancel_button = new HTMLTags_Input();
     $onclick = 'document.location.href=(\'';
     $onclick .= $cancel_url->get_as_string();
     $onclick .= "')";
     $cancel_button->set_attribute_str('type', 'button');
     $cancel_button->set_attribute_str('value', 'Cancel');
     $cancel_button->set_attribute_str('onclick', $onclick);
     $cancel_button->set_attribute_str('class', 'submit');
     $submit_buttons_div->append_tag_to_content($cancel_button);
     $customer_adding_form->append_tag_to_content($submit_buttons_div);
     # The Fields:
     //                $last_added_id = $customers_table->add_simplified_customer(
     //                        $_POST['full_name'],
     //                        $_POST['password'],
     //                        $_POST['email_address'],
     //                        $_POST['telephone_number'],
     //                        $_POST['full_address'],
     //                        $_POST['postal_code'],
     //                        $_POST['country_name'],
     //                        $_POST['customer_region_id']
     //                )
     return $customer_adding_form;
 }