first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,26 @@
{extends file=$layout}
{block name='content'}
{if $caraty}
<section>
<div class="ca-form-box">
<h3>Płatność CA Raty</h3>
<p><b>Proszę przejść do wniosku klikając poniższy przycisk.</b></p>
<br>
<form method="POST" action="{$caraty.formUrl}" id="caratyForm">
<input id="caratySubmit" type="image" src="{$caraty.formButtonUrl}" name="ca-submit" alt="Wypełnij formularz" style="display:block; z-index:10;"/>
{foreach $caraty.inputVars as $inputVar}
<input type="hidden" name="{$inputVar@key}" value="{$inputVar}"/>
{/foreach}
</form>
<br>
</div>
</section>
{else}
<section>
<div class="ca-form-box">
<h3>Wystąpił błąd generacji formularza, zalecany jest kontakt z administratorem serwisu.</h3>
<br>
</div>
</section>
{/if}
{/block}

View File

@@ -0,0 +1,9 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,40 @@
<section v="{$version}">
<script type="text/javascript">
function reformatPrice(price) {
if (price.length === 0) {
return false;
}
return parseFloat(price.replace(',', '.').replace(/\s+/g, ''));
}
function PoliczRateCA() {
let price = reformatPrice('{$total_sym}');
if (price !== false) {
window.open('https://ewniosek.credit-agricole.pl/eWniosek/simulator.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}&PARAM_CREDIT_AMOUNT=' + price + '{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}', 'Policz_rate', "toolbar=yes,scrollbars=yes,resizable=yes");
}
}
</script>
{if $nbProducts <= 0}
<p class="warning">{l s='Twój koszyk jest pusty.' mod='caraty' }</p>
{else}
<h3>{l s='Wybrałeś formę płatności CA Raty.' mod='caraty'}</h3>
<h5>{l s='Podsumowanie zamówienia:' mod='caraty'}</h5>
<p>{l s='Całkowita wartość zamówienia: ' mod='caraty'}{$total}</p>
<p>
<b>{l s='Przeprowadź symulację wysokości raty klikając Oblicz Ratę' mod='caraty'}.</b>
<br>
<small>{l s='Informacje niezbędne do zakupu na raty zostaną przedstawione na kolejnej stronie' mod='caraty'} </small>
<br>
<a onclick="return PoliczRateCA();"
style="cursor: pointer; position: relative; z-index: 15" target="raty_symulator" title="Kupuj na Raty!">
{if isset($caraty_logo_auto)}
<img id="caraty_img_auto" src="{$caraty_logo_auto.url}?creditAmount={$total_sym}&posId={$psp}&imgType={$caraty_logo_auto.type}{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}"
style="margin: 0;">
{else}
<img alt="" src="{$caraty_logo_calc}" style="margin: 0;">
{/if}
</a>
</p>
{/if}
</section>

View File

@@ -0,0 +1,19 @@
{if $caraty_button_main_config != 'disabled'}
<script type="text/javascript">
var iWidth = 820;
var iHeight = 530;
var iX = ( screen.availWidth - iWidth ) / 2;
var iY = ( screen.availHeight - iHeight ) / 2;
function displayInfoWindow() {literal}{{/literal}
window.open('https://ewniosek.credit-agricole.pl/eWniosek/procedure.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}', 'Procedura', 'height='+iHeight+',width='+iWidth+',top='+iY+',left='+iX+',resizable=yes,scrollbars=yes,status=0;');
return false;
{literal}}{/literal}
</script>
{if $caraty_button_main_config != 'hidden'}
<div align="center" class="hidden-sm-down">
<a href="https://ewniosek.credit-agricole.pl/eWniosek/procedure.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}" target="raty_procedura" onClick="return displayInfoWindow()">
<img alt="" src="{$caraty_logo_main}">
</a>
</div>
{/if}
{/if}

View File

@@ -0,0 +1,9 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,11 @@
{if $status == 'ok'}
<h3>Wniosek został złożony poprawnie - dziękujemy.
<br/><br/>
W ciągu 24 h skontaktuje się z Tobą doradca Credit Agricole Bank Polska S.A., potem Twoje zamówienie będzie mogło być zrealizowane.
<br/><br/>
</h3>
{else}
<h3>Rezygnacja z wypełnienia Wniosku o kredyt ratalny Credit Agricole Bank Polska S.A.</h3>
<br/><br/>
<h3>Skontaktuj się ze sklepem i wybierz inną metodę płatności.</h3>
{/if}

View File

