GetName();
// step asked ?
//--
if ($_POST['p_step'] == 0 ) {
$array=$Form->GetRow( $_POST['from_periode'],
$_POST['to_periode']
);
} else {
// step are asked
//--
for ($e=$_POST['from_periode'];$e<=$_POST['to_periode'];$e+=$_POST['p_step'])
{
$periode=getPeriodeName($cn,$e);
if ( $periode == null ) continue;
$array[]=$Form->GetRow($e,$e);
$periode_name[]=$periode;
}
}
$rep="";
$submit=new widget();
$hid=new widget("hidden");
echo '
';
$t=($_POST['from_periode']==$_POST['to_periode'])?"":" -> ".getPeriodeName($cn,$_POST['to_periode'],'p_end');
echo '
'.$Form->id." ".$Form->name.
" - ".getPeriodeName($cn,$_POST['from_periode'],'p_start').
" ".$t.
'
';
echo '
';
echo '';
echo ' | ";
echo ' | ";
echo ' | ";
echo "
";
echo "
";
if ( count($Form->row ) == 0 )
exit;
if ( $_POST['p_step'] == 0)
{ // check the step
// show tables
ShowReportResult($Form->row);
}
else
{
$a=0;
foreach ( $array as $e) {
echo '
Periode : '.$periode_name[$a]."
";
$a++;
ShowReportResult($e);
}
}
echo "
";
exit;
}
//-----------------------------------------------------
// Show the jrn and date
//-----------------------------------------------------
include_once("postgres.php");
$ret=make_array($cn,"select fr_id,fr_label
from formdef
order by fr_label");
if ( sizeof($ret) == 0 ) {
echo "Aucun Rapport";
return;
}
//-----------------------------------------------------
// Form
//-----------------------------------------------------
echo '