altocompta/include/anc_great_ledger.inc.php
2018-02-03 15:28:52 +01:00

60 lines
1.8 KiB
PHP

<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
/**
*@file
*@brief Print the great ledger for Analytic accounting
* @see Anc_GrandLivre
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
echo '<div style="content">';
global $http;
require_once NOALYSS_INCLUDE.'/class/anc_grandlivre.class.php';
$grandLivre=new Anc_Grandlivre($cn);
$grandLivre->get_request();
/*
* Form
*/
echo '<form method="get" >';
echo $grandLivre->display_form();
echo '<p>' . HtmlInput::submit('Recherche', _('Rechercher')) . '</p>';
echo HtmlInput::request_to_hidden(array('sa','ac','gDossier'));
echo '</form>';
$result=$http->request('result',"string",null);
if ($result != null)
{
$grandLivre->load();
if ($grandLivre->has_data != 0 )
{
echo '<span style="display:block">';
echo _('Tout sélectionner')." ".ICheckBox::toggle_checkbox('export_pdf_bt1','export_anc_receipt_pdf');
echo '</span>';
$task_id=uniqid();
echo $grandLivre->show_button();
printf ('<form method="GET" id="export_anc_receipt_pdf" action="export.php" style="display:inline" onsubmit="progress_bar_start(\'%s\',\'%s\');return true;">',
$task_id,
_("Le traitement est en cours , merci de patienter sans recharger la page")
);
echo HtmlInput::hidden("task_id",$task_id);
echo $grandLivre->button_export_pdf();
echo $grandLivre->display_html();
echo $grandLivre->button_export_pdf();
echo HtmlInput::get_to_hidden(array('ac','gDossier','sa'));
echo '</form>';
echo $grandLivre->show_button();
}
else
{
echo '<p class="notice">';
echo _('Aucune donnée trouvée');
echo '</p>';
}
}
echo '</div>';
?>