phptype."/".$langue."/".$obj.".inc")) include ("../sql/".$f -> phptype."/".$langue."/".$obj.".inc"); }else{ if (file_exists ("../sql/".$f -> phptype."/".$obj.".inc")) include ("../sql/".$f -> phptype."/".$obj.".inc"); } $f -> headerhtml (); $f -> collectivite (); $f -> droit ($obj); $f -> header (1, $ent, $ico, $obj); $f->isAuthorized($obj); echo "\n
\n"; // If ($_SESSION['profil'] >= $f -> droit){ $dir=getcwd(); if (isset($langue)){ $dir=substr($dir,0,strlen($dir)-4)."/sql/".$f -> phptype."/".$langue."/"; }else{ $dir=substr($dir,0,strlen($dir)-4)."/sql/".$f -> phptype."/"; } $dossier = opendir($dir); // ajouter echo "
"; echo ""; echo "
"; echo ""; 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($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 "
"; echo ""; //* if($temp[1]=="lettretype"){ echo ""; echo $temp[0]." (".$temp[1].")
"; closedir($dossier); }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 (); ?>