/** @package admin::functions @author Loaded Commerce @copyright Copyright 2003-2014 Loaded Commerce, LLC @copyright Portions Copyright 2003 osCommerce @license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt @version $Id: lc_cfg_set_zones_pulldown_menu.php v1.0 2013-08-08 datazen $ */ function lc_cfg_set_zones_pulldown_menu($default, $key = null) { global $lC_Database; $css_class = 'class="input with-small-padding"'; $args = func_get_args(); if (count($args) > 2 && strpos($args[0], 'class') !== false) { $css_class = $args[0]; $default = $args[1]; $key = $args[2]; } if (isset($_GET['plugins'])) { $name = !empty($key) ? 'plugins[' . $key . ']' : 'plugins_value'; } else { $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value'; } $zones_array = array(); $Qcountry = $lC_Database->query('select configuration_value from :table_configuration where configuration_key = :configuration_key'); $Qcountry->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qcountry->bindValue(':configuration_key', 'STORE_COUNTRY'); $Qcountry->execute(); foreach (lC_Address::getZones($Qcountry->value('configuration_value')) as $zone) { $zones_array[] = array('id' => $zone['id'], 'text' => $zone['name'], 'group' => $zone['country_name']); } return lc_draw_pull_down_menu($name, $zones_array, $default, $css_class); }
public function __construct() { global $lC_Language; $this->_page_title = $lC_Language->get('heading_title'); if (!empty($_GET[$this->_module]) && is_numeric($_GET[$this->_module])) { $this->_page_contents = 'zones.php'; $this->_page_title = lC_Address::getCountryName($_GET[$this->_module]); } }
/** * Correctly format an address to the address format rule assigned to its country * * @param array $address An array (or address_book ID) containing the address information * @param string $new_line The string to break new lines with * @access public * @return string */ public static function format($address, $new_line = null) { global $lC_Database; $address_format = ''; if (is_numeric($address)) { $Qaddress = $lC_Database->query('select ab.entry_firstname as firstname, ab.entry_lastname as lastname, ab.entry_company as company, ab.entry_street_address as street_address, ab.entry_suburb as suburb, ab.entry_city as city, ab.entry_postcode as postcode, ab.entry_state as state, ab.entry_zone_id as zone_id, ab.entry_country_id as country_id, z.zone_code as zone_code, c.countries_name as country_title from :table_address_book ab left join :table_zones z on (ab.entry_zone_id = z.zone_id), :table_countries c where ab.address_book_id = :address_book_id and ab.entry_country_id = c.countries_id'); $Qaddress->bindTable(':table_address_book', TABLE_ADDRESS_BOOK); $Qaddress->bindTable(':table_zones', TABLE_ZONES); $Qaddress->bindTable(':table_countries', TABLE_COUNTRIES); $Qaddress->bindInt(':address_book_id', $address); $Qaddress->execute(); $address = $Qaddress->toArray(); } $firstname = $lastname = ''; if (isset($address['firstname']) && !empty($address['firstname'])) { $firstname = $address['firstname']; $lastname = $address['lastname']; } elseif (isset($address['name']) && !empty($address['name'])) { $firstname = $address['name']; } $state = $address['state']; $state_code = $address['zone_code']; if (isset($address['zone_id']) && is_numeric($address['zone_id']) && $address['zone_id'] > 0) { $state = lC_Address::getZoneName($address['zone_id']); $state_code = lC_Address::getZoneCode($address['zone_id']); } $country = $address['country_title']; if (empty($country) && isset($address['country_id']) && is_numeric($address['country_id']) && $address['country_id'] > 0) { $country = lC_Address::getCountryName($address['country_id']); } if (isset($address['format']) && strlen($address['format']) > 4) { $address_format = $address['format']; } elseif (isset($address['country_id']) && is_numeric($address['country_id']) && $address['country_id'] > 0) { $address_format = lC_Address::getFormat($address['country_id']); } if (empty($address_format)) { $address_format = ":name\n:street_address\n:postcode :city\n:country"; } $find_array = array('/\\:name\\b/', '/\\:street_address\\b/', '/\\:suburb\\b/', '/\\:city\\b/', '/\\:postcode\\b/', '/\\:state\\b/', '/\\:state_code\\b/', '/\\:country\\b/'); $replace_array = array(lc_output_string_protected($firstname . ' ' . $lastname), lc_output_string_protected($address['street_address']), lc_output_string_protected($address['suburb']), lc_output_string_protected($address['city']), lc_output_string_protected($address['postcode']), lc_output_string_protected($state), lc_output_string_protected($state_code), lc_output_string_protected($country)); $formated = preg_replace($find_array, $replace_array, $address_format); if (ACCOUNT_COMPANY > -1 && !empty($address['company'])) { $formated = lc_output_string_protected($address['company']) . "\n" . $formated; } if (!empty($new_line)) { $formated = str_replace("\n", $new_line, $formated); } return $formated; }
/** @package admin::functions @author Loaded Commerce @copyright Copyright 2003-2014 Loaded Commerce, LLC @copyright Portions Copyright 2003 osCommerce @license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt @version $Id: lc_cfg_set_countries_pulldown_menu.php v1.0 2013-08-08 datazen $ */ function lc_cfg_set_countries_pulldown_menu($default, $key = null) { $css_class = 'class="input with-small-padding"'; $args = func_get_args(); if (count($args) > 2 && strpos($args[0], 'class') !== false) { $css_class = $args[0]; $default = $args[1]; $key = $args[2]; } if (isset($_GET['plugins'])) { $name = !empty($key) ? 'plugins[' . $key . ']' : 'plugins_value'; } else { $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value'; } $countries_array = array(); foreach (lC_Address::getCountries() as $country) { $countries_array[] = array('id' => $country['id'], 'text' => $country['name']); } return lc_draw_pull_down_menu($name, $countries_array, $default, $css_class); }
public static function getEntryFormData($zaid) { global $lC_Language; $lC_Language->loadIniFile('zone_groups.php'); $result = array(); $countries_array = array('' => $lC_Language->get('all_countries')); foreach (lC_Address::getCountries() as $country) { $countries_array[$country['id']] = $country['name']; } $result['countriesArray'] = $countries_array; $result['zonesArray'] = array('0' => $lC_Language->get('all_zones')); if (isset($zaid) && $zaid != null) { $result['zoneData'] = lC_Zone_groups_Admin::getEntry($zaid); } return $result; }
<h3 class="no-margin-top no-margin-bottom"><?php echo $lC_Language->get('box_ordering_steps_delivery'); ?> </h3> </div> <div class="panel-body no-padding-bottom"> <div class="row"> <div class="col-sm-4 col-lg-4"> <div class="well relative no-padding-bottom"> <h4 class="no-margin-top"><?php echo $lC_Language->get('ship_to_address'); ?> </h4> <address> <?php echo lC_Address::format($lC_ShoppingCart->getShippingAddress(), '<br />'); ?> </address> <div class="checkbox"> <input type="checkbox" name="shipto_as_billable" id="shipto_as_billable"><label class="small-margin-left"><?php echo $lC_Language->get('billable_address_checkbox'); ?> </label> </div> <div class="btn-group clearfix absolute-top-right small-padding-right small-padding-top"> <button type="button" onclick="document.location.href='<?php echo lc_href_link(FILENAME_CHECKOUT, 'shipping_address', 'SSL'); ?> '" class="btn btn-default btn-xs"><?php echo $lC_Language->get('button_edit');
public static function getCountriesDropdownArray() { global $lC_Language; $countries_array = array(array('id' => '', 'text' => $lC_Language->get('pull_down_default'))); foreach (lC_Address::getCountries() as $country) { $countries_array[] = array('id' => $country['id'], 'text' => $country['name']); } return $countries_array; }
<div class="col-sm-12 col-lg-12"> <h3 class="no-margin-top"><?php echo $lC_Language->get('address_book_title'); ?> </h3> <?php $Qaddresses = lC_AddressBook::getListing(); while ($Qaddresses->next()) { echo '<div class="well relative">' . "\n"; echo ' <address class="no-margin-bottom">' . "\n"; echo $Qaddresses->valueProtected('firstname') . ' ' . $Qaddresses->valueProtected('lastname'); if ($Qaddresses->valueInt('address_book_id') == $lC_Customer->getDefaultAddressID()) { echo ' <small class="margin-left"><i>' . $lC_Language->get('primary_address_marker') . '</i></small>'; } echo ' <br />' . "\n"; echo lC_Address::format($Qaddresses->toArray(), '<br />'); echo ' </address>' . "\n"; ?> <div class="btn-group clearfix absolute-top-right-large-padding"> <form action="<?php echo lc_href_link(FILENAME_ACCOUNT, 'address_book=' . $Qaddresses->valueInt('address_book_id') . '&edit', 'SSL'); ?> " class="display-inline" method="post"><button onclick="$(this).closest('form').submit();" type="button" class="btn btn-default btn-xs"><?php echo $lC_Language->get('button_edit'); ?> </button></form> <form action="<?php echo lc_href_link(FILENAME_ACCOUNT, 'address_book=' . $Qaddresses->valueInt('address_book_id') . '&delete', 'SSL'); ?> " class="display-inline" method="post"><button onclick="$(this).closest('form').submit();" type="button" class="btn btn-default btn-xs"><?php echo $lC_Language->get('button_delete');
} ?> </p> </div> <?php } ?> <div class="well relative no-padding-bottom"> <h4 class="no-margin-top"><?php echo $lC_Language->get('bill_to_address'); ?> </h4> <address> <?php echo lC_Address::format(lC_Success::getBillingAddress($oID, $lC_Customer->getID()), '<br />'); ?> </address> </div> <div class="well relative clearfix small-padding-top small-padding-bottom"> <h4><?php echo $lC_Language->get('payment_method_heading'); ?> </h4> <p><?php echo lC_Success::getPaymentMethod($oID); ?> </p> </div> <div class="well relative clearfix small-padding-top small-padding-bottom">
public function sendEmail($id) { global $lC_Database, $lC_Language, $lC_Currencies, $lC_ShoppingCart; $Qorder = $lC_Database->query('select * from :table_orders where orders_id = :orders_id limit 1'); $Qorder->bindTable(':table_orders', TABLE_ORDERS); $Qorder->bindInt(':orders_id', $id); $Qorder->execute(); if ($Qorder->numberOfRows() === 1) { $email_order = STORE_NAME . "\n" . $lC_Language->get('email_order_separator') . "\n" . sprintf($lC_Language->get('email_order_order_number'), $id) . "\n" . sprintf($lC_Language->get('email_order_invoice_url'), lc_href_link(FILENAME_ACCOUNT, 'receipt=' . $id, 'SSL', false, true, true)) . "\n" . sprintf($lC_Language->get('email_order_date_ordered'), lC_DateTime::getLong()) . "\n\n" . $lC_Language->get('email_order_products') . "\n" . $lC_Language->get('email_order_separator') . "\n"; $Qproducts = $lC_Database->query('select orders_products_id, products_model, products_sku, products_name, products_price, products_tax, products_quantity from :table_orders_products where orders_id = :orders_id order by orders_products_id'); $Qproducts->bindTable(':table_orders_products', TABLE_ORDERS_PRODUCTS); $Qproducts->bindInt(':orders_id', $id); $Qproducts->execute(); while ($Qproducts->next()) { $skuModel = $Qproducts->value('products_model') != NULL ? $Qproducts->value('products_model') : NULL; if ($skuModel == NULL) { $skuModel == ($Qproducts->value('products_sku') != NULL) ? $Qproducts->value('products_sku') : NULL; } $email_order .= $Qproducts->valueInt('products_quantity') . ' x ' . $Qproducts->value('products_name') . ' (' . $skuModel . ') = ' . $lC_Currencies->displayPriceWithTaxRate($Qproducts->value('products_price'), $Qproducts->value('products_tax'), $Qproducts->valueInt('products_quantity'), false, $Qorder->value('currency'), $Qorder->value('currency_value')) . "\n"; $Qvariants = $lC_Database->query('select group_title, value_title from :table_orders_products_variants where orders_id = :orders_id and orders_products_id = :orders_products_id order by id'); $Qvariants->bindTable(':table_orders_products_variants', TABLE_ORDERS_PRODUCTS_VARIANTS); $Qvariants->bindInt(':orders_id', $id); $Qvariants->bindInt(':orders_products_id', $Qproducts->valueInt('orders_products_id')); $Qvariants->execute(); while ($Qvariants->next()) { $email_order .= "\t" . $Qvariants->value('group_title') . ': ' . $Qvariants->value('value_title') . "\n"; } } unset($Qproducts); unset($Qvariants); $email_order .= $lC_Language->get('email_order_separator') . "\n"; $Qtotals = $lC_Database->query('select title, text from :table_orders_total where orders_id = :orders_id order by sort_order'); $Qtotals->bindTable(':table_orders_total', TABLE_ORDERS_TOTAL); $Qtotals->bindInt(':orders_id', $id); $Qtotals->execute(); while ($Qtotals->next()) { $email_order .= strip_tags($Qtotals->value('title') . ' ' . $Qtotals->value('text')) . "\n"; } unset($Qtotals); if (lc_empty($Qorder->value('delivery_name')) === false && lc_empty($Qorder->value('delivery_street_address')) === false) { $address = array('name' => $Qorder->value('delivery_name'), 'company' => $Qorder->value('delivery_company'), 'street_address' => $Qorder->value('delivery_street_address'), 'suburb' => $Qorder->value('delivery_suburb'), 'city' => $Qorder->value('delivery_city'), 'state' => $Qorder->value('delivery_state'), 'zone_code' => $Qorder->value('delivery_state_code'), 'country_title' => $Qorder->value('delivery_country'), 'country_iso2' => $Qorder->value('delivery_country_iso2'), 'country_iso3' => $Qorder->value('delivery_country_iso3'), 'postcode' => $Qorder->value('delivery_postcode'), 'format' => $Qorder->value('delivery_address_format')); $email_order .= "\n" . $lC_Language->get('email_order_delivery_address') . "\n" . $lC_Language->get('email_order_separator') . "\n" . lC_Address::format($address) . "\n"; unset($address); } $address = array('name' => $Qorder->value('billing_name'), 'company' => $Qorder->value('billing_company'), 'street_address' => $Qorder->value('billing_street_address'), 'suburb' => $Qorder->value('billing_suburb'), 'city' => $Qorder->value('billing_city'), 'state' => $Qorder->value('billing_state'), 'zone_code' => $Qorder->value('billing_state_code'), 'country_title' => $Qorder->value('billing_country'), 'country_iso2' => $Qorder->value('billing_country_iso2'), 'country_iso3' => $Qorder->value('billing_country_iso3'), 'postcode' => $Qorder->value('billing_postcode'), 'format' => $Qorder->value('billing_address_format')); $email_order .= "\n" . $lC_Language->get('email_order_billing_address') . "\n" . $lC_Language->get('email_order_separator') . "\n" . lC_Address::format($address) . "\n\n"; unset($address); $Qstatus = $lC_Database->query('select orders_status_name from :table_orders_status where orders_status_id = :orders_status_id and language_id = :language_id'); $Qstatus->bindTable(':table_orders_status', TABLE_ORDERS_STATUS); $Qstatus->bindInt(':orders_status_id', $Qorder->valueInt('orders_status')); $Qstatus->bindInt(':language_id', $lC_Language->getID()); $Qstatus->execute(); $email_order .= sprintf($lC_Language->get('email_order_status'), $Qstatus->value('orders_status_name')) . "\n" . $lC_Language->get('email_order_separator') . "\n"; unset($Qstatus); $Qstatuses = $lC_Database->query('select date_added, comments from :table_orders_status_history where orders_id = :orders_id and comments != "" order by orders_status_history_id'); $Qstatuses->bindTable(':table_orders_status_history', TABLE_ORDERS_STATUS_HISTORY); $Qstatuses->bindInt(':orders_id', $id); $Qstatuses->execute(); while ($Qstatuses->next()) { $email_order .= lC_DateTime::getLong($Qstatuses->value('date_added')) . "\n\t" . wordwrap(str_replace("\n", "\n\t", $Qstatuses->value('comments')), 60, "\n\t", 1) . "\n\n"; } unset($Qstatuses); if (is_object($lC_ShoppingCart)) { $email_order .= $lC_Language->get('email_order_payment_method') . "\n" . $lC_Language->get('email_order_separator') . "\n"; $email_order .= $Qorder->value('payment_method') . "\n\n"; /*if (isset($this->email_footer)) { $email_order .= $this->email_footer . "\n\n"; }*/ } lc_email($Qorder->value('customers_name'), $Qorder->value('customers_email_address'), $lC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { lc_email('', SEND_EXTRA_ORDER_EMAILS_TO, $lC_Language->get('email_order_subject'), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } unset($Qorder); }
?> </h1> <?php if ($lC_MessageStack->size('create') > 0) { echo '<div class="message-stack-container alert alert-danger small-margin-bottom small-margin-left">' . $lC_MessageStack->get('create') . '</div>' . "\n"; } ?> <div class="row"> <div class="col-sm-6 col-lg-6"> <h3 class="small-margin-top"><?php echo $lC_Language->get('selected_address_title'); ?> </h3> <div class="well"> <address class="small-margin-bottom no-margin-top"><?php echo lC_Address::format(preg_replace('/[^0-9]/', '', $_GET['address_book']), '<br />'); ?> </address> </div> </div> <div class="col-sm-6 col-lg-6"> <h3 class="small-margin-top"><?php echo $lC_Language->get('address_book_delete_address_title'); ?> </h3> <div class="well"> <p><?php echo $lC_Language->get('address_book_delete_address_description'); ?> </p>
<?php $radio_buttons = 0; $Qaddresses = $lC_Template->getListing(); while ($Qaddresses->next()) { echo '<table class="table no-margin-bottom content-checkout-address-selection-table">'; if ($Qaddresses->valueInt('address_book_id') == $lC_ShoppingCart->getShippingAddress('id') || lC_AddressBook::numberOfEntries() == 1) { echo '<tr class="module-row-selected cursor-pointer" id="default-selected" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo '<tr class="module-row cursor-pointer" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td class=""><span class="strong"><?php echo $Qaddresses->valueProtected('firstname') . ' ' . $Qaddresses->valueProtected('lastname'); ?> </span><br /><small><?php echo str_replace($Qaddresses->valueProtected('firstname') . ' ' . $Qaddresses->valueProtected('lastname') . ', ', '', lC_Address::format($Qaddresses->toArray(), ', ')); ?> </small></td> <td class="text-right"><?php echo lc_draw_radio_field('address', $Qaddresses->valueInt('address_book_id'), $lC_ShoppingCart->getShippingAddress('id'), 'id="address_' . $radio_buttons . '"', ''); ?> </td> </tr> </table> <?php $radio_buttons++; } ?> </div> <?php }
public static function getZonesField() { global $lC_Database, $lC_Language, $lC_Template, $entry_state_has_zones; if (isset($_GET['new']) && $_GET['new'] == 'save' || isset($_GET['edit']) && $_GET['edit'] == 'save' || isset($_GET[$lC_Template->getModule()]) && $_GET[$lC_Template->getModule()] == 'process') { if ($entry_state_has_zones === true) { $Qzones = $lC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name'); $Qzones->bindTable(':table_zones', TABLE_ZONES); $Qzones->bindInt(':zone_country_id', $_POST['country']); $Qzones->execute(); $zones_array = array(); while ($Qzones->next()) { $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name')); } $output = lc_draw_pull_down_menu('state', $zones_array); } else { $output = lc_draw_input_field('state'); } } else { if (isset($Qentry)) { $zone = $Qentry->value('entry_state'); if ($Qentry->valueInt('entry_zone_id') > 0) { $zone = lC_Address::getZoneName($Qentry->valueInt('entry_zone_id')); } } $output = lc_draw_input_field('state', isset($Qentry) ? $zone : null); } return $output; }
/** @package catalog @author Loaded Commerce @copyright Copyright 2003-2014 Loaded Commerce, LLC @copyright Portions Copyright 2003 osCommerce @license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt @version $Id: account.php v1.0 2013-08-08 datazen $ */ $_SERVER['SCRIPT_FILENAME'] = __FILE__; require 'includes/application_top.php'; if ($lC_Customer->isLoggedOn() === false) { if (!empty($_GET)) { $first_array = array_slice($_GET, 0, 1); } if (empty($_GET) || !empty($_GET) && !in_array(lc_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten'))) { $lC_NavigationHistory->setSnapshot(); lc_redirect(lc_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); } } // VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW $lC_Language->load('account'); if ($lC_Services->isStarted('breadcrumb')) { $lC_Breadcrumb->add($lC_Language->get('breadcrumb_my_account'), lc_href_link(FILENAME_ACCOUNT, null, 'SSL')); } $lC_Template = lC_Template::setup('account'); $countries_array = array(array('id' => '', 'text' => $lC_Language->get('pull_down_default'))); foreach (lC_Address::getCountries() as $country) { $countries_array[] = array('id' => $country['id'], 'text' => $country['name']); } require $lC_Vqmod->modCheck('templates/' . $lC_Template->getCode() . '.php'); require $lC_Vqmod->modCheck('includes/application_bottom.php');
<td><?php echo '<a href="mailto:' . $lC_Order->getCustomer('email_address') . '"><u>' . $lC_Order->getCustomer('email_address') . '</u></a>'; ?> </td> </tr> </table></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td><b><?php echo $lC_Language->get('subsection_shipping_address'); ?> </b></td> </tr> <tr> <td><?php echo lC_Address::format($lC_Order->getDelivery(), '<br />'); ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td><b><?php echo $lC_Language->get('subsection_payment_method');
public static function formData($id = null) { global $lC_Database, $lC_Language, $_module; $lC_Language->loadIniFile('customers.php'); $result = array(); $Qgroups = $lC_Database->query('select customers_group_id, customers_group_name from :table_customers_groups where language_id = :language_id order by customers_group_name'); $Qgroups->bindTable(':table_customers_groups', TABLE_CUSTOMERS_GROUPS); $Qgroups->bindInt(':language_id', $lC_Language->getID()); $Qgroups->execute(); $groups_array = array(); while ($Qgroups->next()) { $groups_array[$Qgroups->value('customers_group_id')] = $Qgroups->value('customers_group_name'); } $result['groupsArray'] = $groups_array; if ($id != null) { $result['customerData'] = lC_Customers_Admin::getData($id); $Qaddresses = lC_Customers_Admin::getAddressBookData($id); $cnt = 0; $result['addressBook'] = ''; $body .= '<ul class="list spaced">'; while ($Qaddresses->next()) { $primary = $result['customerData']['customers_default_address_id'] == $Qaddresses->valueInt('address_book_id') ? 'true' : 'false'; $body .= '<li class="">'; $body .= '<span class="button-group compact float-right">' . ' <a href="' . ((int) ($_SESSION['admin']['access'][$_module] < 3) ? '#' : 'javascript://" onclick="editAddress(\'' . $Qaddresses->valueInt('address_book_id') . '\', \'' . $primary . '\')') . '" class="button icon-pencil' . ((int) ($_SESSION['admin']['access'][$_module] < 3) ? ' disabled' : NULL) . '">' . $lC_Language->get('icon_edit') . '</a>' . ' <a href="' . ((int) ($_SESSION['admin']['access'][$_module] < 4) ? '#' : 'javascript://" onclick="deleteAddress(\'' . $Qaddresses->valueInt('address_book_id') . '\')') . '" class="button icon-trash with-tooltip' . ((int) ($_SESSION['admin']['access'][$_module] < 4) ? ' disabled' : NULL) . '" title="' . $lC_Language->get('icon_delete') . '"></a>' . '</span>'; if (ACCOUNT_GENDER > -1) { switch ($Qaddresses->value('gender')) { case 'm': $body .= '<span>' . lc_icon_admin('male.png') . '</span>'; break; case 'f': $body .= '<span>' . lc_icon_admin('female.png') . '</span>'; break; default: $body .= '<span>' . lc_icon_admin('people.png') . '</span>'; break; } } else { $body .= '<span>' . lc_icon_admin('people.png') . '</span>'; } $body .= '<span class="small-margin-left">' . lC_Address::format($Qaddresses->toArray(), ' <br /> ') . '</span>'; if ($primary == 'true') { $body .= '<small class="tag small-margin-left purple-gradient glossy" style="position:absolute; top:12px; right:88px;">' . $lC_Language->get('primary_address') . '</small>'; } $body .= '<span class="icon-phone icon-blue" style="position:absolute; top:17px; left:200px;">'; if (!lc_empty($Qaddresses->valueProtected('telephone_number'))) { $body .= $Qaddresses->valueProtected('telephone_number'); } else { $body .= '<small class="tag silver-gradient glossy"><i>' . $lC_Language->get('no_telephone_number') . '</i></small>'; } $body .= '</span>'; $body .= '<span class="icon-printer icon-orange" style="position:absolute; top:46px; left:200px;">'; if (!lc_empty($Qaddresses->valueProtected('fax_number'))) { $body .= $Qaddresses->valueProtected('fax_number'); } else { $body .= '<small class="tag silver-gradient glossy"><i>' . $lC_Language->get('no_fax_number') . '</i></small>'; } $body .= '</span>'; $body .= '</li>'; $cnt++; } $body .= '</ul>'; $result['addressBook'] = $body; // set default country to store country $country_id = STORE_COUNTRY; $Qzones = $lC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name'); $Qzones->bindTable(':table_zones', TABLE_ZONES); $Qzones->bindInt(':zone_country_id', $country_id); $Qzones->execute(); $zones_array = array(); while ($Qzones->next()) { $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name')); } $result['abState'] = lc_draw_pull_down_menu('ab_state', $zones_array, null, 'class="input with-small-padding" style="width:73%;"'); } $countries_array = array(); foreach (lC_Address::getCountries() as $country) { $countries_array[$country['id']] = $country['name']; } $result['countriesArray'] = $countries_array; return $result; }
echo $lC_Language->get('receipt_billing_address_title'); ?> </strong><br/> <?php echo lC_Address::format($order->billing, '<br />'); ?> </address> </div> <div class="col-sm-3 col-lg-3"> <address> <strong><?php echo $lC_Language->get('receipt_delivery_address_title'); ?> </strong><br/> <?php echo lC_Address::format($order->delivery, '<br />'); ?> </address> </div> <div class="col-sm-6 col-lg-6"> <div class="well text-right"> <h3 class="no-margin-top"><?php echo $lC_Language->get('receipt_order_number_title'); ?> <?php echo $_GET['receipt']; ?> </h3> <div><strong><?php echo $lC_Language->get('receipt_order_date_title'); ?>