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

Diff of /phpcompta/html/stock.php

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

revision 1.12 by sparkyx, Tue Oct 25 12:10:26 2005 UTC revision 1.13 by sparkyx, Sun Oct 30 21:17:12 2005 UTC
# Line 33  if ( ! isset ( $_SESSION['g_dossier'] ) Line 33  if ( ! isset ( $_SESSION['g_dossier'] )
33  }  }
34  include_once ("postgres.php");  include_once ("postgres.php");
35  /* Admin. Dossier */  /* Admin. Dossier */
36  $rep=DbConnect();  
37    $cn=DbConnect($_SESSION['g_dossier']);
38  include_once ("class_user.php");  include_once ("class_user.php");
39  $User=new cl_user($rep);  $User=new cl_user($cn);
40  $User->Check();  $User->Check();
41    
42  // Synchronize rights  // Synchronize rights
# Line 51  if ( $User->admin == 0 ) { Line 52  if ( $User->admin == 0 ) {
52    }    }
53    
54  }  }
55  $cn=DbConnect($_SESSION['g_dossier']);  
56    
57  //Show the top menu  //Show the top menu
58  include_once ("user_menu.php");  include_once ("user_menu.php");
# Line 113  if ( isset ($_POST['sub_change'])) { Line 114  if ( isset ($_POST['sub_change'])) {
114  // if year is not set then use the year of the user's periode  // if year is not set then use the year of the user's periode
115  if ( ! isset ($_GET['year']) ) {  if ( ! isset ($_GET['year']) ) {
116    // get defaut periode    // get defaut periode
117    $a=GetUserPeriode($cn,$_SESSION['g_user']);    $a=$User->GetPeriode();
118    // get exercice of periode    // get exercice of periode
119    $year=GetExercice($cn,$a);    $year=GetExercice($cn,$a);
120    } else    } else

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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