Réorganisation fichiers
FossilOrigin-Name: 7c3c6934177943e0bb0386a23b3f359e703eb88afbf34f58ba8663b3a1802124
This commit is contained in:
parent
46a88944fc
commit
0c7e90e494
@ -4,8 +4,8 @@
|
|||||||
<!-- nav bar -->
|
<!-- nav bar -->
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Versements totaux par personne</a></li>
|
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Activités et tarifs</a></li>
|
||||||
|
<li{if $current_nav == 'personne'} class="current"{/if}><a href="{plugin_url file="personne.php"}">Versements totaux par personne</a></li>
|
||||||
<li{if $current_nav == 'versements'} class="current"{/if}><a href="{plugin_url file="versements.php"}">Tous les versements</a></li>
|
<li{if $current_nav == 'versements'} class="current"{/if}><a href="{plugin_url file="versements.php"}">Tous les versements</a></li>
|
||||||
<li{if $current_nav == 'activites'} class="current"{/if}><a href="{plugin_url file="activites.php"}">Activités et tarifs</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
<!-- nav bar -->
|
|
||||||
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="activites"}
|
|
||||||
|
|
||||||
<h2>Liste des activités, cotisations et comptes associés</h2>
|
|
||||||
<table class="list">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Nom</th>
|
|
||||||
<th>Description</th>
|
|
||||||
<th>Tarif</th>
|
|
||||||
<th>Description</th>
|
|
||||||
<th>N° Compte</th>
|
|
||||||
<th>Nom Compte</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{foreach from=$activitesTarifsComptes item="activite"}
|
|
||||||
<tr>
|
|
||||||
<td>{$activite.label}</td>
|
|
||||||
<td>{$activite.descService}</td>
|
|
||||||
<td>{$activite.tarif}</td>
|
|
||||||
<td>{$activite.descTarif}</td>
|
|
||||||
<td>{$activite.numero_cpt}</td>
|
|
||||||
<td>{$activite.nom_cpt}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- footer -->
|
|
||||||
{include file="admin/_foot.tpl"}
|
|
@ -1,54 +1,31 @@
|
|||||||
<!-- nav bar -->
|
<!-- nav bar -->
|
||||||
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
|
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
|
||||||
|
|
||||||
<h2>Liste des versements totaux par personne</h2>
|
<h2>Liste des activités, cotisations et comptes associés</h2>
|
||||||
|
<table class="list">
|
||||||
<form method="post" action="" class="memberList">
|
<thead>
|
||||||
|
|
||||||
{* Itération sur les perssonnes *}
|
|
||||||
<table class="list">
|
|
||||||
<thead class="userOrder">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th class="check">
|
<th>Nom</th>
|
||||||
<input
|
<th>Description</th>
|
||||||
type="checkbox"
|
<th>Tarif</th>
|
||||||
title="Tout cocher / décocher"
|
<th>Description</th>
|
||||||
id="f_all" />
|
<th>N° Compte</th>
|
||||||
<label for="f_all"></label>
|
<th>Nom Compte</th>
|
||||||
</th>
|
|
||||||
<th>Id</th>
|
|
||||||
<th>Nom Prénom</th>
|
|
||||||
<th>Montant</th>
|
|
||||||
<th>Adresse</th>
|
|
||||||
<th>Ville</th>
|
|
||||||
<th>Code postal</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach from=$lesVersementsTotaux item="versement"}
|
{foreach from=$activitesTarifsComptes item="activite"}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="check">
|
<td>{$activite.label}</td>
|
||||||
{input
|
<td>{$activite.descService}</td>
|
||||||
type="checkbox"
|
<td>{$activite.tarif}</td>
|
||||||
name="selected[]"
|
<td>{$activite.descTarif}</td>
|
||||||
value=$versement.id}
|
<td>{$activite.numero_cpt}</td>
|
||||||
</td>
|
<td>{$activite.nom_cpt}</td>
|
||||||
<td>{$versement.id}</td>
|
|
||||||
<td>{$versement.nom}</td>
|
|
||||||
<td class="montant">{$versement.montant|raw|money}</td>
|
|
||||||
<td>{$versement.adresse}</td>
|
|
||||||
<td>{$versement.ville}</td>
|
|
||||||
<td>{$versement.codePostal}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<input type="submit" value="Générer les reçus" onclick="return verifierChoix(this.form)">
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{* scripts pour cases à cocher *}
|
|
||||||
<script src="script.js"></script>
|
|
||||||
|
|
||||||
<!-- footer -->
|
<!-- footer -->
|
||||||
{include file="admin/_foot.tpl"}
|
{include file="admin/_foot.tpl"}
|
54
templates/personne.tpl
Normal file
54
templates/personne.tpl
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<!-- nav bar -->
|
||||||
|
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="personne"}
|
||||||
|
|
||||||
|
<h2>Liste des versements totaux par personne</h2>
|
||||||
|
|
||||||
|
<form method="post" action="" class="memberList">
|
||||||
|
|
||||||
|
{* Itération sur les perssonnes *}
|
||||||
|
<table class="list">
|
||||||
|
<thead class="userOrder">
|
||||||
|
<tr>
|
||||||
|
<th class="check">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
title="Tout cocher / décocher"
|
||||||
|
id="f_all" />
|
||||||
|
<label for="f_all"></label>
|
||||||
|
</th>
|
||||||
|
<th>Id</th>
|
||||||
|
<th>Nom Prénom</th>
|
||||||
|
<th>Montant</th>
|
||||||
|
<th>Adresse</th>
|
||||||
|
<th>Ville</th>
|
||||||
|
<th>Code postal</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach from=$lesVersementsTotaux item="versement"}
|
||||||
|
<tr>
|
||||||
|
<td class="check">
|
||||||
|
{input
|
||||||
|
type="checkbox"
|
||||||
|
name="selected[]"
|
||||||
|
value=$versement.id}
|
||||||
|
</td>
|
||||||
|
<td>{$versement.id}</td>
|
||||||
|
<td>{$versement.nom}</td>
|
||||||
|
<td class="montant">{$versement.montant|raw|money}</td>
|
||||||
|
<td>{$versement.adresse}</td>
|
||||||
|
<td>{$versement.ville}</td>
|
||||||
|
<td>{$versement.codePostal}</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<input type="submit" value="Générer les reçus" onclick="return verifierChoix(this.form)">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{* scripts pour cases à cocher *}
|
||||||
|
<script src="script.js"></script>
|
||||||
|
|
||||||
|
<!-- footer -->
|
||||||
|
{include file="admin/_foot.tpl"}
|
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Garradin;
|
|
||||||
|
|
||||||
use Garradin\Plugin\RecusFiscaux\Services;
|
|
||||||
|
|
||||||
// liste des activités, cotisations et comptes associés
|
|
||||||
$activitesTarifsComptes = Services::getActivitesTarifsEtComptes();
|
|
||||||
|
|
||||||
// préparation de l'affichage
|
|
||||||
$tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
|
|
||||||
|
|
||||||
// envoyer au template
|
|
||||||
$tpl->display(PLUGIN_ROOT . '/templates/activites.tpl');
|
|
@ -4,12 +4,11 @@ namespace Garradin;
|
|||||||
|
|
||||||
use Garradin\Plugin\RecusFiscaux\Services;
|
use Garradin\Plugin\RecusFiscaux\Services;
|
||||||
|
|
||||||
// liste du total des versements par personne
|
// liste des activités, cotisations et comptes associés
|
||||||
$_SESSION['lesVersementsTotaux'] = Services::getVersementsTotaux("2021");
|
$activitesTarifsComptes = Services::getActivitesTarifsEtComptes();
|
||||||
|
|
||||||
// préparation de l'affichage
|
// préparation de l'affichage
|
||||||
$tpl->assign('lesVersementsTotaux', $_SESSION['lesVersementsTotaux']);
|
$tpl->assign('activitesTarifsComptes', $activitesTarifsComptes);
|
||||||
$tpl->assign('plugin_css', ['style.css']);
|
|
||||||
|
|
||||||
// envoyer au template
|
// envoyer au template
|
||||||
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');
|
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');
|
||||||
|
15
www/admin/personne.php
Normal file
15
www/admin/personne.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Garradin;
|
||||||
|
|
||||||
|
use Garradin\Plugin\RecusFiscaux\Services;
|
||||||
|
|
||||||
|
// liste du total des versements par personne
|
||||||
|
$_SESSION['lesVersementsTotaux'] = Services::getVersementsTotaux("2021");
|
||||||
|
|
||||||
|
// préparation de l'affichage
|
||||||
|
$tpl->assign('lesVersementsTotaux', $_SESSION['lesVersementsTotaux']);
|
||||||
|
$tpl->assign('plugin_css', ['style.css']);
|
||||||
|
|
||||||
|
// envoyer au template
|
||||||
|
$tpl->display(PLUGIN_ROOT . '/templates/personne.tpl');
|
Loading…
Reference in New Issue
Block a user