On-line calculator
".JS_CALC_LINE."
";
echo "
";
}
// Save the change into database
if ( isset($_POST['save'] )) {
$r=RecordODS($cn,$_POST,$User,$_GET['p_jrn']);
// Get number of lines
$nb_number=$_POST["nb_item"];
// submit button in the form
$submit='
Recorded
';
$r.=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,true, $nb_number,true);
echo '
';
echo $r;
echo "
";
}
}
if ( $action == 'voir_jrn' ) {
// Check privilege
if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_GET['p_jrn']) < 1 ) {
NoAccess();
exit -1;
}
// Show list of cells
echo_debug ("user_action_ods.php");
// Date - date of payment - Customer - amount
?>
getExercice()."')";
} else {
$cond=" and jr_tech_per=".$current;
}
$sql=SQL_LIST_ALL_INVOICE.$cond." 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
if ( $action == 'search' ) {
// Check privilege
if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_GET['p_jrn']) <1 ) {
NoAccess();
exit -1;
}
// PhpSessid
$sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID'];
// display a search box
$search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$_POST);
echo '
';
echo $search_box;
// if nofirst is set then show result
if ( isset ($_GET['nofirst'] ) ) {
list ($max_line,$a)=ListJrn($cn,$_GET['p_jrn'],"",$_POST);
echo $a;
}
echo '
';
}
include("user_update.php");
?>