Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <modification>
- <id>OPA</id>
- <vqmver>1.0.8</vqmver>
- <version>1.85</version>
- <author>Poniyoco</author>
- <file name="admin/view/template/catalog/product_form.tpl">
- <operation>
- <search position="after" index="1"><![CDATA[<?php echo $header; ?>]]></search>
- <add><![CDATA[<?php echo '<span style="font-weight:bold;padding:2px;padding-right:4px;padding-left:2px;display:inline;margin-right:15px;background-color:#ebf9fe;float:right;">OPA v1.85</span>'; ?>]]></add>
- </operation>
- </file>
- <file name="catalog/controller/checkout/cart.php">
- <operation>
- <search position="before" index="1"><![CDATA[$product_options = $this->model_catalog_product->getProductOptions($this->request->post['product_id']);]]></search>
- <add><![CDATA[
- $product_id = $this->request->post['product_id'];
- $this->session->data['OTFCart'] = array();
- if(!$option) {
- $key = (int)$product_id;
- } else {
- $key = (int)$product_id . ':' . base64_encode(serialize($option));
- }
- $this->session->data['OTFCart_CFODebug'] = "";
- $this->session->data['OTFCart_CFODebugFormulas'] = "";
- $this->session->data['OTFCart_CFOReporting'] = "";
- $this->session->data['OTFCart_CFOForceFail'] = "";
- $this->session->data['OTFCart'][$key] = (int)$quantity;
- $product_data = $this->cart->getProducts("OTF");
- $this->session->data['OTFCart'] = array();
- if($this->session->data['OTFCart_CFOForceFail']!="") {
- $json['error'] = "Formula Forced to Fail via CFO";
- }
- ]]></add>
- </operation>
- <operation>
- <search position="before" index="1"><![CDATA[public function index() {]]></search>
- <add><![CDATA[
- public function esponi_OTF() {
- $this->load->model('catalog/product');
- $result_OTF = "0";
- $resultText_OTF = "0xOPAx0xOPAx0xOPAx0xOPAx0";
- $product_id = 0;
- $this->session->data['OTFCart_CFODebug'] = "";
- if (isset($this->request->post['product_id'])) {
- $product_id = (int) $this->request->post['product_id'];
- }
- if (!empty($product_id)) {
- $product_info = $this->model_catalog_product->getProduct($product_id);
- if ($product_info) {
- // Minimum quantity validation
- $quantity = 1;
- if (isset($this->request->post['quantity'])) {
- $quantity = (int) $this->request->post['quantity'];
- }
- if (!$quantity) {
- $quantity = 1;
- }
- $product_total = 0;
- if ($product_info['minimum'] > ($product_total + $quantity)) {
- $result_OTF = "FAIL";
- }
- // Option validation
- $option = array();
- if (isset($this->request->post['option'])) {
- $option = array_filter((array) $this->request->post['option']);
- }
- $product_options = $this->model_catalog_product->getProductOptions($product_id);
- foreach ($product_options as $product_option) {
- if(!($product_option['type']=='file')) {
- if ($product_option['required'] && (!isset($this->request->post['option'][$product_option['product_option_id']]) ||
- !$this->request->post['option'][$product_option['product_option_id']])) {
- $result_OTF = "FAIL";
- }
- }
- }
- }
- if (!($result_OTF=="FAIL")) {
- //
- // ESPONI: on-the-fly get price
- $cartTotal_OTF = 0;
- $this->session->data['OTFCart'] = array();
- if(!$option) {
- $key = (int)$product_id;
- } else {
- $key = (int)$product_id . ':' . base64_encode(serialize($option));
- }
- $this->session->data['OTFCart_CFODebug'] = "";
- $this->session->data['OTFCart_CFODebugFormulas'] = "";
- $this->session->data['OTFCart_CFOReporting'] = "";
- $this->session->data['OTFCart_CFOForceFail'] = "";
- $this->session->data['OTFCart'][$key] = (int)$quantity;
- $product_data = $this->cart->getProducts("OTF");
- $this->session->data['OTFCart'] = array();
- foreach ($product_data as $product) {
- $cartTotal_OTF = $cartTotal_OTF + $product["price"];
- }
- $resultText_OTF = $this->currency->format($this->tax->calculate($cartTotal_OTF, $product_info['tax_class_id'], $this->config->get('config_tax')));
- $resultText_OTF = $resultText_OTF . "xOPAx" . $this->currency->format($cartTotal_OTF);
- $resultText_OTF = $resultText_OTF . "xOPAx" . $quantity;
- $resultText_OTF = $resultText_OTF . "xOPAx" . $this->currency->format($this->tax->calculate(($cartTotal_OTF * $quantity), $product_info['tax_class_id'], $this->config->get('config_tax')));
- $resultText_OTF = $resultText_OTF . "xOPAx" . $this->currency->format($cartTotal_OTF * $quantity);
- //
- //
- $result_OTF = "Ok";
- }
- }
- // Show site if logged in as admin
- $this->load->library('user');
- $this->user = new User($this->registry);
- $esponi_isAdmin = $this->user->isLogged() && $this->user->hasPermission('modify', 'catalog/product');
- //
- // $esponi_isAdmin = true;
- //
- $esponi_result = $result_OTF . "xOPAx" . $resultText_OTF . "xOPAx" . $this->request->get['timestamp'] . "xOPAx" . (($esponi_isAdmin)?$this->session->data['OTFCart_CFODebug']:"off");
- $esponi_result = $esponi_result . "xOPAx";
- if(isset($this->session->data['OTFCart_CFOReporting'])) {
- $esponi_result = $esponi_result . $this->session->data['OTFCart_CFOReporting'];
- }
- $this->response->setOutput($esponi_result);
- }
- ]]></add>
- </operation>
- </file>
- <file name="system/library/cart.php">
- <operation>
- <search position="replace" index="1"><![CDATA[public function getProducts() {]]></search>
- <add><![CDATA[public function getProducts($mode = "NORMAL") {]]></add>
- </operation>
- <operation>
- <search position="after" index="1"><![CDATA[public function getProducts(]]></search>
- <add><![CDATA[
- if($mode=="OTF") {
- $esponi_data = $this->session->data['OTFCart'];
- } else {
- $esponi_data = $this->session->data['cart'];
- }
- ]]></add>
- </operation>
- <operation>
- <search position="replace" index="1"><![CDATA[foreach ($this->session->data['cart'] as $key => $quantity) {]]></search>
- <add><![CDATA[foreach ($esponi_data as $key => $quantity) {]]></add>
- </operation>
- <operation>
- <search position="replace" index="1"><![CDATA[foreach ($this->session->data['cart'] as $key_2 => $quantity_2) {]]></search>
- <add><![CDATA[foreach ($esponi_data as $key_2 => $quantity_2) {]]></add>
- </operation>
- </file>
- <file name="catalog/view/theme/default/template/product/product.tpl">
- <operation>
- <search position="replace" index="1"><![CDATA[<div class="product-info">]]></search>
- <add><![CDATA[<div class="product-info" id="product_add_to_cart_form">]]></add>
- </operation>
- <operation>
- <search position="before" index="1"><![CDATA[<div class="cart">]]></search>
- <add><![CDATA[
- <?php
- $this->language->load('product/product');
- $esponiExTaxText = $this->language->get('text_tax');
- ?>
- <div id="esponi_OTF_Container">
- <div id="esponi_OTF">
- <span id="esponi_OTF_LeftColumn">
- <span id="esponi_OTF_UnitText"><?php $this->language->load('product/product'); echo $this->language->get('text_price'); ?></span>
- <span id="esponi_OTF_UnitTextExtTax" class='price-tax' style='font-weight:normal; display:none;'><?php echo $esponiExTaxText; ?></span>
- <span id="esponi_OTF_TotalText"><?php $this->language->load('checkout/cart'); echo $this->language->get('column_total'); ?>:</span>
- <span id="esponi_OTF_TotalTextExtTax" class='price-tax' style='font-weight:normal; display:none;'><?php echo $esponiExTaxText; ?></span>
- </span>
- <span id="esponi_OTF_RightColumn">
- <span id="esponi_OTF_Unit"></span>
- <span id="esponi_OTF_Total"></span>
- </span>
- </div>
- <?php $this->language->load('product/product'); ?>
- </div>
- <div id="esponi_OTF_CFODebug" style="overflow:hidden; display:none;"></div>
- <div id="esponi_OTF_CFOReporting"></div>
- ]]></add>
- </operation>
- <operation>
- <search position="after" index="1"><![CDATA[id="content"]]></search>
- <add><![CDATA[
- <script type="text/javascript">
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // Special Configurations (values true or false)
- var showUnitPriceAboveAvailableOptions = true; // if you set to false it will show under addtocart button
- var showExTaxPrices = true; // Prices without taxes will be shown under price and total values
- var alwaysHideCFODebugBlock = false; // Will be shown if you have installed CFO extension and you are admin user, but you can override
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //
- //
- var timestamp = 0;
- var last_esponi_data = [];
- $(document).ready(function() {
- var back_PriceAboveAvailableOptions;
- back_PriceAboveAvailableOptions = $('#product_add_to_cart_form div[class=\'price\']').html();
- back_PriceAboveAvailableOptions = "<span id='esponidefaultPrice'>" + back_PriceAboveAvailableOptions + "</span>";
- $('#product_add_to_cart_form div[class=\'price\']').html(back_PriceAboveAvailableOptions);
- if(showUnitPriceAboveAvailableOptions) {
- $('#product_add_to_cart_form div[class=\'price\']').append($('#esponi_OTF_Container'));
- } else {
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_Container'));
- }
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_CFODebug'));
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_CFOReporting')); // Below quantity and "add to cart" button
- $('#product_add_to_cart_form input[type=\'radio\'], #product_add_to_cart_form input[type=\'checkbox\'], #product_add_to_cart_form select').bind("change", function(){ esponi_OTF($(this)); });
- $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form textarea').bind("keyup", function(){ esponi_OTF($(this)); });
- $('#product_add_to_cart_form input[type=\'hidden\']').bind("change", function(){ esponi_OTF($(this)); });
- $("#product_add_to_cart_form a.dd-option").bind("click", function(){ esponi_OTF($(this)); });
- });
- function esponi_OTF(el) {
- try {
- var esponi_name = el.prop("name");
- if(esponi_name.substr(0, 11)=="ESPONI_CHK_") return;
- }
- catch(err) { }
- var esponi_data = $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form input[type=\'hidden\'], #product_add_to_cart_form input[type=\'radio\']:checked, #product_add_to_cart_form input[type=\'checkbox\']:checked, #product_add_to_cart_form select, #product_add_to_cart_form textarea');
- if(esponi_specArrayCompare(last_esponi_data, esponi_data)) {
- return;
- }
- last_esponi_data = esponi_specArrayCopy(esponi_data);
- timestamp = timestamp + 1;
- blurStand("blur");
- blurStandReporting("blur");
- $.ajax({
- url: 'index.php?route=checkout/cart/esponi_OTF×tamp=' + timestamp,
- type: 'post',
- data: esponi_data,
- dataType: 'html',
- success: function(rhtml) {
- if(rhtml!="") {
- recv = rhtml.split("xOPAx");
- if(recv.length>0) {
- thisok = recv[0];
- thisunit = recv[1];
- thisunitextax = recv[2];
- thisqt = recv[3];
- thistotal = recv[4];
- thistotalextax = recv[5];
- thistimestamp = recv[6];
- thisdebug = recv[7];
- }
- if(thistimestamp==timestamp) {
- if(thisok=="Ok") {
- if(!showExTaxPrices) {
- $('#esponi_OTF_Unit').html(thisunit);
- $('#esponi_OTF_Total').html(thistotal);
- } else {
- $('#esponi_OTF_Unit').html(thisunit + "<BR><span class='price-tax' style='font-weight:normal;'>" + thisunitextax + "</span>");
- $('#esponi_OTF_Total').html(thistotal + "<BR><span class='price-tax' style='font-weight:normal;'>" + thistotalextax + "</span>");
- }
- //
- // show Unit Price Above Available Options?
- if(showUnitPriceAboveAvailableOptions) {
- $('#esponidefaultPrice').css("display", "none");
- }
- //
- //
- if(!(thisqt=="1")) {
- $('#esponi_OTF_Unit').css("display","block");
- $('#esponi_OTF_UnitText').css("display","block");
- $('#esponi_OTF_Total').css("display","block");
- $('#esponi_OTF_TotalText').css("display","block");
- } else {
- $('#esponi_OTF_Unit').css("display","block");
- $('#esponi_OTF_UnitText').css("display","block");
- $('#esponi_OTF_Total').css("display","none");
- $('#esponi_OTF_TotalText').css("display","none");
- }
- //
- //
- if(showExTaxPrices) {
- if($('#esponi_OTF_Unit').css("display")=="block") {
- $('#esponi_OTF_UnitTextExtTax').css("display","block");
- } else {
- $('#esponi_OTF_UnitTextExtTax').css("display","none");
- }
- if($('#esponi_OTF_Total').css("display")=="block") {
- $('#esponi_OTF_TotalTextExtTax').css("display","block");
- } else {
- $('#esponi_OTF_TotalTextExtTax').css("display","none");
- }
- }
- //
- //
- if(alwaysHideCFODebugBlock) thisdebug="off";
- if(!(thisdebug=="off" || thisdebug=="")) {
- $('#esponi_OTF_CFODebug').html(thisdebug);
- $('#esponi_OTF_CFODebug').css("display","block");
- } else {
- $('#esponi_OTF_CFODebug').html('');
- $('#esponi_OTF_CFODebug').css("display","none");
- }
- $('#esponi_OTF').css("display","block");
- blurStand("show");
- } else {
- esponi_hideAll();
- if(showUnitPriceAboveAvailableOptions) {
- $('#esponidefaultPrice').css("display", "block");
- }
- }
- if(thisok=="Ok" && recv.length>7) {
- if(recv[8]!="") {
- $('#esponi_OTF_CFOReporting').html(recv[8]);
- blurStandReporting("show");
- } else {
- blurStandReporting("hide");
- $('#esponi_OTF_CFOReporting').html('');
- }
- } else {
- blurStandReporting("hide");
- $('#esponi_OTF_CFOReporting').html('');
- }
- // -
- }
- }
- }
- });
- }
- function esponi_hideAll() {
- $('#esponi_OTF').css("display","none");
- $('#esponi_OTF_Unit').css("display","none");
- $('#esponi_OTF_UnitText').css("display","none");
- $('#esponi_OTF_Total').css("display","none");
- $('#esponi_OTF_TotalText').css("display","none");
- $('#esponi_OTF_Unit').html('');
- $('#esponi_OTF_Total').html('');
- $('#esponi_OTF_CFODebug').html('');
- $('#esponi_OTF_CFODebug').css("display","none");
- }
- function blurStand(state) {
- if($('#esponi_OTF').css("display")=="block") {
- if(state=="blur") {
- ealpha = 0.45;
- } else {
- ealpha = 1;
- }
- if($('#esponi_OTF_Unit').css("display")=="block") $('#esponi_OTF_Unit').fadeTo(150, ealpha);
- if($('#esponi_OTF_Total').css("display")=="block") $('#esponi_OTF_Total').fadeTo(150, ealpha);
- }
- }
- function blurStandReporting(state) {
- if(state=="hide") {
- $('#esponi_OTF_CFOReporting').css("display","none");
- return;
- }
- if(state=="show") {
- $('#esponi_OTF_CFOReporting').css("display","block");
- }
- if($('#esponi_OTF_CFOReporting').css("display")=="block") {
- if(state=="blur") {
- ealpha = 0.45;
- } else {
- ealpha = 1;
- }
- if($('#esponi_OTF_CFOReporting').css("display")=="block") $('#esponi_OTF_CFOReporting').fadeTo(150, ealpha);
- }
- }
- function esponi_specArrayCopy(obj1) {
- var ret = [];
- for(ii=0; ii<obj1.length; ii++) {
- ret.push(obj1[ii].value);
- }
- return ret;
- }
- function esponi_specArrayCompare(obj1, obj2) {
- if(obj1.length!=obj2.length) return false;
- for(ii=0; ii<obj2.length; ii++) {
- if(obj1[ii]!=obj2[ii].value) {
- return false;
- }
- }
- return true;
- }
- </script>
- ]]></add>
- </operation>
- </file>
- <file name="catalog/view/theme/marketshop/template/product/product.tpl">
- <operation>
- <search position="replace" index="1"><![CDATA[<div class="row product-info">]]></search>
- <add><![CDATA[<div class="row product-info" id="product_add_to_cart_form">]]></add>
- </operation>
- <operation>
- <search position="before" index="1"><![CDATA[<div class="cart">]]></search>
- <add><![CDATA[
- <?php
- $this->language->load('product/product');
- $esponiExTaxText = $this->language->get('text_tax');
- ?>
- <div id="esponi_OTF_Container">
- <div id="esponi_OTF">
- <span id="esponi_OTF_LeftColumn">
- <span id="esponi_OTF_UnitText"><?php $this->language->load('product/product'); echo $this->language->get('text_price'); ?></span>
- <span id="esponi_OTF_UnitTextExtTax" class='price-tax' style='font-weight:normal; display:none;'><?php echo $esponiExTaxText; ?></span>
- <span id="esponi_OTF_TotalText"><?php $this->language->load('checkout/cart'); echo $this->language->get('column_total'); ?>:</span>
- <span id="esponi_OTF_TotalTextExtTax" class='price-tax' style='font-weight:normal; display:none;'><?php echo $esponiExTaxText; ?></span>
- </span>
- <span id="esponi_OTF_RightColumn">
- <span id="esponi_OTF_Unit"></span>
- <span id="esponi_OTF_Total"></span>
- </span>
- </div>
- <?php $this->language->load('product/product'); ?>
- </div>
- <div id="esponi_OTF_CFODebug" style="overflow:hidden; display:none;"></div>
- <div id="esponi_OTF_CFOReporting"></div>
- ]]></add>
- </operation>
- <operation>
- <search position="after" index="1"><![CDATA[id="content"]]></search>
- <add><![CDATA[
- <script type="text/javascript">
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // Special Configurations (values true or false)
- var showUnitPriceAboveAvailableOptions = true; // if you set to false it will show under addtocart button
- var showExTaxPrices = true; // Prices without taxes will be shown under price and total values
- var alwaysHideCFODebugBlock = false; // Will be shown if you have installed CFO extension and you are admin user, but you can override
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //
- //
- var timestamp = 0;
- var last_esponi_data = [];
- $(document).ready(function() {
- var back_PriceAboveAvailableOptions;
- back_PriceAboveAvailableOptions = $('#product_add_to_cart_form div[class=\'price\']').html();
- back_PriceAboveAvailableOptions = "<span id='esponidefaultPrice'>" + back_PriceAboveAvailableOptions + "</span>";
- $('#product_add_to_cart_form div[class=\'price\']').html(back_PriceAboveAvailableOptions);
- if(showUnitPriceAboveAvailableOptions) {
- $('#product_add_to_cart_form div[class=\'price\']').append($('#esponi_OTF_Container'));
- } else {
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_Container'));
- }
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_CFODebug'));
- $('#product_add_to_cart_form div[class=\'cart\']').append($('#esponi_OTF_CFOReporting')); // Below quantity and "add to cart" button
- $('#product_add_to_cart_form input[type=\'radio\'], #product_add_to_cart_form input[type=\'checkbox\'], #product_add_to_cart_form select').bind("change", function(){ esponi_OTF($(this)); });
- $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form textarea').bind("keyup", function(){ esponi_OTF($(this)); });
- $('#product_add_to_cart_form input[type=\'hidden\']').bind("change", function(){ esponi_OTF($(this)); });
- $("#product_add_to_cart_form a.dd-option").bind("click", function(){ esponi_OTF($(this)); });
- });
- function esponi_OTF(el) {
- try {
- var esponi_name = el.prop("name");
- if(esponi_name.substr(0, 11)=="ESPONI_CHK_") return;
- }
- catch(err) { }
- var esponi_data = $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form input[type=\'hidden\'], #product_add_to_cart_form input[type=\'radio\']:checked, #product_add_to_cart_form input[type=\'checkbox\']:checked, #product_add_to_cart_form select, #product_add_to_cart_form textarea');
- if(esponi_specArrayCompare(last_esponi_data, esponi_data)) {
- return;
- }
- last_esponi_data = esponi_specArrayCopy(esponi_data);
- timestamp = timestamp + 1;
- blurStand("blur");
- blurStandReporting("blur");
- $.ajax({
- url: 'index.php?route=checkout/cart/esponi_OTF×tamp=' + timestamp,
- type: 'post',
- data: esponi_data,
- dataType: 'html',
- success: function(rhtml) {
- if(rhtml!="") {
- recv = rhtml.split("xOPAx");
- if(recv.length>0) {
- thisok = recv[0];
- thisunit = recv[1];
- thisunitextax = recv[2];
- thisqt = recv[3];
- thistotal = recv[4];
- thistotalextax = recv[5];
- thistimestamp = recv[6];
- thisdebug = recv[7];
- }
- if(thistimestamp==timestamp) {
- if(thisok=="Ok") {
- if(!showExTaxPrices) {
- $('#esponi_OTF_Unit').html(thisunit);
- $('#esponi_OTF_Total').html(thistotal);
- } else {
- $('#esponi_OTF_Unit').html(thisunit + "<BR><span class='price-tax' style='font-weight:normal;'>" + thisunitextax + "</span>");
- $('#esponi_OTF_Total').html(thistotal + "<BR><span class='price-tax' style='font-weight:normal;'>" + thistotalextax + "</span>");
- }
- //
- // show Unit Price Above Available Options?
- if(showUnitPriceAboveAvailableOptions) {
- $('#esponidefaultPrice').css("display", "none");
- }
- //
- //
- if(!(thisqt=="1")) {
- $('#esponi_OTF_Unit').css("display","block");
- $('#esponi_OTF_UnitText').css("display","block");
- $('#esponi_OTF_Total').css("display","block");
- $('#esponi_OTF_TotalText').css("display","block");
- } else {
- $('#esponi_OTF_Unit').css("display","block");
- $('#esponi_OTF_UnitText').css("display","block");
- $('#esponi_OTF_Total').css("display","none");
- $('#esponi_OTF_TotalText').css("display","none");
- }
- //
- //
- if(showExTaxPrices) {
- if($('#esponi_OTF_Unit').css("display")=="block") {
- $('#esponi_OTF_UnitTextExtTax').css("display","block");
- } else {
- $('#esponi_OTF_UnitTextExtTax').css("display","none");
- }
- if($('#esponi_OTF_Total').css("display")=="block") {
- $('#esponi_OTF_TotalTextExtTax').css("display","block");
- } else {
- $('#esponi_OTF_TotalTextExtTax').css("display","none");
- }
- }
- //
- //
- if(alwaysHideCFODebugBlock) thisdebug="off";
- if(!(thisdebug=="off" || thisdebug=="")) {
- $('#esponi_OTF_CFODebug').html(thisdebug);
- $('#esponi_OTF_CFODebug').css("display","block");
- } else {
- $('#esponi_OTF_CFODebug').html('');
- $('#esponi_OTF_CFODebug').css("display","none");
- }
- $('#esponi_OTF').css("display","block");
- blurStand("show");
- } else {
- esponi_hideAll();
- if(showUnitPriceAboveAvailableOptions) {
- $('#esponidefaultPrice').css("display", "block");
- }
- }
- if(thisok=="Ok" && recv.length>7) {
- if(recv[8]!="") {
- $('#esponi_OTF_CFOReporting').html(recv[8]);
- blurStandReporting("show");
- } else {
- blurStandReporting("hide");
- $('#esponi_OTF_CFOReporting').html('');
- }
- } else {
- blurStandReporting("hide");
- $('#esponi_OTF_CFOReporting').html('');
- }
- // -
- }
- }
- }
- });
- }
- function esponi_hideAll() {
- $('#esponi_OTF').css("display","none");
- $('#esponi_OTF_Unit').css("display","none");
- $('#esponi_OTF_UnitText').css("display","none");
- $('#esponi_OTF_Total').css("display","none");
- $('#esponi_OTF_TotalText').css("display","none");
- $('#esponi_OTF_Unit').html('');
- $('#esponi_OTF_Total').html('');
- $('#esponi_OTF_CFODebug').html('');
- $('#esponi_OTF_CFODebug').css("display","none");
- }
- function blurStand(state) {
- if($('#esponi_OTF').css("display")=="block") {
- if(state=="blur") {
- ealpha = 0.45;
- } else {
- ealpha = 1;
- }
- if($('#esponi_OTF_Unit').css("display")=="block") $('#esponi_OTF_Unit').fadeTo(150, ealpha);
- if($('#esponi_OTF_Total').css("display")=="block") $('#esponi_OTF_Total').fadeTo(150, ealpha);
- }
- }
- function blurStandReporting(state) {
- if(state=="hide") {
- $('#esponi_OTF_CFOReporting').css("display","none");
- return;
- }
- if(state=="show") {
- $('#esponi_OTF_CFOReporting').css("display","block");
- }
- if($('#esponi_OTF_CFOReporting').css("display")=="block") {
- if(state=="blur") {
- ealpha = 0.45;
- } else {
- ealpha = 1;
- }
- if($('#esponi_OTF_CFOReporting').css("display")=="block") $('#esponi_OTF_CFOReporting').fadeTo(150, ealpha);
- }
- }
- function esponi_specArrayCopy(obj1) {
- var ret = [];
- for(ii=0; ii<obj1.length; ii++) {
- ret.push(obj1[ii].value);
- }
- return ret;
- }
- function esponi_specArrayCompare(obj1, obj2) {
- if(obj1.length!=obj2.length) return false;
- for(ii=0; ii<obj2.length; ii++) {
- if(obj1[ii]!=obj2[ii].value) {
- return false;
- }
- }
- return true;
- }
- </script>
- ]]></add>
- </operation>
- </file>
- </modification>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement