GetName(); $array=$Form->GetRow( $_POST['from_periode'], $_POST['to_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 "
'. $submit->Submit('bt_other',"Autre Rapport"). $hid->IOValue("type","rapport")."
'. $submit->Submit('bt_pdf',"Export PDF"). $hid->IOValue("type","rapport"). $hid->IOValue("form_id",$Form->id). $hid->IOValue("from_periode",$_POST['from_periode']). $hid->IOValue("to_periode",$_POST['to_periode']); echo "
'. $submit->Submit('bt_csv',"Export CSV"). $hid->IOValue("type","form"). $hid->IOValue("form_id",$Form->id). $hid->IOValue("from_periode",$_POST['from_periode']). $hid->IOValue("to_periode",$_POST['to_periode']); echo "
"; if ( count($Form->row ) == 0 ) exit; echo ""; echo "". "". "". ""; foreach ( $Form->row as $op ) { echo "". "". "". ""; } echo "
Description montant
".$op['desc']."".sprintf("% 8.2f",$op['montant'])."
"; echo "
"; exit; } //////////////////////////////////////////////////////////////////////////////// // Show the jrn and date //////////////////////////////////////////////////////////////////////////////// include_once('form_input.php'); 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 '
'; echo '
'; echo ''; $w=new widget("select"); $w->table=1; $w->label="Choississez le rapport"; print $w->IOValue("form_id",$ret); print ''; print ''; $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); $w->label="Depuis"; print $w->IOValue('from_periode',$periode_start); $w->label=" jusqu'à "; $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode order by p_id"); print $w->IOValue('to_periode',$periode_end); print ""; echo '
'; print $w->Submit('bt_html','Impression'); echo '
'; echo '
'; ?>