Check(); $rep=DbConnect(); include_once ("class_user.php"); $User=new cl_user($rep); $User->Check(); include ("top_menu_compta.php"); ShowMenuCompta($g_dossier,$g_UserProperty); if ( $g_UserProperty['use_admin']==0 ) { $r=CheckAction($g_dossier,$g_user,FACT); if ($r == 0 ){ /* Cannot Access */ NoAccess(); } } include_once("facture_inc.php"); $l_dossier=sprintf("dossier%d",$g_dossier); $cn=DbConnect($l_dossier); ShowMenuComptaLeft($g_dossier,MENU_FACT); ShowMenuComptaRight($g_dossier,$g_UserProperty); if ( $_GET["action"] ) { if ($_GET["fact"] == "all" ) { ViewFactAll($cn); } if ($_GET["fact"]=="impaye") { ViewFactImpaye($cn); } }//get action html_page_stop(); ?>