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"));
107 echo
'<h2 >'.$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().
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);
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);
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">';
220echo
'<fieldset><legend>'._(
'Exercice').
'</legend>';;
221echo
'<form method="GET" ';
222printf(
' onsubmit="waiting_box()">');
224echo
'Choisissez un autre exercice :';
227 sprintf(
' onchange="updatePeriode(\'%s\',\'exercice\',\'from_periode\',\'to_periode\',1)"',
Dossier::id(),
$exercice));
229echo dossier::hidden();
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>';
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"';
327 "<TD>".h(
$op[
'desc']).
"</TD>".
328 "<TD align=\"right\">".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
h( $row[ 'oa_description'])
Class rapport Create, view, modify and parse report.
static id()
return the 'gDossier' value after a check
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)
if(isset( $_GET['bt_html'])) $ret