Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<config xmlns="http://thelia.net/schema/dic/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
<hooks>
<hook id="releve.hook">
<tag name="hook.event_listener" event="customer.edit" type="back" templates="render:hook/customer-edit.html"/>
</hook>
</hooks>
</config>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="http://thelia.net/schema/dic/module"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
<fullnamespace>Releve\Releve</fullnamespace>
<descriptive locale="fr_FR">
<title>Relevé de commande des clients</title>
</descriptive>
<!-- <logo></logo> -->
<!--<images-folder>images</images-folder>-->
<languages>
<language>fr_FR</language>
</languages>
<version>1.0.0</version>
<authors>
<author>
<name>Franck Allimant</name>
<company>CQFDev</company>
<email>thelia@cqfdev.fr</email>
<website>www.cqfdev.fr</website>
</author>
</authors>
<type>classic</type>
<thelia>2.3.4</thelia>
<stability>other</stability>
<mandatory>0</mandatory>
<hidden>0</hidden>
</module>

View File

@@ -0,0 +1,55 @@
# Releve
Add a short description here. You can also add a screenshot if needed.
## Installation
### Manually
* Copy the module into ```<thelia_root>/local/modules/``` directory and be sure that the name of the module is Releve.
* Activate it in your thelia administration panel
### Composer
Add it in your main thelia composer.json file
```
composer require your-vendor/releve-module:~1.0
```
## Usage
Explain here how to use your module, how to configure it, etc.
## Hook
If your module use one or more hook, fill this part. Explain which hooks are used.
## Loop
If your module declare one or more loop, describe them here like this :
[loop name]
### Input arguments
|Argument |Description |
|--- |--- |
|**arg1** | describe arg1 with an exemple. |
|**arg2** | describe arg2 with an exemple. |
### Output arguments
|Variable |Description |
|--- |--- |
|$VAR1 | describe $VAR1 variable |
|$VAR2 | describe $VAR2 variable |
### Exemple
Add a complete exemple of your loop
## Other ?
If you have other think to put, feel free to complete your readme as you want.

View File

@@ -0,0 +1,28 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Releve;
use Thelia\Module\BaseModule;
class Releve extends BaseModule
{
/** @var string */
const DOMAIN_NAME = 'releve';
/*
* You may now override BaseModuleInterface methods, such as:
* install, destroy, preActivation, postActivation, preDeactivation, postDeactivation
*
* Have fun !
*/
}

View File

@@ -0,0 +1,11 @@
{
"name": "your-vendor/releve-module",
"license": "LGPL-3.0+",
"type": "thelia-module",
"require": {
"thelia/installer": "~1.1"
},
"extra": {
"installer-name": "Releve"
}
}

View File

@@ -0,0 +1,49 @@
<div class="row" id="order-creation-block">
<div class="col-md-12 general-block-decorator">
<div class="title title-without-tabs">
Edition du relevé de commandes mensuel
</div>
<div class="row">
<div class="col-md-12">
<p>Indiquez ci-dessous le mois et l'année du relevé de factures que vous souhaitez télécharger.</p>
<form class="form-inline" method="get" action="{url path="/viewpdf/releve/releve-factures"}">
<input type="hidden" name="customer_id" value="{$customer_id}">
<div class="form-group ">
<label for="releve_mois" class="control-label">Mois</label>
<select id="releve_mois" name="mois" class="form-control">
{$listemois = [
"01" => 'Janvier',
"02" => 'Février',
"03"=>'Mars',
"04"=>'Avril',
"05"=>'Mai',
"06"=>'Juin',
"07"=>'Juillet',
"08"=>'Août',
"09"=>'Septembre',
"10"=>'Octobre',
"11"=>'Novembre',
"12"=>'Décembre'
]}
{$start = $smarty.now|date_format:"%m"}
{foreach $listemois key=mois item=libelle}
<option value="{$mois}"{if $mois == $start} selected{/if}>{$libelle}</option>
{/foreach}
</select>
</div>
<div class="form-group ">
<label for="releve_annee" class="control-label">&nbsp;&nbsp;Année</label>
<select id="releve_annee" name="annee" class="form-control">
{$start = $smarty.now|date_format:"%Y"}
{for $annee = 2014 to $start}
<option value="{$annee}"{if $annee == $start} selected{/if}>{$annee}</option>
{/for}
</select>
</div>
<button type="submit" class="btn btn-default btn-primary action-btn">Télécharger</button>
</form>
</div>
</div>
</div>
</div>