phptype."/".$obj.".inc"))
include ("../sql/".$f -> phptype."/".$obj.".inc");
$f -> headerhtml ();
$f -> collectivite ();
$f -> droit ($obj);
$f -> header (1, $ent, $ico, $obj);
echo "\n
\n";
if ($_SESSION ['profil'] >= $f -> droit)
{
if(!isset($href) or $href==array()){
$href[0]['lien']= "form.php?obj=".$obj."&tri=".$tricol;
$href[0]['id']= "";
$href[0]['lib']= "
";
//*
$href[1]['lien'] = "form.php?obj=".$obj."&tri=".$tricol."&idx=";
$href[1]['id']= "&premier=".$premier."&recherche=".$recherche1;
$href[1]['lib']= "";
$href[2]['lien'] = "form.php?obj=".$obj."&tri=".$tricol."&idx=";
$href[2]['id']= "&ids=1&premier=".$premier."&recherche=".$recherche1;
$href[2]['lib']= "
";
//*
}
}else{
$href[0]['lien']= "#";
$href[0]['id']= "";
$href[0]['lib']= "";
$href[1]['lien'] = "";
$href[1]['id']= "";
$href[1]['lib']= "";
$href[2]['lien'] = "#";
$href[2]['id']= "";
$href[2]['lib']= "";
}
if ($_SESSION ['profil'] > 0)
{
if (file_exists ("../sql/".$f -> phptype."/".$obj.".inc"))
{
if(!isset($methode))
$methode="afficher";
$tb= new tab($obj,$table, $serie,$champAffiche,$champRecherche,$tri,$tricol,$selection);
$tb->entete($table,$edition,$recherche1);
$tb->$methode($premier,$recherche,$href,$f -> db,$DEBUG,$hiddenid);
}
else
echo "Erreur du logiciel : le fichier \"../sql/".$f -> phptype."/".$obj.".inc\" est inaccessible";
}
else
{
echo "
".$f->lang("attention")." ".$f->lang("droit").$f->lang("pluriel")." ".$f->lang("insuffisant").$f->lang("pluriel")." - ".
$f->lang("votre_profil_est")." : [".$_SESSION['profil']."]
";
}
echo "\n
\n\n";
/**
*
*/
$f -> footer ();
$f -> deconnexion ();
$f -> footerhtml ();
/*
echo "