name="jrn_type"; $hid->value="NONE"; echo $hid->IOValue(); $hid->name="action"; $hid->value="voir_jrn"; echo $hid->IOValue(); $w=new widget("select"); // filter on the current year $filter_year=" where p_exercice='".$User->getExercice()."'"; $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end",1); $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'); ?>
getExercice()."')"; } else { $cond=" and jr_tech_per=".$current; } $sql=SQL_LIST_ALL_INVOICE.$cond; // Nav. bar $step=$_SESSION['g_pagesize']; $page=(isset($_GET['offset']))?$_GET['page']:1; $offset=(isset($_GET['offset']))?$_GET['offset']:0; list ($max_line,$list)=ListJrn($cn,0,$sql,null,$offset); $bar=jrn_navigation_bar($offset,$max_line,$step,$page); echo $bar; echo $list; echo $bar; ?>