00001 <?
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 include_once("class_widget.php");
00028
00029
00030
00031 include_once("postgres.php");
00032 $ret=make_array($cn,"select fr_id,fr_label
00033 from formdef
00034 order by fr_label");
00035
00036
00037
00038 $w=new widget("select");
00039 $w->table=1;
00040
00041 echo '<div class="u_redcontent">';
00042 echo '<FORM ACTION="bilan.php" METHOD="POST">';
00043 echo '<TABLE>';
00044
00045 print '<TR>';
00046
00047 $filter_year=" where p_exercice='".$User->getExercice()."'";
00048
00049 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id");
00050 $w->label="Depuis";
00051 print $w->IOValue('from_periode',$periode_start);
00052 $w->label=" jusqu'à ";
00053 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id");
00054 print $w->IOValue('to_periode',$periode_end);
00055 print "</TR>";
00056 echo '</TABLE>';
00057 print $w->Submit('bt_rtf','Impression');
00058
00059 echo '</FORM>';
00060 echo '</div>';
00061 ?>