Bug nav. bar
This commit is contained in:
parent
5952fe5357
commit
da7d46a63c
5 changed files with 79 additions and 19 deletions
|
|
@ -135,14 +135,25 @@ if ( $action == 'voir_jrn' ) {
|
|||
?>
|
||||
<div class="u_redcontent">
|
||||
|
||||
<form method= "get" action="user_jrn.php">
|
||||
|
||||
<?
|
||||
echo "<form method= \"post\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_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');
|
||||
|
|
|
|||
|
|
@ -150,14 +150,24 @@ if ( $action == 'voir_jrn' ) {
|
|||
?>
|
||||
<div class="u_redcontent">
|
||||
|
||||
<form method= "get" action="user_jrn.php">
|
||||
|
||||
<?
|
||||
echo "<form method= \"GET\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_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 '</div>';
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -32,13 +32,24 @@ if (CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],0) < 1 )
|
|||
|
||||
?>
|
||||
<div class="u_redcontent">
|
||||
<form method="post" action="user_jrn.php?JRN_TYPE=NONE">
|
||||
<form method="GET" action="user_jrn.php">
|
||||
<?
|
||||
|
||||
$hid=new widget("hidden");
|
||||
|
||||
$hid->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');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -145,26 +145,40 @@ if ( $action == 'voir_jrn' ) {
|
|||
?>
|
||||
<div class="u_redcontent">
|
||||
|
||||
<form method= "get" action="user_jrn.php">
|
||||
|
||||
<?
|
||||
echo "<form method= \"GET\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_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');
|
||||
?>
|
||||
</form>
|
||||
<?
|
||||
$sql=SQL_LIST_ALL_INVOICE." and jr_tech_per=".$current." and jr_def_id=".$_GET['p_jrn'] ;
|
||||
list ($max_line,$list)=ListJrn($cn,$_GET['p_jrn'],$sql);
|
||||
|
||||
|
||||
echo $list;
|
||||
echo '</div>';
|
||||
$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 '</div>';
|
||||
}
|
||||
|
||||
//Search
|
||||
|
|
|
|||
|
|
@ -138,14 +138,26 @@ if ( isset($_POST["record_and_print_invoice"])) {
|
|||
|
||||
?>
|
||||
<div class="u_redcontent">
|
||||
|
||||
<form method= "get" action="user_jrn.php">
|
||||
|
||||
<?
|
||||
echo "<form method=\"GET\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_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 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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue