Compare commits
15 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8b5c08c12d | ||
![]() |
ec0702e48c | ||
![]() |
27168d0f0b | ||
![]() |
1dc7969f0d | ||
![]() |
4fd56bf12d | ||
![]() |
e097e0c836 | ||
![]() |
a5ba3c52ba | ||
![]() |
83020af56e | ||
![]() |
a132bec27d | ||
![]() |
977046b657 | ||
![]() |
1df94237e6 | ||
![]() |
674157c925 | ||
![]() |
2b2c2ebcc9 | ||
![]() |
f524ebdc0f | ||
![]() |
e6470bd2e9 |
7 changed files with 51 additions and 53 deletions
|
@ -16,10 +16,14 @@ $_GET['_dialog'] = true;
|
||||||
|
|
||||||
// signature
|
// signature
|
||||||
$signature =
|
$signature =
|
||||||
(null !== $plugin->getConfig('signature')) ?
|
(null !== $config->fileURL('signature')) ?
|
||||||
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . "/" . $plugin->getConfig('signature') :
|
$config->fileURL('signature') :
|
||||||
"";
|
((null !== $plugin->getConfig('signature')) ?
|
||||||
|
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . $plugin->getConfig('signature') :
|
||||||
|
"");
|
||||||
|
|
||||||
|
// http://test.paheko.bzh/config/cavalier.png
|
||||||
|
error_log('signature = ' . $signature);
|
||||||
// logo
|
// logo
|
||||||
$config = Config::getInstance();
|
$config = Config::getInstance();
|
||||||
$logo_asso =
|
$logo_asso =
|
||||||
|
@ -111,7 +115,8 @@ function genererRecusPDF($totalPersonnes,
|
||||||
$numero_sequentiel = getNumSequentiel($configNum);
|
$numero_sequentiel = getNumSequentiel($configNum);
|
||||||
foreach ($totalPersonnes as $idPersonne => $personne) {
|
foreach ($totalPersonnes as $idPersonne => $personne) {
|
||||||
$tpl = new UserTemplate(null);
|
$tpl = new UserTemplate(null);
|
||||||
$tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel');
|
/* $tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel'); */
|
||||||
|
$tpl->setSourcePath(PLUGIN_ROOT . '/templates/recu.skel');
|
||||||
|
|
||||||
$tpl->assignArray(compact('signature', 'logo_asso', 'texteArticles'));
|
$tpl->assignArray(compact('signature', 'logo_asso', 'texteArticles'));
|
||||||
$tpl->assign('objet_asso', $plugin->getConfig('objet_asso'));
|
$tpl->assign('objet_asso', $plugin->getConfig('objet_asso'));
|
||||||
|
|
|
@ -34,5 +34,18 @@ div.previs_recu
|
||||||
font-family: Serif;
|
font-family: Serif;
|
||||||
font-size: 11pt;
|
font-size: 11pt;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
page-break-after: always;
|
break-after: always;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* supprimer saut de page après dernier */
|
||||||
|
div.previs_recu:last-of-type
|
||||||
|
{
|
||||||
|
font-family: Serif;
|
||||||
|
font-size: 11pt;
|
||||||
|
background-color: white;
|
||||||
|
break-after: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#__profiler {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,3 +95,9 @@ span.titre, span.libelle
|
||||||
{
|
{
|
||||||
display : inline;
|
display : inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ne pas imprimer le bandeau des boutons du profiler */
|
||||||
|
#__profiler
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Utils
|
||||||
description,
|
description,
|
||||||
amount as montant
|
amount as montant
|
||||||
FROM services_fees');
|
FROM services_fees');
|
||||||
return Utils::toAssoc($db->get($sql), 'id');
|
return $db->getGrouped($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,7 +37,7 @@ class Utils
|
||||||
services.label,
|
services.label,
|
||||||
services.description
|
services.description
|
||||||
FROM services');
|
FROM services');
|
||||||
return Utils::toAssoc($db->get($sql), 'id');
|
return $db->getGrouped($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -76,7 +76,7 @@ class Utils
|
||||||
$annee,
|
$annee,
|
||||||
$db->where('code', $op, $comptes)
|
$db->where('code', $op, $comptes)
|
||||||
);
|
);
|
||||||
return Utils::toAssoc($db->get($sql), 'id');
|
return $db->getGrouped($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -120,32 +120,6 @@ class Utils
|
||||||
return $db->get($sql);
|
return $db->get($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* faire un tableau associatif avec le résultat d'une requête
|
|
||||||
*/
|
|
||||||
static function toAssoc($array, $nomCle)
|
|
||||||
{
|
|
||||||
$assoc = array();
|
|
||||||
foreach ($array as $elem)
|
|
||||||
{
|
|
||||||
$ro = new \ReflectionObject($elem);
|
|
||||||
$proprietes = $ro->getProperties();
|
|
||||||
$obj = new \stdClass();
|
|
||||||
foreach ($proprietes as $p)
|
|
||||||
{
|
|
||||||
$pname = $p->getName();
|
|
||||||
if ($pname == $nomCle) {
|
|
||||||
$key = $p->getValue($elem);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$obj->$pname = $p->getValue($elem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$assoc[$key] = $obj;
|
|
||||||
}
|
|
||||||
return $assoc;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return versements correspondants à l'année donnée
|
* @return versements correspondants à l'année donnée
|
||||||
* @param $annee
|
* @param $annee
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Accueil</a></li>
|
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Accueil</a></li>
|
||||||
<li{if $current_nav == 'personne'} class="current"{/if}><a href="{plugin_url file="action.php?action=personne"}">Versements par personne</a></li>
|
{if $current_nav == 'personne'} <li class="current"><a>Versements par personne</a></li>{/if}
|
||||||
<li{if $current_nav == 'activite'} class="current"{/if}><a href="{plugin_url file="action.php?action=activite"}">Versements par activité et tarif</a></li>
|
{if $current_nav == 'activite'} <li class="current"><a>Versements par activité et tarif</a></li>{/if}
|
||||||
{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_WRITE)}
|
{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_WRITE)}
|
||||||
<li{if $current_nav == 'config'} class="current"{/if}><a href="{plugin_url file="config.php"}">Configuration</a></li>
|
<li{if $current_nav == 'config'} class="current"{/if}><a href="{plugin_url file="config.php"}">Configuration</a></li>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
{* <legend>Choisir une des méthodes</legend> *}
|
{* <legend>Choisir une des méthodes</legend> *}
|
||||||
<dl id="menu">
|
<dl>
|
||||||
<dd class="radio-btn">
|
<dd class="radio-btn">
|
||||||
<input type="radio" id="radio_versements_personne" name="choix_versements" value="personne"
|
<input type="radio" id="radio_versements_personne" name="choix_versements" value="personne"
|
||||||
onclick="choixMethodeGeneration(this.form, 'personne', 'menu_versements', '.menu');" />
|
onclick="choixMethodeGeneration(this.form, 'personne', 'menu_versements', '.menu');" />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{include file="_head.tpl" title="%s"|args:$plugin.name current="plugin_%s"|args:$plugin.id}
|
{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.id}
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$fmt = new \NumberFormatter('fr_FR', \NumberFormatter::SPELLOUT);
|
$fmt = new \NumberFormatter('fr_FR', \NumberFormatter::SPELLOUT);
|
||||||
|
|
Loading…
Add table
Reference in a new issue