41 |
$l_type="JRN"; |
$l_type="JRN"; |
42 |
$centr=" Non centralisé"; |
$centr=" Non centralisé"; |
43 |
$l_centr=0; |
$l_centr=0; |
44 |
if ($_POST['central'] == 'on' ) { |
if ($_GET['central'] == 'on' ) { |
45 |
$centr=" centralisé "; |
$centr=" centralisé "; |
46 |
$l_centr=1; |
$l_centr=1; |
47 |
} |
} |
48 |
$Jrn=new jrn($cn,$_POST['jrn_id']); |
$Jrn=new jrn($cn,$_GET['jrn_id']); |
49 |
|
|
50 |
$Jrn->GetName(); |
$Jrn->GetName(); |
51 |
$User=new cl_user(DbConnect()); |
$User=new cl_user(DbConnect()); |
53 |
|
|
54 |
// Security |
// Security |
55 |
if ($User->CheckAction($cn,IMP) == 0 || |
if ($User->CheckAction($cn,IMP) == 0 || |
56 |
$User->AccessJrn($cn,$_POST['jrn_id']) == false){ |
$User->AccessJrn($cn,$_GET['jrn_id']) == false){ |
57 |
/* Cannot Access */ |
/* Cannot Access */ |
58 |
NoAccess(); |
NoAccess(); |
59 |
} |
} |
69 |
$rap_deb=0;$rap_cred=0; |
$rap_deb=0;$rap_cred=0; |
70 |
while (1) { |
while (1) { |
71 |
$a=0; |
$a=0; |
72 |
list ($a_jrn,$tot_deb,$tot_cred)=$Jrn->GetRow($_POST['from_periode'], |
list ($a_jrn,$tot_deb,$tot_cred)=$Jrn->GetRow($_GET['from_periode'], |
73 |
$_POST['to_periode'], |
$_GET['to_periode'], |
74 |
$_POST['central'], |
$_GET['central'], |
75 |
$limit,$offset); |
$limit,$offset); |
76 |
echo_debug(__FILE__,__LINE__,"Total debit $tot_deb,credit $tot_cred"); |
echo_debug(__FILE__,__LINE__,"Total debit $tot_deb,credit $tot_cred"); |
77 |
|
|