given by the
'; $i++; } } /*!\brief ConfirmCSV shows the operation which are going to be transfered * * \param $p_cn database conx * \param $periode user's periode */ function ConfirmTransfert($p_cn,$periode){ $sql = "select to_char(p_start,'DD-MM-YYYY') as p_start,to_char(p_end,'DD-MM-YYYY') as p_end". " from parm_periode where p_id = '".$periode."'"; $Res=ExecSql($p_cn,$sql); $val = pg_fetch_array($Res); if ( $val == false ) { echo ""; exit(); } $start ="to_date('".$val['p_start']."','DD-MM-YYYY')"; $end = "to_date('".$val['p_end']."','DD-MM-YYYY')"; $sql = "select code,to_char(date_exec,'DD.MM.YYYY') as date_exec, ". " montant,num_compte,poste_comptable,bq_account,jrn,detail,jr_rapt ". " from import_tmp where status = 'w' AND date_exec BETWEEN ".$start." and ".$end; $Res=ExecSql($p_cn,$sql); $Num=pg_NumRows($Res); echo $Num." opérations à transfèrer.