Réorganisation fichiers
FossilOrigin-Name: 7c3c6934177943e0bb0386a23b3f359e703eb88afbf34f58ba8663b3a1802124
This commit is contained in:
parent
46a88944fc
commit
0c7e90e494
@ -4,8 +4,8 @@
|
||||
<!-- nav bar -->
|
||||
<nav class="tabs">
|
||||
<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 == 'activites'} class="current"{/if}><a href="{plugin_url file="activites.php"}">Activités et tarifs</a></li>
|
||||
</ul>
|
||||
</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 -->
|
||||
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
|
||||
|
||||
<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">
|
||||
<h2>Liste des activités, cotisations et comptes associés</h2>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<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>
|
||||
<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=$lesVersementsTotaux item="versement"}
|
||||
{foreach from=$activitesTarifsComptes item="activite"}
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
</table>
|
||||
|
||||
<!-- footer -->
|
||||
{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;
|
||||
|
||||
// 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');
|
||||
|
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