"; echo""; include("../dyn/entete.inc"); ?> "; if(isset($_GET['plan'])) $plan=$_GET['plan']; else $plan=""; $imageplan=$chemin_plan.$plan ; echo ""; if (file_exists($imageplan)) { list($width, $height, $type, $attr) = getimagesize($imageplan); 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.
"; $sql= "select * from emplacement where plans ='".$plan."'"; $res = $db->query($sql); if (DB :: isError($res)) die($res->getMessage()."erreur ".$sql); else{ $i=0; while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ $i++; echo "
"; if($row['libre']=='Oui') echo "".
                     $row["; else if($row['terme']=='temporaire') echo "".
                     $row["; else echo "".
                     $row["; echo "
"; }} } echo "
"; // // deconnexion $db->disconnect(); if ($DEBUG == 1) echo "La base ".$dsn['database']." est déconnectée.
"; } else { echo "

Image: $imageplan absente ou inexistante

"; } echo ""; ?>