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 |
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"); |
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 |