|
|
@ -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'));
|
|
|
|