getMessage());
}
else{
if($DEBUG==1)
echo "La base ".$dsn['database']." est connectée.
";
}
// Paramètre collectivité
$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();
$sql = "SELECT profil from droit where droit= 'txtab'";
$droit =$db->getOne($sql);
// * custom *
include("../dyn/cg.css");
if(file_exists("../dyn/custom/cg.css")) {
include("../dyn/custom/cg.css");
}
//*
echo "";
echo"
";
include("../dyn/entete.inc");
// * custom *
if(file_exists("../dyn/custom/lien.inc")) {
include("../dyn/custom/lien.inc");
}
else {
include("../dyn/lien.inc");
}
//*
echo "";
echo "";
echo "";
echo "
";
echo "Parametrage sql/".$dsn['phptype']." |
";
echo "
";
echo "";
//
If ($_SESSION['profil'] >= $droit){
$dir=getcwd();
$dir=substr($dir,0,strlen($dir)-4)."/sql/".$dsn['phptype']."/";
$dossier = opendir($dir);
// ajouter
echo "
";
echo "
";
$col=0;
while ($entree = readdir($dossier))
{
if ($entree == "." || $entree ==".."){
continue;
}else{
$temp = explode(".",$entree);
if(!isset($temp[1])) $temp[1]="";
if($temp[1]=="inc") $temp[1]="tab";
if($temp[1]==$obj){
$col=$col+1;
echo "";
if(file_exists("../dyn/custom/img/ico_fleche.png")) {
echo "";
}
else {
echo "";
}
//*
if($temp[1]=="lettretype"){
echo "";
echo $temp[0]." (".$temp[1].") | ";
}
if($temp[1]=="sousetat"){
echo "";
echo $temp[0]." (".$temp[1].")";
}
if($temp[1]=="etat"){
echo "";
echo $temp[0]." (".$temp[1].")";
}
if ($col==3){
echo "
";
$col=0;
}
}
}}
echo "
";
closedir($dossier);
}else{
echo "
";
echo "
Droits insuffisants |
";
}
echo "
";
include ("../dyn/menu.inc");
echo "";
?>