Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F860109
in-commerce
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Apr 30, 8:52 AM
Size
27 KB
Mime Type
text/x-diff
Expires
Fri, May 2, 8:52 AM (11 h, 32 m)
Engine
blob
Format
Raw Data
Handle
611801
Attached To
rMINC Modules.In-Commerce
in-commerce
View Options
Index: branches/5.2.x/units/helpers/ecb_currency_rates.php
===================================================================
--- branches/5.2.x/units/helpers/ecb_currency_rates.php (revision 15165)
+++ branches/5.2.x/units/helpers/ecb_currency_rates.php (revision 15166)
@@ -1,56 +1,56 @@
-<?php
-/**
-* @version $Id: currency_rates.php 14258 2011-03-16 21:43:52Z alex $
-* @package In-Commerce
-* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
-* @license Commercial License
-* This software is protected by copyright law and international treaties.
-* Unauthorized reproduction or unlicensed usage of the code of this program,
-* or any portion of it may result in severe civil and criminal penalties,
-* and will be prosecuted to the maximum extent possible under the law
-* See http://www.in-portal.org/commercial-license for copyright notices and details.
-*/
-
-defined('FULL_PATH') or die('restricted access!');
-
-class ECBCurrencyRates extends CurrencyRates {
-
- public function __construct()
- {
- $this->RateSource = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml';
-
- parent::__construct();
- }
-
- function GetRatesData()
- {
- $xml_parser = xml_parser_create();
-
- $curl_helper = $this->Application->recallObject('CurlHelper');
- /* @var $curl_helper kCurlHelper */
-
- $xml = $curl_helper->Send($this->RateSource);
-
- xml_parse_into_struct($xml_parser, $xml, $struct, $index);
- $data_res = Array();
- foreach($struct as $element)
- {
- if(isset($element['attributes']) && isset($element['attributes']['CURRENCY']))
- {
- $currency = $element['attributes']['CURRENCY'];
- $data_res[$currency]['ID'] = $currency;
- $data_res[$currency]['TARGET'] = 'EUR';
- $data_res[$currency]['UNITS'] = 1;
- $data_res[$currency]['RATE'] = ($element['attributes']['RATE'] == 0) ? 0 : 1 / $element['attributes']['RATE'];
- }
- }
- if(!$data_res['EUR'])
- {
- $data_res['EUR']['ID'] = 'EUR';
- $data_res['EUR']['UNITS'] = 1;
- $data_res['EUR']['TARGET'] = 'EUR';
- $data_res['EUR']['RATE'] = 1;
- }
- $this->ExchangeRates = $data_res;
- }
-}
+<?php
+/**
+* @version $Id$
+* @package In-Commerce
+* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
+* @license Commercial License
+* This software is protected by copyright law and international treaties.
+* Unauthorized reproduction or unlicensed usage of the code of this program,
+* or any portion of it may result in severe civil and criminal penalties,
+* and will be prosecuted to the maximum extent possible under the law
+* See http://www.in-portal.org/commercial-license for copyright notices and details.
+*/
+
+defined('FULL_PATH') or die('restricted access!');
+
+class ECBCurrencyRates extends CurrencyRates {
+
+ public function __construct()
+ {
+ $this->RateSource = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml';
+
+ parent::__construct();
+ }
+
+ function GetRatesData()
+ {
+ $xml_parser = xml_parser_create();
+
+ $curl_helper = $this->Application->recallObject('CurlHelper');
+ /* @var $curl_helper kCurlHelper */
+
+ $xml = $curl_helper->Send($this->RateSource);
+
+ xml_parse_into_struct($xml_parser, $xml, $struct, $index);
+ $data_res = Array();
+ foreach($struct as $element)
+ {
+ if(isset($element['attributes']) && isset($element['attributes']['CURRENCY']))
+ {
+ $currency = $element['attributes']['CURRENCY'];
+ $data_res[$currency]['ID'] = $currency;
+ $data_res[$currency]['TARGET'] = 'EUR';
+ $data_res[$currency]['UNITS'] = 1;
+ $data_res[$currency]['RATE'] = ($element['attributes']['RATE'] == 0) ? 0 : 1 / $element['attributes']['RATE'];
+ }
+ }
+ if(!$data_res['EUR'])
+ {
+ $data_res['EUR']['ID'] = 'EUR';
+ $data_res['EUR']['UNITS'] = 1;
+ $data_res['EUR']['TARGET'] = 'EUR';
+ $data_res['EUR']['RATE'] = 1;
+ }
+ $this->ExchangeRates = $data_res;
+ }
+}
Property changes on: branches/5.2.x/units/helpers/ecb_currency_rates.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/5.2.x/units/helpers/bank_lv_currency_rates.php
===================================================================
--- branches/5.2.x/units/helpers/bank_lv_currency_rates.php (revision 15165)
+++ branches/5.2.x/units/helpers/bank_lv_currency_rates.php (revision 15166)
@@ -1,65 +1,65 @@
-<?php
-/**
-* @version $Id: currency_rates.php 14258 2011-03-16 21:43:52Z alex $
-* @package In-Commerce
-* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
-* @license Commercial License
-* This software is protected by copyright law and international treaties.
-* Unauthorized reproduction or unlicensed usage of the code of this program,
-* or any portion of it may result in severe civil and criminal penalties,
-* and will be prosecuted to the maximum extent possible under the law
-* See http://www.in-portal.org/commercial-license for copyright notices and details.
-*/
-
-defined('FULL_PATH') or die('restricted access!');
-
-class BankLVCurrencyRates extends CurrencyRates {
-
- public function __construct()
- {
- $this->RateSource = 'http://www.bank.lv/ValutuKursi/XML/xml.cfm';
-
- parent::__construct();
- }
-
- function GetRatesData()
- {
- $xml_parser = xml_parser_create();
-
- $curl_helper = $this->Application->recallObject('CurlHelper');
- /* @var $curl_helper kCurlHelper */
-
- $xml = $curl_helper->Send($this->RateSource);
-
- xml_parse_into_struct($xml_parser, $xml, $struct, $index);
- $data_res = Array();
- $currency = '';
- foreach($struct as $element)
- {
- switch($element['tag'])
- {
- case 'ID':
- $currency = $element['value'];
- $data_res[$currency]['ID'] = $currency;
- $data_res[$currency]['TARGET'] = 'LVL';
- break;
- case 'UNITS':
- $data_res[$currency]['UNITS'] = $element['value'];
- break;
- case 'RATE':
- $data_res[$currency]['RATE'] = $element['value'];
- break;
- default:
- }
- }
-
- if(!$data_res['LVL'])
- {
- $data_res['LVL']['ID'] = 'LVL';
- $data_res['LVL']['UNITS'] = 1;
- $data_res['LVL']['TARGET'] = 'LVL';
- $data_res['LVL']['RATE'] = 1;
- }
- $this->ExchangeRates = $data_res;
- }
-}
+<?php
+/**
+* @version $Id$
+* @package In-Commerce
+* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
+* @license Commercial License
+* This software is protected by copyright law and international treaties.
+* Unauthorized reproduction or unlicensed usage of the code of this program,
+* or any portion of it may result in severe civil and criminal penalties,
+* and will be prosecuted to the maximum extent possible under the law
+* See http://www.in-portal.org/commercial-license for copyright notices and details.
+*/
+
+defined('FULL_PATH') or die('restricted access!');
+
+class BankLVCurrencyRates extends CurrencyRates {
+
+ public function __construct()
+ {
+ $this->RateSource = 'http://www.bank.lv/ValutuKursi/XML/xml.cfm';
+
+ parent::__construct();
+ }
+
+ function GetRatesData()
+ {
+ $xml_parser = xml_parser_create();
+
+ $curl_helper = $this->Application->recallObject('CurlHelper');
+ /* @var $curl_helper kCurlHelper */
+
+ $xml = $curl_helper->Send($this->RateSource);
+
+ xml_parse_into_struct($xml_parser, $xml, $struct, $index);
+ $data_res = Array();
+ $currency = '';
+ foreach($struct as $element)
+ {
+ switch($element['tag'])
+ {
+ case 'ID':
+ $currency = $element['value'];
+ $data_res[$currency]['ID'] = $currency;
+ $data_res[$currency]['TARGET'] = 'LVL';
+ break;
+ case 'UNITS':
+ $data_res[$currency]['UNITS'] = $element['value'];
+ break;
+ case 'RATE':
+ $data_res[$currency]['RATE'] = $element['value'];
+ break;
+ default:
+ }
+ }
+
+ if(!$data_res['LVL'])
+ {
+ $data_res['LVL']['ID'] = 'LVL';
+ $data_res['LVL']['UNITS'] = 1;
+ $data_res['LVL']['TARGET'] = 'LVL';
+ $data_res['LVL']['RATE'] = 1;
+ }
+ $this->ExchangeRates = $data_res;
+ }
+}
Property changes on: branches/5.2.x/units/helpers/bank_lv_currency_rates.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/5.2.x/units/helpers/frny_currency_rates.php
===================================================================
--- branches/5.2.x/units/helpers/frny_currency_rates.php (revision 15165)
+++ branches/5.2.x/units/helpers/frny_currency_rates.php (revision 15166)
@@ -1,86 +1,86 @@
-<?php
-/**
-* @version $Id: currency_rates.php 14258 2011-03-16 21:43:52Z alex $
-* @package In-Commerce
-* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
-* @license Commercial License
-* This software is protected by copyright law and international treaties.
-* Unauthorized reproduction or unlicensed usage of the code of this program,
-* or any portion of it may result in severe civil and criminal penalties,
-* and will be prosecuted to the maximum extent possible under the law
-* See http://www.in-portal.org/commercial-license for copyright notices and details.
-*/
-
-defined('FULL_PATH') or die('restricted access!');
-
-class FRNYCurrencyRates extends CurrencyRates {
-
- public function __construct()
- {
- $this->RateSource = 'http://www.ny.frb.org/markets/fxrates/FXtoXML.cfm?FEXdate=%s&FEXtime=1200';
-
- parent::__construct();
- }
-
- function GetRatesData()
- {
- $curl_helper = $this->Application->recallObject('CurlHelper');
- /* @var $curl_helper kCurlHelper */
-
- for($i = 0; $i < 10; $i++)
- {
- $time = adodb_mktime() - $i * 3600 * 24;
- $source_file = sprintf($this->RateSource, adodb_date('Y-m-d', $time));
- $xml = $curl_helper->Send($source_file);
-
- $xml_parser = xml_parser_create();
- xml_parse_into_struct($xml_parser, $xml, $struct, $index);
- foreach($struct as $element)
- {
- if($element['tag'] == 'FRBNY:DATASET')
- {
- break;
- }
- }
- if($element['type'] == 'open')
- {
- break;
- }
- }
- if($element['type'] != 'open')
- {
- return false;
- }
-
- foreach($struct as $element)
- {
- switch($element['tag'])
- {
- case 'FRBNY:SERIES':
- $currency = $element['attributes']['UNIT'];
- if($currency)
- {
- $data_res[$currency]['ID'] = $currency;
- $data_res[$currency]['UNITS'] = 1;
- }
- break;
- case 'FRBNY:CURR':
- $data_res[$currency]['TARGET'] = $element['value'];
- break;
- case 'FRBNY:OBS_VALUE':
- $data_res[$currency]['RATE'] = ($element['value'] == 0) ? 0 : 1 / $element['value'];
- break;
- default:
- }
- }
- if(!$data_res['USD'])
- {
- $data_res['USD']['ID'] = 'USD';
- $data_res['USD']['UNITS'] = 1;
- $data_res['USD']['TARGET'] = 'USD';
- $data_res['USD']['RATE'] = 1;
- }
- $this->ExchangeRates = $data_res;
- }
-
-}
+<?php
+/**
+* @version $Id$
+* @package In-Commerce
+* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
+* @license Commercial License
+* This software is protected by copyright law and international treaties.
+* Unauthorized reproduction or unlicensed usage of the code of this program,
+* or any portion of it may result in severe civil and criminal penalties,
+* and will be prosecuted to the maximum extent possible under the law
+* See http://www.in-portal.org/commercial-license for copyright notices and details.
+*/
+
+defined('FULL_PATH') or die('restricted access!');
+
+class FRNYCurrencyRates extends CurrencyRates {
+
+ public function __construct()
+ {
+ $this->RateSource = 'http://www.ny.frb.org/markets/fxrates/FXtoXML.cfm?FEXdate=%s&FEXtime=1200';
+
+ parent::__construct();
+ }
+
+ function GetRatesData()
+ {
+ $curl_helper = $this->Application->recallObject('CurlHelper');
+ /* @var $curl_helper kCurlHelper */
+
+ for($i = 0; $i < 10; $i++)
+ {
+ $time = adodb_mktime() - $i * 3600 * 24;
+ $source_file = sprintf($this->RateSource, adodb_date('Y-m-d', $time));
+ $xml = $curl_helper->Send($source_file);
+
+ $xml_parser = xml_parser_create();
+ xml_parse_into_struct($xml_parser, $xml, $struct, $index);
+ foreach($struct as $element)
+ {
+ if($element['tag'] == 'FRBNY:DATASET')
+ {
+ break;
+ }
+ }
+ if($element['type'] == 'open')
+ {
+ break;
+ }
+ }
+ if($element['type'] != 'open')
+ {
+ return false;
+ }
+
+ foreach($struct as $element)
+ {
+ switch($element['tag'])
+ {
+ case 'FRBNY:SERIES':
+ $currency = $element['attributes']['UNIT'];
+ if($currency)
+ {
+ $data_res[$currency]['ID'] = $currency;
+ $data_res[$currency]['UNITS'] = 1;
+ }
+ break;
+ case 'FRBNY:CURR':
+ $data_res[$currency]['TARGET'] = $element['value'];
+ break;
+ case 'FRBNY:OBS_VALUE':
+ $data_res[$currency]['RATE'] = ($element['value'] == 0) ? 0 : 1 / $element['value'];
+ break;
+ default:
+ }
+ }
+ if(!$data_res['USD'])
+ {
+ $data_res['USD']['ID'] = 'USD';
+ $data_res['USD']['UNITS'] = 1;
+ $data_res['USD']['TARGET'] = 'USD';
+ $data_res['USD']['RATE'] = 1;
+ }
+ $this->ExchangeRates = $data_res;
+ }
+
+}
Property changes on: branches/5.2.x/units/helpers/frny_currency_rates.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/5.2.x/units/helpers/currency_rates.php
===================================================================
--- branches/5.2.x/units/helpers/currency_rates.php (revision 15165)
+++ branches/5.2.x/units/helpers/currency_rates.php (revision 15166)
@@ -1,118 +1,118 @@
-<?php
-/**
-* @version $Id: currency_rates.php 14258 2011-03-16 21:43:52Z alex $
-* @package In-Commerce
-* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
-* @license Commercial License
-* This software is protected by copyright law and international treaties.
-* Unauthorized reproduction or unlicensed usage of the code of this program,
-* or any portion of it may result in severe civil and criminal penalties,
-* and will be prosecuted to the maximum extent possible under the law
-* See http://www.in-portal.org/commercial-license for copyright notices and details.
-*/
-
-defined('FULL_PATH') or die('restricted access!');
-
-class CurrencyRates extends kBase {
-
- var $RateSource;
- var $ExchangeRates = Array();
-
- /**
- * Creates currency rate update class
- *
- * @access public
- */
- public function __construct()
- {
- parent::__construct();
-
- $this->GetRatesData();
- }
-
- function GetRatesData()
- {
- $cache_key = 'currency_rates[%CurrSerial%]';
- $rates = $this->Application->getCache($cache_key);
- $primary = $this->Application->GetPrimaryCurrency();
-
- if ($rates === false) {
- $this->Conn->nextQueryCachable = true;
- $sql = 'SELECT ISO, RateToPrimary
- FROM ' . $this->Application->getUnitOption('curr', 'TableName') . '
- WHERE Status = ' . STATUS_ACTIVE;
- $rates = $this->Conn->Query($sql);
-
- $this->Application->setCache($cache_key, $rates);
- }
-
- foreach ($rates as $rate) {
- $this->SetRate($primary, $rate['ISO'], $rate['RateToPrimary']);
- }
- }
-
- function GetRate($source_cur, $target_cur, $units = 1)
- {
- $source_cur = ($source_cur == 'PRIMARY') ? $this->Application->GetPrimaryCurrency() : $source_cur;
- $target_cur = ($target_cur == 'PRIMARY') ? $this->Application->GetPrimaryCurrency() : $target_cur;
- if($source_cur == $target_cur)
- {
- return 1;
- }
-
- if($this->ExchangeRates[$target_cur]['TARGET'] == $source_cur)
- {
- $rate = ($this->ExchangeRates[$target_cur]['RATE'] == 0) ? false : 1 / $this->ExchangeRates[$target_cur]['RATE'];
- }
- elseif($this->ExchangeRates[$source_cur]['TARGET'] == $target_cur)
- {
- $rate = $this->ExchangeRates[$source_cur]['RATE'];
- }
- else
- {
- $rate = ($this->ExchangeRates[$target_cur]['RATE'] == 0) ? false : $this->ExchangeRates[$source_cur]['RATE'] / $this->ExchangeRates[$target_cur]['RATE'];
- }
- $rate *= $units;
- return $rate;
- }
-
- function Convert($amount, $source_cur, $target_cur)
- {
- return $amount * $this->GetRate($source_cur, $target_cur);
- }
-
- function SetRate($source_cur, $target_cur, $rate, $units = 1)
- {
- $this->ExchangeRates[$target_cur]['TARGET'] = $source_cur;
- $this->ExchangeRates[$target_cur]['ID'] = $target_cur;
- $this->ExchangeRates[$target_cur]['RATE'] = $rate;
- $this->ExchangeRates[$target_cur]['UNITS'] = $units;
- }
-
- function StoreRates($currencies=null)
- {
- $curr_object = $this->Application->recallObject('curr', null, Array ('skip_autoload' => true));
- /* @var $curr_object kDBItem */
-
- if ($currencies) {
- if (!is_array($currencies)) {
- $currencies = explode(',', $currencies);
- }
- }
- else {
- $currencies = array_keys($this->ExchangeRates);
- }
-
- foreach ($currencies as $id) {
- $rate = $this->GetRate($id, 'PRIMARY');
- if ($rate) {
- $curr_object->Clear();
- $curr_object->Load($id, 'ISO');
- $curr_object->SetDBField('RateToPrimary', $rate);
- $curr_object->SetDBField('Modified_date', adodb_mktime());
- $curr_object->SetDBField('Modified_time', adodb_mktime());
- $curr_object->Update();
- }
- }
- }
-}
+<?php
+/**
+* @version $Id$
+* @package In-Commerce
+* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
+* @license Commercial License
+* This software is protected by copyright law and international treaties.
+* Unauthorized reproduction or unlicensed usage of the code of this program,
+* or any portion of it may result in severe civil and criminal penalties,
+* and will be prosecuted to the maximum extent possible under the law
+* See http://www.in-portal.org/commercial-license for copyright notices and details.
+*/
+
+defined('FULL_PATH') or die('restricted access!');
+
+class CurrencyRates extends kBase {
+
+ var $RateSource;
+ var $ExchangeRates = Array();
+
+ /**
+ * Creates currency rate update class
+ *
+ * @access public
+ */
+ public function __construct()
+ {
+ parent::__construct();
+
+ $this->GetRatesData();
+ }
+
+ function GetRatesData()
+ {
+ $cache_key = 'currency_rates[%CurrSerial%]';
+ $rates = $this->Application->getCache($cache_key);
+ $primary = $this->Application->GetPrimaryCurrency();
+
+ if ($rates === false) {
+ $this->Conn->nextQueryCachable = true;
+ $sql = 'SELECT ISO, RateToPrimary
+ FROM ' . $this->Application->getUnitOption('curr', 'TableName') . '
+ WHERE Status = ' . STATUS_ACTIVE;
+ $rates = $this->Conn->Query($sql);
+
+ $this->Application->setCache($cache_key, $rates);
+ }
+
+ foreach ($rates as $rate) {
+ $this->SetRate($primary, $rate['ISO'], $rate['RateToPrimary']);
+ }
+ }
+
+ function GetRate($source_cur, $target_cur, $units = 1)
+ {
+ $source_cur = ($source_cur == 'PRIMARY') ? $this->Application->GetPrimaryCurrency() : $source_cur;
+ $target_cur = ($target_cur == 'PRIMARY') ? $this->Application->GetPrimaryCurrency() : $target_cur;
+ if($source_cur == $target_cur)
+ {
+ return 1;
+ }
+
+ if($this->ExchangeRates[$target_cur]['TARGET'] == $source_cur)
+ {
+ $rate = ($this->ExchangeRates[$target_cur]['RATE'] == 0) ? false : 1 / $this->ExchangeRates[$target_cur]['RATE'];
+ }
+ elseif($this->ExchangeRates[$source_cur]['TARGET'] == $target_cur)
+ {
+ $rate = $this->ExchangeRates[$source_cur]['RATE'];
+ }
+ else
+ {
+ $rate = ($this->ExchangeRates[$target_cur]['RATE'] == 0) ? false : $this->ExchangeRates[$source_cur]['RATE'] / $this->ExchangeRates[$target_cur]['RATE'];
+ }
+ $rate *= $units;
+ return $rate;
+ }
+
+ function Convert($amount, $source_cur, $target_cur)
+ {
+ return $amount * $this->GetRate($source_cur, $target_cur);
+ }
+
+ function SetRate($source_cur, $target_cur, $rate, $units = 1)
+ {
+ $this->ExchangeRates[$target_cur]['TARGET'] = $source_cur;
+ $this->ExchangeRates[$target_cur]['ID'] = $target_cur;
+ $this->ExchangeRates[$target_cur]['RATE'] = $rate;
+ $this->ExchangeRates[$target_cur]['UNITS'] = $units;
+ }
+
+ function StoreRates($currencies=null)
+ {
+ $curr_object = $this->Application->recallObject('curr', null, Array ('skip_autoload' => true));
+ /* @var $curr_object kDBItem */
+
+ if ($currencies) {
+ if (!is_array($currencies)) {
+ $currencies = explode(',', $currencies);
+ }
+ }
+ else {
+ $currencies = array_keys($this->ExchangeRates);
+ }
+
+ foreach ($currencies as $id) {
+ $rate = $this->GetRate($id, 'PRIMARY');
+ if ($rate) {
+ $curr_object->Clear();
+ $curr_object->Load($id, 'ISO');
+ $curr_object->SetDBField('RateToPrimary', $rate);
+ $curr_object->SetDBField('Modified_date', adodb_mktime());
+ $curr_object->SetDBField('Modified_time', adodb_mktime());
+ $curr_object->Update();
+ }
+ }
+ }
+}
Property changes on: branches/5.2.x/units/helpers/currency_rates.php
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: branches/5.2.x/admin_templates/users/user_address_edit.tpl
===================================================================
--- branches/5.2.x/admin_templates/users/user_address_edit.tpl (revision 15165)
+++ branches/5.2.x/admin_templates/users/user_address_edit.tpl (revision 15166)
@@ -1,74 +1,74 @@
-<inp2:adm_SetPopupSize width="750" height="570"/>
-<inp2:m_include t="incs/header" body_properties="" />
-<inp2:m_RenderElement name="combined_header" prefix="u" section="in-portal:user_list" title_preset="user_address_edit"/>
-
-<!-- ToolBar -->
-<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr>
- <td>
- <script type="text/javascript">
- a_toolbar = new ToolBar();
-
- a_toolbar.AddButton(
- new ToolBarButton(
- 'select',
- '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>',
- function() {
- submit_event('addr', '<inp2:addr_SaveEvent/>');
- }
- )
- );
-
- a_toolbar.AddButton(
- new ToolBarButton(
- 'cancel',
- '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>',
- function() {
- cancel_edit('addr','OnCancel','<inp2:addr_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>');
- }
- )
- );
-
- a_toolbar.AddButton(
- new ToolBarButton(
- 'reset_edit',
- '<inp2:m_phrase label="la_ToolTip_Reset" escape="1"/>',
- function() {
- reset_form('addr', 'OnReset', '<inp2:m_Phrase label="la_FormResetConfirmation" escape="1"/>');
- }
- )
- );
-
- a_toolbar.Render();
- </script>
- </td>
- </tr>
-</table>
-
-<inp2:addr_SaveWarning name="grid_save_warning"/>
-<inp2:addr_ErrorWarning name="form_error_warning"/>
-
-<inp2:m_RenderElement name="inp_edit_hidden" prefix="addr" field="PortalUserId"/>
-
-<div id="scroll_container">
- <table class="edit-form">
- <inp2:m_RenderElement name="inp_id_label" prefix="addr" field="AddressId" title="la_fld_Id"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="To" title="la_fld_FullName"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Company"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Email"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Phone"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Fax"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address1" title="la_fld_AddressLine1"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address2" title="la_fld_AddressLine2"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="City"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="State"/>
- <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Zip"/>
- <inp2:m_RenderElement name="inp_edit_options" prefix="addr" field="Country" has_empty="1"/>
- <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsShipping"/>
- <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsBilling"/>
- <inp2:m_RenderElement name="inp_label" prefix="addr" field="IsProfileAddress"/>
- <inp2:m_RenderElement name="inp_edit_filler" />
- </table>
-</div>
-
+<inp2:adm_SetPopupSize width="750" height="570"/>
+<inp2:m_include t="incs/header" body_properties="" />
+<inp2:m_RenderElement name="combined_header" prefix="u" section="in-portal:user_list" title_preset="user_address_edit"/>
+
+<!-- ToolBar -->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+ <tr>
+ <td>
+ <script type="text/javascript">
+ a_toolbar = new ToolBar();
+
+ a_toolbar.AddButton(
+ new ToolBarButton(
+ 'select',
+ '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>',
+ function() {
+ submit_event('addr', '<inp2:addr_SaveEvent/>');
+ }
+ )
+ );
+
+ a_toolbar.AddButton(
+ new ToolBarButton(
+ 'cancel',
+ '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>',
+ function() {
+ cancel_edit('addr','OnCancel','<inp2:addr_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>');
+ }
+ )
+ );
+
+ a_toolbar.AddButton(
+ new ToolBarButton(
+ 'reset_edit',
+ '<inp2:m_phrase label="la_ToolTip_Reset" escape="1"/>',
+ function() {
+ reset_form('addr', 'OnReset', '<inp2:m_Phrase label="la_FormResetConfirmation" escape="1"/>');
+ }
+ )
+ );
+
+ a_toolbar.Render();
+ </script>
+ </td>
+ </tr>
+</table>
+
+<inp2:addr_SaveWarning name="grid_save_warning"/>
+<inp2:addr_ErrorWarning name="form_error_warning"/>
+
+<inp2:m_RenderElement name="inp_edit_hidden" prefix="addr" field="PortalUserId"/>
+
+<div id="scroll_container">
+ <table class="edit-form">
+ <inp2:m_RenderElement name="inp_id_label" prefix="addr" field="AddressId" title="la_fld_Id"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="To" title="la_fld_FullName"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Company"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Email"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Phone"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Fax"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address1" title="la_fld_AddressLine1"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Address2" title="la_fld_AddressLine2"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="City"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="State"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="addr" field="Zip"/>
+ <inp2:m_RenderElement name="inp_edit_options" prefix="addr" field="Country" has_empty="1"/>
+ <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsShipping"/>
+ <inp2:m_RenderElement name="inp_edit_checkbox" prefix="addr" field="LastUsedAsBilling"/>
+ <inp2:m_RenderElement name="inp_label" prefix="addr" field="IsProfileAddress"/>
+ <inp2:m_RenderElement name="inp_edit_filler" />
+ </table>
+</div>
+
<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/5.2.x/admin_templates/users/user_address_edit.tpl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Event Timeline
Log In to Comment