/[phpcompta]/phpcompta/html/jrn_pdf.php
ViewVC logotype

Diff of /phpcompta/html/jrn_pdf.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by sparkyx, Mon Mar 7 19:50:22 2005 UTC revision 1.7 by stanpinte, Thu Apr 21 17:04:46 2005 UTC
# Line 41  $cn=DbConnect($_SESSION['g_dossier']); Line 41  $cn=DbConnect($_SESSION['g_dossier']);
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());
# Line 53  $User->Check(); Line 53  $User->Check();
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   }   }
# Line 69  $offset=0;$limit=22;$step=22; Line 69  $offset=0;$limit=22;$step=22;
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    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26