@@ -0,0 +1,45 @@
<section v="{$version}">
<script type="text/javascript">
function reformatPrice(price) {
if (price.length === 0) {
return false;
}
return parseFloat(price.replace(',', '.').replace(/\s+/g, ''));
}
function PoliczRateCA() {
let price = reformatPrice('{$total_sum}');
if (price !== false) {
window.open('https://ewniosek.credit-agricole.pl/eWniosek/simulator.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}&PARAM_CREDIT_AMOUNT=' + price + '{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}', 'Policz_rate', "toolbar=yes,scrollbars=yes,resizable=yes");
}
}
</script>
<div id="caraty" class="caraty_payment box">
<h3>{l s='Wybrałeś formę płatności CA Raty.' mod='caraty'}</h3>
<p>
<b>{l s='Przeprowadź symulację wysokości raty klikając Oblicz Ratę' mod='caraty'}.</b>
<br>
<small>{l s='Informacje niezbędne do zakupu na raty zostaną przedstawione na kolejnej stronie' mod='caraty'} </small>
<br>
<a onclick="return PoliczRateCA();"
style="cursor: pointer;" target="raty_symulator" title="Kupuj na Raty!">
{if isset($caraty_logo_auto)}
<img id="caraty_img_auto" src="{$caraty_logo_auto.url}?creditAmount={$total_sum}&posId={$psp}&imgType={$caraty_logo_auto.type}{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}"
style="margin: 0;">
{else}
<img alt="" src="{$caraty_logo_calc}" style="margin: 0;">
{/if}
</a>
</p>
<b>Oczekujemy na akceptację płatności. Jeżeli anulowałeś płatność, możesz spróbować ponownie klikając w przycisk poniżej.</b>
<form method="POST" action="{$paymentUrl}" id="caratyForm">
{foreach $orderData as $var}
<input type="hidden" name="{$var@key}" value="{$var}"/>
{/foreach}
<button type="submit" class="btn btn-danger btn-block">
Spróbuj ponownie
</button>
</form>
</div>
</section>

View File

@@ -0,0 +1,40 @@
{if $button_product_config != 'disabled'}
<script type="text/javascript">
function reformatPrice(price) {
if (price.length === 0) {
return false;
}
return parseFloat(price.replace(',', '.').replace(/\s+/g, ''));
}
function PoliczRateCA() {
let price = '{$cena_raty}';
let priceObj = jQuery(".current-price");
if (jQuery('{$caraty_product_selector}').length > 0) {
priceObj = jQuery('{$caraty_product_selector}');
}
if (priceObj.length > 0) {
price = priceObj.text();
}
price = reformatPrice(price);
if (price !== false) {
window.open('https://ewniosek.credit-agricole.pl/eWniosek/simulator.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}&PARAM_CREDIT_AMOUNT=' + price + '{if isset($caraty_offer_id) && $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}', 'Policz_rate', "toolbar=yes,scrollbars=yes,resizable=yes");
}
}
</script>
{if $button_product_config != 'hidden'}
<p id="caraty" class="buttons_bottom_block" v="{$version}">
<a onclick="return PoliczRateCA();"
style="cursor: pointer;" target="raty_symulator" title="Kupuj na Raty!">
{if isset($caraty_logo_auto)}
<img align="middle" alt="" id="caraty_img_auto" style="position: relative; display:block; z-index:10;"
src="{$caraty_logo_auto.url}?creditAmount={$cena_raty}&posId={$psp}&imgType={$caraty_logo_auto.type}{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}">
{else}
<img align="middle" alt="" src="{$caraty_logo_calc}" style="position: relative; display:block; z-index:10;">
{/if}
</a>
</p>
{/if}
{/if}

View File

@@ -0,0 +1,9 @@
{extends file=$layout}
{block name='content'}
<section>
<h3>{l s='Rezygnacja z wypełnienia Wniosku o kredyt ratalny Credit Agricole Bank Polska S.A.' mod='caraty'}</h3>
<br/>
<h3>{l s='Skontaktuj się ze sklepem i wybierz inną metodę płatności.' mod='caraty'}</h3>
<br/>
</section>
{/block}

View File

@@ -0,0 +1,38 @@
{if $button_shoppingcart_config != 'disabled'}
<div id="caraty" class="table_block" align="right">
<script type="text/javascript">
function reformatPrice(price) {
if (price.length === 0) {
return false;
}
return parseFloat(price.textContent.replace(',', '.').replace(/[^\d.]/g, ""));
}
function PoliczRateCA() {
let price = '{$cena_raty}';
let priceObj = document.querySelectorAll('.cart-total');
if (priceObj.length > 0) {
let lastIndex = priceObj.length - 1
price = priceObj[lastIndex];
}
price = reformatPrice(price);
if (price !== false) {
window.open('https://ewniosek.credit-agricole.pl/eWniosek/simulator.jsp?PARAM_TYPE=RAT&PARAM_PROFILE={$psp}&PARAM_CREDIT_AMOUNT=' + price + '{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}', 'Policz_rate', "toolbar=yes,scrollbars=yes,resizable=yes");
}
}
</script>
{if $button_shoppingcart_config != 'hidden'}
<a onclick="return PoliczRateCA();"
style="cursor: pointer;" target="raty_symulator" title="Kupuj na Raty!">
{if isset($caraty_logo_auto)}
<img align="middle" alt="" id="caraty_img_auto" style="display:block; z-index:10;"
src="{$caraty_logo_auto.url}?creditAmount={$cena_raty}&posId={$psp}&imgType={$caraty_logo_auto.type}{if isset($caraty_offer_id)}{if $caraty_offer_id != ''}&offerId={$caraty_offer_id}{/if}{/if}">
{else}
<img align="middle" alt="" src="{$caraty_logo_calc}" style="display:block; z-index:10;">
{/if}
</a>
{/if}
</div>
{/if}

View File

@@ -0,0 +1,9 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;