Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,98 @@
{*
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/list/list_header.tpl"}
{block name=override_header}
{if isset($updateOrderStatus_mode) }
<div class="panel">
<div class="panel-heading">
{l s='Choose an order status' mod='prelevementsepa'}
</div>
<form action="index.php?controller=AdminSepaOrders&token={$token|escape:'html':'UTF-8'}" method="post">
<div class="form-group">
<label for="id_order_state">
<select id="id_order_state" name="id_order_state">
<option value="">{l s='Don\'t change the order status' mod='prelevementsepa'}</option>
{foreach from=$order_statuses item=order_status_name key=id_order_state}
<option value="{$id_order_state|intval}">{$order_status_name|escape}</option>
{/foreach}
</select>
</label>
</div>
{foreach $POST as $key => $value}
{if is_array($value)}
{foreach $value as $val}
<input type="hidden" name="{$key|escape:'html':'UTF-8'}[]" value="{$val|escape:'html':'UTF-8'}" />
{/foreach}
{elseif strtolower($key) != 'id_order_state'}
<input type="hidden" name="{$key|escape:'html':'UTF-8'}" value="{$value|escape:'html':'UTF-8'}" />
{/if}
{/foreach}
<div class="panel-footer">
<button type="submit" name="cancel" class="btn btn-default">
<i class="icon-remove"></i>
{l s='Cancel' mod='prelevementsepa'}
</button>
<button type="submit" class="btn btn-default" name="submitGenerateXML">
<i class="icon-check"></i>
{l s='Generate XML' mod='prelevementsepa'}
</button>
</div>
</form>
</div>
{else if isset($dlFile)}
<p>{l s='Your file has been generated. It will be auto-deleted after downloading for security reasons' mod='prelevementsepa'} : <a href="index.php?controller=AdminSepaOrders&token={$token|escape:'html':'UTF-8'}&dl={$dlFile|escape:'html':'UTF-8'}" class="btn btn-default">{l s='Download' mod='prelevementsepa'}</a></p>
{/if}
<div class="panel">
<div class="panel-heading">
{l s='Choose sepa status' mod='prelevementsepa'}
</div>
<form action="index.php?controller=AdminSepaOrders&token={$token|escape:'html':'UTF-8'}" method="post">
<div class="form-group">
<label for="etat">
<select id="etat" name="etat">
<option value="0" {if isset($POST['etat']) && $POST['etat'] eq 0}selected{/if}>{l s='Not Traited' mod='prelevementsepa'}</option>
<option value="1" {if isset($POST['etat']) && $POST['etat'] eq 1}selected{/if}>{l s='Traited' mod='prelevementsepa'}</option>
<option value="2" {if isset($POST['etat']) && $POST['etat'] eq 2}selected{/if}>{l s='Not yet validated' mod='prelevementsepa'}</option>
</select>
</label>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-default" name="submitChangeState">
{*<i class="fa fa-ch"></i>*}
{l s='Load sepa' mod='prelevementsepa'}
</button>
</div>
</form>
</div>
{/block}
{block name="override_form_extra"}
<input type="hidden" name="etat" value="{if isset($POST['etat'])}{$POST['etat']|escape:'html':'UTF-8'}{else}0{/if}">
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,69 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
{literal}
<script>
ps_version = '{/literal}{$ps_version|intval}{literal}';
multishop = '{/literal}{$multishop|intval}{literal}';
debug_mode = '{/literal}{$debug_mode|intval}{literal}';
{/literal}
</script>
<script>
var localLink = '{html_entity_decode($localLink|escape:'htmlall':'UTF-8')}';
var localtoken = '{$modToken|escape:'htmlall':'UTF-8'}';
var successconnexion = "{l s='Your API access are correct' mod='prelevementsepa'}";
var errorconnexion = "{l s='Your API access are not correct check it again!' mod='prelevementsepa'}";
var errorstatut = "{l s='Your settings were not saved!' mod='prelevementsepa'}";
var successtatut = "{l s='Your settings have been saved!' mod='prelevementsepa'}";
</script>
<!-- Module content -->
<div id="modulecontent" class="clearfix" role="{$is_submit|intval}">
<!-- Nav tabs -->
<div class="col-lg-2">
<div class="list-group modulemenu">
<a href="#config" class="conf list-group-item" data-toggle="tab"><i class="icon-user"></i> {l s='Configuration' mod='prelevementsepa'}</a>
<a href="#auth" class="list-group-item" data-toggle="tab"><i class="icon-phone"></i> {l s='SMS' mod='prelevementsepa'}</a>
<a href="#mandates" class="list-group-item{if $module_tab=='mandates'} tab_active{/if}" data-toggle="tab"><i class="icon-user"></i> {l s='Mandates' mod='prelevementsepa'}</a>
<a href="#cron-files" class="list-group-item{if $module_tab=='cron'} tab_active{/if}" data-toggle="tab"><i class="icon-user"></i> {l s='Crontab' mod='prelevementsepa'}</a>
<a href="#contacts" class="contactus list-group-item" data-toggle="tab"><i class="icon-envelope"></i> {l s='Contact' mod='prelevementsepa'}</a>
</div>
<div class="list-group">
<a class="list-group-item"><i class="icon-info"></i> {l s='Version' mod='prelevementsepa'} {$module_version|escape:'htmlall':'UTF-8'}</a>
</div>
</div>
<!-- Tab panes -->
<div class="tab-content col-lg-10">
<div class="tab-pane{if $step_name=='' || $step_name=="Configurations"} active{/if} panel" id="config">
{include file="./tabs/config.tpl"}
</div>
<div class="tab-pane{if $step_name=="SMS configuration"} active{/if} panel" id="auth">
{include file="./tabs/auth.tpl"}
</div>
<div class="tab-pane{if $step_name=="Mandates"} active{/if} panel" id="mandates">
{$sepa_list|escape:'html':'UTF-8'|htmlspecialchars_decode:3}
</div>
<div class="tab-pane{if $step_name=="Sepa transferrt files"} active{/if} panel" id="cron-files">
{include file="./tabs/cron-files.tpl"}
</div>
{include file="./tabs/contact.tpl"}
</div>
</div>
{if $ps_version == 0}
</div>
{/if}

View File

@@ -0,0 +1,75 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="page-head">
<h2 class="page-title">
{l s='Configure SEPA Direct Debit' mod='prelevementsepa'}
</h2>
<ul class="breadcrumb page-breadcrumb">
<li>
<i class="icon-puzzle-piece"></i>Modules
</li>
<li>{$module_name|escape:'htmlall':'UTF-8'}</li>
<li>
<i class="icon-wrench"></i>
{l s='Configure' mod='prelevementsepa'}
</li>
</ul>
<div class="page-bar toolbarBox">
<div class="btn-toolbar">
<ul class="cc_button nav nav-pills pull-right">
{if $module_active == '1'}
<li>
<a id="desc-module-hook" class="toolbar_btn" href="{$module_form|escape:'htmlall':'UTF-8'}&amp;enable=0" title="{l s='Disable' mod='prelevementsepa'}">
<i class="process-icon-off"></i>
<div>{l s='Disable' mod='prelevementsepa'}</div>
</a>
</li>
{else}
<li>
<a id="desc-module-hook" class="toolbar_btn" href="{$module_form|escape:'htmlall':'UTF-8'}&amp;enable=1" title="{l s='Enable' mod='prelevementsepa'}">
<i class="process-icon-off"></i>
<div>{l s='Enable' mod='prelevementsepa'}</div>
</a>
</li>
{/if}
<li>
<a id="desc-module-hook" class="toolbar_btn" href="{$module_form|escape:'htmlall':'UTF-8'}&amp;uninstall={$module_name|escape:'htmlall':'UTF-8'}" title="{l s='Uninstall' mod='prelevementsepa'}">
<i class="process-icon-uninstall"></i>
<div>{l s='Uninstall' mod='prelevementsepa'}</div>
</a>
</li>
<li>
<a id="desc-module-hook" class="toolbar_btn" href="{$module_reset|escape:'htmlall':'UTF-8'}" title="{l s='Reset' mod='prelevementsepa'}">
<i class="process-icon-reset"></i>
<div>{l s='Reset' mod='prelevementsepa'}</div>
</a>
</li>
<li>
<a id="desc-module-hook" class="toolbar_btn" href="{$module_hook|escape:'htmlall':'UTF-8'}" title="{l s='Manage hooks' mod='prelevementsepa'}">
<i class="process-icon-anchor"></i>
<div>{l s='Manage hooks' mod='prelevementsepa'}</div>
</a>
</li>
<li>
<a id="desc-module-back" class="toolbar_btn" href="{$module_back|escape:'htmlall':'UTF-8'}" title="{l s='Back' mod='prelevementsepa'}">
<i class="process-icon-back"></i>
<div>{l s='Back' mod='prelevementsepa'}</div>
</a>
</li>
</ul>
</div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,46 @@
{*
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
<div class="panel-heading">
{l s='Get sepa XML file' mod='prelevementsepa'}
</div>
<div class="panel-body">
{if isset($dlFile)}
<p>{l s='Your file has been generated. It will be auto-deleted after downloading for security reasons' mod='prelevementsepa'} : <a href="index.php?controller=AdminSepaOrders&token={$token|escape:'html':'UTF-8'}&dl={$dlFile|escape:'html':'UTF-8'}" class="btn btn-default">{l s='Download' mod='prelevementsepa'}</a></p>
{else}
<form action="" method="post">
{foreach from=$sepas item=sepa}
<input type="hidden" name="sepaordersBox[]" value="{$sepa.id_sepa_detail|intval}" />
{/foreach}
<button type="submit" class="btn btn-default" name="submitRegenerateXML">
<i class="icon-check"></i>
{l s='Regenerate XML' mod='prelevementsepa'}
</button>
</form>
{/if}
</div>
</div>
{$sepalist|escape:'html':'UTF-8'|htmlspecialchars_decode:3}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@decanet.fr so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,119 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
{* selected done *}
<h3><i class="icon-user"></i> {l s='Authentication' mod='prelevementsepa'} <small>{$module_display|escape:'htmlall':'UTF-8'}</small></h3>
<div id="wizard" class="swMain">
{if $error_con == 0 && $step_name neq ''}
<div class="module_confirmation conf confirm alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
{$step_name|escape:'htmlall':'UTF-8'} {l s='has been updated.' mod='prelevementsepa'}
</div>
{elseif $error_con < 0}
<div class="module_confirmation conf confirm alert alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
{$step_name|escape:'htmlall':'UTF-8'} {l s='cannot be updated.' mod='prelevementsepa'}
<p>{l s='Please verify the details that you have entered.' mod='prelevementsepa'}</p>
</div>
{/if}
<div class="clearfix"></div>
<div class="panel-group" id="accordion">
<div class="panel">
<div class="panel-heading">
{if $ps_version == 0}<h3>{/if}
{l s='Setup your Decanet API credentials' mod='prelevementsepa'}
{if $ps_version == 0}</h3>{/if}
</div>
{if $connect}
<div class="bootstrap">
<div class="alert alert-success">
<button class="close" data-dismiss="alert" type="button">×</button>
{l s='You are connected' mod='prelevementsepa'}
</div>
</div>
{else}
<div class="bootstrap">
<div class="alert alert-danger">
<button class="close" data-dismiss="alert" type="button">×</button>
{l s='You are not connected' mod='prelevementsepa'}
</div>
</div>
{/if}
<form id="form_step_one" name="form_step_one" action="{$form_uri|escape:'htmlall':'UTF-8'}" method="post">
<div id="collapse1">
<div class="clearfix">
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='API Login' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-{if $connect}4{else}8{/if}">
<input type="text" class="form-control" value="{if isset($sepa_conf.decanetlogin) & !empty($sepa_conf.decanetlogin)}{$sepa_conf.decanetlogin|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_decanetlogin" name="prelevementsepa_decanetlogin" placeholder="{l s='Login' mod='prelevementsepa'}" />
<p class="help-block">
{l s='You can find your API credentials in your customer area on Decanet.fr, in the API section' mod='prelevementsepa'}
</p>
</div>
{if $connect}
<div class="col-sm-4">
<button id="disconnect_user" name="submitLogout" type="submit" class="btn btn-default" value="1"><i class="icon-signout"></i> {l s='Log Out' mod='prelevementsepa'}</button>
</div>
<div class="clearfix"></div>
{/if}
</div>
{if !$connect}
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='API Key' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="password" class="form-control" id="prelevementsepa_decanetapikey" name="prelevementsepa_decanetapikey" placeholder="{l s='API Key' mod='prelevementsepa'}" />
<p class="help-block">
{l s='You can find your API credentials in your customer area on Decanet.fr, in the API section' mod='prelevementsepa'}
</p>
</div>
</div>
{else}
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Credit' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-4">
<input type="text" disabled class="form-control" value="{$sms_solde|escape:'htmlall':'UTF-8'}" />
<p class="help-block">
{l s='You can buy more SMS credit on www.decanet.fr' mod='prelevementsepa'}
</p>
</div>
</div>
{/if}
<div class="clearfix"></div>
</div>
</div>
<div class="panel-footer">
<div class="btn-group pull-right">
{if !$connect}
<button id="connect_user" name="submitAuthInformations" type="submit" class="btn btn-default" value="1"><i class="process-icon-save"></i> {l s='Save' mod='prelevementsepa'}</button>
{/if}
</div>
</div>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,257 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
{* selected done *}
<h3><i class="icon-user"></i> {l s='Configuration' mod='prelevementsepa'} <small>{$module_display|escape:'htmlall':'UTF-8'}</small></h3>
<div id="wizard" class="swMain">
{if $error_con == 0 && $step_name neq ''}
<div class="module_confirmation conf confirm alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
{$step_name|escape:'htmlall':'UTF-8'} {l s='has been updated.' mod='prelevementsepa'}
</div>
{elseif $error_con < 0}
<div class="module_confirmation conf confirm alert alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
{$step_name|escape:'htmlall':'UTF-8'} {l s='cannot be updated.' mod='prelevementsepa'}
<p>{l s='Please verify the details that you have entered.' mod='prelevementsepa'}</p>
</div>
{/if}
<div class="clearfix"></div>
<div class="panel-group" id="accordion">
<form id="form_step_one" name="form_step_one" action="{$form_uri|escape:'htmlall':'UTF-8'}" method="post">
<div id="collapse1">
<div class="clearfix">
<div class="panel">
<div class="panel-heading">
{l s='Your informations' mod='prelevementsepa'}
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='SEPA creditor identifier (ICS)' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.ICS) & !empty($sepa_conf.ICS)}{$sepa_conf.ICS|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_ICS" name="prelevementsepa_ICS" placeholder="{l s='ICS' mod='prelevementsepa'}" />
<p class="help-block">
{l s='Your ICS identifier is provided by your bank as part of your SEPA Direct Debit contract' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='CBI' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.CBI) & !empty($sepa_conf.CBI)}{$sepa_conf.CBI|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_CBI" name="prelevementsepa_CBI" placeholder="{l s='CBI' mod='prelevementsepa'}" />
<p class="help-block">
{l s='CBI number for italian SEPA creditor' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Name of your company' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.creancier) & !empty($sepa_conf.creancier)}{$sepa_conf.creancier|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_creancier" name="prelevementsepa_creancier" placeholder="{l s='Name' mod='prelevementsepa'}" />
<p class="help-block">
{l s='Name of creditor such as present in your SEPA Direct Debit contract' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Address of your company' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.adresse) & !empty($sepa_conf.adresse)}{$sepa_conf.adresse|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_adresse" name="prelevementsepa_adresse" placeholder="{l s='Address' mod='prelevementsepa'}" />
<p class="help-block">
{l s='Adress of creditor such as present in your SEPA Direct Debit contract' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='IBAN of your company' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.IBAN) & !empty($sepa_conf.IBAN)}{$sepa_conf.IBAN|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_IBAN" name="prelevementsepa_IBAN" placeholder="{l s='IBAN' mod='prelevementsepa'}" />
<p class="help-block">
{l s='IBAN of your bank account' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='BIC/BNC of your company' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.BIC) & !empty($sepa_conf.BIC)}{$sepa_conf.BIC|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_BIC" name="prelevementsepa_BIC" placeholder="{l s='BIC' mod='prelevementsepa'}" />
<p class="help-block">
{l s='BIC/BNC of your bank account' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="panel">
<div class="panel-heading">
{l s='General configuration' mod='prelevementsepa'}
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Direct Debit Label' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<input type="text" class="form-control" value="{if isset($sepa_conf.label) & !empty($sepa_conf.label)}{$sepa_conf.label|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_label" name="prelevementsepa_label" placeholder="{l s='Label' mod='prelevementsepa'}" />
<p class="help-block">
{l s='Label which will appear in your customer\'s bank account statement' mod='prelevementsepa'}. {l s='Use [reference] for the order reference' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Order status' mod='prelevementsepa'}</h4>
</label>
<div class="input-group col-sm-6">
<select name="prelevementsepa_state">
{foreach from=$states item=s}
<option value="{$s.id_order_state|escape:'htmlall':'UTF-8'}"{if $sepa_conf.state==$s.id_order_state} selected{/if}>{$s.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<p class="help-block">
{l s='All your new orders paid by direct debit will use this status at validation' mod='prelevementsepa'}.
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Default order status after sepa générated' mod='prelevementsepa'}</h4>
</label>
<div class="input-group col-sm-6">
<select name="prelevementsepa_state_sepa">
<option value="">{l s='--' mod='prelevementsepa'}</option>
{foreach from=$states item=s}
<option value="{$s.id_order_state|escape:'htmlall':'UTF-8'}"{if $sepa_conf.state_sepa==$s.id_order_state} selected{/if}>{$s.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<p class="help-block">
{l s='Default order status after sepa générated; This status will be used on cron process' mod='prelevementsepa'}.
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='XML File format' mod='prelevementsepa'}</h4>
</label>
<div class="input-group col-sm-6">
<select name="prelevementsepa_format">
<option value="ct"{if $sepa_conf.format!='cbi'} selected{/if}>ISO 20022 CT</option>
<option value="cbi"{if $sepa_conf.format=='cbi'} selected{/if}>CBI</option>
</select>
<p class="help-block">
{l s='XML format to use for generated files' mod='prelevementsepa'}.
</p>
</div>
</div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Submit the withdrawal after how many days' mod='prelevementsepa'}</h4>
</label>
<div class="input-group col-sm-4">
<input type="number" class="form-control" value="{if isset($sepa_conf.delay_working) & !empty($sepa_conf.delay_working)}{$sepa_conf.delay_working|escape:'htmlall':'UTF-8'}{/if}" id="prelevementsepa_delay" name="prelevementsepa_delay_working" placeholder="{l s='Delay working days' mod='prelevementsepa'}" />
{*<p class="help-block">
{l s='Delay (in days) to wait before sending the payment to the bank' mod='prelevementsepa'}
</p>*}
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="panel">
<div class="panel-heading">
{l s='Order delay (in days) for each users groups' mod='prelevementsepa'}
</div>
{foreach from=$users_groups item=group}
{assign var='gid' value=$group.id_group}
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{$group.name|escape:'htmlall':'UTF-8'}</h4>
</label>
<div class="input-group col-sm-4">
<input type="number" class="form-control" value="{if isset($sepa_conf.delay_groups) AND isset($sepa_conf.delay_groups.$gid)}{$sepa_conf.delay_groups.$gid|escape:'htmlall':'UTF-8'}{/if}" name="prelevementsepa_delay_groups[{$gid}]" placeholder="{l s='Delay for ' mod='prelevementsepa'} {$group.name|escape:'htmlall':'UTF-8'}" />
<p class="help-block">
{l s='Delay (in days) to wait before sending the payment to the bank' mod='prelevementsepa'}
</p>
</div>
</div>
{/foreach}
</div>
<div class="panel">
<div class="panel-heading">
{l s='Mandates customization' mod='prelevementsepa'}
</div>
<div class="form-group clear">
<label class="col-sm-4 control-label">
<h4>{l s='SEPA template' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<select name="prelevementsepa_template" class="form-control">
{foreach from=$files_templates item=sf}
<option value="{$sf|escape:'htmlall':'UTF-8'}" {if $sepa_conf.template eq $sf}selected{/if}>{$sf|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Text in header' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<textarea class="form-control" id="prelevementsepa_ENTETE" name="prelevementsepa_ENTETE" placeholder="{l s='Header' mod='prelevementsepa'}">{if isset($sepa_conf.ENTETE) & !empty($sepa_conf.ENTETE)}{$sepa_conf.ENTETE|escape:'htmlall':'UTF-8'}{/if}</textarea>
<p class="help-block">{l s='Header of your sepa mandates. The string [VENDOR] will be auto replaced with your company\'s name' mod='prelevementsepa'}</p>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group clear">
<label for="form-field-1" class="col-sm-4 control-label">
<h4>{l s='Text in footer' mod='prelevementsepa'}</h4>
</label>
<div class="col-sm-6">
<textarea class="form-control" id="prelevementsepa_FOOTER" name="prelevementsepa_FOOTER" placeholder="{l s='Footer' mod='prelevementsepa'}">{if isset($sepa_conf.FOOTER) & !empty($sepa_conf.FOOTER)}{$sepa_conf.FOOTER|escape:'htmlall':'UTF-8'}{/if}</textarea>
<p class="help-block">{l s='Footer of your sepa mandates. The string [VENDOR] will be auto replaced with your company\'s name' mod='prelevementsepa'}</p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="btn-group pull-right">
<button id="connect_user" name="submitConfig" type="submit" class="btn btn-default" value="1"><i class="process-icon-save"></i> {l s='Save' mod='prelevementsepa'}</button>
</div>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,30 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="clearfix"></div>
<div class="tab-pane panel" id="contacts">
<h3><i class="icon-envelope"></i> {l s='Decanet Addons for Prestashop' mod='prelevementsepa'} <small>{$module_display|escape:'htmlall':'UTF-8'}</small></h3>
<div class="form-group">
<b>{l s='Thank you for choosing a module developed by Decanet.' mod='prelevementsepa'}</b><br /><br />
{l s='If you encounter a problem using the module, our team is at your service via the ' mod='prelevementsepa'} <a target="_blank" href="https://addons.prestashop.com/{l s='en/contact-us' mod='prelevementsepa'}?id_product=24710">{l s='contact form' mod='prelevementsepa'}.</a><br /><br />
{l s='To save you time, before you contact us:' mod='prelevementsepa'}<br />
- {l s='make sure you have read the documentation well. ' mod='prelevementsepa'}<br />
- {l s='in the event you would be contacting us via the form, do not hesitate to give us your first message, maximum of details on the problem and its origins (screenshots, reproduce actions to find the bug, etc. ..) ' mod='prelevementsepa'}<br /><br />
Decanet<br />
</div>
</div>

View File

@@ -0,0 +1,150 @@
{*
* 2007-2018 SARL DECANET
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.decanet.fr for more information.
*
* @author SARL DECANET <contact@decanet.fr>
* @copyright 2007-2018 SARL DECANET
* @license http://addons.decanet.fr/en/content/12-terms-and-conditions-of-use
* International Registered Trademark & Property of PrestaShop SA
*}
{* selected done *}
<div class="row" >
<div class="success col-lg-12">
{if isset($tr_success) && $tr_success}
<div class="alert alert-success text-left">
<p>{l s='Successfully done' mod='prelevementsepa'} :</p>
<ol>
{foreach from=$tr_success item=v}
<li>{$v|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ol>
</div>
{/if}
</div>
<div class="error col-lg-12">
{if isset($tr_error) && $tr_error|@count}
<div class="alert alert-danger text-left">
{if {$tr_error|@count} == 1}
<p>{l s='There\'s at least one error' mod='prelevementsepa'} :</p>
{else}
<p>{l s='There are %s errors' mod='prelevementsepa' sprintf=[$tr_error|@count]} :</p>
{/if}
<ol>
{foreach from=$tr_error item=v}
<li>{$v|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ol>
</div>
{/if}
</div>
</div>
<form id="form_cronfile" class="defaultForm form-horizontal" method="post" action="">
<div class="panel">
<h3>
<i class="icon-cogs"></i>
{l s='Crontab configurations' mod='prelevementsepa'}
</h3>
<div class="form-group">
<label class="control-label col-sm-3" for="">
{l s='send sepa files by email' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_host" type="checkbox" value="1" {if $sepa_conf.sendsepaemail eq 1}checked{/if} name="prelevementsepa_sendsepaemail">
<p class="help-block">
{l s='If checked, you should fill in the email field below ' mod='prelevementsepa'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_sepaemail">
{l s='Email' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_sepaemail" class="form-control" type="email" value="{$sepa_conf.sepaemail|escape:'htmlall':'UTF-8'}" name="prelevementsepa_sepaemail">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp">
{l s='send sepa files by FTP' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp" type="checkbox" value="1" {if $sepa_conf.sendsepaftp eq 1}checked{/if} name="prelevementsepa_sendsepaftp">
<p class="help-block">
{l s='If checked, you should fill in all the fields below ' mod='prelevementsepa'}
</p>
</div>
</div>
{if $sslconnectexist}
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_sslcon">
{l s='Active SSL connexion (SSL-FTP)' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_sslcon" type="checkbox" value="1" {if $sepa_conf.ftp_sslcon eq 1}checked{/if} name="prelevementsepa_ftp_sslcon">
</div>
</div>
{/if}
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_host">
{l s='FTP host' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_host" type="text" value="{$sepa_conf.ftp_host|escape:'htmlall':'UTF-8'}" name="prelevementsepa_ftp_host">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_port">
{l s='FTP port' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-2">
<input id="prelevementsepa_ftp_port" class="form-control" type="number" value="{$sepa_conf.ftp_port|escape:'htmlall':'UTF-8'}" name="prelevementsepa_ftp_port">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_login">
{l s='FTP Login' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_login" type="text" value="{$sepa_conf.ftp_login|escape:'htmlall':'UTF-8'}" name="prelevementsepa_ftp_login">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_password">
{l s='FTP Password' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_password" type="password" value="{$sepa_conf.ftp_password|escape:'htmlall':'UTF-8'}" name="prelevementsepa_ftp_password">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="prelevementsepa_ftp_dirpath">
{l s='FTP dir path' mod='prelevementsepa'}
</label>
<div class="input-group col-sm-5">
<input id="prelevementsepa_ftp_dirpath" type="text" value="{$sepa_conf.ftp_dirpath|escape:'htmlall':'UTF-8'}" name="prelevementsepa_ftp_dirpath">
</div>
</div>
<div class="panel-footer">
<button name="submitFilesTransferts" class="btn btn-default pull-right" type="submit">
<i class="process-icon-save"></i>
{l s='Save' mod='prelevementsepa'}
</button>
</div>
</div>
</form>
<div class="tab-pane panel">
<h3> {l s='Cron file' mod='prelevementsepa'}</h3>
<div class="form-group">
{l s='file' mod='prelevementsepa'}: <b>{$cron_file|escape:'htmlall':'UTF-8'}</b><br>
{l s='token' mod='prelevementsepa'}: <b>{$sepa_conf.token|escape:'htmlall':'UTF-8'}</b><br>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document sans nom</title>
</head>
<body>
</body>
</html>