getMessage()); } else{ if($DEBUG==1) echo "La base ".$dsn['database']." est connectée.
"; } // parametre collectivite $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= '".$table."'"; $droit =$db->getOne($sql); // entete et charte html ===================================================== // * custom * include("../dyn/cg.css"); if(file_exists("../dyn/custom/cg.css")) { include("../dyn/custom/cg.css"); } //* echo ""; echo""; include("../dyn/entete.inc"); // if (isset ($sousformulaire[0]) and isset($soustab) and $maj==1) //sousform affichés si modif form et existent //body load necessaire pour ancres if ($objsf) if ($premiersf) echo ""; else echo ""; else echo ""; else echo ""; // if (isset ($sousformulaire[0]) and isset($soustab) and $maj>0) // echo ""; // else // echo ""; // ico $tmp=$ico; if(file_exists("../dyn/custom/img/".$tmp.'"')) { $ico= "../dyn/custom/img/".$tmp; } else { $ico = "../img/".$tmp; } // ent if (ereg("->",$ent)) { if(file_exists("../dyn/custom/img/fleche_droite.png")) { $ent=str_replace("->", "", $ent); } else { $ent=str_replace("->", "", $ent); } } echo "
"; echo ""; echo "
".$ent."
"; echo ""; echo "
"; echo "aide"; // * custom * if(file_exists("../dyn/custom/img/ico_aide.png")) { echo "aide"; } else { echo "aide"; } //* echo "
"; echo "
"; $test=""; ?>  "; echo "
"; //echo "
"; // =========================================================================== If ($_SESSION['profil'] >= $droit){ // objet metier $enr = new $obj($idx,$db,$DEBUG); // mode debug message de l'objet métier if ($DEBUG == 1) echo "Objet métier =>
".$enr->msg; echo "
"; $validation++; /////////////////////////////////////////////////////////////////////////////// // Surcharge /////////////////////////////////////////////////////////////////////////////// foreach ($_GET as $key => $value) if ($key != "obj" && $key != "premier" && $key != "recherche" && $key != "idx" && $key != "ids") $obj .= "&".$key."=".$value; /////////////////////////////////////////////////////////////////////////////// $enr->formulaire($enteteTab, $validation, $maj, $db, $_POST,$obj, $DEBUG,$idx,$premier,$recherche); echo "
"; //echo "
"; if (isset($sousformulaire) and $maj==1){ //echo"
"; include ("tab.class.php"); if(!isset($sousformulaire_class)) $sousformulaire_class='sousformulaire'; if(!isset($soustab)){ echo "
"; //*** //*** foreach($sousformulaire as $elem){ echo "
".$elem."

"; $objsf=$elem ; include("soustab.php"); echo "
"; } echo "
"; }else{ // onglets //ancre //echo "
"; echo " "; echo "
"; // *** positionnement des boutons (onglets) //echo "
"; echo "
"; // *** $elem=""; foreach($sousformulaire as $elem) echo ""; echo "
"; // *** positionnement de l objet en cg.class div = objet //echo "
"; echo "
"; echo "
"; echo "
"; // stockage formulaire // *** //echo "
"; } // deconnexion $db->disconnect(); if ($DEBUG == 1) echo "La base ".$dsn['database']." est déconnectée.
"; }}else echo "

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

"; echo ""; include ("../dyn/menu.inc"); echo ""; ?>