function xtc_address_format($address_format_id, $address, $html, $boln, $eoln)
{
    $address_format_query = xtc_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . xtc_db_input((int) $address_format_id) . "'");
    $address_format = xtc_db_fetch_array($address_format_query);
    $company = addslashes($address['company']);
    $firstname = addslashes($address['firstname']);
    $lastname = addslashes($address['lastname']);
    $street = addslashes($address['street_address']);
    $suburb = addslashes($address['suburb']);
    $city = addslashes($address['city']);
    $state = addslashes($address['state']);
    $country_id = $address['country_id'];
    $zone_id = $address['zone_id'];
    $postcode = addslashes($address['postcode']);
    $zip = $postcode;
    $country = xtc_get_country_name($country_id);
    $state = xtc_get_zone_code($country_id, $zone_id, $state);
    if ($html) {
        // HTML Mode
        $HR = '<hr />';
        $hr = '<hr />';
        if ($boln == '' && $eoln == "\n") {
            // Values not specified, use rational defaults
            $CR = '<br />';
            $cr = '<br />';
            $eoln = $cr;
        } else {
            // Use values supplied
            $CR = $eoln . $boln;
            $cr = $CR;
        }
    } else {
        // Text Mode
        $CR = $eoln;
        $cr = $CR;
        $HR = '----------------------------------------';
        $hr = '----------------------------------------';
    }
    $statecomma = '';
    $streets = $street;
    if ($suburb != '') {
        $streets = $street . $cr . $suburb;
    }
    if ($firstname == '') {
        $firstname = addslashes($address['name']);
    }
    if ($country == '') {
        $country = addslashes($address['country']);
    }
    if ($state != '') {
        $statecomma = $state . ', ';
    }
    $fmt = $address_format['format'];
    eval("\$address = \"{$fmt}\";");
    if (ACCOUNT_COMPANY == 'true' && xtc_not_null($company)) {
        $address = $company . $cr . $address;
    }
    $address = stripslashes($address);
    return $address;
}
        ?>
&nbsp;</td>
                  <td class="dataTableContent"><?php 
        echo $customers['customers_lastname'];
        ?>
</td>
                  <td class="dataTableContent"><?php 
        echo $customers['customers_firstname'];
        ?>
</td>
                  <td class="dataTableContent hidden-xs"><?php 
        echo $customers['customers_email_address'];
        ?>
</td>
                  <td class="dataTableContent hidden-xs hidden-sm"><?php 
        echo xtc_get_country_name($customers['entry_country_id']);
        ?>
</td>
                  <?php 
        if ($umsatz['ordersum'] != '') {
            ?>
                  <td class="dataTableContent hidden-xs hidden-sm"><?php 
            if ($umsatz['ordersum'] > 0) {
                echo $currencies->format($umsatz['ordersum']);
            }
            ?>
</td>
                  <?php 
        } else {
            ?>
                  <td class="dataTableContent hidden-xs hidden-sm"> --- </td>
 if ($zone_setup != 'yes' && $zone_setup != 'no') {
     $error = true;
     $messageStack->add('install_shopinfo_step', SELECT_ZONE_SETUP_ERROR);
 }
 if ($error == false) {
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'STORE_OWNER_EMAIL_ADDRESS'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $store_name . "' WHERE configuration_key = 'STORE_NAME'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'EMAIL_FROM'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $country . "' WHERE configuration_key = 'SHIPPING_ORIGIN_COUNTRY'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $postcode . "' WHERE configuration_key = 'SHIPPING_ORIGIN_ZIP'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $company . "' WHERE configuration_key = 'STORE_OWNER'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'EMAIL_BILLING_FORWARDING_STRING'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'EMAIL_BILLING_ADDRESS'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'CONTACT_US_EMAIL_ADDRESS'");
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $email_from . "' WHERE configuration_key = 'EMAIL_SUPPORT_ADDRESS'");
     $store_name_address = $store_name . '\\n' . $street_address . '\\n' . $postcode . ' ' . $city . '\\n' . xtc_get_country_name($country) . '\\n' . $telephone_number;
     xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . $store_name_address . "' WHERE configuration_key = 'STORE_NAME_ADDRESS'");
     if ($zone_setup == 'yes') {
         // Steuersätze des jeweiligen Landes einstellen!
         $tax_normal = '';
         $tax_normal_text = '';
         $tax_special = '';
         $tax_special_text = '';
         switch ($country) {
             case '14':
                 // Austria
                 $tax_normal = '20.0000';
                 $tax_normal_text = 'UST 20%';
                 $tax_special = '10.0000';
                 $tax_special_text = 'UST 10%';
                 break;
    if ($entry_city_error == true) {
        $city_content = xtc_draw_input_fieldNote(array('name' => 'a_city', 'text' => '&nbsp;' . ENTRY_CITY_ERROR));
    } else {
        $city_content = $a_city . xtc_draw_hidden_field('a_city');
    }
} else {
    $city_content = xtc_draw_input_fieldNote(array('name' => 'a_city', 'text' => '&nbsp;' . ENTRY_CITY_TEXT), $affiliate['affiliate_city']);
}
$module_smarty->assign('city_content', $city_content);
if ($is_read_only == true) {
    $country_id_content = xtc_get_country_name($affiliate['affiliate_country_id']);
} elseif ($error == true) {
    if ($entry_country_error == true) {
        $country_id_content = xtc_get_country_list(array('name' => 'a_country', 'text' => '&nbsp;' . ENTRY_COUNTRY_ERROR));
    } else {
        $country_id_content = xtc_get_country_name($a_country) . xtc_draw_hidden_field('a_country');
    }
} else {
    $country_id_content = xtc_get_country_list(array('name' => 'a_country', 'text' => '&nbsp;' . ENTRY_COUNTRY_TEXT), $affiliate['affiliate_country_id']);
}
$module_smarty->assign('country_id_content', $country_id_content);
if (ACCOUNT_STATE == 'true') {
    $module_smarty->assign('ACCOUNT_STATE', 'true');
    $state = xtc_get_zone_name($a_country, $a_zone_id, $a_state);
    if ($is_read_only == true) {
        $state_content = xtc_get_zone_name($affiliate['affiliate_country_id'], $affiliate['affiliate_zone_id'], $affiliate['affiliate_state']);
    } elseif ($error == true) {
        if ($entry_state_error == true) {
            if ($entry_state_has_zones == true) {
                $zones_array = array();
                $zones_query = xtc_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . xtc_db_input($a_country) . "' order by zone_name");
?>
                    <div class="col-xs-12">
                      <div class="col-sm-2 col-xs-12 main"><?php 
echo ENTRY_COUNTRY;
?>
</div>
                      <div class="col-sm-10 col-xs-12 main">
                        <?php 
if (isset($error) && $error == true) {
    if (isset($entry_country_error) && $entry_country_error == true) {
        echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(xtc_get_country_name(STORE_COUNTRY)), isset($entry_country_id) ? $entry_country_id : '') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
    } else {
        echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(xtc_get_country_name(STORE_COUNTRY)), isset($entry_country_id) ? $entry_country_id : '');
    }
} else {
    echo xtc_draw_pull_down_menu('entry_country_id', xtc_get_countries(xtc_get_country_name(STORE_COUNTRY)), isset($entry_country_id) ? $entry_country_id : '');
}
?>
                      </div>
                    </div>
                  </table>
                </div>
              </div>
            <div class='col-xs-12'>
                <hr>
                <p class="h3">
                   <?php 
echo CATEGORY_CONTACT;
?>
                </p>
                <hr>