25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
33if ( isset(
$_GET[
'bt_html'] ) )
59 if (
$http->get(
"p_step",
"number")==1) {
74 $http->get(
'from_periode',
"number"),
75 $http->get(
'to_periode',
"number"),
91 echo
'<div class="content">';
93 $form_label=
h(
$Form->get_form_definition()->getp(
"fr_label"));
99 echo
'<h2 class="h-section" >'.$form_id
107 echo
'<h2 class="h-section" >'.$form_id.
" ".$form_label.
116 $id=uniqid(
"export_");
118 echo
'<TD><form method="GET" ACTION="?" ';
119 printf(
'id="%s" onsubmit="download_document_form(\'%s\')">',
$id,
$id);
121 echo dossier::hidden().
123 HtmlInput::submit(
'bt_other',
"Autre Rapport").
124 $hid->input(
"type",
"rapport").
127 echo
'<TD><form method="GET" ACTION="export.php" ';
128 $id=uniqid(
"export_");
129 printf(
'id="%s" onsubmit="download_document_form(\'%s\')">',
$id,
$id);
131 echo HtmlInput::submit(
'bt_pdf',
"Export PDF").
132 HtmlInput::hidden(
'act',
'PDF:report').
134 $hid->input(
"type",
"rapport").
149 echo
'<TD><form method="GET" ACTION="export.php" ';
150 $id=uniqid(
"export_");
151 printf(
'id="%s" onsubmit="download_document_form(\'%s\')">',
$id,
$id);
153 echo HtmlInput::hidden(
'act',
'CSV:report').
154 HtmlInput::submit(
'bt_csv',
"Export CSV").
156 $hid->input(
"type",
"form").
164 echo
$hid->input(
"type_periode",
$_GET[
'type_periode']);
187 printf(
'<h2>%s</h2> ',$periode_name[
$a]);
209 echo
"Aucun Rapport";
215echo
'<div class="content">';
221echo
'<form method="GET" ';
222printf(
' onsubmit="waiting_box()">');
224echo
'Choisissez un exercice :';
227 sprintf(
' onchange="updatePeriode(\'%s\',\'exercice\',\'from_periode\',\'to_periode\',1)"',Dossier::id(),
$exercice));
229echo dossier::hidden();
230echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
235echo
'<FORM METHOD="GET" onsubmit="waiting_box()">';
238echo
$hidden->input(
"type",
"rapport");
239echo dossier::hidden();
243$w->selected=
$http->request(
"form_id",
"string",0);
245print td(
_(
"Choisissez le rapport"));
250 array(
'value'=>0,
'label'=>
_(
'Période comptable')),
251 array(
'value'=>1,
'label'=>
_(
'Calendrier'))
254$w->javascript=
' onchange=enable_type_periode();';
255$w->id=
'type_periode';
258echo
$w->input(
'type_periode',
$aCal);
268$periode_start=
$cn->make_array(
"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end");
269print td(
"Période comptable : Depuis");
272$periode_end=
$cn->make_array(
"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end");
282echo
td(
_(
"Calendrier depuis :"));
289 array(
'value'=>0,
'label'=>
_(
'Pas d\'étape')),
290 array(
'value'=>1,
'label'=>
_(
'1 mois'))
293echo
td(
_(
'Par étape de'));
299echo
'<span class="notice"> '._(
'Attention : vous ne pouvez pas utiliser les étapes avec les dates calendriers.').
'</span>';
301echo
'<span class="notice">'._(
'Les clauses FROM sont ignorés avec les dates calendriers').
'</span>';
303print HtmlInput::submit(
'bt_html',
_(
'Visualisation'));
306echo
'<script>enable_type_periode()</script>';
315 echo
'<TABLE class="result">';
317 "<TH> Description </TH>".
318 "<TH> montant </TH>".
324 $class= (
$i % 2 == 0 )?
' class="odd"':
' class="even"';
325 $style=
'style="text-align:right;"';
326 if (
$op[
'montant']<0) {
$style=
'style="color:red;text-align:right;"';}
328 "<TD>".h(
$op[
'desc']).
"</TD>".
329 "<TD $style>".nbm(
$op[
'montant']).
"</TD>".
getPeriodeName($p_cn, $p_id, $pos='p_start')
Show the periode which found thanks its id.
td($p_string='', $p_extra='')
surround the string with td
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
catch(Exception $e) $exercice
foreach($array as $idx=> $m) $w
_("actif, passif,charge,...")
Class rapport Create, view, modify and parse report.
about the accountancy period (usually 1 year starting in January until december) = exercice
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
for($e=0; $e< count($afiche); $e++) exit
ShowReportResult($p_array)