From 0c7e90e494e8e0e691d082935859470c32f5a228 Mon Sep 17 00:00:00 2001
From: engel <>
Date: Thu, 27 Jan 2022 08:02:23 +0000
Subject: [PATCH] =?UTF-8?q?R=C3=A9organisation=20fichiers?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
FossilOrigin-Name: 7c3c6934177943e0bb0386a23b3f359e703eb88afbf34f58ba8663b3a1802124
---
templates/_nav.tpl | 4 +--
templates/activites.tpl | 31 ------------------
templates/index.tpl | 69 ++++++++++++++---------------------------
templates/personne.tpl | 54 ++++++++++++++++++++++++++++++++
www/admin/activites.php | 14 ---------
www/admin/index.php | 7 ++---
www/admin/personne.php | 15 +++++++++
7 files changed, 97 insertions(+), 97 deletions(-)
delete mode 100644 templates/activites.tpl
create mode 100644 templates/personne.tpl
delete mode 100644 www/admin/activites.php
create mode 100644 www/admin/personne.php
diff --git a/templates/_nav.tpl b/templates/_nav.tpl
index e6bcc22..ed9bae6 100644
--- a/templates/_nav.tpl
+++ b/templates/_nav.tpl
@@ -4,8 +4,8 @@
diff --git a/templates/activites.tpl b/templates/activites.tpl
deleted file mode 100644
index fd5f96c..0000000
--- a/templates/activites.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-
-{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="activites"}
-
-
Liste des activités, cotisations et comptes associés
-
-
-
- Nom |
- Description |
- Tarif |
- Description |
- N° Compte |
- Nom Compte |
-
-
-
- {foreach from=$activitesTarifsComptes item="activite"}
-
- {$activite.label} |
- {$activite.descService} |
- {$activite.tarif} |
- {$activite.descTarif} |
- {$activite.numero_cpt} |
- {$activite.nom_cpt} |
-
- {/foreach}
-
-
-
-
-{include file="admin/_foot.tpl"}
\ No newline at end of file
diff --git a/templates/index.tpl b/templates/index.tpl
index b6ef82b..884569c 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -1,54 +1,31 @@
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
-Liste des versements totaux par personne
-
-
+
+{* scripts pour cases à cocher *}
+
+
+
+{include file="admin/_foot.tpl"}
\ No newline at end of file
diff --git a/www/admin/activites.php b/www/admin/activites.php
deleted file mode 100644
index a3b3619..0000000
--- a/www/admin/activites.php
+++ /dev/null
@@ -1,14 +0,0 @@
-assign('activitesTarifsComptes', $activitesTarifsComptes);
-
-// envoyer au template
-$tpl->display(PLUGIN_ROOT . '/templates/activites.tpl');
diff --git a/www/admin/index.php b/www/admin/index.php
index e5aa044..f2302ac 100644
--- a/www/admin/index.php
+++ b/www/admin/index.php
@@ -4,12 +4,11 @@ namespace Garradin;
use Garradin\Plugin\RecusFiscaux\Services;
-// liste du total des versements par personne
-$_SESSION['lesVersementsTotaux'] = Services::getVersementsTotaux("2021");
+// liste des activités, cotisations et comptes associés
+$activitesTarifsComptes = Services::getActivitesTarifsEtComptes();
// préparation de l'affichage
-$tpl->assign('lesVersementsTotaux', $_SESSION['lesVersementsTotaux']);
-$tpl->assign('plugin_css', ['style.css']);
+$tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
// envoyer au template
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');
diff --git a/www/admin/personne.php b/www/admin/personne.php
new file mode 100644
index 0000000..04452c5
--- /dev/null
+++ b/www/admin/personne.php
@@ -0,0 +1,15 @@
+assign('lesVersementsTotaux', $_SESSION['lesVersementsTotaux']);
+$tpl->assign('plugin_css', ['style.css']);
+
+// envoyer au template
+$tpl->display(PLUGIN_ROOT . '/templates/personne.tpl');