getMessage()); }else{ if($DEBUG==1) echo "La base ".$dsn['database']." est connectée.
"; // variables collectivites $res = $db->query($sql_collectivite); if (DB :: isError($res)) die($res->getMessage()."erreur ".$sql_collectivite); else{ while ($row=& $res->fetchRow()){ $ville=$row[0]; $logo=$row[1]; }} $res->free(); // variable droit $sql = "SELECT profil from droit where droit= '".$obj."'"; $droit =$db->getOne($sql); If ($_SESSION['profil'] >= $droit){ if(!isset($href) or $href==array()){ $href[0]['lien']= "form.php?obj=".$obj; $href[0]['id']= ""; // * custom * if(file_exists("../dyn/custom/img/ajouter.png")) { $href[0]['lib']= ""; } else { $href[0]['lib']= ""; } //* $href[1]['lien'] = "form.php?obj=".$obj."&idx="; $href[1]['id']= "&premier=".$premier."&recherche=".$recherche1; $href[1]['lib']= ""; $href[2]['lien'] = "form.php?obj=".$obj."&idx="; $href[2]['id']= "&ids=1&premier=".$premier."&recherche=".$recherche1; // * custom * if(file_exists("../dyn/custom/img/supprimer.png")) { $href[2]['lib']= ""; } else { $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']= ""; } //============================ // * custom * include("../dyn/cg.css"); if(file_exists("../dyn/custom/cg.css")) { include("../dyn/custom/cg.css"); } //* echo ""; echo""; include("../dyn/entete.inc"); echo ""; echo ""; echo "
"; // * custom * $tmp=$ico; if(file_exists("../dyn/custom/img/".$tmp.'"')) { $ico= "../dyn/custom/img/".$tmp; } else { $ico = "../img/".$tmp; } if (ereg("->",$ent)) { if(file_exists("../dyn/custom/img/fleche_droite.png")) { $ent=str_replace("->", "", $ent); } else { $ent=str_replace("->", "", $ent); } } // * * echo ""; echo "
".$ent."
"; echo ""; echo "
"; echo "aide"; // * custom * if(file_exists("../dyn/custom/img/ico_aide.png")) { echo "aide"; } else { echo "aide"; } //* echo "
"; echo "
"; ?> 0){ /////////////////////////////////////////////////////////////////////////////// // Surcharge /////////////////////////////////////////////////////////////////////////////// foreach ($_GET as $key => $value) if ($key != "obj" && $key != "premier" && $key != "recherche") $obj .= "&".$key."=".$value; /////////////////////////////////////////////////////////////////////////////// $tb= new tab($obj,$table, $serie,$champAffiche,$champRecherche,$tri,$selection); $tb->entete($table,$edition,$recherche1); $tb->$methode($premier,$recherche,$href,$db,$DEBUG); }else echo "

Droits insuffisants
". "votre profil est : [".$_SESSION['profil']."]

"; //============================================================================== $db->disconnect(); if ($DEBUG == 1) echo "La base ".$dsn['database']." est déconnectée.
"; } // fin entete html //echo ""; include ("../dyn/menu.inc"); echo ""; ?>