";
echo"
";
echo "";
//****
if(isset($_GET['obj']))
$obj=$_GET['obj'];
else
$obj="";
//****
if(isset($_GET['plan']))
$plan=$_GET['plan'];
else
$plan="";
$imageplan = $chemin_plan.$plan ;
echo "";
echo "";
echo "
";
echo "
";
//connexion ====================================================================
$db=& DB :: connect($dsn, $db_option);
if (DB :: isError($db)) {
die($db->getMessage());
}else{
if($DEBUG==1)
echo "La base ".$dsn['database']." est connectée.
";
//*****
// variable droit
$sqld = "SELECT profil from droit where droit= '".$obj."'";
$droit =$db->getOne($sqld);
//*****
$sql= "select * from bureau where plans ='".$plan."'";
$res = $db->query($sql);
if (DB :: isError($res))
die($res->getMessage()."erreur ".$sql);
else{
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC))
{
//*****
If ($_SESSION['profil'] >= $droit){
//*****
echo "";
echo "
";
echo "
";
//****
}else{
echo "";
echo "
";
echo "
";
}
//****
}
}
}
echo "