';
- $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,true,$nb_number);
+ $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,true,$nb_number);
// if something goes wrong, correct it
if ( $r == null ) {
@@ -113,7 +113,7 @@ if ( $action == 'new' ) {
$submit='
';
- $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$HTTP_POST_VARS,false, $nb_number);
+ $r=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,false, $nb_number);
}
echo '
';
echo $r;
@@ -122,14 +122,14 @@ if ( $action == 'new' ) {
}
// Save the change into database
if ( isset($_POST['save'] )) {
- $r=RecordODS($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']);
+ $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,$HTTP_POST_VARS,true, $nb_number,true);
+ $r.=FormODS($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,true, $nb_number,true);
echo '
';
echo $r;
echo "
";
@@ -214,12 +214,12 @@ if ( $action == 'search' ) {
$sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID'];
// display a search box
- $search_box=u_ShowMenuRecherche($cn,$_GET['p_jrn'],$sessid,$HTTP_POST_VARS);
+ $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'],"",$HTTP_POST_VARS);
+ list ($max_line,$a)=ListJrn($cn,$_GET['p_jrn'],"",$_POST);
echo $a;
}
echo '
';
diff --git a/include/user_action_ven.php b/include/user_action_ven.php
index 0e355e9b9..881f00108 100644
--- a/include/user_action_ven.php
+++ b/include/user_action_ven.php
@@ -42,7 +42,7 @@ if ( $action == 'insert_vente' ) {
$nb_number=$_POST["nb_item"];
$nb_number++;
- $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number);
+ $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_number);
echo '
';
echo $form;
echo '
';
@@ -52,13 +52,13 @@ if ( $action == 'insert_vente' ) {
// We want to see the encoded invoice
if ( isset ($_POST["view_invoice"])) {
$nb_number=$_POST["nb_item"];
- if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number) == true)
+ if ( form_verify_input($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$nb_number) == true)
{
- $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,$nb_number);
+ $form=FormVenteView($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,$nb_number);
// Check failed : invalid date or quantity
} else {
echo_error("Cannot validate ");
- $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb_number);
+ $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb_number);
}
echo '
';
echo $form;
@@ -90,7 +90,7 @@ if ( isset($_POST["record_invoice"])) {
}
// echo "RECORD INVOICE";
- RecordInvoice($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']);
+ RecordInvoice($cn,$_POST,$User,$_GET['p_jrn']);
}
if (isset ($_POST['correct_new_invoice'])) {
// Check privilege
@@ -100,7 +100,7 @@ if (isset ($_POST['correct_new_invoice'])) {
}
$nb=$_POST['nb_item'];
- $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$HTTP_POST_VARS,false,$nb);
+ $form=FormVenInput($cn,$_GET['p_jrn'],$User->GetPeriode(),$_POST,false,$nb);
echo '
';
echo $form;
echo '
';
@@ -115,14 +115,14 @@ if ( isset($_POST["record_and_print_invoice"])) {
// echo "RECORD AND PRINT INVOICE";
- $comment=RecordInvoice($cn,$HTTP_POST_VARS,$User,$_GET['p_jrn']);
+ $comment=RecordInvoice($cn,$_POST,$User,$_GET['p_jrn']);
$nb_number=$_POST["nb_item"];
- if ( form_verify_input($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number)== true) {
- $form=FormVenteView($cn,$p_jrn,$User->GetPeriode(),$HTTP_POST_VARS,$nb_number,'noform',$comment);
+ if ( form_verify_input($cn,$p_jrn,$User->GetPeriode(),$_POST,$nb_number)== true) {
+ $form=FormVenteView($cn,$p_jrn,$User->GetPeriode(),$_POST,$nb_number,'noform',$comment);
} else {
echo_error("Cannot validate ");
- $form=FormVenInput($cn,$_GET['p_jrn'],$User,$HTTP_POST_VARS,false,$nb_number);
+ $form=FormVenInput($cn,$_GET['p_jrn'],$User,$_POST,false,$nb_number);
}
echo '
';