diff --git a/include/user_action_ach.php b/include/user_action_ach.php index a5d3fa73b..9b0693752 100644 --- a/include/user_action_ach.php +++ b/include/user_action_ach.php @@ -135,14 +135,25 @@ if ( $action == 'voir_jrn' ) { ?>
+
+ "; +$hid=new widget("hidden"); + +$hid->name="p_jrn"; +$hid->value=$p_jrn; +echo $hid->IOValue(); + +$hid->name="action"; +$hid->value="voir_jrn"; +echo $hid->IOValue(); + $w=new widget("select"); - +$w->name="p_periode"; $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); $User=new cl_user($cn); -$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode(); +$current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); $w->selected=$current; echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); diff --git a/include/user_action_fin.php b/include/user_action_fin.php index 30bdebc4e..7394ae677 100644 --- a/include/user_action_fin.php +++ b/include/user_action_fin.php @@ -150,14 +150,24 @@ if ( $action == 'voir_jrn' ) { ?>
+ + "; +$hid=new widget("hidden"); + +$hid->name="p_jrn"; +$hid->value=$p_jrn; +echo $hid->IOValue(); + +$hid->name="action"; +$hid->value="voir_jrn"; +echo $hid->IOValue(); $w=new widget("select"); $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); $User=new cl_user($cn); -$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode(); +$current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); $w->selected=$current; echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); @@ -178,8 +188,10 @@ echo 'P list($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); $bar=jrn_navigation_bar($offset,$max_line,$step,$page); - - echo $list; + + echo $bar; + echo $list; + echo $bar; echo '
'; } ////////////////////////////////////////////////////////////////////// diff --git a/include/user_action_gl.php b/include/user_action_gl.php index 0b7745593..bf15b6f46 100644 --- a/include/user_action_gl.php +++ b/include/user_action_gl.php @@ -32,13 +32,24 @@ if (CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],0) < 1 ) ?>
- + name="JRN_TYPE"; +$hid->value="NONE"; +echo $hid->IOValue(); + +$hid->name="action"; +$hid->value="voir_jrn"; +echo $hid->IOValue(); + $w=new widget("select"); $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); $User=new cl_user($cn); -$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode(); +$current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); $w->selected=$current; echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); ?> diff --git a/include/user_action_ods.php b/include/user_action_ods.php index 53738d20b..efe82b422 100644 --- a/include/user_action_ods.php +++ b/include/user_action_ods.php @@ -145,26 +145,40 @@ if ( $action == 'voir_jrn' ) { ?>
+ + "; +$hid=new widget("hidden"); + +$hid->name="p_jrn"; +$hid->value=$p_jrn; +echo $hid->IOValue(); + +$hid->name="action"; +$hid->value="voir_jrn"; +echo $hid->IOValue(); $w=new widget("select"); $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); $User=new cl_user($cn); -$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode(); +$current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); $w->selected=$current; echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); ?> '; + $sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ; + $step=$_SESSION['g_pagesize']; + $page=(isset($_GET['offset']))?$_GET['page']:1; + $offset=(isset($_GET['offset']))?$_GET['offset']:0; + list ($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql,null,$offset); + $bar=jrn_navigation_bar($offset,$max_line,$step,$page); + echo $bar; + echo $list; + echo $bar; + echo '
'; } //Search diff --git a/include/user_action_ven.php b/include/user_action_ven.php index 46ce39fd8..bd4c3c35f 100644 --- a/include/user_action_ven.php +++ b/include/user_action_ven.php @@ -138,14 +138,26 @@ if ( isset($_POST["record_and_print_invoice"])) { ?>
+ +
+ "; +$hid=new widget("hidden"); + +$hid->name="p_jrn"; +$hid->value=$p_jrn; +echo $hid->IOValue(); + +$hid->name="action"; +$hid->value="voir_jrn"; +echo $hid->IOValue(); + $w=new widget("select"); $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id"); // User is already set User=new cl_user($cn); -$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode(); +$current=(isset($_GET['p_periode']))?$_GET['p_periode']:$User->GetPeriode(); $w->selected=$current; echo 'Période '.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider');